커뮤니티

시스템 진입 관령

프로필 이미지
블루3
2025-11-13 04:31:54
41
글번호 227991
답변완료

input : 시작일(20250701),시작시간(090000); input : 이평1(60),이평2(60),이평3(240); input : 윌리엄스R기간값(12); input : 손절틱수(350),트레일링스탑틱수(100),목표틱수(300),청산틱수(300); var : mav1(0),mav2(0),mav3(0),WR(0); if Bdate >= 시작일 and sTime >= 시작시간 Then Condition1 = true; Condition2 = true; MAV1 = MA(c,이평1); MAV2 = MA(c,이평2); MAV3 = MA(c,이평3); WR = WILLR(윌리엄스R기간값); if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then Condition2 = False; if Condition1 == true Then { if MarketPosition == 0 and c < mav3 and CrossDown(WR, -20) Then Sell("s"); if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then if CrossUp(C,mav2) Then ExitShort("sx"); } if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*목표틱수 Then ExitShort("str",AtStop,EntryPrice-PriceScale*트레일링스탑틱수); } SetStopLoss(PriceScale*손절틱수,PointStop); }
위의 수식으로 어제는 잘 작동이 되었는데.. 새벽시간 3시 이 후에 하려고 하니..시작날짜와 시작시간을 맞추고 해도.. 신호가 발생되지를 않습니다.
즉 자동 진입이 되지를 않아요..

시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-11-13 12:24:22

안녕하세요 예스스탁입니다. 날짜가 영업일(bdate) 기준으로 되어 있습니다. sdate기준으로 변경해 드립니다. input : 시작일(20250701),시작시간(090000); input : 이평1(60),이평2(60),이평3(240); input : 윌리엄스R기간값(12); input : 손절틱수(350),트레일링스탑틱수(100),목표틱수(300),청산틱수(300); var : mav1(0),mav2(0),mav3(0),WR(0); if sdate >= 시작일 and sTime >= 시작시간 Then { Condition1 = true; Condition2 = true; } MAV1 = MA(c,이평1); MAV2 = MA(c,이평2); MAV3 = MA(c,이평3); WR = WILLR(윌리엄스R기간값); if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then Condition2 = False; if Condition1 == true Then { if MarketPosition == 0 and c < mav3 and CrossDown(WR, -20) Then Sell("s"); if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then if CrossUp(C,mav2) Then ExitShort("sx"); } if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*목표틱수 Then ExitShort("str",AtStop,EntryPrice-PriceScale*트레일링스탑틱수); } SetStopLoss(PriceScale*손절틱수,PointStop); } 즐거운 하루되세요