커뮤니티

문의 드립니다.

프로필 이미지
대구어린울프
2023-07-25 17:38:56
1214
글번호 170927
답변완료
안녕하세요? 최근답변 잘받았습니다. 감사합니다. 아래의 수식에서 종료되는 시간설정을 하면 봉마감되는 시간에 종료가 되고있는데, 혹시 지정시간이되면 바로 청산주문이 들어가게 되었으면 해서 문의 드립니다. 감사합니다. inputs: Length(10), Pval(0.05); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); 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 entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-07-26 10:13:06

안녕하세요 예스스탁입니다. 당일청산함수로 시간 지정해 청산하시면 됩니다. inputs: Length(10), Pval(0.05),청산시간(153000); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); 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 entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopEndofday(청산시간); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 안녕하세요? 최근답변 잘받았습니다. 감사합니다. 아래의 수식에서 종료되는 시간설정을 하면 봉마감되는 시간에 종료가 되고있는데, 혹시 지정시간이되면 바로 청산주문이 들어가게 되었으면 해서 문의 드립니다. 감사합니다. inputs: Length(10), Pval(0.05); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); 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 entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);