Greg_007

Donchian Channels strategy with backtest

Greg_007 アップデート済   
Here's another trading strategy for you. This one is based on the standard Donchian Channels.

This one will - by default - wait for 2 consecutive higher highs (or lower lows) before taking a position. This can be disabled so the script will take a new trade without waiting for the 2nd high or low.
This is useful to avoid getting into a trade when market makers are aiming for a swing-failure pattern (= taking out stop/losses below the last low or above the last high)

For people who don't like to short, there's also the option to exclude shorts.

Enjoy!
リリースノート:
Code cleanup + change of backtesting with 100% of equity to 10% to meet tradingview house roules.
リリースノート:
Added buy, sell and close labels. The close label will show up when you don't want to go short.
リリースノート:
Fixed incorrect opening of the short positions.
Please rerun any backtest you have done, because this fix will affect your previous results.

Many thanks to liuqiba for pointing out this bug ;-)

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?