Position Count Not Working
-
Hello,
I have an EA that works on 3 symbols:
AUDNZD , AUDCAD , NZDCAD
On the same account I created an EA by FXDreema that tells me if there's a Martingale (more than one position for a symbol) or not, and send an email with it.The logic:
Check position count for each of the 3 symbols.
1- If any (using OR) of the 3 symbols has equal to or greater than 2 positions >> Martingale: Yes
2- If all (using AND) 3 symbols has equal to or less than 1 position >> Martingale: NoWhat happens is that I always recieve Martingale: No even there's multiple trades for the same symbol

Can anyone help with that?
Thank you! -
Wow! muy avanzado para mi, me interesa ver la solucion, seguire tu post ha ver si logras resolverlo, seria mucho mas facil para los amigos mas avanzados en fxdreema si tu compartes el enlace de tu proyecto ademas de tus preguntas....
-
There will be a moment where you will have 1 open position. It's the moment in between having zero or one position and the moment when the second position is opened. I guess that this block structure is triggered once per tick. If so, first run the block structure that checks whether you have two positions and then the block structure whether you have one position.
-
@Rafik This is the second thread you created for the exact same question. Please don't duplicate threads and focus on one only.
-
@fxpim
Thanks for your comment.
I do not believe that this happens.
As this block is only triggered once the new position is opened.
Moreover, this also happens when there's already two or more positions opened. -
@l-andorrà
Thanks, dear, for your interest!Here's the link for the project.
The part in question is the one in the above picture. -
You can remove that AND block and connect those 'check positions count' blocks one to the next one instead. Then you can remove that OR block and connect those 'check positions count' separately to the same 'send email' block instead.
-
@l-andorrà
Thanks again, dear, however, there will be an issue.
Removing AND and doing your variation is okay.
However, removing OR and doing your variation,
Will this cause the email to be sent more than once in case more than one symbol has two trades or more? -
Generally, orange dot is and, yellow dot is or
-
@Rafik Could you try this?

-
You need to add a shared link so inside blocks can be seen.
-
@Rafik Use this to try solve.

-
@jstap
I shared it in the thread, dear. -
@fxpim
Thanks, dear!
Won't this send the email more than once in case that more than one symbol has 2 positions or more? -
@OntradingX
Thanks, dear!
I will try this one. -
The solution is to change Group # to : All (manual and automated), and it catches all trades regardless of Magic No.
Thanks all for your help!