Experts: Raymond Cloudy Day For EA - 페이지 2

 
코드를 삽입할 때는 코드 버튼(Alt-S) 을 사용합니다.

이번에 운영자가 서식을 수정했습니다. 앞으로는 코드 형식을 올바르게 지정해 주세요. 코드 형식이 잘못 지정된 게시물은 삭제될 수 있습니다.

구매/판매 조건에 문제가 있는 것 같아요(예: 왜 TPB1이 아닌 TPS1을 사용했는지 ) (코드 작성 중 복사/붙여넣기 작업의 원인)

    //-- 구매
       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();
       }