OPEN-SOURCE SCRIPT

[mdeacey] EMA% Channel + Bollinger Band Trending Strategy

This strategy is based off the users selection of an EMA and percentage defined middle, upper and lower channels. The strategy longs if the price crosses the middle to upper channel until such time that a "reversal candle" (that exceeds the averages of 3 and 9 above the EMA 3) is found – and then shorts that reversal candle in the hope the price will change state from trending to ranging and move back to the middle channel. The same but opposite process for shorts.
The two obvious fallbacks to this strategy are that:
- Once trending the price can continue upwards. We try to mitigate this through use of a stoploss defined by ATR.
- Certain percentage thresholds can trigger a long/short with not much room to move before coming back to the middle channel. This is a tightrope exercise as making the percentage channels tighter misses earlier entries in more optimal cases. Change the parameters to find an EMA and percentages to find the best R/R.

All options are configurable and code open source. Happy trading!
channeltrendpercentageTrend Analysis

开源脚本

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

想在图表上使用此脚本?

免责声明