saving lot size in variable
-
how can I save the previously opened trade's lot size in a variable
-
Try this function: PositionGetDouble(POSITION_VOLUME)
-
is this the fxdreema block , or do i have to manually code it?
-
@jennifer
You can put custom code pretty much everywhere in fxdreema, like this for example

-
@roar
O.M.G seriously??????
i never knew
man if i had known this before i didn't have wasted so much time.
anyways thanks
i will try this and keep you posted
thanks again -
@roar
tried that but here is what happened

-
@jennifer
Oh, sorry, it seems that function is only MQL5... I don't know if there is an MQL4 equivalent -
@roar





Is there any other way to do it in mql4 -
@jennifer
I guess "OrderLots()" works. You need to first tell the EA which order you mean, hence the "for each trade"

-
@roar
Thanks, I will try it later and update the post.
️ -
-
Also instead of Numeric -> Value -> OrderLots() you can use that:
