커뮤니티

질문 두가지

프로필 이미지
좌오비우오비
2020-03-24 15:32:19
455
글번호 137159
답변완료
1) 아래는 지수선물 상하한가 청산 수식입니다. 미니선물에도 사용가능한 수식인지요? 2) 익절 수식 부탁드립니다. buy 진입시 당일 저가 대비 7% 상승 시 exitlong sell 진입시 당일 고가 대비 7% 하락 시 exitshort *********************************************************************************** input : Per(10); If MarketPosition == 1 Then{ ExitLong("선물매수상한청산",atlimit,int(bp*(1+Per/100)/PriceScale+0.00001)*PriceScale); ExitLong("선물매수하한청산",AtStop,BP-int(BP*(Per/100)/PriceScale)*PriceScale); } if MarketPosition() == -1 Then{ ExitShort("선물매도하한청산",atlimit,BP-int(BP*(Per/100)/PriceScale)*PriceScale); ExitShort("선물매도상한청산",AtStop,int(bp*(1+Per/100)/PriceScale+0.00001)*PriceScale); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-03-25 09:19:44

안녕하세요 예스스탁입니다. 1 계산식은 동일합니다. per만 조절하시면 됩니다. 지수선물, 미니선물 모두 기준가격 대비 각 단계별로 확대 적용됩니다. 이용에 참고하시기 바랍니다. 1: +-8% 2: +-15% 3: +-20% 2 if MarketPosition == 1 Then ExitLong("bx",atlimit,DayLow*1.07); if MarketPosition == -1 Then ExitShort("sx",atlimit,DayHigh*0.93); 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 질문 두가지 > 1) 아래는 지수선물 상하한가 청산 수식입니다. 미니선물에도 사용가능한 수식인지요? 2) 익절 수식 부탁드립니다. buy 진입시 당일 저가 대비 7% 상승 시 exitlong sell 진입시 당일 고가 대비 7% 하락 시 exitshort *********************************************************************************** input : Per(10); If MarketPosition == 1 Then{ ExitLong("선물매수상한청산",atlimit,int(bp*(1+Per/100)/PriceScale+0.00001)*PriceScale); ExitLong("선물매수하한청산",AtStop,BP-int(BP*(Per/100)/PriceScale)*PriceScale); } if MarketPosition() == -1 Then{ ExitShort("선물매도하한청산",atlimit,BP-int(BP*(Per/100)/PriceScale)*PriceScale); ExitShort("선물매도상한청산",AtStop,int(bp*(1+Per/100)/PriceScale+0.00001)*PriceScale); }