OPEN-SOURCE SCRIPT

BuyHigh-SellLow Strategy

已更新
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.
版本注释
Remove calc_on_order_fills to avoid lookahead warning.
buyhighselllowDonchian Channels (DC)Trend AnalysisVolatility

开源脚本

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

想在图表上使用此脚本?

免责声明