________________ EA REQUIREMENTS ________________ 2. Indicators * 50 EMA applied to close price * Brilliant Reversal indicator (green for buy, red for sell) * Dots may repaint * EA must not treat repainting as an error ________________ 3. Trend Filter (50 EMA) * Buy context * Candle closes above 50 EMA * Sell context * Candle closes below 50 EMA Trend filter does NOT close trades. It only controls which side is allowed to initiate. ________________ 4. Entry Rules Buy Entry * Conditions: * Candle closes above 50 EMA * Green dot present at candle close * Action: * Open BUY at candle close Sell Entry * Conditions: * Candle closes below 50 EMA * Red dot present at candle close * Action: * Open SELL at candle close Only one active trade per side at any time. ________________ 5. Stop Loss Logic Buy SL * SL = high of the signal candle Sell SL * SL = low of the signal candle SL is fixed at entry and never moved. ________________ 6. Trade Invalidation Rule (Critical) * A trade is invalid only if SL is hit * Opposite dots do NOT close trades * EMA cross does NOT close trades * Only price hitting SL closes a trade Survival defines validity. ________________ 7. Retry Logic (No Cap Over Time) * If a trade hits SL: * It is closed * It is considered invalid * EA is allowed to retry on the next valid signal * Retries: * Same lot size * Same SL logic * Same rules * Only one retry active at a time per side No stacking. No martingale. No size increase. ________________ 8. Counter-Signal Handling (Hedged Behavior) * If BUY is active and SELL signal appears: * SELL is allowed if its EMA condition is met * BUY remains open until its SL is hit * If SELL succeeds: * BUY will naturally invalidate * If SELL fails: * SELL hits SL * BUY continues Direction is resolved by which side survives. ________________ 9. Add-On Logic * Add-ons follow the same rules as initial entries * Add-ons are allowed only: * In the direction of the current surviving trades * When valid dot + EMA condition appears * Add-ons: * Same lot size * Independent SL per trade * Failed add-ons are disposable * Surviving add-ons compound ________________ 10. Risk Constraints * Fixed lot size per trade * Maximum one active trade per side * No exposure increase over time * Loss per attempt is constant and predefined ________________ 11. What the EA Must NOT Do * Must NOT close trades on opposite dots * Must NOT close trades on EMA cross alone * Must NOT widen stops * Must NOT increase lot size * Must NOT limit retries by count * Must NOT stack multiple retries simultaneously ________________ 12. One-Line System Definition The EA repeatedly samples both directions using a 50 EMA filter and dot signals, invalidating trades only by stop loss, allowing trend direction to emerge through survival and compounding of valid add-ons. ________________