This strategy combines the Donchian Channel with a 200-period Simple Moving Average (SMA) to identify potential long and short trade opportunities. The Donchian Channel is calculated using a 20-period range, and it plots the upper, lower, and midlines. The strategy enters a long position when the price breaks above the highest point of the Donchian Channel and is above the SMA 200, and enters a short position when the price falls below the lowest point of the Donchian Channel and is below the SMA 200. A custom stop loss is applied for both long and short positions based on the midline of the Donchian Channel, with a 45% offset.
Disclaimer: This trading strategy is for research purposes only and should not be considered as financial or investment advice. The use of this strategy involves risk, and past performance is not indicative of future results. Always conduct your own research and consult with a financial advisor before making any investment decisions. Trading involves significant risk, and you could lose more than your initial investment. By using this strategy, you agree to take full responsibility for any trades executed and the associated risks.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.