커뮤니티
대신ct 를 yt로 변경 부탁합니다
2010-06-09 08:46:34
803
글번호 30344
대신증권의 사이보스트레이더에서 작성한 수식입니다.
예스트레이더 수식으로 변환이 가능할런지요.
- 1. ct수식.hwp (0.01 MB)
답변 1
예스스탁 예스스탁 답변
2010-06-09 15:35:19
안녕하세요
예스스탁입니다.
var : cond10(false),cond11(false),cond12(false),cond13(false),cond30(False),Cond2(False);
var : cnt(0),count(0);
#setbaroneentry
If sdate != sdate[1] then{
Cond10=False;
Cond11=False;
Cond12=False;
Cond13=False;
Cond30=False;
Var48=index;
Var28=DayOpen;
Var29=DayClose;
Var27=DayLow;
Var26=DayHigh;
If close>DayOpen then
Cond2=True;
Else
Cond2=False;
}
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
Var47=index-var48+1;
Var46=NthLowest(1,close,Var47)[1];
Var18=MACD_OSC(12,26,9);
Var19=macd(12,26);
Var20=ema(var19,9);
Var21=StochasticsK(5,3);
Var22=StochasticsD(5,3,3);
Var99=entryprice;
Var77=var28+(Var28*0.1);
Var78=var28-(Var28*0.1);
Var61=var46+(Var46*0.1);
Var62=var46-(Var46*0.1);
If stime>090000 And stime<150000 And count <1 then{
If close>var77 then{
buy("buy1",Atmarket);
}
}
If stime==091500 then{
Var17=var18;
}
If crossup(Var18,0) then{
Cond12=True;
}
If close<var78 And close<open then{
Cond30=True;
Var30=close;
}
If stime>090000 And stime<150000 And count <1 then{
If (Cond12==True Or Var18>var17) And Cond30==True And close>var30 And close[1]>=open[1] And close>open And close>var61 then{
buy("buy2",Atmarket);
}
}
If CrossDown(Var18,0) And Var17>var18 then{
exitlong("손절1",Atmarket);
}
If close<var99 And close<var46 And close<var62 And close<var27 then{
exitlong("손절2",Atmarket);
}
If close<var99 And close[3]<=open[3] And close[2]<=open[2] And close[1]<=open[1] And close<=open And close<var29 then{
exitlong("손절3",Atmarket);
}
If MarketPosition==1 And stime>090000 And stime<150000 then{
If NthHighest(1, high, BarsSinceEntry+1)*0.9 >close And (close>var99 Or (close<var28 Or close<var29)) And Var21<var22 And close[1]<open[1] And close<open then{
exitlong("손절4", Atmarket);
}
}
If stime>090000 And stime<150000 And CLOSE<open And (CLOSE<var28 Or CLOSE<var29) then{
Cond13=True;
}
If stime>090000 And stime<150000 And Cond13==True And (crossup(CLOSE,Var28) Or crossup(CLOSE,Var28)) then{
Cond11=True;
}
If stime>100000 And stime<150000 And count <2 then{
If sdate==exitdate(1) And exitname(1)=="손절" then{
Var10=exitprice(1);
Cond10=True;
If (Cond2==True Or Cond12==True) And Cond10==True And Cond11==True And (close>var28 Or close>var29) And close>var10 then{
buy("rebuy",Atmarket);
}
}
}
즐거운 하루되세요
> 강해 님이 쓴 글입니다.
> 제목 : 대신ct 를 yt로 변경 부탁합니다
> 대신증권의 사이보스트레이더에서 작성한 수식입니다.
예스트레이더 수식으로 변환이 가능할런지요.
다음글
이전글