Never done this before so please I want to be guided
-
How can I add custom mql code to count total orders, Orderstotal() in the custom mql block to see if they are less than an input constant?
-
You can use pink blocks, det variable to 0 at the top-pink for each trade (if you want to count running trades)-formula block with a loop set to trade count saving into the variable. Compare this in a condition block, and if needed show it in a comment block
Alternatively, there are blue blocks that will check this.
-
@jstap please can you do a sample and share project link

-
Like this, using count would be separate but likely work the same: https://fxdreema.com/shared/2uu5eFkLc
-
Okay I'll look into it and write back
-
I've looked into it and done exactly what you stated. However I am met with another challenge
-
What challenge?
-
@jstap The 'less than' would continue to close future trades so I added a time filter to fix that. Don't know how it'll work yet though. Can't download it
-
Ok let me know