커뮤니티
초보입니다. 답변부탁드립니다.
2012-06-11 08:10:48
289
글번호 51832
수고많으십니다.
다름이 아니라 아는지인이 사용해보라고 준 시스템식인데 무슨뜻인지 궁금하여 문의하오니 답변주시면 감사하겠습니다.
1. 무엇을 근거로하는것인지 알려주십시오(상세히)
2. 하루동안 신호횟수의 제한이 있다면 풀어서 조건이 만족되면 계속발생할수 있도록
바꿔주세요
3. 신호발생 및 청산신호발생,2신호가같이 발생할때 전부다 소리(예))띵똥)가날수
있도록 처리하여 주십시오.
Input: s1(2.1), len1(56), len2(2.7);
var : cond1(false),cond2(false);
if sdate <> sdate[1] then{
Var1=lrs(c,len1)[1];
Var2=Std(c,len1)[1];
Var10=1;
Var3=var1*var10+opend(0);
}
If sdate==sdate[1] then{
Var10=var10+1;
Var3=var1*var10+openD(0);
}
Var4=var3+var2;
Var5=var3-var2;
Cond1 = sdate==exitdate(1) And MarketPosition(1)==1;
Cond2 = sdate==exitdate(1) And MarketPosition(1)==-1;
If stime < 150000 then{
If Cond1==False then{
buy("콜",Atstop,Var4);
}
If Cond2==False then{
sell("풋",Atstop,Var5);
}
}
If MarketPosition<>0 then{
exitlong("콜청산",Atstop,Highest(high,barssinceentry+1)-atr(20)*len2);
exitshort("풋청산",Atstop,Lowest(low,BarsSinceEntry+1)+atr(20)*len2);
}
감사합니다.
답변 1
예스스탁 예스스탁 답변
2012-06-11 10:44:14
안녕하세요? 예스스탁입니다.
거래횟수는 조건 만족시 마다 들어갈 수 있도록 수정하였습니다.
식 내용은 당일 시가+LRS+표준편차 채널을 상향돌파하면 매수하고
당일시가+LRS-표준편차 채널을 하향이탈하면 매수청산하는 식입니다.
식에 대한 자세한 내용은 7th감각 시스템트레이딩, p260 을 참고해 보시기 바랍니다.
Input: s1(2.1), len1(56), len2(2.7);
if sdate <> sdate[1] then{
Var1=lrs(c,len1)[1];
Var2=Std(c,len1)[1];
Var10=1;
Var3=var1*var10+opend(0);
}
If sdate==sdate[1] then{
Var10=var10+1;
Var3=var1*var10+openD(0);
}
Var4=var3+var2;
Var5=var3-var2;
If stime < 150000 then{
If MarketPosition <> 1 then{
buy("콜",Atstop,Var4);
}
If MarketPosition <> -1 then{
sell("풋",Atstop,Var5);
}
}
If MarketPosition<>0 then{
exitlong("콜청산",Atstop,Highest(high,barssinceentry+1)-atr(20)*len2);
exitshort("풋청산",Atstop,Lowest(low,BarsSinceEntry+1)+atr(20)*len2);
}
if MarketPosition <> MarketPosition[1] Then
PlaySound("C:₩예스트레이더31₩data₩alert.wav");
> 항상여유있게 님이 쓴 글입니다.
> 제목 : 초보입니다. 답변부탁드립니다.
> 수고많으십니다.
다름이 아니라 아는지인이 사용해보라고 준 시스템식인데 무슨뜻인지 궁금하여 문의하오니 답변주시면 감사하겠습니다.
1. 무엇을 근거로하는것인지 알려주십시오(상세히)
2. 하루동안 신호횟수의 제한이 있다면 풀어서 조건이 만족되면 계속발생할수 있도록
바꿔주세요
3. 신호발생 및 청산신호발생,2신호가같이 발생할때 전부다 소리(예))띵똥)가날수
있도록 처리하여 주십시오.
Input: s1(2.1), len1(56), len2(2.7);
var : cond1(false),cond2(false);
if sdate <> sdate[1] then{
Var1=lrs(c,len1)[1];
Var2=Std(c,len1)[1];
Var10=1;
Var3=var1*var10+opend(0);
}
If sdate==sdate[1] then{
Var10=var10+1;
Var3=var1*var10+openD(0);
}
Var4=var3+var2;
Var5=var3-var2;
Cond1 = sdate==exitdate(1) And MarketPosition(1)==1;
Cond2 = sdate==exitdate(1) And MarketPosition(1)==-1;
If stime < 150000 then{
If Cond1==False then{
buy("콜",Atstop,Var4);
}
If Cond2==False then{
sell("풋",Atstop,Var5);
}
}
If MarketPosition<>0 then{
exitlong("콜청산",Atstop,Highest(high,barssinceentry+1)-atr(20)*len2);
exitshort("풋청산",Atstop,Lowest(low,BarsSinceEntry+1)+atr(20)*len2);
}
감사합니다.
다음글
이전글