OPEN-SOURCE SCRIPT

BuyHigh-SellLow Strategy

Mis à jour
Yeah. You read it right. It's not a mistake. It is buy high and sell low strategy.

Main entry condition is to buy when price hits 40 day Donchian channel top. This is combined with my other regular filters which are aligned moving average and new high/low filter and yearly high/low filter.

Exit condition can be based on two things:

  • Donchian channel : Set appropriate DonchianExitLength. Lower line of donchian channel acts as trailing stop.
  • ATR Based trailing stop : Select appropriate ATR multiplier and length.


What a surprise!! You can buy high, sell low and still make money.
Notes de version
Remove calc_on_order_fills to avoid lookahead warning.
buyhighselllowDonchian Channels (DC)Trend AnalysisVolatility

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité