限时提供一个日内5分钟股指模型给兄弟们参考,源码未加密,模型的优点是交易数极少,胜率较高,但回撤较大,利润较低,这个需要大家自己去完善了,真正很好的模型我相信也没有人愿意拿出来分享的。高手请飘过,因为高手闭着眼睛都能想出好多7,8百以上或更多利润的好模型。这个主要是给那些还在苦恼中的兄弟们一个帮助和参考,算是我在论坛学习的一个回报吧
http://115.com/file/dpt2jfbb#5M-WR相关.rar
源码如下:
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;
if W1>45 AND REF(ANY(W1>45,9),1) then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end
if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),1) then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end
if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);
贴一下源码:
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;
if W1>45 AND REF(ANY(W1>45,9),1) then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end
if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),1) then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end
if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);
请问1.0094怎么出来的?
请问1.0094怎么出来的?
优化来的:)