AllAverages Crossover Tester
Hi,
Please take a look at the AllAverages Crossover Tester which can show quickly the performance of your settings even with StopLoss and TakeProfit.
Code:
//---- input parameters
extern string _fastMA = "--- Fast MA ---";
extern int FastPrice = 0; //Price Mode (0...10)
extern int FastLength = 10; //Period of smoothing
extern int FastMode = 0; //See list above
extern string _slowMA = "--- Slow MA ---";
extern int SlowPrice = 0; //Price Mode (0...10)
extern int SlowLength = 20; //Period of smoothing
extern int SlowMode = 0; //See list above
extern string _sltp = "--- StopLoss & TakeProfit ---";
extern double StopLoss = 0; //StopLoss in pips
extern double TakeProfit = 0; //TakeProfit in pips
extern string _spread = "--- Spread ---";
extern double Spread = 0; //Spread in pips
extern bool UseCurrentSpread = false; //Use Current Spread(true/false)
extern string _date = "--- Start Date ---";
extern bool UseDate = true;
extern datetime StartDate = D'2013.10.01';
Attachment 3179
Regards,
Igor