tanayroy

Binary Option Strategy Tester with Martingale

tanayroy 업데이트됨   
In Binary options, strategy testing is a bit different. The script is just a try to test Binary options strategies.
Assumption:
  • We are opening position at next candle after signal come
  • We are taking the position at opening price
  • Our call will be profitable if we get a green candle and put will be profitable if we get a red candle
  • We can open only one trade at a time. So if we are in trade, subsequent signals will be ignored.
The script is not counting your profit or loss, it just counting the winning and losing trades.

Input Options:
  • Choose long only or short only test. Default is both.
  • You can continue your trade with Martingale Level, up to 5. Default is 1 (no Martingale)
  • You can choose Martingale trade type
    SAME: if call subsequent trade will be call only and vice versa
    OPPOSITE: if call subsequent trade will be put
    FOLLOW CANDLE COLOR: Subsequent trade will follow previous candle color
    OPPOSITE CANDLE COLOR: Subsequent trade will opposite of previous candle color
  • You can choose trading session to test. Default is false.

The strategy is taken from Vdub Binary Options SniperVX v1 (by @vdubus). I have deleted extra parts and kept only the necessary part.
Without Martingale
Result Table
With Martingale

I am very new to Pine script, so waiting for your comments and review.
릴리즈 노트:
New version available:

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?