{ 通达信价格中枢主图指标公式源码 }
年认同价:=MA(C,240);
价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));
G:=价格中枢*1.2,LINETHICK2,COLOR009900;
G2:价格中枢*1.618,POINTDOT,COLORWHITE;
G3:价格中枢*1.382,POINTDOT,COLORWHITE;
G1:=价格中枢*0.8,LINETHICK2,COLOR009900;
stICKLINE(G1>0,G1,G,4,0),COLOR5F5F5F;{填色修饰}
IF(G1>0,G,DRAWNULL),COLOR00A800,LINETHICK2;{箱体上沿}
IF(G1>0,G1,DRAWNULL),COLOR008000,LINETHICK2;{箱体下沿}
IF(G1>0,价格中枢,DRAWNULL),COLORFFB900,LINETHICK2;{价格中枢}
{k线}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
毛利润率:=FINANCE(21)/FINANCE(20);
成长价值:年认同价*(1+毛利润率),COLORYELLOW;
收益价值:年认同价+FINANCE(33),COLORRED;
回调认同:EMA(expma(C,20),13),COLORWHITE;
{突破指示}
AA:=CLOSE/REF(C,1)>=1.09;
STICKLINE(AA,O,C,3,0),COLORYELLOW;
STICKLINE(AA,L,H,0,0),COLORYELLOW;
标签:认同,价格,G1,中枢,主图,通达信,源码,LINETHICK2 From: https://www.cnblogs.com/zhibiao/p/18062738