指标镶入步骤:
工具 公式管理 常用 技术指标 自定指标 新建 名称和描述 粘贴指标源码 确定
图及源码见下:
DRAWGBK(DATE 900101,STRIP(RGB(100,0,0),RGB(30,30,0),1));
Var1:=EMA(MA(IF(CLOSE OPEN,(CLOSE-OPEN)*VOL,IF(CLOSE OPEN,(CLOSE-OPEN)*VOL,0)),5),1);
Var2:=EMA(MA(IF(CLOSE REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSE REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,0)),5),1);
Var3:=EMA(MA(IF(OPEN REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPEN REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,0)),5),1);
Var4:=EMA(MA(IF(CLOSE OPEN,(OPEN-CLOSE)*VOL,IF(CLOSE OPEN,(OPEN-CLOSE)*VOL,0)),10),1);
Var5:=EMA(MA(IF(CLOSE REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,IF(CLOSE REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
Var6:=EMA(MA(IF(OPEN REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,IF(OPEN REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
Var7: =CLOSE OPEN;
Var8: =CLOSE REF(CLOSE,1);
Var9:=OPEN REF(CLOSE,1);
大户: (Var1+Var2+Var3)/3/100,colorwhite;
散户: (Var4+Var5+Var6)/3/100,coloryellow ;
一次警报:EMA(EMA((Var1+Var2+Var3)/3-(Var4+Var5+Var6)/3,5),5)*1/100,colormagenta;
二次警报:EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/3*MA(大户,5)*2*1.1,2),colorblue;
STICKLINE(散户 0,0, 散户,1,0),colorcyan;
STICKLINE(散户 0,0, 散户,1,0),colorred;
特别版:EMA(EMA((Var1+Var2+Var3)/3-(Var4+Var5+Var6)/3,5),5)*1/100,POINTDOT,Color9587FF;