Guide
How does the Trend Following Breakout strategy work ?
The Trend Following Breakout strategy capitalizes on the momentum generated by price breakouts from the highs and lows of the last set number of candles, designated by the ENTRY and EXIT parameters. Entries for long positions are triggered when the closing price crosses above the highest price of the predefined number of candles, while exits are signaled when the price crosses below the lowest high within a separate defined number of candles. Conversely, short entries occur when the closing price falls below the lowest price of the last set number of candles, and positions are closed when the price exceeds the highest low of the specified exit range.
Customizable alert messages have been integrated to notify traders of entry and exit points via Email to SMS functionalities, promoting timely execution of trades, which is particularly beneficial for trending cryptocurrencies like $BTC and $ETH on longer timeframes such as 4-hour and daily charts. The strategy now excludes the calc_on_order_fills code to enhance accuracy, as highlighted in the release notes, and includes an option for backtesting within user-defined time windows.
The TradingView script provided plots these entry and exit levels on the chart, helping traders to visualize strategic points and make informed decisions. Alerts with detailed messages for going long or short, including instructions on closing opposing positions, are set up to activate within the selected trading window.