커뮤니티

수식 부탁드립니다..

프로필 이미지
락뽀드
2011-04-07 12:27:03
731
글번호 37350
답변완료
제가 매매하는것은 해외 선물입니다.. 거래시간 오전10:00 ~ 새벽 04:00 시가에서 5틱 상승하면 1계약을 매도하고 추가로 5틱 상승하면 1계약을 매도하고 추가로 5틱 상승하면 2계약을 매도하고 추가로 5틱 상승하면 3계약을 매도하고 추가로 5틱 상승하면 5계약을 매도하고 추가로 5틱 상승하면 8계약을 매도한다. 청산은 마지막 진입가격에서 10틱수익에 한다. 시가에서 5틱 하락하면 1계약을 매수하고 추가로 5틱 하락하면 1계약을 매수하고 추가로 5틱 하락하면 2계약을 매수하고 추가로 5틱 하락하면 3계약을 매수하고 추가로 5틱 하락하면 5계약을 매수하고 추가로 5틱 하락하면 8계약을 매수한다. 익절은 마지막 진입가격에서 10틱에 하고 손절은 마지막 진입가격에서 10틱에 한다. 진입 청산 이후 새로운 진입 시작지점은 청산지점으로 한다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-04-07 16:00:58

안녕하세요 예스스탁입니다. /* 시가에서 5틱 상승하면 1계약을 매도하고 추가로 5틱 상승하면 1계약을 매도하고 추가로 5틱 상승하면 2계약을 매도하고 추가로 5틱 상승하면 3계약을 매도하고 추가로 5틱 상승하면 5계약을 매도하고 추가로 5틱 상승하면 8계약을 매도한다. 청산은 마지막 진입가격에서 10틱수익에 한다. 시가에서 5틱 하락하면 1계약을 매수하고 추가로 5틱 하락하면 1계약을 매수하고 추가로 5틱 하락하면 2계약을 매수하고 추가로 5틱 하락하면 3계약을 매수하고 추가로 5틱 하락하면 5계약을 매수하고 추가로 5틱 하락하면 8계약을 매수한다. 익절은 마지막 진입가격에서 10틱에 하고 손절은 마지막 진입가격에서 10틱에 한다. 진입 청산 이후 새로운 진입 시작지점은 청산지점으로 한다 */ # 10시 ~ 다음날 4시전 var : entryset(0); # 10시 기준으로 1값씩 상승 if stime == 90000 Then var1 = var1+1; #직전청산시 var1값과 현재 var1값이 다르면 당일 첫진입 if var1 != var1[BarsSinceExit(1)] Then{ entryset = dayopen;# 진입기준을 시초가를 사용 } #직전청산시 var1값과 현재 var1값이 같으면 당일 두번째 진입 if var1 == var1[BarsSinceExit(1)] Then{ entryset = ExitPrice(1);#진입기준을 직전청산가를 사용 } if stime <= 40000 or stime >= 100000 Then{ if MarketPosition == 0 Then Sell("s1",atlimit,entryset+PriceScale*5,1); if MarketPosition == -1 Then{ Sell("s2",atlimit,entryset+PriceScale*10,1); Sell("s3",atlimit,entryset+PriceScale*15,2); Sell("s4",atlimit,entryset+PriceScale*20,3); Sell("s5",atlimit,entryset+PriceScale*25,5); Sell("s6",atlimit,entryset+PriceScale*30,8); if CurrentEntries == 1 Then ExitShort("sx1",AtLimit,(entryset+PriceScale*5)-PriceScale*10); if CurrentEntries == 2 Then ExitShort("sx2",AtLimit,(entryset+PriceScale*10)-PriceScale*10); if CurrentEntries == 3 Then ExitShort("sx3",AtLimit,(entryset+PriceScale*15)-PriceScale*10); if CurrentEntries == 4 Then ExitShort("sx4",AtLimit,(entryset+PriceScale*20)-PriceScale*10); if CurrentEntries == 5 Then ExitShort("sx5",AtLimit,(entryset+PriceScale*25)-PriceScale*10); if CurrentEntries == 6 Then{ ExitShort("sx6",AtLimit,(entryset+PriceScale*30)-PriceScale*10); ExitShort("SLoss",AtStop,(entryset+PriceScale*30)+PriceScale*10); } } } if stime <= 40000 or stime >= 100000 Then{ if MarketPosition == 0 Then Buy("b1",atlimit,entryset-PriceScale*5,1); if MarketPosition == 1 Then{ Buy("b2",atlimit,entryset-PriceScale*10,1); Buy("b3",atlimit,entryset-PriceScale*15,2); Buy("b4",atlimit,entryset-PriceScale*20,3); Buy("b5",atlimit,entryset-PriceScale*25,5); Buy("b6",atlimit,entryset-PriceScale*30,8); if CurrentEntries == 1 Then ExitLong("bx1",AtLimit,(entryset-PriceScale*5)+PriceScale*10); if CurrentEntries == 2 Then ExitLong("bx2",AtLimit,(entryset-PriceScale*10)+PriceScale*10); if CurrentEntries == 3 Then ExitLong("bx3",AtLimit,(entryset-PriceScale*15)+PriceScale*10); if CurrentEntries == 4 Then ExitLong("bx4",AtLimit,(entryset-PriceScale*20)+PriceScale*10); if CurrentEntries == 5 Then ExitLong("bx5",AtLimit,(entryset-PriceScale*25)+PriceScale*10); if CurrentEntries == 6 Then{ ExitLong("bx6",AtLimit,(entryset-PriceScale*30)+PriceScale*10); ExitLong("bLoss",AtStop,(entryset-PriceScale*30)-PriceScale*10); } } } 즐거운 하루되세요 > 락뽀드 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다.. > 제가 매매하는것은 해외 선물입니다.. 거래시간 오전10:00 ~ 새벽 04:00 시가에서 5틱 상승하면 1계약을 매도하고 추가로 5틱 상승하면 1계약을 매도하고 추가로 5틱 상승하면 2계약을 매도하고 추가로 5틱 상승하면 3계약을 매도하고 추가로 5틱 상승하면 5계약을 매도하고 추가로 5틱 상승하면 8계약을 매도한다. 청산은 마지막 진입가격에서 10틱수익에 한다. 시가에서 5틱 하락하면 1계약을 매수하고 추가로 5틱 하락하면 1계약을 매수하고 추가로 5틱 하락하면 2계약을 매수하고 추가로 5틱 하락하면 3계약을 매수하고 추가로 5틱 하락하면 5계약을 매수하고 추가로 5틱 하락하면 8계약을 매수한다. 익절은 마지막 진입가격에서 10틱에 하고 손절은 마지막 진입가격에서 10틱에 한다. 진입 청산 이후 새로운 진입 시작지점은 청산지점으로 한다