// 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)
Script de código aberto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.