algowizard – closed P/L in pips function
2 replies
billoc
3 years ago #259193
hi
i am trying to use the ‘closed P/L in pips’ function – and it seems to be not working correctly. has anyone else had issue with this
thanks
tomas262
3 years ago #259229
Hello,
it works correctly. You need to refer to the value using a correct magic number. See the example attached
Morningbull
3 years ago #268282
Hello tomas,
I already wrote a separate post about ‘closed P/L in pips’ but I didn’t receive answer yet; anyway, I converted in mq5 your example but it give errors during compilation (see capture attached).
I want also ask you help regarding the use of this function: my intention is to open a second order long if the previous has been closed negative, I added a further condition:
IF Market Position is Flat AND variable1 < 0, open Enter at Market
Unfortunately it is not working as expected, find your example with my modifications in attachment.
Coud you please help me to handle this function?
Viewing 2 replies - 1 through 2 (of 2 total)