평단가
AvgEntryPrice
//매수진입 후 평단가기준 20틱 수익이면 즉시 청산
if MarketPosition == 1 Then
ExitLong("bx",AtLimit,AvgEntryPrice+PriceScale*20);
//매도진입 후 평단가 기준 20틱 수익이면 즉시 청산
if MarketPosition == -1 Then
ExitShort("sx",AtLimit,AvgEntryPrice-PriceScale*20);
<aside>
💡 뒤로가기는 좌측상단의 목차 버튼을 눌러주세요.
</aside>