Martingale Hedging EA This EA is a typical Martingale Hedging EA. It opens an order (for example: buy, 0.1 lot) and at the same time places a sell pending order in the opposite direction with a bigger lot size (for example: sell, 0.2 lot) at a certain distance (for example: 300 pips). If the price descends 300 pips this second order will be activated. If the price keeps going down, the first order (buy) will hit SL and the second order (sell) TP. As the second order has a larger lot size than the first order, the total outcome will be profit (or break even). If the price does not hit TP and SL, and goes up again, then a new pending buy order will be activated at an even bigger lot size (0.3 lot). This process will go on until the point where all the trades will hit TP/SL. A pending order will only be placed as soon as the last pending order is activated. Where this EA differs a bit from a standard Hedging EA one is that it has relatively little automisation and a lot of manual input fields. The EA works independent from the time frame it operates in. The EA should work with 5 digit as well as 4 digit brokers. ****************************************** INPUT FIELDS: PauseAfterTP = true/false - pauses the EA after TP/SL is obtained and a trading sequence is closed (soft stop) MaxSlippage = ….. - the max slippage allowed for entering a trade MaxTrades = ….. - the max. number of trades in a hedging trade sequence MagicNumber = ….. MinEquityLevel = ….. - below this level the EA will not open new trade sequences (although it will allow already existing hedging trade sequences to continue and make new trades until they close with TP/SL) - the value introduced is the % of the total account balance. UseEquityStop = true/false TotalEquityRisk = ….. - If the total Equity drops below this point the EA closes all the trades. - the value introduced is the % of the total account balance. AutoLot = true/false - IF “AutoLot = false”, THEN the size of the initial trading lot is equal to “StartLot” - IF “AutoLot = true”, THEN the size of the initial trading lot is equal to: StartLot x RiskPercent x (Account Balance / 10.000) RiskPercent = ….. StartLot = ….. InitialTrade = buy/sell is related to: - the first trade after starting up the EA. - the first trade after the EA was paused by the “PauseAfterTP” setting. InitialTrade_PendingOrderPips = ……. - the exact value in pips of the initial pending order. - if “InitialTrade_PendingOrderPips” = 0 than no pending order will be used and the EA will open a new initial trade as soon as the EA starts up - this value resets itself to 0 as soon as this pending order is activated ------------------------------------------ TP1 = ….. - the distance of the TP of the initial trade in pips (the lot size of this trade is calculated earlier in “StartLot”) SL1 = ….. - the distance of the SL of the initial Trade in pips ------------------------------------------ DistanceTrade1-2 = ….. - the distance between the initial trade and the second (pending) order Lotsize2 = ….. - the lot size for pending order 2 (the size is also calculated according to the “AutoLot” and “RiskPercent” settings) TP2 = ….. - the TP distance for trade 2 in pips SL2 = ….. - the SL distance for trade 2 ------------------------------------------- DistanceTrade2-3 = ….. - the distance between order 2 and 3 Lotsize3 = ….. - the lot size for pending order 3 TP3 = ….. - the TP distance for trade 3 SL3 = ….. - the SL distance for trade 3 ------------------------------------------- DistanceTrade3-4 = ….. - the distance between order 3 and 4 …….. etc …….. etc …….. untill trade 15