大智慧分析家九号副图指标
源码
P1:=16;P2:=8;P3:=49;
Var1:=IF(YEAR>=3000 AND MONTH>=2,0,1);
Var2:=CLOSE-REF(CLOSE,1);
Var3:=IF(CLOSE-REF(CLOSE,1)>=0,Var2,0);
Var4:=REF(CLOSE,1)-CLOSE;
Var5:=IF(CLOSE-REF(CLOSE,1)<=0,Var4,0);
Var6:=SUM(Var3,P1)/SUM(Var5,P1);
Var7:=100-100/(1+Var6);
Var8:=EMA(Var7,P1);
Var9:=EMA(Var8,P2);
VarA:=EMA(Var8,P3);
革命军: (Var8-VarA)*Var1;
叛军: (Var9-VarA)*Var1;
战果: 革命军*Var1, COLORSTICK;