커뮤니티

수식 질문드립니다.

프로필 이미지
캣피쉬
2021-12-21 11:37:29
677
글번호 154721
답변완료
매수일때 손절/익절 매도일때 손절/익절 각각 다르게 가져갈수있는지 궁금합니다. 적절한 수식좀 부탁드릴께요 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-21 13:28:42

안녕하세요 예스스탁입니다. 아래 내용 참고하시기 바랍니다. 1 틱수로 지정 input : 매수익절틱수(50),매수손절틱수(50); input : 매도익절틱수(50),매도손절틱수(50); if MarketPosition == 1 Then { ExitLong("Bp",AtLimit,EntryPrice+PriceScale*매수익절틱수); ExitLong("Bl",AtStop,EntryPrice-PriceScale*매수손절틱수); } if MarketPosition == -1 Then { ExitShort("Sp",AtLimit,EntryPrice-PriceScale*매도익절틱수); ExitShort("Sl",AtStop,EntryPrice+PriceScale*매도익절틱수); } 2 포인트로 지정 input : 매수익절(2),매수손절(2); input : 매도익절(2),매도손절(2); if MarketPosition == 1 Then { ExitLong("Bp",AtLimit,EntryPrice+PriceScale*매수익절); ExitLong("Bl",AtStop,EntryPrice-PriceScale*매수손절); } if MarketPosition == -1 Then { ExitShort("Sp",AtLimit,EntryPrice-PriceScale*매도익절); ExitShort("Sl",AtStop,EntryPrice+PriceScale*매도익절); } 3 %로 설정 input : 매수익절per(2),매수손절per(2); input : 매도익절per(2),매도손절per(2); if MarketPosition == 1 Then { ExitLong("Bp",AtLimit,EntryPrice*(1+매수익절per/100)); ExitLong("Bl",AtStop,EntryPrice*(1-매수손절per/100)); } if MarketPosition == -1 Then { ExitShort("Sp",AtLimit,EntryPrice*(1-매도익절per/100)); ExitShort("Sl",AtStop,EntryPrice+(1+매도익절per/100)); } 즐거운 하루되세요 > 캣피쉬 님이 쓴 글입니다. > 제목 : 수식 질문드립니다. > 매수일때 손절/익절 매도일때 손절/익절 각각 다르게 가져갈수있는지 궁금합니다. 적절한 수식좀 부탁드릴께요 감사합니다.