Store and compare orders count
-
Hello, first of all thank you very much for such a good tool.
In my new EA i am planning to work with 2 different group of orders. What I need is to check for each group is how many long, short, pending long and pending short orders are created.
I have tried to create 8 different variables and use 4 different "for each trade" blocks and 4 different "for each pending order" blocks but with no luck.
Can you please show me an example of how to get this order count and store it?
Many thanks in advance!
-
Try this: http://prntscr.com/43w81o
Setting the variable to 0 is needed, because it will then be incremented and you don't want to incremenet it on every tick without resetting.
In my case I use "V1" to descrive the variable, not it's real name. This "V1" is valid only in this small window, it is not a variable name... just something short to use instead the variable's name. -
Thank, works like a charm!