Old classic trading strategy, using breakouts of the Donchan price channel.
If the price is above the price channel top line, open the long position (and close the short position) If the price is below the lower line of the price channel, open the short position (and close the long position)
It is recommended that you all use market stop orders.
Strategy #2 (stop-loss type = center)
This metod is better. This method is recommended.
The central line (red) is the middle of the Donchian price channel. Used to close any positions.
If the price is higher than the price channel top line, open the long position. If the price is lower than the lower line of the price channel, open the short position. If the price has crossed the central line of the channel, close any position.
It is recommended that you all use market stop orders.
Risk
There are 2 options. Risk for long positions and risk for short positions. This is the size of the possible loss. Order size depends on the possible loss and is calculated for each position.
For
BTC/USD, BTC/USDT, XBT/USD, ETH/USD, ETH/USD (need USD!) Timeframes: 1h and length of price channel = 50 bars or 4h and length of price channel = 12
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.