公式解读:
多空线主图指标公式VAR1:=EMA(MA(IF(CLOSEOPEN,(CLOSE-OPEN)*VOL,IF(CLOSEOPEN,(CLOSE-OPEN)*VOL,0)),5),1);
VAR2:=EMA(MA(IF(CLOSEREF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSEREF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,0)),5),1);
VAR3:=EMA(MA(IF(OPENREF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPENREF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,0)),5),1);
VAR4:=EMA(MA(IF(CLOSEOPEN,(OPEN-CLOSE)*VOL,IF(CLOSEOPEN,(OPEN-CLOSE)*VOL,0)),10),1);
VAR5:=EMA(MA(IF(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,IF(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
VAR6:=EMA(MA(IF(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,IF(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
VAR7:=CLOSEOPEN;
VAR8:=CLOSEREF(CLOSE,1);
VAR9:=OPENREF(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;
VAR1:=EMA(EMA(EMA(CLOSE,5),2),1);
牛熊先知: (VAR1-REF(VAR1,1))/REF(VAR1,1)*1,COLORRED COLORSTICK;
牛熊神经: EXPMA(牛熊先知,13),COLORYELLOW;
牛熊界线: 0, COLORMAGENTA;
VAR2:=AMOUNT/VOL/100;
DRAWTEXT(C=C AND CURRBARSCOUNT=129,0.02, #39; #39;),COLORD8D8BF;
VAR3:=MAX(ABS(HIGH-VAR2),ABS(VAR2-LOW));
VAR4:=ABS((OPEN+CLOSE)/2-VAR2);
VAR5:=5;
VAR6:=(VAR3+VAR4)/VAR2*50;
牛熊变换: IF(CROSS(VAR6,VAR5),0.008,0),COLORCYAN;
引用: