My EA is automatically using a different Magic number different from what I set.
-
Hello professionals,
I observe that my EA is not using the correct magic number I set in my input. I dont understand how it automatically generated another magic number for itself.
I discovered this after I realized that when I close a trade manually on loss the EA does not use double the lot size for the next trade as programmed.
Please I will appreciate if someone can help me look into this and tell me how to correct it.
Thank you.

-
I can see you are using a group number also. The group number is always added to the magic number. In your case: 2654+123=2777
-
Does that mean I should not be using group numbers? And is that the same reason why when I close losing trade manually the EA does not use martingale to open next trade with double lot?
My reason for initially using group number is to prevent the EAs from interfering with each other when using them on same symbol
-
You can use group number if needed.
I think if you manually close a losing trade, the martingale function loses information, it does not depend on group number -
In close blocks use 1,2,3,564 etc to ensure relevant blocks are working on the group number