年认同价:=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;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
m:=CROSS(84,RSI);
DRAWTEXT(m,(HIGH * 1.02),'●'),colorwhite;
M17:EMA(CLOSE,17),colorblue;
ab:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
MAi:=CROSS(ab,0);
STICKLINE(MAi,OPEN,CLOSE,5,0),colorFF00FF;
STICKLINE(MAi,LOW,HIGH,0.5 ,0 ),colorFF00FF;
QH:=REF(H,2);
QL:=REF(L,2);
QO:=REF(O,2);
QC:=REF(C,2);
ZO:=REF(O,1);
ZC:=REF(C,1);
JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.02 AND ABS(O-C)/O<0.02 AND C>MA(C,30);
JYZHV:=V
JYZH:=JYZHK AND JYZHV;
DRAWTEXT(JYZH,LOW/1.01,'★'),colorred;
c2:=EMA(a,6);
c3:=EMA(a,5);
c4:=CROSS(c2,c3);
DRAWTEXT(c4,LOW/1.01,'▲'),colorred;