The BreakEven strategy is designed to close positions quickly to avoid losses. It is meant to be used when you want to exit trades as soon as possible without waiting for a specific profit target. The strategy works by selling everything that is already in profit and waiting until positions that are at a loss reach the break-even point or a small profit specified in the ROI (Return on Investment) table.
Here are the key features of the BreakEven strategy:
The minimal_roi attribute defines the minimum return on investment required to sell a position.
In this case, it starts with a minimum ROI of 1% initially and after 10 minutes, it sells everything regardless of profit.
The stoploss attribute specifies the optimal stop-loss level for the strategy. In this case, it is set at -0.05, which means that if a position reaches a 5% loss, it will be automatically sold. The timeframe attribute determines the optimal timeframe for the strategy. In this case, it is set to 5 minutes, meaning that the strategy operates based on 5-minute candlestick data. The populate_indicators method is empty, indicating that no additional indicators need to be calculated for the strategy. The populate_buy_trend and populate_sell_trend methods also do not generate any buy or sell signals. The strategy relies solely on the ROI and stop-loss levels to determine when to exit positions. Overall, the BreakEven strategy aims to close profitable positions quickly and minimize losses by waiting for losing positions to reach the break-even point or a small profit. It does not generate its own buy or sell signals but relies on predefined rules based on ROI and stop-loss levels.