大智慧出入财神副图指标
源码
N1:=3;N2:=10;M1:=5;M2:=20;
LC:= REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
买:EMA(RSI1,M1),COLORRED,linethick2;
卖:EMA(RSI2,M2),linethick2,COLORGREEN;
Var1:=REF(CLOSE,1);
Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;
好财神:(CROSS(80,Var2)),colormagenta,linethick2;
drawicon(好财神>0,50,2);
drawtext(好财神>0,36,'财神跑'),colorgreen;
Var3:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
Var4:=SMA(SMA(Var3,3,1),3,1);
Var5:=EMA(Var4,5);
var7:=3*Var4-2*Var5;
恶财神:CROSS(var7,Var4),coloryellow,stick;
DRAWTEXT(CROSS(var7,Var4) AND var7<21,Var4,'财神到'),coloryellow;
drawicon(CROSS(var7,Var4)>0 and var7<21,var4,0);
分界:45,colorffffff;
顶:90,coloryellow,linethick2;
===========================================
{逐笔逐单:逐比--统计用}
a:=BUYVOL*c/100;
bz:=SUM(a,0);
b:=SELLVOL*c/100;
sz:=SUM(b,0);
z:=bz+sz;
cz:=bz-sz;
xb5:=IF(a<=5 ,a,0);b5:=SUM(xb5,0);
xs5:=IF(b<=5 ,b,0);s5:=SUM(xs5,0);
xb20:=IF(a<=20 and a>5 ,a,0);b20:=SUM(xb20,0);
xs20:=IF(b<=20 and b>5,b,0);s20:=SUM(xs20,0);
xb50:=IF(a<=50 and a>20 ,a,0);b50:=SUM(xb50,0);
xs50:=IF(b<=50 and b>20 ,b,0);s50:=SUM(xs50,0);
xb55:=IF(a>50 ,a,0);b55:=SUM(xb55,0);
xs55:=IF(b>50 ,b,0);s55:=SUM(xs55,0);
xb100:=IF(a<=100 and a>50,a,0);b100:=SUM(xb100,0);
xs100:=IF(b<=100 and b>50,b,0);s100:=SUM(xs100,0);
xb150:=IF(a>100 ,a,0);b150:=SUM(xb150,0);
xs150:=IF(b>100 ,b,0);s150:=SUM(xs150,0);
xb300:=IF(a>300 ,a,0);b300:=SUM(xb300,0);
xs300:=IF(b>300 ,b,0);s300:=SUM(xs300,0);
xb500:=IF(a>500 ,a,0);b500:=SUM(xb500,0);
xs500:=IF(b>500 ,b,0);s500:=SUM(xs500,0);
j5:=b5-s5;
j20:=b20-s20;
j50:=b50-s50;
j55:=b55-s55;
j100:=b100-s100;
j150:=b150-s150;
j300:=b300-s300;
j500:=b500-s500;
总金额:DYNAINFO(10)/10000;
买入金额:bz;
卖出金额:sz;
净买入金额:cz;
五万以下:j5;
二十万以下:j20;
五十万以下:j50;
五十万以上:j55;
一百万以下:j100;
一百万以上:j150;
三百万以上:j300;
五百万万以上:j500;
阻比:(DYNAINFO(18)*DYNAINFO(11)-DYNAINFO(19)*DYNAINFO (11))/(DYNAINFO(18)*DYNAINFO(11)+DYNAINFO(19)*DYNAINFO (11))*100;