커뮤니티

부탁드립니다.

프로필 이미지
매일상승
2015-06-30 14:08:00
113
글번호 87817
답변완료
아래 수식에 매매시간을 오후 7 ~ 새벽 2시까지만 매매하고 청산하도록 부탁드렸는데 적용해보면 계속해서 매매를하고있습니다. 다시한번 부탁드립니다. var : T(0); var1 = ma(c,5); var2 = ma(C,50); if var2[1]>var2[0] and OPEN[0]>var1 and OPEN[0]>CLOSE[0] Then T = -1; SELL(); if var2[1]<var2[0] and OPEN[0]<var1 and OPEN[0]<CLOSE[0] Then T = 1; if MarketPosition == 0 and T == -1 and countif(T == T[1],3) == 3 Then sell(); if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then buy(); SetStopProfittarget(PriceScale*90,PointStop); SetStopLoss(PriceScale*15,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-06-30 17:58:17

안녕하세요 예스스탁입니다. 수식에 불필요한 sell이 있었습니다. 수정한 식입니다. var : T(0); var1 = ma(c,9); var2 = ma(C,18); if var2[1]>var2[0] and OPEN[0]>var1 and OPEN[0]>CLOSE[0] Then T = -1; if var2[1]<var2[0] and OPEN[0]<var1 and OPEN[0]<CLOSE[0] Then T = 1; if stime >= 190000 or stime < 020000 then{ if MarketPosition == 0 and T == -1 and countif(T == T[1],3) == 3 Then sell("s"); if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then buy("b"); } if stime == 020000 or (stime > 020000 and stime[1] < 020000) Then{ ExitLong("bx"); ExitShort("sx"); } SetStopProfittarget(PriceScale*30,PointStop); SetStopLoss(PriceScale*15,PointStop); 즐거운 하루되세요 > 매일상승 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 아래 수식에 매매시간을 오후 7 ~ 새벽 2시까지만 매매하고 청산하도록 부탁드렸는데 적용해보면 계속해서 매매를하고있습니다. 다시한번 부탁드립니다. var : T(0); var1 = ma(c,5); var2 = ma(C,50); if var2[1]>var2[0] and OPEN[0]>var1 and OPEN[0]>CLOSE[0] Then T = -1; SELL(); if var2[1]<var2[0] and OPEN[0]<var1 and OPEN[0]<CLOSE[0] Then T = 1; if MarketPosition == 0 and T == -1 and countif(T == T[1],3) == 3 Then sell(); if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then buy(); SetStopProfittarget(PriceScale*90,PointStop); SetStopLoss(PriceScale*15,PointStop);