Repeat blocks until one gives true
-
I try to make virtual order after crossover. With two formulas I calculate my TP and SL values. Then I want that two condition blocks would run until one gives true, one block for TP other for SL. For now I try to visualize it by printing label when TP or SL occurs to see if it is working correctly. How to make it work? link text
-
After searching a bit I found "wait to pass" option and "set flags" as alternative. I tried to make it work with "set flags" https://fxdreema.com/shared/onl0NkfMb but it looks bulky. At first I tried "check flag" block set as "wait to pass" but i don't know if it is waiting for "true" outcome or else. And It does not change back-testing result if I remove it.
-
What if you create some object at some time, for example horizontal line, and then when the price crosses that object you create a new trade. This sounds to me like a virtual pending order

-
But drawing objects on chart would be efficient when back testing?
-
My final solution to turn on and off blocks.

-
I would make it simple as this:
https://fxdreema.com/shared/uMSCVTa6c
dunno if it works
-
I think this option would give unstable results, because there is possibility that once per bar and condition blocks might pass before once per tick block. Especially when low time frames and MA values.
-
You see, the once per tick creates a loop? It never passes before the first conditions
-
No, it don't create loop, because after one millisecond of waiting once per tick block return negative (yellow) output and loop will not continue. I Tried loops without tick filter and they crash mt4

-
oh, youre right
