i write this code to stop continue of testing an EA in optimization procedure.
when i debug it line by line i understand that "dd" is correctly calculated, but both of "pt" and "ls" is 0.0 although i have some positions which close with profit or loss.
how can i calculate "GROSS_PROFIT" or "GROSS_LOSS" during of the testing procedure of an EA ???
hey guys
i write this code to stop continue of testing an EA in optimization procedure.
when i debug it line by line i understand that "dd" is correctly calculated,
but both of "pt" and "ls" is 0.0 although i have some positions which close with profit or loss.
how can i calculate "GROSS_PROFIT" or "GROSS_LOSS" during of the testing procedure of an EA ???
thnx
best regards