The RobotradingBody strategy is designed to backtest trading strategies using a timeframe of 4 hours to 1 day. It calculates the body of each candlestick by taking the absolute difference between the close and open prices. The strategy uses two parameters for optimization: "for_mult" and "for_sma_length".
"for_mult" specifies a multiplier used to calculate the simple moving average (SMA) of the body, while "for_sma_length" determines the length of the SMA.
During the buy signal generation, the strategy identifies candles where the open price is greater than the close price, the body is larger than the SMA of the body multiplied by the "for_mult" parameter, and the volume is greater than 0.
For the sell signal generation, the strategy looks for candles where the close price is greater than the open price and the volume is greater than 0. The strategy sets a minimal return on investment (ROI) of 0.9 and a stop loss of -0.99. It also supports trailing stops and can process both new and existing candles. The strategy can be customized by overriding default values in the configuration file. It uses limit orders for buying and selling, and the time in force for orders is set to "gtc" (good 'til canceled). Please note that the strategy requires at least 100 candles before producing valid signals. It does not provide any informative pairs. Disclaimer: This is a brief description of the strategy based on the provided code. The effectiveness of the strategy should be thoroughly tested and evaluated before using it in real trading.