// 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)
오픈 소스 스크립트
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.
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
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.