Jomy

expected range STRATEGY

Jomy 已更新   
This is the strategy version of "expected range STUDY". The buy and sell signals are generated with the study version, but what is displayed on the chart is different. Here, the PnL of each trade is shown on the chart, as well as the peak profit point of each trade up till the present. Black areas represent take profit and waiting for the next trade to start. Green = long. Red = short. Set to take profit at 53% and stoploss is set to -7%. Having a stoploss trigger does not put a black area on the chart. For the XBTUSD 2 hour chart, but use it however you like on whatever chart for backtesting.

Enjoy. Don't get rekt. A good backtest doesn't mean a good forward test. Use at your own risk.
版本注释:
Just a small tweak to a small bug in the expected range STRATEGY. There was a bug in the strategy tester where the minimum number of contracts to trade was set to 1, and 1 contract was equal to the price of Bitcoin. The initial capital was set to 1000. So if the first long signal was bought at $15000, it would buy $15000 worth, which is 15x leverage essentially, and that isn't right. The leverage remained high like this until the capital earned exceeded the Bitcoin price in the backtest. I set it so the minimum amount to trade to .000001 contracts (or the Bitcoin price multiplied by .000001) which should fix the problem.

I also added a backtesting range, so you can test this strategy in isolated time ranges.

I apologize for releasing this strategy with the slightly misleading backtest results. I was unaware until someone pointed out the bug to me recently. Again, thank you to the diligent community here for pointing out the error. The results are still good, just a little less good, but still very good. I think on the 2h chart the profit factor has changed from somewhere just over 4 to 3.937.

-Jomy
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?