DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
B:= 100*(CLOSE-HHV(HIGH,14))/(HHV(HIGH,14)-LLV(LOW,14));
d:= EMA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),4);
A:= MA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),19);
短期线:= B+100;
中期线:= d+100;
长期线:= A+100;
ZZ:=(HHV(H,3)+LLV(L,3))/2;
A:=IF(C>ZZ,VOL,0);
B:=IF(C<ZZ,VOL,0);
总0:=(A-B);
众赢BBD:EMA(总0,3)/SUM(VOL,5)*100,coloryellow;
BBD:众赢BBD,colorwhite;
STICKLINE(BBD>=0 AND BBD>=REF(BBD,1),0,BBD,8,0),colorred;
STICKLINE(BBD>=0 AND BBD<REF(BBD,1),0,BBD,8,0),colorff0000;
STICKLINE(BBD<0 AND BBD>=REF(BBD,1),0,BBD,8,0),colorff00ff;
STICKLINE(BBD<0 AND BBD<REF(BBD,1),0,BBD,8,0),color00ff00;
XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;
XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;
DRAWICON(XH1,-20,1);
DRAWICON(XH2,20,2);
DRAWICON(BBD>REF(BBD,1) AND REF(BBD,1)<0 AND (短期线>中期线 OR MACD>REF(MACD,1)),BBD,5);
DRAWICON((BBD<REF(BBD,1) AND REF(BBD,1)<0 AND 短期线>中期线),BBD*0.06,24);
|
