OPEN-SOURCE SCRIPT
Binary Options Strategy Template

With the hype around Binary Options trading (more like gambling instead of trading) it is good to be able to backtest a strategy before using it in the live markets.
In a Binary Options trade the trade get's closed after a specific amount of time and the only thing that matters is if the market has increased in price or decreased after that amount of time.
Because of this a strategy backtest should close all positions after a specific amount of time. In this super small script the number of bars since the trade was opened is used as a way to close the position. So for example if you use this strategy on the 1 minute charts with number of bars set to 5 it will close the position 5 minutes after opening it. Purpose of this script is using it as a strategy on already existing scripts to check viability for options trading.
With the limited pine knowledge that I have I do not know if it is possible to create a more realistic binary options strategy which also calculated the profit. If someone knows a more advanced version of this please let me know.
In a Binary Options trade the trade get's closed after a specific amount of time and the only thing that matters is if the market has increased in price or decreased after that amount of time.
Because of this a strategy backtest should close all positions after a specific amount of time. In this super small script the number of bars since the trade was opened is used as a way to close the position. So for example if you use this strategy on the 1 minute charts with number of bars set to 5 it will close the position 5 minutes after opening it. Purpose of this script is using it as a strategy on already existing scripts to check viability for options trading.
With the limited pine knowledge that I have I do not know if it is possible to create a more realistic binary options strategy which also calculated the profit. If someone knows a more advanced version of this please let me know.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
✅ Let me help you become profitable long-term.
Patreon -> patreon.com/ChartMuse
Patreon -> patreon.com/ChartMuse
✅ Work with me:
Form -> forms.gle/caAJxCNTP4CqjFy4A
Form -> forms.gle/caAJxCNTP4CqjFy4A
Patreon -> patreon.com/ChartMuse
Patreon -> patreon.com/ChartMuse
✅ Work with me:
Form -> forms.gle/caAJxCNTP4CqjFy4A
Form -> forms.gle/caAJxCNTP4CqjFy4A
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
✅ Let me help you become profitable long-term.
Patreon -> patreon.com/ChartMuse
Patreon -> patreon.com/ChartMuse
✅ Work with me:
Form -> forms.gle/caAJxCNTP4CqjFy4A
Form -> forms.gle/caAJxCNTP4CqjFy4A
Patreon -> patreon.com/ChartMuse
Patreon -> patreon.com/ChartMuse
✅ Work with me:
Form -> forms.gle/caAJxCNTP4CqjFy4A
Form -> forms.gle/caAJxCNTP4CqjFy4A
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。