커뮤니티

문의 드립니다

프로필 이미지
푸른
2024-03-26 04:44:14
688
글번호 177938
답변완료
input : starttime(70000),endtime(55000),n(30); var : Tcond(false),hh(0),h1(0),ll(0),l1(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; hh = h; ll = l; h1 = hh[1]; l1 = ll[1]; IF Endtime <= starttime Then { SetStopEndofday(0); } } Input : 하락폭(500), 상승폭(0), 손절값(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); ---------------------------------------------------------- 위 수식어는 시가 기준 변동폭 매매입니다. 장중 고점,저점 변동폭에서 특정한 하락폭이 나왔을때 매수후 청산되는 수식어로 변경하고자 합니다.
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2024-03-26 15:20:04

안녕하세요 예스스탁입니다. 장중고점과 저점이 5포인트 이상이고 최고가에서 1포인트 하락하면 매수진입하게 작성해 드립니다. 종목에 따라 변동폭, 하락폭 조정해서 적용하시면 됩니다. input : starttime(70000),endtime(55000),n(30); input : 변동폭(5),하락폭(1); var : Tcond(false),hh(0),h1(0),ll(0),l1(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; hh = h; ll = l; h1 = hh[1]; l1 = ll[1]; IF Endtime <= starttime Then { SetStopEndofday(0); } } Input : 하락폭(500), 상승폭(0), 손절값(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 DayHigh >= DayLow+변동폭 Then { Buy("b",AtLimit,DayHigh-(DayHigh-DayLow)*(per/100)); } } SetStopProfittarget(PriceScale*상승폭,PointStop); SetStopLoss(PriceScale*손절값,PointStop); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 문의 드립니다 > input : starttime(70000),endtime(55000),n(30); var : Tcond(false),hh(0),h1(0),ll(0),l1(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; hh = h; ll = l; h1 = hh[1]; l1 = ll[1]; IF Endtime <= starttime Then { SetStopEndofday(0); } } Input : 하락폭(500), 상승폭(0), 손절값(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); ---------------------------------------------------------- 위 수식어는 시가 기준 변동폭 매매입니다. 장중 고점,저점 변동폭에서 특정한 하락폭이 나왔을때 매수후 청산되는 수식어로 변경하고자 합니다.
프로필 이미지

푸른

2024-03-27 14:15:52

푸른 님에 의해 삭제된 답변입니다.
프로필 이미지

푸른

2024-03-27 14:17:28

푸른 님에 의해 삭제된 답변입니다.