커뮤니티

수식 부탁드립니다

프로필 이미지
mkkk
2011-06-07 17:51:44
614
글번호 39499
답변완료
If MarketPosition == 1 Then exitlong("atrel", atstop, Highest(H,BarsSinceEntry+1)-ATR(30)*ATRMult); If MarketPosition == -1 Then exitshort("atres", atstop, Lowest(L,BarsSinceEntry+1)+ATR(30)*ATRMult); #청산 mp = marketposition; if MP == 1 and MP[1] <> 1 then Begin StopPrice = low - ma(range,4)*mult; end; if MP == -1 and MP[1] <> -1 then begin StopPrice = High + ma(range,4)*mult; end; If MP == 1 then begin exitlong ("역추세el", atstop,stopprice ); stopprice = stopprice +( low-stopprice )/Div; end; If MP == -1 then begin exitshort ("역추세es", atstop,stopprice); stopprice = stopprice - (stopprice-high)/Div; end; 위의식이 참조종목 선물수식인데여 선물을 참조종목으로 하는 옵션 콜매수 청산 풋매수 청산 식으로 좀 바꿔주세요 부탁드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-06-08 09:56:19

안녕하세요 예스스탁입니다. 1. 콜 var1 = data2(H); var2 = data2(L); If MarketPosition == 1 Then{ if var2 <= highest(var1,BarsSinceEntry)-data2(ATR(30))*ATRMult Then exitlong("atrel"); } mp = marketposition; if MP == 1 and MP[1] <> 1 then Begin StopPrice = data2(low - ma(range,4)*mult); end; If MP == 1 then begin if var2 <= Stopprice Then exitlong("역추세el"); stopprice = stopprice +data2(( low-stopprice )/Div); end; 2. 풋 var1 = data2(H); var2 = data2(L); If MarketPosition == -1 Then{ if var1 >= Lowest(var2,BarsSinceEntry)+data2(ATR(30))*ATRMult Then ExitLong("atres"); } mp = marketposition; if MP == -1 and MP[1] <> -1 then begin StopPrice = data2(High + ma(range,4)*mult); end; If MP == -1 then begin if var1 >= stopprice then ExitLong("역추세es"); stopprice = stopprice- data2((stopprice-high)/Div); end; 즐거운 하루되세요 > mkkk 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다 > If MarketPosition == 1 Then exitlong("atrel", atstop, Highest(H,BarsSinceEntry+1)-ATR(30)*ATRMult); If MarketPosition == -1 Then exitshort("atres", atstop, Lowest(L,BarsSinceEntry+1)+ATR(30)*ATRMult); #청산 mp = marketposition; if MP == 1 and MP[1] <> 1 then Begin StopPrice = low - ma(range,4)*mult; end; if MP == -1 and MP[1] <> -1 then begin StopPrice = High + ma(range,4)*mult; end; If MP == 1 then begin exitlong ("역추세el", atstop,stopprice ); stopprice = stopprice +( low-stopprice )/Div; end; If MP == -1 then begin exitshort ("역추세es", atstop,stopprice); stopprice = stopprice - (stopprice-high)/Div; end; 위의식이 참조종목 선물수식인데여 선물을 참조종목으로 하는 옵션 콜매수 청산 풋매수 청산 식으로 좀 바꿔주세요 부탁드립니다