커뮤니티

문의드립니다

프로필 이미지
푸른
2023-04-21 16:24:30
1066
글번호 168405
답변완료
input : StartTime(70000),EndTime(180000); input : n(1),손절틱수(0),익절틱수(0); var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0); var : Tcond(false); if sDate != sDate[1] then SetStopEndofday(Endtime); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; SetStopEndofday(0); } var : entry(0); if bdate != bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if MarketPosition >= 0 and entry < 1 Then sell("s",atlimit,daylow+PriceScale*105); if MarketPosition == -1 Then ExitShort("sx",atlimit,EntryPrice-PriceScale*1600); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); ----- 해외선물 위 시간설정에서 신호가 나오질 않아요. 매매시간은 아침 7시부터 저녁 18시까지인데 수식어가 맞는지 문의드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-04-21 19:09:31

안녕하세요 예스스탁입니다. 수정한 식입니다. input : StartTime(70000),EndTime(180000); input : n(1),손절틱수(0),익절틱수(0); var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0); var : Tcond(false); var : entry(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if bdate != bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true Then { if MarketPosition >= 0 and entry < 1 Then sell("s",atlimit,daylow+PriceScale*105); if MarketPosition == -1 Then ExitShort("sx",atlimit,EntryPrice-PriceScale*1600); } SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 문의드립니다 > input : StartTime(70000),EndTime(180000); input : n(1),손절틱수(0),익절틱수(0); var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0); var : Tcond(false); if sDate != sDate[1] then SetStopEndofday(Endtime); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; SetStopEndofday(0); } var : entry(0); if bdate != bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if MarketPosition >= 0 and entry < 1 Then sell("s",atlimit,daylow+PriceScale*105); if MarketPosition == -1 Then ExitShort("sx",atlimit,EntryPrice-PriceScale*1600); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); ----- 해외선물 위 시간설정에서 신호가 나오질 않아요. 매매시간은 아침 7시부터 저녁 18시까지인데 수식어가 맞는지 문의드립니다.