커뮤니티
수정 부탁드립니다.
2025-11-07 11:01:02
200
글번호 227745
if MarketPosition == -1 and Direction == -1 Then ExitShort("sx1",AtStop,var1); if bot2 < c Then ExitShort("sx3",AtStop,c); 위의 식에서 if MarketPosition == -1 and Direction == -1 then 이면서 if bot2 < c Then 조건까지 충족하면 ExitShort("sx3",AtStop,c); 청산한다를 표현하려면 어찌하나요?
(if MarketPosition == -1 and Direction == -1 and bot2 < c Then 이렇게 표현하니 원하는 결과와 다르게 결과가 나오네요)
답변 1
예스스탁 예스스탁 답변
2025-11-07 13:51:30
안녕하세요
예스스탁입니다.
별도로 수정해 드릴부분이 없습니다.
if MarketPosition == -1 and Direction == -1 then 이면서
if bot2 < c Then 조건까지 충족하면 ExitShort("sx3",AtStop,c);
올리신 위 내용으로 작성된 수식이 맞습니다.
if MarketPosition == -1 and Direction == -1 and bot2 < c Then
exitshort("sx3",atstop,C);
즐거운 하루되세요
다음글