OPEN-SOURCE SCRIPT

DC Breakout Strategy | This is simplicity at its finest.

Güncellendi
As the title already describes: this is a Donchian breakout strategy. This strategy, as of now, only goes long. It goes long when the price close makes a new high and the 8 day moving average is above the 32 day moving average. The strategy exits the trade if the price breaks the atr trailing stop of * 3 or the 8 day moving average crosses below the 32 day moving average.

This is simplicity at its finest.
Sürüm Notları
-
Sürüm Notları
I added short signals to the strategy. And I changed the stop and trailing stop on the long side to 4 ATRs from 3. I kept the 3 ATRs as an SL and TSL on the short signals though.
Sürüm Notları
Added ATR based position size.
Removed the stoploss, so you will stay in your trades as long as possible. This also means that you'd close a long position and then almost right away open a short as the trend could reverse.
Sürüm Notları
Added customization for the moving averages, the Donchian Channels and your own risk tolerance when it comes to the position sizing. Those include the percentage, shown as 0.01 for example, you're willing to risk per trade and the length of the ATR.
Added a custom back test window.
Sürüm Notları
Added pyramiding feature. It takes in account the position sizing formula in the code. I've noticed that the overall performance is greatly improved when applying this pyramiding feature. And combine pyramiding into profitable trades and cut your losses short, and you will earn a lot of money.
Sürüm Notları
The multiplier that's needed to calculate the position size has been changed to syminfo.pointvalue. This means that the formula now takes into account the point value of the crypto perpetual contracts.
Sürüm Notları
Adjusted the position size formula.
Improved the stoploss multiplier.
ATRbreakoutbreakouttradingcrossovercrossovertradingDonchian Channels (DC)Moving AveragesmovingaveragecrossoverTrend Analysistrendfollowing

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?


"Mastering the Market Dance with Elegance and Cunning 🎩📈 | Where the Velvet Glove Conceals the Sharpest Moves ⚔️💰"
Aynı zamanda::

Feragatname