Lironmaster Ultimate Gold Pro Max AnyTF
- Эксперты
- Версия: 1.0
- Активации: 20
1. BarsN input added
input int InpBarsN = 5; // Number of bars for high/low fractal detection
Validated to a minimum of 2 in OnInit() (matching the previous logic) and stored in the working variable BarsN.
2. Multi-timeframe confluence
InpTimeframe1 = Primary/entry timeframe (functions the same as the previous InpAnalysisTimeframe — this is where FindHigh()/FindLow() look for entry points).
InpTimeframe2, InpTimeframe3 = Additional confirmation timeframes (H1 & H4 by default), each individually enableable/disableable.
InpMinConfluence = Minimum number of timeframes that must agree before an order is actually sent (e.g., 2 out of 3 active).
3. New logic
HasSwingHigh(tf) / HasSwingLow(tf) — generic versions of the old fractal detector, executed on confirmation timeframes.
CountBuyConfluence() / CountSellConfluence() — counts how many timeframes are in agreement.
In OnTick(), buy/sell orders are now sent only if confluence ≥ InpMinConfluence; if insufficient, the EA logs a skip (throttled for 60 seconds) but does not trade.
