The "FixedRiskRewardLoss" strategy is designed to enforce a fixed risk/reward ratio in trading. Here's a breakdown of how it works:
The strategy calculates a dynamic initial stoploss using the Average True Range (ATR) and the last negative peak. It then calculates the initial risk based on the stoploss and multiplies it by a predefined risk/reward ratio.
Once the calculated risk/reward ratio is reached, the stoploss is set to that level, and the sell signal is enabled.
Additionally, there is a break-even ratio.
When this ratio is reached, the stoploss is adjusted to minimize losses by setting it to the buy rate plus fees. The strategy uses the SAR (Stop and Reverse) indicator as a placeholder for the buy signal. It buys when the SAR value is smaller than the candle before. The strategy does not provide a specific sell signal and keeps the sell column as 0, indicating no sell signal. Please note that this description provides a high-level overview of the strategy's main components and functionality. For a more detailed understanding, it is recommended to review the code implementation and consult the associated libraries and indicators used.