input : price(278.0);
if MarketPosition == 0 and H < Price Then
Buy("b",AtStop,Price);
ExitLong("Bp",AtLimit,Price+PriceScale*20);
ExitLong("Bl",AtStop,Price-PriceScale*5);
위에 로직은 매수 진입의 경우인데요.
이번에는 반대로 매도의 경우
기준가를 설정하고 주가가 기준가 돌파시 매도진입
기준가에서 5틱 상승시 손절매도
기준가에서 20틱 하락시 청산완료
국내선물에서
기준선을 278.00으로한다고 가정하고 부탁드립니다.
답변 1
예스스탁
예스스탁 답변
2020-12-07 18:52:52
안녕하세요
예스스탁입니다.
input : price(278.0);
if MarketPosition == 0 and L > Price Then
Sell("s",AtStop,Price);
ExitShort("sp",AtLimit,Price-PriceScale*20);
ExitShort("sl",AtStop,Price+PriceScale*5);
즐거운 하루되세요
> 선물대장 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> input : price(278.0);
if MarketPosition == 0 and H < Price Then
Buy("b",AtStop,Price);
ExitLong("Bp",AtLimit,Price+PriceScale*20);
ExitLong("Bl",AtStop,Price-PriceScale*5);
위에 로직은 매수 진입의 경우인데요.
이번에는 반대로 매도의 경우
기준가를 설정하고 주가가 기준가 돌파시 매도진입
기준가에서 5틱 상승시 손절매도
기준가에서 20틱 하락시 청산완료
국내선물에서
기준선을 278.00으로한다고 가정하고 부탁드립니다.