커뮤니티

수식 질문드립니다.

프로필 이미지
캣피쉬
2021-04-12 18:14:36
787
글번호 147946
답변완료
아래 식에서 익절이나,손절, exit 후에는 condi 를 0으로 바꿀 방법이 있을지 궁금합니다. 부탁드립니다. 감사합니다 !! ----------------------------- if sDate != sDate[1] Then { condi = 0; condi = condi[0]; } if average((c2+c3),20)>way Then condi = 1; if average((c2+c3),20)<-way Then condi = -1; if Data1(sTime >= 90000 and sTime < value3 and entry < aptny)and (Tcond == true) Then { if condi== 1 and CrossDown(c,ma(c,60)) then Sell(); if condi == -1 and CrossUp(c,ma(c,60)) then Buy() ; } SetStopEndofday(EndTime); SetStopProfittarget(익절,PointStop); SetStoploss(손절,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-04-13 11:50:28

안녕하세요 예스스탁입니다. if sDate != sDate[1] Then { condi = 0; condi = condi[0]; } if average((c2+c3),20)>way Then condi = 1; if average((c2+c3),20)<-way Then condi = -1; if Data1(sTime >= 90000 and sTime < value3 and entry < aptny)and (Tcond == true) Then { if condi== 1 and CrossDown(c,ma(c,60)) then Sell(); if condi == -1 and CrossUp(c,ma(c,60)) then Buy(); } if TotalTrades > TotalTrades[1] Then condi = 0; SetStopEndofday(EndTime); SetStopProfittarget(익절,PointStop); SetStoploss(손절,PointStop); 즐거운 하루되세요 > 캣피쉬 님이 쓴 글입니다. > 제목 : 수식 질문드립니다. > 아래 식에서 익절이나,손절, exit 후에는 condi 를 0으로 바꿀 방법이 있을지 궁금합니다. 부탁드립니다. 감사합니다 !! ----------------------------- if sDate != sDate[1] Then { condi = 0; condi = condi[0]; } if average((c2+c3),20)>way Then condi = 1; if average((c2+c3),20)<-way Then condi = -1; if Data1(sTime >= 90000 and sTime < value3 and entry < aptny)and (Tcond == true) Then { if condi== 1 and CrossDown(c,ma(c,60)) then Sell(); if condi == -1 and CrossUp(c,ma(c,60)) then Buy() ; } SetStopEndofday(EndTime); SetStopProfittarget(익절,PointStop); SetStoploss(손절,PointStop);