Hi friends
Here is another free Expert Adviser to this community.This Expert Adviser belongs to me and I paid money for it .It may require further development and coding and testing .Please feel to contribute in updating this EA and stating on the EA the improvements coded .Please feel free to write down the set of rules as to how to use this E A.
It is useful and can be used with a poorly written EA as slave and master.
The purpose of the EA is to override all the stops and take profits etc .It is not tested yet and I will let all the testers contribute with their testing

.Please post if the E A is functioning properly and what else needs to be coded and any missing codes.
If more than one EA is used ,say for example 5 .it will override the instructions on all.
Post my mistakes and I will correct them.
I have attached the modified ea and master. You need to place the
master on one chart first and then the slave on another chart. The magic
number does not matter. If there are any problems with it please let me
know.
To make a slave and master you need to do the following.
Create a master ea that creates and maintains global variables using
commands like the following :GlobalVariableSet("TradingAllowed",false);
please note.....global variables only save as numbers so false shows as
0 and true as 1
You then get the slave to check the values of the global variables
before making a trade....eg.
if(GlobalVariableGet("TradingAllowed")==1)opentrad e();
or if(TotalSellOrders()< GlobalVariableGet("Max_Shorts")) SellOrdOpen();
You should be able to adapt all your ea's to this master as I have not
made the master exclusively look for this slave;
Below is an explanation of some of the new variables I have used.
On the slave there is the option OrderSet, this is so you can select
which sl and tp strategy the ea trades.
On the master if a value is set to 0 this function will not be used.
extern int TradeHours =24;
extern int MaxAllowedTrades=5;
If more than 5 orders are opened within 24 hours the ea will disable trades
extern int DailyAccountLossAllowed=5;
If the account looses more than 5% in 24hours it will dissable trading;
extern int DeletePendingAfter =1; if any pending order is open for more
than 1 hour it is deleted
extern int CloseOrdersOnFridayAt=16; the hour on friday that all open
orders will be closed
extern int WeekendDissable=16; the hour on friday that new orders will
be dissalowed at
extern int WeekendEnable=10; the hour on monday that new orders will be
allowed again at
extern int NewsDissable=16;
extern int NewsEnable=10;
Best Regards
OILFXPRO