I need a modular and customizable Expert Advisor to trade the Brazilian mini index (WIN$N) on a hedging account, with the following features:
Entry logic via expressions (configurable input fields)
Entry: market execution
Exit (TP, SL): always via limit order (on the book)
Evaluate conditions on every tick, but only using closed candles (e.g., C[1], O[1])
Magic Number (user-defined) to separate trades and stats per strategy
Display daily, monthly and total profit on chart (per Magic Number)
Expression fields: R1 to R9
LOSSCONSEC : counts consecutive losses (reset after gain)
ULTRESULT : last closed trade result
Fixed base lot size ( BASE_LOT ) as a separate input (e.g., 1)
This must be configurable manually through the input panel
Typical use: set BASE_LOT = 1 , and control the actual lot using the formula below
Lot multiplier formula (e.g., FINAL_LOT = BASE_LOT * R1 )
Fixed Stop Loss value (editable input, e.g., 200)
TP = SL * expression
I’d like to receive the .mq5 source code so I can improve or adapt it in the future if needed.
Only apply if you have experience developing EAs with expression-based logic and multi-strategy compatibility (Magic Number handling).