您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

短线出击副图指标公式源码[同花顺公式]

相关标签:

 

原理解析:


 

 来源:程序化99( WWW.CXH99.COM )

源码:

 

N:=30;STICKLINE(100,0,100,8,0),colorF22222;
RSV:=(CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100;
K:=SMA(RSV,3,1),coloryellow;
D:=SMA(K,3,1),colorwhite,;
买进:IF(d<25 AND CROSS(k,d) ,40,0),Color00FF00,CIRCLEDOT,LINETHICK1;
Q:IF(d<25 AND CROSS(k,d) ,40,0),Color00FF00;
卖出:IF(d>75 AND CROSS(d,k) ,30,0),color0000ff,CIRCLEDOT,LINETHICK1;
Q1:IF(d>75 AND CROSS(d,k) ,30,0),color0000ff;
STICKLINE(k>d,k,d,5,0),colorffff50;
STICKLINE(d>k,k,d,5,0),color0000ff;
85,POINTDOT,ColorffFFFf;
15,POINTDOT,ColorffFFFf;Var1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
Var2:=( MA((CLOSE-Var1)/Var1,1));
小买: IF(CROSS(Var2,0) AND LOW/REF(HIGH,1)<1.012,80,0),color1199ff;
加仓:IF(COUNT(Var2>REF(Var2,1),3)=3 AND COUNT(Var2<0,10)=10 AND REF(Var2,3)=LLV(Var2,10),80,0),coloryellow;Var11:=MA(100*(CLOSE-LLV(C,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
Var12:=2*ABS(Var1);
Var13:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)
+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var14:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)
+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var15:=(H+L+C)/3;
Var16:=(Var15-MA(Var15,14))/(0.015*AVEDEV(Var15,14));
Var17:=(Var15-MA(Var15,70))/(0.015*AVEDEV(Var15,70));
Var18:=IF(Var16>=150 AND Var16<200 AND Var17>=150 AND Var17<200,10,0);
Var19:=IF(Var16<=-150 AND Var16>-200 AND Var17<=-150 AND Var17>-200,-10,Var18);
Var20:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
Var21:=100-ABS(Var20);
Var22:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)
-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
Var23:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)
-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
Var31:=REF(LOW,1)*0.9;
Var32:=LOW*0.9;
Var33:=(Var32*VOL+Var31*(CAPITAL-VOL))/CAPITAL;
Var34:=EMA(Var33,30);
Var35:=Var34-C;
Var37:=REF(CLOSE,1);
Var38:=SMA(MAX(CLOSE-Var37,0),7,1)/SMA(ABS(CLOSE-Var37),7,1)*100;
Var39:=SMA(MAX(CLOSE-Var37,0),13,1)/SMA(ABS(CLOSE-Var37),13,1)*100;
Var40:=BARSCOUNT(CLOSE);
Var41:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
Var42:=(-100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
Var43:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var44:=(SMA(Var43,4,1)-50)*2;
Var45:=SMA(Var44,3,1);
Var46:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var47:=SMA(Var46,4,1);
Var48:=SMA(Var47,3,1);
Var49:=(HHV(HIGH,30)-C)/C*100;
Var50:=IF(Var41<=25 AND Var42<-95 AND Var49>20 AND Var45<-30 AND Var48<30 AND Var35>=-0.25 AND Var38<22 AND Var39<28 AND Var40>50,80,0);
出击:Var50,linethick1,colorred;TYP := (HIGH + LOW + CLOSE)/3;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),N);
MFI:100-(100/(1+V1)),colorwhite;TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 1145508240  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容