通达信黄金柱源码副图指标公式
2017-09-14网络 编 辑:翔博软件
TIM:=IFF(FROMOPEN>0,(240/FROMOPEN),1);
预计日成交量:=IFF(ISLASTBAR AND PERIOD==5 AND TIM>0,VOL*TIM,VOL);
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=预计日成交量>=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>O AND C>REF(C,1);
黄金柱A:=FILTER(TJ1,5);
MA135:=MA(VOL,135);
CTXIONG:=(预计日成交量==HHV(VOL,10) AND 预计日成交量>=1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O AND 预计日成交量<=MA135*3.5);
黄金柱B:=FILTER(CTXIONG,3) AND BARSCOUNT(C>0)>=135;
XTJ1:=(VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O);
黄金柱C:=FILTER(TJ1,3) AND BARSCOUNT(C>0)<135;
黄金柱:黄金柱A OR 黄金柱B OR 黄金柱C,NODRAW,COLORYELLOW;
STICKLINE(黄金柱,OPEN,CLOSE,8,0),COLORYELLOW;
QGA1:=REF(C,10)==HHV(C,2*10+1);
QGB1:=FILTER(QGA1,10);
QGC1:=BACKSET(QGB1,10+1);
HD:=FILTER(QGC1,10);
QDA2:=REF(C,10)==LLV(C,2*10+1);
QDB2:=FILTER(QDA2,10);
QDC2:=BACKSET(QDB2,10+1);
LD:=FILTER(QDC2,10);
前期高位:REF(C,BARSLAST(HD)),POINTDOT,COLORFFFFFF;
STICKLINE(C,前期高位,前期高位,8,0),COLORFFFFFF;
前期低位:REF(C,BARSLAST(LD)),NODRAW,COLORRED;
STICKLINE(C,前期低位,前期低位,8,0),COLORRED;
AP:=(L+H+C*2)/4;
A5:EMA(AP,5),COLORFFFFFF;
A13:EMA(AP,13),COLORRED,LINETHICK2;
A55:EMA(AP,55),COLORYELLOW;
A0X:=(A5-REF(A5,1))/REF(A5,1)*100,NODRAW;
A1X:=(A13-REF(A13,1))/REF(A13,1)*100,NODRAW;
A2X:=(A55-REF(A55,1))/REF(A55,1)*100,NODRAW;
高低幅度:100*(前期高位-前期低位)/前期低位,NODRAW,COLORGREEN;
均线幅度:100*(EMA((L+H+C*2)/4,3)-前期低位)/前期低位,NODRAW;
买入持股:IFF(A1X>=0,A13,DRAWNULL),COLORRED,LINETHICK2;
卖出空仓:IFF(A1X<0 AND A2X<0,A13,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(CROSS(A0X,0),C,O,2,0 ),COLORGRAY;
STICKLINE(CROSS(A1X,0),C,O,2,0 ),COLORMAGENTA;