커뮤니티

문의 드립니다.

프로필 이미지
푸른
2022-11-02 07:18:14
1222
글번호 163462
답변완료
1. 해외선물 매매시간 21:00 ~ 익일 05:55 21:00 ~ 21:20 의 고저에서 고점 +10틱 매수 청산은 +200틱이나 익일 03:20분 21:00 ~ 21:20 의 고저에서 저점 -10틱 매도 청산은 +200틱이나 익일 03:20분 진입및 청산은 매수 매도 각각 3회 , 손절 30 틱 2. Input : af(0.02), maxAF(0.2); Var : value(0); value = sar(af,maxAF); # 매수/매도청산 If C > value Then { Buy(); } # 매도/매수청산 If C < value Then { Sell(); } ------------ 위 파라볼릭 수식어에 추가하고자 입니다. 해외선물 매매시간 21:00~ 익일03:30 손절 40틱시 반대포지션으로 전환후 익절 80틱 또는 23:20분 청산후 매매정지
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-11-02 16:12:56

안녕하세요 예스스탁입니다. 당일청산하는 시간을 끝시간으로 지정하셔야 합니다. 1 input : time1(210000),time2(212000),xTime(032000); var : Tcond(false),hh(0),ll(0),B(0),S(0); IF xTime > time1 Then SetStopEndofday(xTime); Else { if sDate != sDate[1] Then SetStopEndofday(xTime); } if (sdate != sdate[1] and stime >= xTime) or (sdate == sdate[1] and stime >= xTime and stime[1] < xTime) Then Tcond = False; if (sdate != sdate[1] and stime >= time1) or (sdate == sdate[1] and stime >= time1 and stime[1] < time1) Then { Tcond = true; hh = h; ll = l; b = 0; s = 0; IF xTime <= time1 Then { SetStopEndofday(0); } } if Tcond == true Then { if sTime < time2 Then { if h > hh Then hh = h; if l < ll Then ll = l; } if sTime >= time2 Then { if (CurrentContracts > CurrentContracts[1] and MarketPosition == 1) or (MarketPosition == 1 and MarketPosition != MarketPosition[1]) Then b = b+1; if (CurrentContracts > CurrentContracts[1] and MarketPosition == -1) or (MarketPosition == -1 and MarketPosition != MarketPosition[1]) Then s = s+1; if MarketPosition <= 0 and H < hh+PriceScale*10 and B < 3 Then Buy("b",AtStop,hh+PriceScale*10); if MarketPosition >= 0 and L > ll-PriceScale*10 and S < 3 Then Sell("s",AtStop,ll-PriceScale*10); } } SetStopProfittarget(PriceScale*400,PointStop); SetStopLoss(PriceScale*30,PointStop); 2 Input : af(0.02), maxAF(0.2); input : StartTime(210000),EndTime(232000); var : Tcond(false); Var : value(0); value = sar(af,maxAF); 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 Tcond == true Then { If MarketPosition <= 0 and CrossUp(C,value) Then { Buy("b"); } If MarketPosition >= 0 and CrossDown(c,value) Then { Sell("s"); } if MarketPosition == 1 Then { if IsEntryName("b") == true Then Sell("bs",AtStop,EntryPrice-PriceScale*40); if IsEntryName("sb") == true Then ExitLong("bx",AtLimit,EntryPrice+PriceScale*80); } if MarketPosition == -1 Then { if IsEntryName("s") == true Then Buy("sb",AtStop,EntryPrice+PriceScale*40); if IsEntryName("bs") == true Then ExitShort("sx",AtLimit,EntryPrice-PriceScale*40); } } 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 1. 해외선물 매매시간 21:00 ~ 익일 05:55 21:00 ~ 21:20 의 고저에서 고점 +10틱 매수 청산은 +200틱이나 익일 03:20분 21:00 ~ 21:20 의 고저에서 저점 -10틱 매도 청산은 +200틱이나 익일 03:20분 진입및 청산은 매수 매도 각각 3회 , 손절 30 틱 2. Input : af(0.02), maxAF(0.2); Var : value(0); value = sar(af,maxAF); # 매수/매도청산 If C > value Then { Buy(); } # 매도/매수청산 If C < value Then { Sell(); } ------------ 위 파라볼릭 수식어에 추가하고자 입니다. 해외선물 매매시간 21:00~ 익일03:30 손절 40틱시 반대포지션으로 전환후 익절 80틱 또는 23:20분 청산후 매매정지