Is it possible to create a manage EA?
-
Hello,
Is it possible to create an EA that doesn't open new trades or orders but one that can loop through existing trades and extract total profit by magic number and so on... because I can't manage to do such a thing? -
using pink blocks you can do it well ... magic number set to 0 for manual opened trades ... when you need monitor all pairs, set filter in blocks for All pairs
-
Yes I tried this but it doesn't recognize trades opened by another EA
-
O.k thanks Miro I think I see what you mean, I'll try it...
-
I am not sure now how this group mode is working when it is set as "All automated and manually opened" ...

in case it is working only for own Magic ID trades + manually opened, you need set other EAs to the similiar magic ID, example:
3 EAs:
magic1 2001
magic2 2002
magic3 2003
+1 EA for monitoring trades with magic0 2000
than set group in this monitor EA as this:

group 1,2,3 are than Magic from EAs 2001,2002,2003 ... hope it will works this way
-
Hi Miro,
When you set it to "All automated..." it is working for all the open trades so that is good
but when I filter only specific trades by magic number and connect it to a Bucket block in order to calculate the total profit it doesn't work... is there some issue with connecting bucket block in a loop? -
send here small example where it is not working, I check on it ...
-
Thanks Miro here is the link... https://fxdreema.com/shared/PJNpcbZwc
-
I dont think this is way how is bucket block working (I think, it is working alone, without pink blocks)
... if you want calculate profits from logic as you sent, try this:
https://fxdreema.com/shared/PtVi5nFad -
Thank you very much Miro! I'll give it a try...