XAU M v2.5 SC
Logic:
- Range Detection:
- Identifies periods of low volatility or ranging markets using the RSI and ATR indicators.
- Avoids opening new trades during detected consolidation phases.
- Trend-Following:
- Uses RSI and moving averages to determine the prevailing trend.
- Buys when RSI indicates an uptrend and MA crosses upwards; sells when RSI indicates a downtrend and MA crosses downwards.
- Order Management:
- Limits the number of active trades based on MaxTrades.
- Adapts trading behavior to avoid market ranging phases, only opening positions during identified trends.
- Alerts and Signal Display:
- Displays arrows on the chart for each buy and sell signal generated by the trend-following logic.
- Issues alerts for every new trade signal.
- Profit Protection:
- Monitors existing trades and ensures they align with the prevailing trend.
- Closes trades or adjusts strategy if a consolidation phase is detected while in a trade.