커뮤니티
수식 요청 골든크로스와데드크로스
2007-02-07 01:33:02
1227
글번호 11908
안녕하십니까 관리자님 제가 시스템식 대신증권 에서
사용 하던 것을 cj증권에서 이용 하고자 합니다 수식 작성은 전문가님 께 부탁 합니다 좀 어려워서 입니다 답변은 yang12133 @ empal.com 으로 부탁해요
(질문1)
아래수식에서 매수주문 위치는 매도추적스탑 으로하고
매수추적스탑 위치는 매도주문 하며
매수청산 위치는 매도청산 합니다
연결 선물 차트적용 해서 정위치 에 신호가 가도록 부탁합니다
(질문2)
malen1=4
malen2=9
malen3=18
s3=0.37
s2=2.7
Var1=highd(1)-lowd(1) '전일고저차
Cond1= tdate=exitdate(1) And position(1)=1 '최근청산날짜가 금일이고 직전이 매수
Cond2= tdate=exitdate(1) And position(1)=-1 '최근청산날짜가 금일이고 직전이 매도
'이평 필터
If malen1*1.5 <= malen2 And malen2*1.5 <= malen3 Then '이평 기간값 비교
Var10=mov(close,malen1,s)
Var11=mov(close,malen2,s)
Var12=mov(close,malen3,s)
Cond10=var10>var11 And Var11>var12
Cond11=var10<var11 And Var11<var12
'진입
If ttime<1500 Then
If Cond10 Then
If Cond1=False Then
Call buy("매수",Atstop,Def,opend+var1*S1)'지정가 상향돌파시 매수
End If
End If
If Cond10 =False And Cond11 =False Then
If Cond1=False Then
Call buy("매수",Atstop,Def,opend+var1*s3)'지정가 상향돌파시 매수
End If
End If
End If
End If
'청산
If position<>0 Then
Call exitlong("매수추적스탑",Atstop,hhv(1,high,Pos+1)-atr(20)*S2)
End If
If ttime=1449 Then
Call exitlong("매수청산",Atmarket)
End If
위 질문 두가지 부탁해요 대단히 감사감사 합니다
답변 1
예스스탁 예스스탁 답변
2007-02-08 09:19:50
> CJ_yang1130 님이 쓴 글입니다.
> 제목 : 수식 요청 골든크로스와데드크로스
> 안녕하십니까 관리자님 제가 시스템식 대신증권 에서
사용 하던 것을 cj증권에서 이용 하고자 합니다 수식 작성은 전문가님 께 부탁 합니다 좀 어려워서 입니다 답변은 yang12133 @ empal.com 으로 부탁해요
(질문1)
아래수식에서 매수주문 위치는 매도추적스탑 으로하고
매수추적스탑 위치는 매도주문 하며
매수청산 위치는 매도청산 합니다
연결 선물 차트적용 해서 정위치 에 신호가 가도록 부탁합니다
(질문2)
malen1=4
malen2=9
malen3=18
s3=0.37
s2=2.7
Var1=highd(1)-lowd(1) '전일고저차
Cond1= tdate=exitdate(1) And position(1)=1 '최근청산날짜가 금일이고 직전이 매수
Cond2= tdate=exitdate(1) And position(1)=-1 '최근청산날짜가 금일이고 직전이 매도
'이평 필터
If malen1*1.5 <= malen2 And malen2*1.5 <= malen3 Then '이평 기간값 비교
Var10=mov(close,malen1,s)
Var11=mov(close,malen2,s)
Var12=mov(close,malen3,s)
Cond10=var10>var11 And Var11>var12
Cond11=var10<var11 And Var11<var12
'진입
If ttime<1500 Then
If Cond10 Then
If Cond1=False Then
Call buy("매수",Atstop,Def,opend+var1*S1)'지정가 상향돌파시 매수
End If
End If
If Cond10 =False And Cond11 =False Then
If Cond1=False Then
Call buy("매수",Atstop,Def,opend+var1*s3)'지정가 상향돌파시 매수
End If
End If
End If
End If
'청산
If position<>0 Then
Call exitlong("매수추적스탑",Atstop,hhv(1,high,Pos+1)-atr(20)*S2)
End If
If ttime=1449 Then
Call exitlong("매수청산",Atmarket)
End If
위 질문 두가지 부탁해요 대단히 감사감사 합니다
이전글