以下是将潜伏选股+攻击资金选股指标合并成一个选股公式(无源码的请下载附件导入)
编写要求:
公式指标网解答:
网友求助:
公式一:
DSLX:=((CLOSE/INDEXC)*10000),COLORFFFFFF;DSLXMA1:=MA(DSLX,5),COLOR0000FF;
DSLXMA2:=MA(DSLX,10),COLOR00FF00;
DSLXMA3:=MA(DSLX,0);DSLXMA4:=MA(DSLX,0);
CROSS(DSLX,DSLXMA1) AND CROSS(DSLX,DSLXMA2);
公式一的作用:白线上穿绿线红线
公式二:
VAR10:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR11:=EMA(VAR10,100);
VAR12:=2*(VAR10-VAR11);
VAR13:=POW(VAR12,3)*0.1+POW(VAR12,1);
VAR1A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1B:=EMA(VAR1A*0.97,3);
VAR1C:=(HIGH+LOW+CLOSE)/3;
VAR1D:=(VAR1C-MA(VAR1C,14))/(0.015*AVEDEV(VAR1C,14));
主流资金:=IF(VAR12>0.1,VAR13,0)*5,LINETHICK1,COLORGREEN;
G_J1:=EMA(C,2)-EMA(C,89);
G_J2:=EMA(G_J1,30);
G_J3:=2*(G_J1-G_J2)*9.8;
G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);
攻击资金:=IF(G_J3>0.015,G_J4,0)/28,COLORRED;
攻击资金>主流资金;
公式二的作用:攻击资金大于主流资金
请老师帮忙将公式一跟公式二合并成一个选股公式,谢谢!
解答如下:
DSLX:=((CLOSE/INDEXC)*10000);
DSLXMA1:=MA(DSLX,5);
DSLXMA2:=MA(DSLX,10);
DSLXMA3:=MA(DSLX,0);
DSLXMA4:=MA(DSLX,0);
AA:=CROSS(DSLX,DSLXMA1) AND CROSS(DSLX,DSLXMA2);
VAR10:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR11:=EMA(VAR10,100);
VAR12:=2*(VAR10-VAR11);
VAR13:=POW(VAR12,3)*0.1+POW(VAR12,1);
VAR1A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1B:=EMA(VAR1A*0.97,3);
VAR1C:=(HIGH+LOW+CLOSE)/3;
VAR1D:=(VAR1C-MA(VAR1C,14))/(0.015*AVEDEV(VAR1C,14));
主流资金:=IF(VAR12>0.1,VAR13,0)*5;
G_J1:=EMA(C,2)-EMA(C,89);
G_J2:=EMA(G_J1,30);
G_J3:=2*(G_J1-G_J2)*9.8;
G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);
攻击资金:=IF(G_J3>0.015,G_J4,0)/28;
BB:=攻击资金>主流资金;
AA AND BB; |