I had to write the solution myself in an MQL code block:
runningLots = 0;
ulong order_ticket;
for(int i=0;i<PositionsTotal();i++) {
if((order_ticket=PositionGetTicket(i))>0)
runningLots+=PositionGetDouble(POSITION_VOLUME);
}
I had to write the solution myself in an MQL code block:
runningLots = 0;
ulong order_ticket;
for(int i=0;i<PositionsTotal();i++) {
if((order_ticket=PositionGetTicket(i))>0)
runningLots+=PositionGetDouble(POSITION_VOLUME);
}
I had to write the solution myself in an MQL code block:
runningLots = 0;
ulong order_ticket;
for(int i=0;i<PositionsTotal();i++) {
if((order_ticket=PositionGetTicket(i))>0)
runningLots+=PositionGetDouble(POSITION_VOLUME);
}
Any updates on this issue? I'm still facing the same, initial lot 0.001 placed fine but when incrementing it, it keeps placing the same initial lot size 