커뮤니티

신호가 전혀 발생하지 않는데요?

프로필 이미지
루루
2019-04-23 11:23:53
235
글번호 128043
답변완료

첨부 이미지

*62203에서 문의드린대로 작성해주신 수식을 적용해보니 진입이 전혀 이루어지지 않습니다..ㅠㅠ
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-04-23 14:17:54

안녕하세요 예스스탁입니다. 당일청산함수때문에 신호가 나오지 않았습니다. 지정한 endtime봉 완성시 청산하게 수정해 드립니다. input : 손절틱수(20),수익틱1(35),수익틱2(34); var : Tcond(false); input : starttime(180000),endtime(20000); if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) Then { Tcond = true; } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) Then { Tcond = false; if MarketPosition == 1 Then exitlong("bx"); if MarketPosition == -1 Then ExitShort("sx"); } if Tcond == false then { if MarketPosition <= 0 and C > dayopen and C > O and L <= O-PriceScale*5 Then buy("b",atlimit,O+PriceScale*3); if MarketPosition >= 0 and C < dayopen and C < O and H >= O+PriceScale*5 Then sell("s",atlimit,O+PriceScale*3); if MarketPosition == 1 then { if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*수익틱1 Then ExitLong("bx1",AtStop,highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.2); if C >= EntryPrice+PriceScale*수익틱2 Then ExitLong("bx2"); } if MarketPosition == -1 then { if Lowest(L,BarsSinceEntry) <= EntryPrice+PriceScale*수익틱1 Then ExitShort("sx1",AtStop,Lowest(L,BarsSinceEntry)+(EntryPrice-lowest(L,BarsSinceEntry))*0.2); if C <= EntryPrice-PriceScale*수익틱2 Then ExitShort("sx2"); } } SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 루루 님이 쓴 글입니다. > 제목 : 신호가 전혀 발생하지 않는데요? > *62203에서 문의드린대로 작성해주신 수식을 적용해보니 진입이 전혀 이루어지지 않습니다..ㅠㅠ