a) Symbol and Magic Number checks added to every fuction
--> Symbol needs to be XAU* [ e.g, XAUUSD, XAUUSDm, etc; so long as XAU is in the name ]
--> You can now configure Magic Numbers for normal (default: 1000) and stack trades (default: 3000).
--> The functions will only operate on the configured magic numbers
Code: Select all
extern int MagicNumber_Normal = 1000;
extern int MagicNumber_Stack = 3000;
--> False by default ( for people like me )
--> Default minimum distance to TP to allow for stack trade: 30pips ( only taken to account if AvoidStackingNearTP = true )
Code: Select all
extern bool AvoidStackingNearTP = false;
extern double MinimumStackTPPips = 30.0;
For those not needing above two features, you can continue using "TMACG_Gold_M15_STACKING_B" if you don't want to change the one running on Empty4 right now ( no change in core functionality ).
Cheers