커뮤니티

부탁드립니다.

프로필 이미지
매일상승
2015-07-04 19:20:30
127
글번호 88002
답변완료
아래수식을 반대로 부탁드립니다. 매수해야할때를 매도할때로 청산도요 반대매매되도록 부탁드립니다. var : T(0); var1 = ma(c,5); var2 = ma(C,70); 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*10,PointStop); SetStopLoss(PriceScale*19,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-07-06 14:41:16

안녕하세요 예스스탁입니다. 반대로 신호가 발생하고 자하시면 buy와 sell만 변경하시면 됩니다. var : T(0); var1 = ma(c,5); var2 = ma(C,70); 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 buy(); if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then sell(); SetStopProfittarget(PriceScale*10,PointStop); SetStopLoss(PriceScale*19,PointStop); 즐거운 하루되세요 > 매일상승 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 아래수식을 반대로 부탁드립니다. 매수해야할때를 매도할때로 청산도요 반대매매되도록 부탁드립니다. var : T(0); var1 = ma(c,5); var2 = ma(C,70); 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*10,PointStop); SetStopLoss(PriceScale*19,PointStop);