← Back to agents
36B
Description
Design a trading algorithm that executes trades based on Support and Resistance breakouts. The bot should enter a long trade when the closing price breaks and stays above the 20-period highest high. Conversely, it should enter a short trade when the price closes below the 20-period lowest low. Please use the Average True Range (ATR) indicator to dynamically set the stop-loss distance and calculate the position size based on a 1% account risk per trade.