커뮤니티

문의 드립니다

프로필 이미지
푸른
2024-03-25 08:14:17
556
글번호 177848
답변완료
Input : 하락폭(140), 상승폭(140), 손절값(0); input : StartTime(70000),EndTime(60000); var : Tcond(false); 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); } } 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 { if Bdate != NextBarSdate Then Buy("B1",AtLimit,NextBarOpen-(PriceScale*하락폭)); Else if Bdate == Bdate[1] Then Buy("B2",AtLimit,DayOpen-(PriceScale*하락폭)); } SetStopProfittarget(PriceScale*상승폭,PointStop); SetStopLoss(PriceScale*손절값,PointStop); ----- 시가 기준 하락 매수후 청산의 수식어 입니다. 아래의 별도의 변경된 수식어를 부탁 드립니다. 1.시가 기준 상승 매수후 청산 2.장중 기준 하락 매수후 청산 3.장중 기준 상승 매수후 청산 4.시가 기준 상승 매도후 청산 5.시가 기준 하락 매도후 청산 6.장중 기준 상승 매도후 청산 7.장중 기준 하락 매도후 청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-03-25 14:24:12

안녕하세요 예스스탁입니다. 올리신 내용에는 시가 기준 하락 매수는 없고 매도진입도 없습니다. 1,2번만 추가해 드립니다. Input : 하락폭(140), 상승폭(140), 손절값(0); input : StartTime(70000),EndTime(60000); var : Tcond(false); 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); } } 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 { if Bdate != NextBarSdate Then Buy("B1",AtLimit,NextBarOpen-(PriceScale*하락폭)); Else if Bdate == Bdate[1] Then Buy("B2",AtLimit,DayOpen-(PriceScale*하락폭)); } if MarketPosition == 1 Then { if Bdate != NextBarSdate Then ExitLong("bx1",AtStop,NextBarOpen-PriceScale*1); Else ExitLong("bx2",AtStop,DayOpen-PriceScale*1); } SetStopProfittarget(PriceScale*상승폭,PointStop); SetStopLoss(PriceScale*손절값,PointStop); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 문의 드립니다 > Input : 하락폭(140), 상승폭(140), 손절값(0); input : StartTime(70000),EndTime(60000); var : Tcond(false); 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); } } 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 { if Bdate != NextBarSdate Then Buy("B1",AtLimit,NextBarOpen-(PriceScale*하락폭)); Else if Bdate == Bdate[1] Then Buy("B2",AtLimit,DayOpen-(PriceScale*하락폭)); } SetStopProfittarget(PriceScale*상승폭,PointStop); SetStopLoss(PriceScale*손절값,PointStop); ----- 시가 기준 하락 매수후 청산의 수식어 입니다. 아래의 별도의 변경된 수식어를 부탁 드립니다. 1.시가 기준 상승 매수후 청산 2.장중 기준 하락 매수후 청산 3.장중 기준 상승 매수후 청산 4.시가 기준 상승 매도후 청산 5.시가 기준 하락 매도후 청산 6.장중 기준 상승 매도후 청산 7.장중 기준 하락 매도후 청산