커뮤니티

수식부탁드립니다.

프로필 이미지
천상나루
2009-09-09 21:47:57
835
글번호 24654
답변완료
*ct 수식 '5stop1매도청산전략---------------------------------------------------- If position=-1 Then Var50 = llV(1,low,BarnumsinceEntry +1) Call exitshort("매도추적",Atstop,Var50+atr(atrlen)*len1) Call exitshort("매도변동성",Atstop,close+atr(atrlen)*len2) If Var50<= Entryprice-atr(atrlen)*break Then Call exitshort("매도손익분기",Atstop,Entryprice-atr(atrlen)*level) Call exitshort("매도추적1",Atstop,Var50+atr(atrlen)*len3) End If If Var50<=Entryprice-atr(atrlen)*big Then Call exitshort("매도초과수익",Atstop,hhv(1,high,3)) End If End If * yt 수식 # 5stop1 매도 청산전략 IF marketposition==-1 then { var50=lowest(low,BarsSinceEntry+1); Exitshort("매도추적",Atstop,Var50+atr(atrlen)*len1); Exitshort("매도변동성",Atstop,close+atr(atrlen)*len2); If Var50 >= Entryprice-atr(atrlen)*break then { Exitshort("매도손익분기",Atstop,Entryprice-atr(atrlen)*level); Exitshort("매도추적1",Atstop,Var50+atr(atrlen)*len3); } IF Var50 >= Entryprice-atr(atrlen)*big Then exitshort("매도초과수익",ATstop,highest(high,3)); } * ct 수식의 청산전략을 yt로 변환했는데 뭐가 잘못된건지 모르겠네요. 수정좀 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-09-10 08:55:15

안녕하세요 예스스탁입니다. 식을 올바로 변경하셨습니다. 식에 사용되는 외부변수값들만 기호에 맞게 설정하시면 됩니다. input : atrlen(1),len1(1),len2(1),len3(1),break(1),level(1),big(1); IF marketposition==-1 then { var50=lowest(low,BarsSinceEntry+1); Exitshort("매도추적",Atstop,Var50+atr(atrlen)*len1); Exitshort("매도변동성",Atstop,close+atr(atrlen)*len2); If Var50 >= Entryprice-atr(atrlen)*break then { Exitshort("매도손익분기",Atstop,Entryprice-atr(atrlen)*level); Exitshort("매도추적1",Atstop,Var50+atr(atrlen)*len3); } IF Var50 >= Entryprice-atr(atrlen)*big Then exitshort("매도초과수익",ATstop,highest(high,3)); } 즐거운 하루되세요 > 천상나루 님이 쓴 글입니다. > 제목 : 수식부탁드립니다. > *ct 수식 '5stop1매도청산전략---------------------------------------------------- If position=-1 Then Var50 = llV(1,low,BarnumsinceEntry +1) Call exitshort("매도추적",Atstop,Var50+atr(atrlen)*len1) Call exitshort("매도변동성",Atstop,close+atr(atrlen)*len2) If Var50<= Entryprice-atr(atrlen)*break Then Call exitshort("매도손익분기",Atstop,Entryprice-atr(atrlen)*level) Call exitshort("매도추적1",Atstop,Var50+atr(atrlen)*len3) End If If Var50<=Entryprice-atr(atrlen)*big Then Call exitshort("매도초과수익",Atstop,hhv(1,high,3)) End If End If * yt 수식 # 5stop1 매도 청산전략 IF marketposition==-1 then { var50=lowest(low,BarsSinceEntry+1); Exitshort("매도추적",Atstop,Var50+atr(atrlen)*len1); Exitshort("매도변동성",Atstop,close+atr(atrlen)*len2); If Var50 >= Entryprice-atr(atrlen)*break then { Exitshort("매도손익분기",Atstop,Entryprice-atr(atrlen)*level); Exitshort("매도추적1",Atstop,Var50+atr(atrlen)*len3); } IF Var50 >= Entryprice-atr(atrlen)*big Then exitshort("매도초과수익",ATstop,highest(high,3)); } * ct 수식의 청산전략을 yt로 변환했는데 뭐가 잘못된건지 모르겠네요. 수정좀 부탁드립니다.