커뮤니티

청산관련

프로필 이미지
나다백
2017-01-18 12:37:41
121
글번호 106046
답변완료
진입가격의 20틱이상시 청산 -> ExitLong("청산",AtStop,entryprice+PriceScale*20); 진입가격의 20틱이하시 청산 -> ExitLong("청산",AtStop,entryprice-PriceScale*20); 이렇게 했는데 안되네요 도와주세요.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-01-18 14:53:04

안녕하세요 예스스탁입니다. 매도주문함수(exitlong,sell)에서 지정한 가격까지 하락은 atstop, 지정한 가격까지 상승은 atlimit으로 지정합니다. if MarketPosition == 1 Then{ ExitLong("수익청산",AtLimit,entryprice+PriceScale*20); ExitLong("손절청산",AtStop,entryprice-PriceScale*20); } 즐거운 하루되세요 > 나다백 님이 쓴 글입니다. > 제목 : 청산관련 > 진입가격의 20틱이상시 청산 -> ExitLong("청산",AtStop,entryprice+PriceScale*20); 진입가격의 20틱이하시 청산 -> ExitLong("청산",AtStop,entryprice-PriceScale*20); 이렇게 했는데 안되네요 도와주세요.