How to run blocks in order
-
Hi there,
I have some problem because EA should work :
- Using variables to calculate strength of currency
- Open or Close orders
But when the EA is calculating the strength of each currency, there is some delays , and it sometimes open before finished completed (results).
I can use time filter to put these blocks run one after one.
However, is there any other suggestion to run these blocks in order ?-
- Run and finish calculation of strength of each currency.
-
- Open order if condition is valid.
-
- Close order if other condition is valid.



I use Run Blocks, however, it seems while Ea is calculating, the EA also open&close in same time.

Any suggestions ?
-
Maybe you get wrong information in that Comment block that is on the top. its number is 7190 and it will run before some of the blocks where the calculation happens - 7193, 7197 and so on. Block numbers matter when they are connected like that. There are 9 blocks connected after the Calculate block and the one with the biggest number is 7229. The Comment block (7190) should have a number that is at least 7230 in this situation.
-
Thanks @fxdreema
I have just done some changes, it seems works well, it takes some times to check.Here are my changes : blocks numbers and and Run Blocks.

