HTFlover

Trend-following Strategy E v2.6 4H ETHBTC

HTFlover 已更新   
Hi All,

Welcome to my first published Trend-following strategy for Ethereum, designed specifically for POLONIEX:ETHBTC on 4H due its long price history.
This script is based on my previously published scripts for bitcoin.

In order to set up Alerts for this strategy, I've created a second script called Trend-following Alert E v2.6 4H ETHBTC which you can find here:

Here you will find the "active_long" and "active_long" variables (red and blue lines) that show which positions are being taken by the strategy script.

You can set 'Once per bar close' alerts for this to get your alerts on TV.
For instance, I use 'crossing up @ 0.1' on "active_long" to set an 'Open Long" alert and a 'crossing down @ 0.9' to set a 'Close Long' alert.
The same holds for the 'Open Short' and the 'Close Short' alerts but then for the 'active_short' variable.

As you can see from the backtest I've done my best to create a decent ROI with limited DD .
You can also run this backtest/strategy with '100% of equity' but I would advise against trading this as your risk will fundamentally increase.
With a constant order size this strategy should be quite safe to use.

Going from the results it's clear that this strategy excels during clear bull/bear trends but might suffer a little bit during market chop.
This is also where ROI tends to stagnate a little bit only then to take off again during a clear trend.

There are two inputs that can be modified on this strategy, however I think the current settings are optimal for this market on the 4H candle.

I've also added start and end dates to test specific time periods.

Please let me know if you have any questions.
版本注释:
Updated logic to detect and prevent chop, resulting in improved ROI/Sharpe/Profit Factor
仅限邀请脚本

仅限作者授权的用户访问此脚本,并且通常需要付费。您可以将其添加到收藏中,但是只有在向作者请求并获得许可之后,才能使用它。 请与HTFlover联系以获取更多信息,或按照以下作者的说明进行操作。

在您100%信任脚本作者并了解脚本的工作原理之前,TradingView不建议您购买脚本并使用它。在很多情况下,您可以在我们的公共指标库中免费找到一个不错的开源替代品。

免责声明

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

想在图表上使用此脚本?

警告:请阅读,然后再请求访问权限。