Difference between "on trade" and "in loop"
-
What is the difference between "on trade" and "in loop". I have parameters created to move SL to break even when profit is a certain amount of equity. It works ok but it seems to identify the profit of other trades when multiple trades are open . I have checked to make sure the magic numbers are different in this case. Here is what I have

-
originally i had the open price parameter inside the breakeven block set to "in loop". but the phone notifications were identifying incorrectly. so I changed them all to "on trade" . Maybe I should keep the breakeven parameter as "in loop" and leave the notifications as "on trade"?
-
Light pink blocks need to go under far each block, (on trade) only works on the on trade tab.
-
I was under that impression also but they are indeed working on the on tick block. when I used the for each block it was still inappropriately identifying the trades so i changed it to if position when i saw a thread saying this was possible. what are your thoughts?
-
maybe if I switch back to For each as you suggest and input not more than 1 trade for "n"?
-
They only work under for each trade, or on trade tab, they are 1 code split in 2.
-
@jstap I was under that impression also but they are indeed working on the on tick block. when I used the for each block it was still inappropriately identifying the trades so i changed it to if position when i saw a thread saying this was possible. what are your thoughts?
maybe if I switch back to For each as you suggest and input not more than 1 trade for "n" -
@jstap do you think using 1 in the no more than n parameter will correct the trade identification problem? because it is identifying data from other trades from other charts and the magic numbers are different
-
On tick you have to use pink blocks, for each then the loop
-
yes i will be using on tick. I am referring to the "no more than n" parameter within the for each trade block. do you believe changing this to 1 will render the desired effect?
-
To me EA's have always respected magic number.
-
@jstap I know right. I didn't run into this until i made the switch from mt4 to mt5. But so far no more issues. thanks for your input my friend
-
.......
