[REQUEST] Template EA martingale hedging

 

Can anyone help me.. I need a template of martingale EA.. I found a template but when i backtest it.. the EA could not open a buy order if there is a sell order exist.. I only understand mql little bit..

Here the tempalte... I hope some one could help me to make this EA could open sell even there is a buy order.. and both of them martingale.. Thanks in Advance

Files:
 
Its using if(OrdersTotal()==0). Then it only martingale the last_Type of order. Fixing this is just a bad-idea as far as I'm concerned. I'll recommend you learn your mql4 ABC's by following the Book. Or Pay someone to code for you.
 
I hope someone could help me here
 
vanov:
I hope someone could help me here
https://www.mql5.com/en/forum/138563