커뮤니티

시스템 작동 관련

프로필 이미지
블루3
2025-11-13 05:18:37
44
글번호 227992
답변완료

input : 이평1(60); input : 윌리엄스R기간값(30); input : 손절틱수(300),청산틱수(300); var : mav1(0),WR(0); MAV1 = MA(c,이평1); WR = WILLR(윌리엄스R기간값); if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then Condition2 = False; if Condition1 == true Then { if CrossDown(WR, -20) Then Sell("s"); if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then if CrossUp(C,mav1) Then ExitShort("sx"); } SetStopLoss(PriceScale*손절틱수,PointStop); }
이렇게 수식을 바꾸어도 진입이 안됩니다.
시물레이션에서는 잘 나옵니다..

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

예스스탁 예스스탁 답변

2025-11-13 12:26:23

안녕하세요 예스스탁입니다. if Condition1 == true Then { 날짜시간 조건을 제거하신다면 위 조건도 제거하셔야 합니다. input : 이평1(60); input : 윌리엄스R기간값(30); input : 손절틱수(300),청산틱수(300); var : mav1(0),WR(0); MAV1 = MA(c,이평1); WR = WILLR(윌리엄스R기간값); if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then Condition2 = False; if CrossDown(WR, -20) Then Sell("s"); if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then if CrossUp(C,mav1) Then ExitShort("sx"); } SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요