飞狐指标——我开股市指标公式[其他软件公式]
相关标签:
原理解析:
源码:
Var1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14,1);
Var2:=HIGH-REF(HIGH,1);
Var3:=REF(LOW,1)-LOW;
Var4:=SMA(IF(Var2>0 AND Var2>Var3,Var2,0),12,1);
Var5:=SMA(IF(Var3>0 AND Var3>Var2,Var3,0),12,1);
Var6:=Var4*100/Var1;
Var7:=Var5*100/Var1;
Var8:=SMA(ABS(Var7-Var6)/(Var7+Var6)*100,12,1);
Var9:=(Var8+REF(Var8,5))/2;
VarA:=SUM(HIGH-OPEN,12)/SUM(OPEN-LOW,12)*100;
VarB:=SUM(MAX(0,HIGH-REF(CLOSE,1)),12)/SUM(MAX(0,REF(CLOSE,1)-LOW),12)*100;
VarC:=AMOUNT/VOL/100;
VarD:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VarE:=SUM(AMOUNT,5)/VarC/100;
VarF:=SUM(AMOUNT,13)/VarC/100;
Var10:=SUM(AMOUNT,34)/VarC/100;
Var11:=SUM(AMOUNT,209)/VarC/100;
Var12:=REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4);
Var13:=Var12/CAPITAL;
Var14:=VOL/CAPITAL*VarD+Var13*REF(VarC,1);
Var15:=IF(DATE<1500501,DMA(VarD,VOL/VarE),0);
Var16:=IF(DATE<1500501,DMA(VarD,VOL/VarF),0);
Var17:=IF(DATE<1500501,DMA(VarD,VOL/Var10),0);
Var18:=IF(DATE<1500501,DMA(VarD,VOL/CAPITAL),0);
Var19:=100*(CLOSE-Var15)/Var15;
Var1A:=100*(CLOSE-Var16)/Var16;
Var1B:=100*(CLOSE-Var17)/Var17;
Var1C:=100*(CLOSE-Var18)/Var18;
Var1D:=MA(CLOSE,13);
Var1E:=100*(Var1D-REF(Var1D,1))/REF(Var1D,1);
Var1F:=CLOSE-LOW;
Var20:=HIGH-LOW;
Var21:=CLOSE-HIGH;
Var22:=IF(CLOSE>=0,(Var1F/Var20+Var21/Var20)*VOL,(Var21/Var20+Var1F/Var20)*VOL);
Var23:=SUM(Var22,10)/10000;
Var24:=100*(Var16-REF(Var16,1))/REF(Var16,1);
Var25:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var26:=SMA(Var25,3,1);
Var27:=SMA(Var26,3,1);
Var28:=3*Var26-2*Var27;
Var29:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var2A:=SMA(Var29,5,1);
Var2B:=SMA(Var2A,10,1);
Var2C:=CROSS(Var2B,Var2A);
Var2D:=Var2B>80 OR Var2A>80;
Var2E:=Var2C AND Var2D;
Var2F:=Var1E>0 AND Var24>0 AND Var23>0;
Var30:=Var1E<0 OR Var24<0 OR Var23<0 OR Var1A<0;
Var31:=CLOSE;
Var32:=OPEN;
Var33:=HIGH;
Var34:=LOW;
Var35:=1.1*CLOSE;
Var36:=0.9*CLOSE;
Var37:=100*(WINNER(Var35)-WINNER(Var36));
Var38:=VOL/CAPITAL*100<3;
Var39:=100*WINNER(CLOSE)>90;
Var3A:=Var38 AND Var39;
Var3B:=SUM(VOL,34)/CAPITAL;
Var3C:=100-100/(1+Var3B)>0;
Var3D:=100-100/(1+Var3B)<34;
Var3E:=Var3C AND Var3D;
Var3F:=100*VOL/CAPITAL;
Var40:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));
Var41:=4;
Var42:=Var40/Var3F;
Var43:=Var40/Var3F>10;
Var44:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),Var41))/5*MA(Var3F,5);
Var45:=LLV(LOW,240);
Var46:=100*(CLOSE-Var45)/Var45>15;
Var47:=100*(CLOSE-Var45)/Var45<45;
Var48:=100*(CLOSE-Var45)/Var45;
Var49:=Var46 AND Var47;
Var4A:=100*(WINNER(CLOSE)-WINNER(OPEN))>18;
Var4B:=100*(WINNER(CLOSE)-WINNER(OPEN))<100;
Var4C:=Var4A AND Var4B;
Var4D:=Var4C AND Var49 AND Var43 AND Var3E;
Var4E:=IF(DATE<1530430 AND DATE>900101,1,0);
Var4F:=DATE;
Var50:=1530401;
Var51:=EMA(AMOUNT/VOL/100,3)*Var4E;
Var52:=EMA(Var51,88)*Var4E;
Var53:=EMA(Var51,88)*0.85*Var4E;
Var54:=Var53*0.87*Var4E;
Var55:=LOWREF(CLOSE,1)*1.02*Var4E;
DRAWTEXT(FILTER(Var55,6),LOW+0.1,'坚决买进');
金: (EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10*Var4E;
土: EMA(CLOSE,13)*Var4E;
水: EMA(CLOSE,50)*Var4E;
相军工作室: STICKLINE(3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100*Var4E,10,2),2,1)>REF(3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100*Var4E,10,2),2,1),10),CLOSE,OPEN,6,0);
STICKLINE(3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100*Var4E,10,2),2,1)>REF(3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100*Var4E,10,2),2,1),10),HIGH,LOW,0,0);
恭喜大家发财: STICKLINE(VOL/CAPITAL>0.015*Var4E,CLOSE,OPEN,15,1);
STICKLINE(VOL/CAPITAL>0.05*Var4E,CLOSE,OPEN,80,1);
STICKLINE(VOL/CAPITAL>0.1*Var4E,CLOSE,OPEN,150,1);
Var56:=STICKLINE(VOL/CAPITAL>0.2*Var4E,CLOSE,OPEN,250,1);
Var57:=STICKLINE(VOL/CAPITAL>0.3*Var4E,CLOSE,OPEN,350,0);
STICKLINE(3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2),2,1)
STICKLINE(3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,2),2,1)
逃顶: STICKLINE(Var2E,Var33,Var34,18,0);
DRAWTEXT(CROSS(75,SMA(MAX(CLOSE-REF(CLOSE,1),0),8,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),8,1)*100)*Var4E,HIGH+0.25,'卖出');
DRAWTEXT(CROSS(-5,MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5))*Var4E,LOW-0.25,'买进');
{来源:www.cxh99.com 程序化交易}
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容