//+-----------------------+ //| MA/MACD/CCI Expert | //+-----------------------+ extern double Lots = 1; extern double TakeProfit = 120; extern double StopLoss = 200; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //|------------------------------------------------------------------| int init() { return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { bool rising=false; bool falling=false; double slA=0, slB=0; double tpA=0, tpB=0; double p=Point(); double MACDM, MACDS; double MAH, MAL; double CCIP1; int cnt=0; // Error checking if(AccountFreeMargin()<(1000*Lots)) {Print("-----NO MONEY"); return(0);} if(Bars<100) {Print("-----NO BARS "); return(0);} // only one order per symbol // don't do anything till TP or SL takes the order out for(cnt=0;cntMAH && Low[1]>MAH && MACDS>0 && CCIP1>100) { rising=true;} if (High[1]