Forum

How to set number of open positions at same time, please help!

I have wrote a EA in mql5 void onTick part, I used Ctrade library for opening positions, the EA recognize the condition correctly but it opens alot of positions at same time on one bar! How can I set the max positions to be opened at a same time? I want it ti open like 5 open positions Please help

How to close open positions after 2 bars

Hello guys, i need a exact simple code in order to close positions opened after 2 candles or 3 , where meet a condition also. i dont have any knowledge in programming would appreciate your help