OPEN-SOURCE SCRIPT

Trend Following with Bollinger Bands

已更新
This is a trend following system which uses the Bollinger Bands instead of the Donchian Channels.

Long position:
* Price closes above the middle line.
* The fast EMA (in this case the 40) crosses over or is above the slow one (in this case the 120)

Short position:
* Price closes below the middle line.
* The fast EMA crosses under or is below the slow one.

Stoploss:
* 4 ATRs away from the price.
發行說明
Replaced the multiplier in the position size formula with syminfo.pointvalue in order to get a more accurate position size.
發行說明
Reverted the pyramiding setting from 4 back to 1 to keep the system simple and the max drawdown low.
Added a visual ATR trailing stop, so you know where to put your stoploss.
發行說明
Adjusted the position size formula.
Improved the stoploss multiplier.
ATRBollinger Bands (BB)bollingerbandstrategyMoving AveragesTrend Analysistrendfollowingtrendtrading

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


更多:

免責聲明