<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Binary options &#8211; The Financial Hacker</title>
	<atom:link href="https://financial-hacker.com/tag/binary-options/feed/" rel="self" type="application/rss+xml" />
	<link>https://financial-hacker.com</link>
	<description>A new view on algorithmic trading</description>
	<lastBuildDate>Fri, 13 Oct 2023 08:20:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://financial-hacker.com/wp-content/uploads/2017/07/cropped-mask-32x32.jpg</url>
	<title>Binary options &#8211; The Financial Hacker</title>
	<link>https://financial-hacker.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Algorithmic Options Trading 2</title>
		<link>https://financial-hacker.com/algorithmic-options-trading-2/</link>
					<comments>https://financial-hacker.com/algorithmic-options-trading-2/#comments</comments>
		
		<dc:creator><![CDATA[jcl]]></dc:creator>
		<pubDate>Sat, 17 Jun 2017 23:00:22 +0000</pubDate>
				<category><![CDATA[Introductory]]></category>
		<category><![CDATA[System Development]]></category>
		<category><![CDATA[Binary options]]></category>
		<category><![CDATA[Black-Scholes Formula]]></category>
		<category><![CDATA[Butterfly]]></category>
		<category><![CDATA[Call]]></category>
		<category><![CDATA[Condor]]></category>
		<category><![CDATA[Options]]></category>
		<category><![CDATA[Profit diagram]]></category>
		<category><![CDATA[Put]]></category>
		<category><![CDATA[Strangle]]></category>
		<guid isPermaLink="false">http://www.financial-hacker.com/?p=2298</guid>

					<description><![CDATA[In this second part of the Algorithmic Options trading series we&#8217;ll look more closely into option returns. Especially into combining different option types for getting user-tailored profit and risk curves. Option traders know combinations with funny names like &#8220;Iron Condor&#8221; or &#8220;Butterfly&#8221;, but you&#8217;re not limited to them. With some tricks you can create artificial &#8230; <a href="https://financial-hacker.com/algorithmic-options-trading-2/" class="more-link">Continue reading<span class="screen-reader-text"> "Algorithmic Options Trading 2"</span></a>]]></description>
										<content:encoded><![CDATA[<p>In this second part of the <a href="http://www.financial-hacker.com/algorithmic-options-trading/">Algorithmic Options trading</a> series we&#8217;ll look more closely into option returns. Especially into combining different option types for getting user-tailored profit and risk curves. Option traders know combinations with funny names like &#8220;Iron Condor&#8221; or &#8220;Butterfly&#8221;, but you&#8217;re not limited to them. With some tricks you can create artificial financial instruments of any desired property &#8211; for instance &#8220;<a href="http://www.financial-hacker.com/binary-options-scam-or-opportunity/" target="_blank" rel="noopener">Binary Options</a>&#8221; with more than 100% payout factor.<span id="more-2298"></span></p>
<p>The <strong>profit diagram</strong> of an option is its profit or loss at or before expiration in dependence of the price of the underlying. Let&#8217;s assume that we know that the price of a certain asset will rise in the next months. So we buy a call option on that asset. Our profit diagram then looks like this:</p>
<figure id="attachment_2488" aria-describedby="caption-attachment-2488" style="width: 423px" class="wp-caption alignnone"><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s.png"><img fetchpriority="high" decoding="async" class="wp-image-2488" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s-768x466.png 768w" sizes="(max-width: 423px) 85vw, 423px" /></a><figcaption id="caption-attachment-2488" class="wp-caption-text">AAPL call at strike 144</figcaption></figure>
<p>This is the potential return when buying a current (June 2017) AAPL call option with 4 months expiration time. We have to pay $668 premium for that option. The current AAPL price is $144, and that&#8217;s also our strike price. The blue line is our profit or loss, dependent on the AAPL price at expiration. The option will expire out of the money when AAPL stays below $144, so we&#8217;ll then lose the premium. We&#8217;ll still lose a part of the premium if the option expires only slightly in the money. The break even point is at about $151. And if AAPL floats even higher at expiration time, we can collect huge profits of a multiple of the premium. So buying a call option means an unlimited profit chance at a limited risk. You can not lose more than the premium.</p>
<p>The green line in the diagram is the theoretical option value after 2 months, at half the expiration time. It is approximated with a finite difference method or calculated with the Black-Scholes formula, dependent on option type. The real option price is normally close to that theoretical value. So we can see that we could already sell the option with a profit after two months when the AAPL price is then above $148.</p>
<p>By the way, this option profit diagram resembles the response function of a Rectified Linear Unit in a <a href="http://www.financial-hacker.com/build-better-strategies-part-5-developing-a-machine-learning-system/" target="_blank" rel="noopener">neural network</a>. So we can speculate that when a billion option traders permanently sell and buy large numbers of options, when the underlying price depends on option demand, and when profits are always reinvested in new options, the option market becomes a huge neural net. Some day artificial intelligence might emerge and the options start buying and selling themselves&#8230;</p>
<h3>Option combos</h3>
<p>Now let&#8217;s assume we know for sure that the AAPL price will move in the next time, but we do not know if it will rise or fall. For making profit in both cases, we just buy a call and a put option, both with the strike at the current price of $144:</p>
<figure id="attachment_2490" aria-describedby="caption-attachment-2490" style="width: 423px" class="wp-caption alignnone"><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s3.png"><img decoding="async" class="wp-image-2490" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s3.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s3.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s3-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s3-768x466.png 768w" sizes="(max-width: 423px) 85vw, 423px" /></a><figcaption id="caption-attachment-2490" class="wp-caption-text">1 call at 144 + 1 put at 144</figcaption></figure>
<p>We can see that a call and a put option with the same parameters don&#8217;t cancel out each other! The resulting profit diagram is just the sum of the profit diagrams of the single options. For both options we have to pay a $1310 total premium. If the AAPL price stays inside the $131 &#8211; $157 range, we lose. If it ends up outside this range, we win. If it ends up outside by a wide margin, we win big.</p>
<p>Now suppose we think an asset won&#8217;t be very volatile in the next time and its price will stay inside a range. We&#8217;ll then sell the two options instead of buying them. Selling instead of buying just turns the above profit diagram upside down. And we can already see the problem with that: The profit is now limited and the risk unlimited.</p>
<p>For fixing this, we need to add some more options to the combination:</p>
<figure id="attachment_2493" aria-describedby="caption-attachment-2493" style="width: 423px" class="wp-caption alignnone"><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s4.png"><img decoding="async" class="wp-image-2493" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s4.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s4.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s4-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s4-768x466.png 768w" sizes="(max-width: 423px) 85vw, 423px" /></a><figcaption id="caption-attachment-2493" class="wp-caption-text">1 call at 139 + 1 call at 149 &#8211; 2 calls at 144</figcaption></figure>
<p>For this profit diagram we&#8217;ve used 4 options. We bought one call at a strike $5 below the current price, another call at a strike $5 above the current price, and we sold short two calls with the strike at the current price. For the two long options we paid $1400 premium, and for the two short options we got $1340. This leaves us with $60 total premium cost, and a chance of up to $440 profit when the price stays inside the $140 &#8211; $148 range. This option combo, for whatever reason, got the name &#8220;Long Butterfly&#8221; by option traders.</p>
<p>By the way, you can see from this butterfly that you can really produce any profit diagram with a suited combination of options. The position of the butterfly peak is determined by the strike prices, its width by their distance, its height by the number of options. This way, many different butterfly peaks can be theoretically put together to a profit diagram of any shape. Unfortunately, you cannot just as freely determine its vertical position &#8211; a part of the diagram will be always below the zero line&#8230;</p>
<h3>The code</h3>
<p>Here&#8217;s a small C script (for <a href="http://www.financial-hacker.com/hackers-tools-zorro-and-r/" target="_blank" rel="noopener">Zorro</a>) for experiments with all sorts of option combinations:</p>
<pre class="prettyprint">#include &lt;contract.c&gt;
void optionAdd(int Num,int Type,var StrikeOffs);

#define ASSET     "AAPL"
#define EXPIRY	  120	// 4 months
#define BUY	(1&lt;&lt;10)
#define SELL	(1&lt;&lt;11)

void combo() // "Butterfly"
{
	optionAdd(1,BUY|CALL,-5);  
	optionAdd(2,SELL|CALL,0);
	optionAdd(1,BUY|CALL,5);
}

//////////////////////////////////////////////////
#define POINTS 100 
var OptionGains[POINTS],OptionVals50[POINTS];
var UnderL,HistVol;

void optionPlot(int Num,CONTRACT* C,var Premium,var RangeMin,var RangeMax) 
{
	PlotScale = 10;
	var Step = (RangeMax-RangeMin)/POINTS;
	Step = round(Step+0.5,1); // round up
	RangeMin = round(RangeMin,1);

	int i;
	for(i=0; i&lt;POINTS; i++)
	{
		if(Num == 0) {
			OptionGains[i] = OptionVals50[i] = 0;
		} else {
			var Price = RangeMin + i*Step;
			if(Price &gt; RangeMax) break;
			var Gain = 0;
			var Strike = C-&gt;fStrike; 
			var Val50 = contractVal(C,Price,HistVol,0,0);
			switch(C-&gt;Type&amp;(BUY|SELL|CALL|PUT)) {
				case BUY|CALL: 
					if(Price &gt; Strike) Gain = Price - Strike;
					Gain -= Premium;
					Val50 -= Premium;
					break;
				case BUY|PUT: 
					if(Price &lt; Strike) Gain = Strike - Price;
					Gain -= Premium;
					Val50 -= Premium;
					break;
				case SELL|CALL: 
					if(Price &gt; Strike) Gain = Strike - Price;
					Gain += Premium;
					Val50 = Premium - Val50;
					break;
				case SELL|PUT: 
					if(Price &lt; Strike) Gain = Price - Strike;
					Gain += Premium;
					Val50 = Premium - Val50;
					break;
			}
			OptionGains[i] += Multiplier*Num*Gain;
			OptionVals50[i] += Multiplier*Num*Val50;
			plotBar("Zero",i,0,0,LINE,BLACK);
			plotBar("ValueAt50%",i,Price,OptionVals50[i],LINE|LBL2,GREEN);
			plotBar("ValueAtExpiry",i,Price,OptionGains[i],LINE|LBL2,BLUE);
		}
	}
}

void optionAdd(int Num,int Type,var StrikeOffs)
{
	CONTRACT C;
	C.Type = Type;
	C.Expiry = EXPIRY;
	C.fStrike = round(UnderL+StrikeOffs,1);
	var Premium = contractVal(&amp;C,UnderL,HistVol,0,0);
	C.Expiry = EXPIRY*0.5; // for the value at 50% expiration 
	optionPlot(Num,&amp;C,Premium,0.8*UnderL,1.2*UnderL);
}

void run() 
{
	BarPeriod = 1440;
	StartDate = NOW;
	set(PRELOAD);
	if(is(INITRUN)) {
		initRQL();
		assetAdd(ASSET);
		assetHistory(ASSET,FROM_GOOGLE);
		asset(ASSET);
	}
	vars Close = series(priceClose());
	HistVol = Volatility(Close,20);
	UnderL = Close[0];
	Multiplier = 100;

	if(!is(LOOKBACK)) 
	{
		optionAdd(0,0,0); // reset the graphs
		combo();
		quit("Ok!");
	}
}</pre>
<p>This script plots the above diagrams. The core of the script is the <strong>combo()</strong> function at the begin. It contains one or several <strong>optionAdd</strong> calls that get as parameters the number of options, the type (BUY, SELL, CALL, PUT, EUROPEAN, BINARY), and the strike difference to the current price. In the example above you can see the combination for the long butterfly. The asset and expiration can be set up in the <strong>#define</strong> lines above. The script downloads the current asset prices from Google and calculates the volatility that is needed for getting the options values and premiums. For running it you need Zorro, R, and the <strong>RQuantLib</strong> package from <a href="https://cran.r-project.org/bin/windows/contrib/3.3/RQuantLib_0.4.2.zip" target="_blank" rel="noopener">https://cran.r-project.org/bin/windows/contrib/3.3/RQuantLib_0.4.2.zip</a>.</p>
<p>Some more examples of popular option combos:</p>
<pre class="prettyprint">// Call Spread
void combo()
{
	optionAdd(1, BUY|CALL, -5);
	optionAdd(1, SELL|CALL, 5);
}</pre>
<p><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s5.png"><img loading="lazy" decoding="async" class="alignnone wp-image-2502" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s5.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s5.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s5-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s5-768x466.png 768w" sizes="auto, (max-width: 423px) 85vw, 423px" /></a></p>
<pre class="prettyprint">// Put Spread
void combo()
{
	optionAdd(1, BUY|PUT, 5);
	optionAdd(1, SELL|PUT, -5);
}</pre>
<p><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s6.png"><img loading="lazy" decoding="async" class="alignnone wp-image-2503" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s6.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s6.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s6-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s6-768x466.png 768w" sizes="auto, (max-width: 423px) 85vw, 423px" /></a></p>
<p>Call or Put Spreads limit our risk as well as our profit to a fixed amount. The steepness of the center slope can be controlled with the strike difference. We can see from the diagrams that Spreads are (almost) equivalent to <a href="http://www.financial-hacker.com/binary-options-scam-or-opportunity/" target="_blank" rel="noopener">binary options</a> &#8211; but with a much better payout factor. The diagrams are not completely symmetrical, and the Call Spread above has $514 potential profit and $486 potential loss &#8211; equivalent to a binary option with 105% payout. If the asset has the same likeliness of going up and going down, a Call Spread gives us a statistical advantage similar to the seller&#8217;s advantage of single options. With a Put Spread it&#8217;s the other way around.</p>
<p>The green line shows us whether it makes sense to sell the combo prematurely. Suppose we learned that the new iPhone tends to sudden explosions, and opened an AAPL Put Spread. When the AAPL price goes down and falls below $120 after 2 months, it makes no sense to wait until expiration, since the green line at 120 has almost the same value than the blue line. Only problem is that selling reduces our profit by the bid/ask spread and commission. An option expiration has no bid/ask spread and, if out of the money, also no commission.</p>
<p>Some more combos:</p>
<pre class="prettyprint">// Strangle
void combo()
{
	optionAdd(1, BUY|CALL, 5);
	optionAdd(1, BUY|PUT, -5);
}</pre>
<p><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s7.png"><img loading="lazy" decoding="async" class="alignnone wp-image-2511" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s7.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s7.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s7-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s7-768x466.png 768w" sizes="auto, (max-width: 423px) 85vw, 423px" /></a></p>
<pre class="prettyprint">// Condor
void combo()
{
	optionAdd(1, BUY|CALL, -10);
	optionAdd(1, SELL|CALL, -5);
	optionAdd(1, SELL|CALL, 5);
	optionAdd(1, BUY|CALL, 10);
}</pre>
<p><a href="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s8.png"><img loading="lazy" decoding="async" class="alignnone wp-image-2514" src="http://www.financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s8.png" alt="" width="423" height="257" srcset="https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s8.png 846w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s8-300x182.png 300w, https://financial-hacker.com/wp-content/uploads/2018/01/OptionsCurve_AAPL_s8-768x466.png 768w" sizes="auto, (max-width: 423px) 85vw, 423px" /></a></p>
<p>Combos that involve both selling and buying options &#8211; such as Spreads, Condors, or Butterflys &#8211; are especially attractive. Their investment is only the difference of the premiums, and the broker&#8217;s margin requirement is also accordingly smaller due to the limited risk. This allows trading with small capital and high leverage.</p>
<h3>Get rich quick</h3>
<p>Here&#8217;s my today&#8217;s get-rich-quick tip, this time for brokers. The problem with options is that you often need to wait weeks, months, or years until they finally expire and you can book your profit. Dear brokers, how about opening a market for <strong>short-term options</strong>? Options that expire at the end of each trading day, with strike prices in steps of cents, not dollars? Those options would be a very interesting instrument especially for short-term algorithmic trading. They would become very popular and produce a lot of commissions. Of course, 10% of those commissions are mine. I just patented this concept. Contact me for license conditions.</p>
<h3>Conclusion</h3>
<ul style="list-style-type: square;">
<li>Options can be clever combined for reducing the investment, limiting the risk, increasing the leverage, and generating profit diagrams of any shape.</li>
<li>Depending on premiums, profit diagrams are often not perfectly symmetrical. This results in a statistial advantage (or disadvantage) of option combos with nondirectional assets.</li>
</ul>
<p>I&#8217;ve included the <strong>OptionsCurve</strong> script in the 2017 script repository. Since price data download from Google rather than <a href="http://www.financial-hacker.com/bye-yahoo-and-thank-you-for-the-fish/" target="_blank" rel="noopener">Yahoo</a> was only recently implemented, you&#8217;ll need Zorro 1.59 or above. You&#8217;ll also need R and the RQuantLib package. In the final article of this series we&#8217;ll test a real options trading strategy.</p>
<p style="text-align: right;"><a href="http://www.financial-hacker.com/algorithmic-options-trading-part-3/">Options Trading, Part 3</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://financial-hacker.com/algorithmic-options-trading-2/feed/</wfw:commentRss>
			<slash:comments>32</slash:comments>
		
		
			</item>
		<item>
		<title>Binary Options: Scam or Opportunity?</title>
		<link>https://financial-hacker.com/binary-options-scam-or-opportunity/</link>
					<comments>https://financial-hacker.com/binary-options-scam-or-opportunity/#comments</comments>
		
		<dc:creator><![CDATA[jcl]]></dc:creator>
		<pubDate>Sat, 18 Jun 2016 16:40:24 +0000</pubDate>
				<category><![CDATA[3 Most Clicked]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[System Development]]></category>
		<category><![CDATA[Binary options]]></category>
		<category><![CDATA[Broker]]></category>
		<category><![CDATA[Mean Reversion]]></category>
		<category><![CDATA[Robot]]></category>
		<category><![CDATA[Scam]]></category>
		<guid isPermaLink="false">http://www.financial-hacker.com/?p=1709</guid>

					<description><![CDATA[We&#8217;re recently getting more and more contracts for coding binary option strategies. Which gives us a slightly bad conscience, since those options are widely understood as a scheme to separate naive traders from their money. And their brokers make indeed no good impression at first look. Some are regulated in Cyprus under a fake address, &#8230; <a href="https://financial-hacker.com/binary-options-scam-or-opportunity/" class="more-link">Continue reading<span class="screen-reader-text"> "Binary Options: Scam or Opportunity?"</span></a>]]></description>
										<content:encoded><![CDATA[<p>We&#8217;re recently getting more and more contracts for coding binary option strategies. Which gives us a <strong>slightly bad conscience</strong>, since those options are widely understood as a scheme to separate naive traders from their money. And their brokers make indeed no good impression at first look. Some are regulated in Cyprus under a fake address, others are not regulated at all. They spread <strong>fabricated stories</strong> about huge profits with robots or EAs. They are said to <strong>manipulate their price curves</strong> for preventing you from winning. And if you still do, some <strong>refuse to pay out</strong>, and eventually disappear without a trace (but with your money). That&#8217;s the stories you hear about binary options brokers. Are binary options nothing but scam? Or do they offer a <strong>hidden opportunity</strong> that even their brokers are often not aware of?<span id="more-1709"></span></p>
<p>Binary options, in their most common form, are very different to <a href="http://www.financial-hacker.com/algorithmic-options-trading/" target="_blank" rel="noopener">real options</a>. They are a bet that the price of an asset will rise or fall within a given time frame. If you win the bet, the broker pays your stake multiplied with a <strong>win payout</strong> factor in the 75%..95% range. If you lose, you pay the stake minus a possible <strong>loss payout</strong>. You&#8217;re trading not against the market, but against the broker. The broker needs you to lose, otherwise they would not make any profit. Even if they really pay out your wins, and even if they do not manipulate the price curve, they can still control your profit with their payout factors. So it seems that even if you had a winning system, the broker would just reduce the payout for making sure that you lose in the long run.</p>
<p>However this conclusion is a fallacy. It can in fact be of advantage for the broker to offer a payout that allows you to win, as long as most other traders still lose. A broker has not the freedom of arbitrarily reducing the payout. He&#8217;s competing with other brokers. But why would you want to trade binary options anyway, when you also can trade serious instruments instead? If you wanted a binary outcome, you can also achieve this by opening a <a href="http://www.financial-hacker.com/algorithmic-options-trading-2/" target="_blank" rel="noopener">Put or Call Spread</a> with real options &#8211; and this with a serious broker, much higher payout factors (even &gt; 100% in some cases) and the possibility to sell the options prematurely.</p>
<p>But aside from tax advantages in some countries, there is one single compelling reason that might make a binary options trading experiment worthwhile. Profit and trading cost of a binary option are independent of the time frame. So you can trade on very short time frames, which would be difficult, if not impossible with real options or other financial instruments. You can find a discussion of this problem in the <a href="http://www.financial-hacker.com/is-scalping-irrational/" target="_blank" rel="noopener">Scalping</a> article.</p>
<h3>Binary scalping math</h3>
<p>The required minimum win rate for binary trading can be calculated from the broker&#8217;s win and loss payout:</p>
<p style="text-align: center;">[pmath size=16]W~=~ {1-Pl}/{1+Pw-Pl}[/pmath]</p>
<p><em><strong>W</strong></em> = required win rate for break even<br />
<em><strong>Pl</strong></em> = Loss payout<br />
<em><strong>Pw</strong></em> = Win payout</p>
<p>With 85% win payout and no loss payout, you need a win rate of</p>
<p style="text-align: center;">[pmath size=16]W ~=~ 1/{1.85} ~=~ 54%[/pmath]</p>
<p>54% win rate seem to be manageable on short time frames. The transaction costs of a non-binary, conventional broker would require a much higher win rate, as in the following graph from the <a href="http://www.financial-hacker.com/is-scalping-irrational/" target="_blank" rel="noopener">Scalping</a> article:</p>
<figure id="attachment_524" aria-describedby="caption-attachment-524" style="width: 889px" class="wp-caption alignnone"><a href="http://www.financial-hacker.com/wp-content/uploads/2015/10/scalp11.png"><img loading="lazy" decoding="async" class="wp-image-524 size-full" src="http://www.financial-hacker.com/wp-content/uploads/2015/10/scalp11.png" width="889" height="513" srcset="https://financial-hacker.com/wp-content/uploads/2015/10/scalp11.png 889w, https://financial-hacker.com/wp-content/uploads/2015/10/scalp11-300x173.png 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></a><figcaption id="caption-attachment-524" class="wp-caption-text">Required win rate in percent vs. trade duration (non binary)</figcaption></figure>
<p>You had to win almost 80% of five-minutes trades &#8211; impossible for a trading system under normal conditions unless you enforce that win rate with some tricks, which however won&#8217;t help getting in the profit zone.</p>
<p>So,<strong> smaller trading costs on low time frames</strong> are the obvious benefit of trading binary options. With all the side benefits of low time frames, such as more data for backtests, and shorter drawdown periods in live trading. But how can we take advantage of that? There are three problems to solve.</p>
<h3>Three steps to potential binary profit</h3>
<ol>
<li>Find a strategy with a <strong>win r</strong><strong>ate</strong> that is better than the <em><strong>W</strong></em> determined with the above payout formula. But be aware that prices on small time frames are strongly feed dependent. Normally you won&#8217;t know your binary broker&#8217;s price source (if he has any at all). For being on the safe side, test with different historical price data from different serious brokers (f.i. Oanda or FXCM) and stay some percent points above the minimum <em><strong>W</strong></em>.<br />
 </li>
<li>Find a way to trade automated. Binary brokers often do not want you to do that. Consequently most do not offer a platform or API for automated trading. But they all have a web interface. So you need either a software tool (such as Zorro) that can <strong>send key strokes and mouse clicks</strong> to a website, or some other means to get your trades to the broker.<br />
  </li>
<li>Find a broker that&#8217;s halfway honest. At least one that allows you to <strong>really collect your gains</strong>. All binary brokers make it easy to deposit, but some follow the philosophy: &#8220;If you gave it to me, it&#8217;s mine.&#8221; Make test withdrawals before you deposit large amounts. Keep the account balance small. Check the broker&#8217;s opportunity to <strong>manipulate the price curve</strong>: the more customers they have and the more bets they handle, the more difficult is it to manipulate without attracting unwanted attention. Retrieve as many <strong>information</strong> as possible about your broker: Where are they really located? For some reason, fraudsters seem to be concentrated in Tel Aviv. Check what customers say about that broker &#8211; but be aware: positive statements on trader forums are often planted by the broker himself.</li>
</ol>
<p>All those issues make trading binary options sort of &#8220;messy&#8221;. However it&#8217;s the messy methods that sometimes offer the best opportunities. Ed Thorp made his first millions not with &#8216;serious trading&#8217;, but with a Blackjack strategy and with a method to estimate the value of warrants, both also considered messy and hard to calculate at that time.</p>
<h3>Step 1: The system</h3>
<p>A price curve is no random walk. At least not all of the time. Long time frames are often dominated by <a href="http://www.financial-hacker.com/build-better-strategies-part-2-model-based-systems/" target="_blank" rel="noopener">trend</a>, short time frames by <a href="http://www.financial-hacker.com/build-better-strategies-part-2-model-based-systems/" target="_blank" rel="noopener">mean reversion</a>. When transaction costs do not matter, it&#8217;s not very hard to find a system with &gt; 54% win rate on 5-minutes bars. Here&#8217;s a simple example that exploits the mean reversion tendency of short time frames (script for <a href="http://www.financial-hacker.com/hackers-tools-zorro-and-r/" target="_blank" rel="noopener">Zorro</a>):</p>
<pre class="prettyprint">var objective()
{
	return ((var)(NumWinLong+NumWinShort))/(NumLossLong+NumLossShort);
}


function run()
{
	BarPeriod = 5;
	LookBack = 100;
	NumWFOCycles = 20;
	NumCores = -1;
	
	set(BINARY);
	WinPayout = 85;
	LossPayout = 0;

	set(PARAMETERS);
	int TimePeriod = optimize(20,10,100);
	var Threshold = 0.01*(HH(TimePeriod)-LL(TimePeriod));

	if(NumOpenLong+NumOpenShort == 0) 
	{
		LifeTime = 1;
		if(HH(TimePeriod) - priceClose() &lt; Threshold)
			enterShort();
		else if(priceClose() - LL(TimePeriod) &lt; Threshold)
			enterLong();
	}
}</pre>
<p>In the C code above we defined an individual objective() function that optimizes the system for binary trading. It measures the system performance as the number of winning trades divided by the number of losing trades. Otherwise the optimizer would hunt for the most robust profit factor, which makes no sense for binary trading.</p>
<p>The setup establishes a 5 minutes bar period, which is the time frame of our bets. We use 20 WFO cycles and let the optimizer use all CPU cores but one. This way the training run takes about 5-10 minutes for 5 years data. The BINARY flag activates binary trades, and we&#8217;re simulating a broker with 85% win payout and no loss payout.</p>
<p>We have a mean reverting system that trades whenever the current price is closer than a threshold &#8211; here, 1% of recent volatility &#8211; to its previous High or Low. The time period for determining the High and Low is the only system parameter that we optimize. You could improve the system in many ways, for instance by optimizing also the threshold, by modifying the objective() function so that it prefers systems with more trades, and by applying a filter that prevents trading in non mean-reverting market regimes. Since we bet on the price in 5 minutes, we&#8217;ve set the LifeTime of a trade to one bar. Here&#8217;s the equity curve from a 5 years walk forward test with EUR/USD:</p>
<figure id="attachment_1935" aria-describedby="caption-attachment-1935" style="width: 879px" class="wp-caption alignnone"><a href="http://www.financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD.png"><img loading="lazy" decoding="async" class="wp-image-1935 size-full" src="http://www.financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD.png" width="879" height="341" srcset="https://financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD.png 879w, https://financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-300x116.png 300w, https://financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-768x298.png 768w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></a><figcaption id="caption-attachment-1935" class="wp-caption-text">Binary options</figcaption></figure>
<p>The system has about 56% win rate and a notable, although not spectacular positive return. Which is not achieved by the crude mean reversion mechanism, but mostly by amplifying the small entry-exit price differences through binary trading, even though the payout is only 85%. You won&#8217;t get a similar result with conventional trades. The same system not trading binary options, but leveraged forex positions produces a very different equity curve (for testing, comment out the BINARY flag and the Payout settings in the code):</p>
<figure id="attachment_1937" aria-describedby="caption-attachment-1937" style="width: 879px" class="wp-caption alignnone"><a href="http://www.financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-1.png"><img loading="lazy" decoding="async" class="wp-image-1937 size-full" src="http://www.financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-1.png" width="879" height="341" srcset="https://financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-1.png 879w, https://financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-1-300x116.png 300w, https://financial-hacker.com/wp-content/uploads/2016/12/Binary_EURUSD-1-768x298.png 768w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></a><figcaption id="caption-attachment-1937" class="wp-caption-text">Leveraged Forex</figcaption></figure>
<p>With the same trades we have now only 40% win rate and an overall loss, since all the trade profit is eaten up by spread and commission. </p>
<h3>Step 2: Automatizing</h3>
<p>How do you let your script automatically enter a bet at the right moment? This is a technical issue unrelated to trading, but it comes up whenever you have a broker with a web based platform and no proper connection for automatizing. Here&#8217;s a code snippet for detecting the positions of [Buy] and [Sell] buttons on a website, and automated clicking them:</p>
<pre class="prettyprint">void main()
{
	int BuyX,BuyY,SellX,SellY; // button coordinates

// open the browser	
	printf("\nOpening the broker's website...");
	exec("http://financial-hacker.com/shark.htm",0,1);

// get the position of the Buy button
	printf("\nRight click on [Buy]!");
	while(wait(50)) {
		int button = mouse(&amp;BuyX,&amp;BuyY,window(""));
		if(button &amp; 2) break;
	}
// wait until right mouse key released	
	while(wait(50)) {
		int x,y,button = mouse(&amp;x,&amp;y,0);
		if(!(button &amp; 2)) break;	
	}

// get the position of the Sell button	
	printf("\nRight click on [Sell]!");
	while(wait(50)) {
		int button = mouse(&amp;SellX,&amp;SellY,window(""));
		if(button &amp; 2) break;
	}
// wait until right mouse key released	
	while(wait(50)) {
		int x,y,button = mouse(&amp;x,&amp;y,0);
		if(!(button &amp; 2)) break;	
	}

// send mouse clicks to Buy and Sell	
	printf("\nI will now click on [Buy]!");
	keys("[click %d,%d]",BuyX,BuyY);
	printf("\nI will now click on [Sell]!");
	keys("[click %d,%d]",SellX,SellY);
	printf("\nDone!");
}
</pre>
<p>Start the script, and wait until the broker&#8217;s website pops up in your browser. Then follow the instructions in Zorro&#8217;s message window. Manoever the mouse onto the &#8220;Buy&#8221; button and hit the right mouse key. Then do the same with the &#8220;Sell&#8221; button. The script will store the button positions and then use the <a href="http://manual.zorro-project.com/keys.htm" target="_blank" rel="noopener">keys</a> function to send test clicks to both positions of the active window. For testing purposes I&#8217;ve imitated a typical binary broker&#8217;s trading platform.</p>
<p><a href="http://www.financial-hacker.com/wp-content/uploads/2016/12/sharkio.png"><img loading="lazy" decoding="async" class="alignnone wp-image-1944 size-full aligncenter" src="http://www.financial-hacker.com/wp-content/uploads/2016/12/sharkio.png" width="361" height="409" srcset="https://financial-hacker.com/wp-content/uploads/2016/12/sharkio.png 361w, https://financial-hacker.com/wp-content/uploads/2016/12/sharkio-265x300.png 265w" sizes="auto, (max-width: 361px) 85vw, 361px" /></a></p>
<p>You now only need to glue together your trading script with the button clicking script, and adapt the latter to the website of your broker. This is left as an exercise to the reader. And better use improved versions &#8211; the scripts here are kept simple for demonstration purposes. As long as the script trades, make sure that the browser window stays in the foreground, or else it can not click on the buttons. For the position size, either enter a fixed size for all positions, or let your script click into the size field and send key strokes to set individual sizes.</p>
<h3>Step 3: The broker</h3>
<p>Of course I don&#8217;t want to recommend a particular binary options broker. In the end, they&#8217;re all crooks &#8211; but some are crookier than others. Finding a suited broker is, also, left as an exercise to the reader. Binary broker comparison websites are often &#8211; surprise, surprise &#8211; installed and paid by binary brokers. US citizens are normally not allowed to trade binary options with brokers that are not regulated in the US. Some brokers will accept your deposit nevertheless, but use that as pretext to refuse payout. If you&#8217;re a citizen of Israel, you might not be accepted by many binary brokers since they&#8217;re not allowed to fraud compatriots. </p>
<h3>Conclusion</h3>
<p>It&#8217;s often the &#8220;messy&#8221; and despised trade instruments that can still provide opportunities when they are correctly understood. I&#8217;ve uploaded the two scripts to the 2016 repository. You&#8217;ll need Zorro 1.52 or above for running them. When you now make huge profits with binary options, don&#8217;t forget where the money comes from: Not from the broker, but from his less fortunate customers that maybe just haven&#8217;t read the right blog.</p>
<hr />
<p><strong>Addendum:</strong> From all articles on this blog, this one attracted by far the most spam comments. From them it appears that a new lucrative business has established in the orbit of binary brokers: <strong>recovery fraud</strong>. As soon as you&#8217;ve lost your money, you&#8217;ll receive offers by &#8220;hackers&#8221; or &#8220;law firms&#8221; to recover it, for a fee of course. Where did they get your email from? Naturally from the very broker that bagged your money&#8230;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://financial-hacker.com/binary-options-scam-or-opportunity/feed/</wfw:commentRss>
			<slash:comments>83</slash:comments>
		
		
			</item>
	</channel>
</rss>
