takeprofit and Groups
-
I have 3 different trade groups (which are assigned different groups by an Fxdreema EA and I add manual trades sometimes
I want to have group 1 and manual trades to be dandled by Takeprofit routine 1
and group 3 by takeprofit routine 2
and the group 2 trades by takeprofit routine 3Ok so it is easy to have group 2 and 3 assigned to a certain TP regime, I just plug in their number in the exsiting system
In the current system, I would ahve to duplicate the TP routines in order to have one that treats manual and another (an exact copy) to handle group 1
So my question is, is there any way I can assign a group number to manual trades?
that way I dont have to duplicate code, even though it is easy enough to doThanks
-
No, manual trades are always 0. The magic number (and the group, which is basically the magic number) exists only because of expert advisors. Maybe if you set the MagicStart parameter to 0, so the EA would normally works with manual trades, and then you can use Group # as a real Magic number.
Magic Number (the real magic number that the trade has) = MagicStart (which is an input parameter of the ea) + Group number (found in blocks)
-
I will try that
should ahve thought of that, darn