Experts: Raymond Cloudy Day For EA - page 2

 
Use the CODE button (Alt-S) when inserting code.

A moderator corrected the formatting this time. Please format code properly in future; posts with improperly formatted code may be removed.

I think something wrong within the buy / sell conditons ( e.g. why used TPS1 but not TPB1 )  ( cause copy/paste operation while code creating )

    //-- BUY
       if(Lowx1<TPS1 && Closex1>TPS1){  // ???
           double tp=500*_Point+Closex1;
           double sl=Closex1-500*_Point;
           trade.Buy(lots,_Symbol,0,sl,tp, Comment);
           lastOrderTime = TimeTradeServer();
       }
    //-- SELL
       if(Lowx1>TPS1 && Closex1<TPS1){ // ???
           double tp=Closex1-500*_Point;
           double sl=Closex1+500*_Point;
           trade.Sell(lots,_Symbol,0,sl,tp, Comment);
           lastOrderTime = TimeTradeServer();
       }