源码
年认同价:=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,8,0),COLOR5F5F5F;
毛利润率:=ZYYWLR/ZYYWSR;
成长价值:年认同价*(1+毛利润率),coloryellow,LINETHICK1;
收益价值:年认同价+MGSY,colorred,LINETHICK1;
价格中枢,LINETHICK1,COLORFFBB00;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
回调认同:EMA(X,13),COLORFF00FF;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,3,1),colorred;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,0 ),COLORFFFF50;
STICKLINE(CLOSE>=OPEN,CLOSE,HIGH,0 ,0 ),colorred;
STICKLINE(CLOSE>=OPEN,OPEN,LOW,0 ,0),colorred;
STICKLINE(OPEN>CLOSE,CLOSE,LOW,0 ,0 ),COLORFFFF50;
STICKLINE(OPEN>CLOSE,OPEN,HIGH,0 ,0 ),COLORFFFF50;
AA:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(AA,OPEN,CLOSE,3,0),coloryellow;
STICKLINE(AA,LOW,HIGH,0 ,0 ),coloryellow;