// Made by TheMightyChicken // An example of binary options signals with results - colored background of expiry candle. (green = WIN, red = LOSE) // Arrows set for bearish and bullish harami candlestick patterns. (credits to repo32) // Expiration set to 1 candle by default. study(shorttitle="BOA", title="Binary Options Arrows (example) [TheMightyChicken]", overlay=true) // Inputs E = input(1, minval=1, title="Expiry") // Calculations Bearish_harami = (close[1] > open[1] and open > close and open <= close[1] and open[1] <= close and open - close < close[1] - open[1] and open[5] < open) Bullish_harami = (open[1] > close[1] and close > open and close <= open[1] and close[1] <= open and close - open < open[1] - close[1] and open[5] > open) // Setups CALL = Bullish_harami == 1 PUT = Bearish_harami == 1 ARROW = CALL - PUT plotarrow(ARROW, colorup=lime, colordown=red, transp=0, minheight=10, maxheight=10) // Results WIN = (CALL[E]==1 and close[E]<close) or (PUT[E]==1 and close[E]>close) LOSE = (CALL[E]==1 and close[E]>=close) or (PUT[E]==1 and close[E]<=close) bgcolor(WIN==1 ? lime : LOSE==1 ? red : na, transp=70)
Comments
Stottl
⋅
Hi The mighty chicken,
I am just starting off in trading etc could you help me out? I want to set the expiration on say candle 5 or 10 minute candle are you able to point me in the right direction on how this could be done.
Many thaanks trevor
mrxoxo
⋅
@Stottl, first, he's not the mighty chicken, its another user on Tradingview. TheMightyChicken himself told over pm that he doesn't use this strategy and wouldn't recommend it to trade anything as it's longterm not profitable...(even with filters) so i don't see why people still keep copying this strategy and reposting it. Just saying. Cheers
I am just starting off in trading etc could you help me out? I want to set the expiration on say candle 5 or 10 minute candle are you able to point me in the right direction on how this could be done.
Many thaanks trevor