//+------------------------------------------------------------------+
//| This MQL is generated by Expert AdvisorBuilder
//|
//|
//|
//|
//|
//+------------------- DO NOT REMOVE THIS HEADER--------------------+
#define SIGNAL_NONE 0
#define SIGNAL_BUY
#define SIGNAL_SELL
#define SIGNAL_CLOSEBUY 3
#define SIGNAL_CLOSESELL 4
#property copyright "Expert AdvisorBuilder"
#propertylink
extern int MagicNumber = 0;
extern bool SignalMail = False;
extern bool EachTickMode = False;
extern double Lots = 0.1;
extern int Slippage = 3;
extern bool UseStopLoss = True;
extern int StopLoss = 300;
extern bool UseTakeProfit = True;
extern int TakeProfit = 600;
extern bool UseTrailingStop = True;
extern int TrailingStop = 300;
int BarCount;
int Current;
bool TickCheck = False;
//+------------------------------------------------------------------+
//| expert initializationfunction
//+------------------------------------------------------------------+
int init() {
}
//+------------------------------------------------------------------+
//| expert deinitializationfunction
//+------------------------------------------------------------------+
int deinit() {
}
//+------------------------------------------------------------------+
//| expert startfunction
//+------------------------------------------------------------------+
int start() {
double Buy1_1 = iMA(NULL, 0, 5, 0,MODE_EMA, PRICE_CLOSE, Current + 0);
double Buy1_2 = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Buy2_1 = iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE, Current +0);
double Buy2_2 = iMA(NULL, 0, 21, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Buy3_1 = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Buy3_2 = iMA(NULL, 0, 80, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Buy4_1 = iMA(NULL, 0, 21, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Buy4_2 = iMA(NULL, 0, 80, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Buy5_1 = iRSI(NULL, 0, 21, PRICE_CLOSE, Current + 0);
double Buy5_2 = 50;
double Sell1_1 = iMA(NULL, 0, 5,0, MODE_EMA, PRICE_CLOSE, Current + 0);
double Sell1_2 = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell2_1 = iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell2_2 = iMA(NULL, 0, 21, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell3_1 = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell3_2 = iMA(NULL, 0, 80, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell4_1 = iMA(NULL, 0, 21, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell4_2 = iMA(NULL, 0, 80, 0, MODE_EMA, PRICE_CLOSE, Current+ 0);
double Sell5_1 = iRSI(NULL, 0, 21, PRICE_CLOSE, Current + 0);
double Sell5_2 = 50;
double CloseBuy1_1 = iMA(NULL, 0,5, 0, MODE_EMA, PRICE_CLOSE, Current + 0);
double CloseBuy1_2 = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE,Current + 0);
double CloseBuy2_1 = iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE,Current + 0);
double CloseBuy2_2 = iMA(NULL, 0, 21, 0, MODE_EMA, PRICE_CLOSE,Current + 0);
double CloseBuy3_1 = iRSI(NULL, 0, 21, PRICE_CLOSE, Current +0);
double CloseBuy3_2 = 50;
double CloseSell1_1 = iMA(NULL, 0,5, 0, MODE_EMA, PRICE_CLOSE, Current + 0);
double CloseSell1_2 = iMA(NULL, 0, 13, 0, MODE_EMA, PRICE_CLOSE,Current + 0);
double CloseSell2_1 = iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE,Current + 0);
double CloseSell2_2 = iMA(NULL, 0, 21, 0, MODE_EMA, PRICE_CLOSE,Current + 0);
double CloseSell3_1 = iRSI(NULL, 0, 21, PRICE_CLOSE, Current +0);
double CloseSell3_2 = 50;