Ea Prints 0 instead of printing negative value?
-
i am trying to close all running trades from current chart if loss (specific symbol loss) exceeds a certain amount of pips.
so i did this in order to get negative value of SL and used it in the Check profit unrealized block :

the constant SL value is 50 and i am printing the variable sll value on every second in OnTimer Tab, So according to my understanding the printed sll value should be -50 but it prints 0 .
-
@zackry try to write (0-1)
-
@miki 0-1? do you mean 0-50 (50 being the value that i want to turn into negative value?)
-
it was a stupid mistake , i was using the formula block and the check profit block in OnTick tab and since market is close formula block wont get executed and the printing block was in OnTimer block , which was printing the default value stored in variable