主图指标【股海淘金】
x:=(3*C+L+O+H)/6;
A0X:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-A0X)/A0X*100;
A2X:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
A3X:=(20*x+19*REF(x,1)+18*REF(x,2)+17*REF(x,3)+16*REF(x,4)+15*REF(x,5)+14*REF(x,6)
+13*REF(x,7)+12*REF(x,8)+11*REF(x,9)+10*REF(x,10)+9*REF(x,11)+8*REF(x,12)
+7*REF(x,13)+6*REF(x,14)+5*REF(x,15)+4*REF(x,16)+3*REF(x,17)+2*REF(x,18)+
REF(x,20))/210;
XOPEN:=(REF(OPEN,1)+REF(CLOSE,1))/2;
XCLOSE:=(HIGH+LOW+CLOSE+OPEN)/4;
XHIGH:=MAX(XOPEN,XCLOSE,HIGH);
XLOW:=MIN(XOPEN,XCLOSE,LOW);
XXOPEN:=(REF(XOPEN,2)+REF(XCLOSE,2))/2;
XXCLOSE:=(XHIGH+XLOW+XCLOSE+XOPEN)/4;
XXHIGH:=MAX(XXOPEN,XXCLOSE,HHV(XHIGH,2));
XXLOW:=MIN(XXOPEN,XXCLOSE,LLV(Xlow,2));
MA1:MA(MA(CLOSE,5),3),coloryellow,layer0;
MA2:MA(MA(CLOSE,8),3),coloryellow,layer0;
MA3:MA(MA(CLOSE,10),3),coloryellow,layer0;
持币:=HHV(MA(MA((LOW+HIGH+CLOSE)/3,4),3*1),2);
持股:=LLV(MA(MA((LOW+HIGH+CLOSE)/3,4),3*1),1);
FILLRGN(A3X,A2X,A3X>=REF(A2X,1),RGB(250,50,50))
AND FILLRGN(A3X,A2X,A3X<REF(A2X,1),RGB(50,50,255))
AND FILLRGN(持股,持币,持股<持币,RGB(0,255,255))
;
STICKLINE(XXclose>XXopen,XXclose ,XXopen ,8,0),color0066cc;
STICKLINE(XXclose<=XXopen,XXclose ,XXopen ,8,0 ),colorffff66;
STICKLINE(XXclose>XXopen,XXhigh ,XXclose ,4,0 ),color0099cc;
STICKLINE(XXclose>XXopen,XXopen ,XXlow ,4,0 ),color0099cc;
STICKLINE(XXclose<=XXopen,XXopen ,XXhigh ,4,0 ),colorffff66;
STICKLINE(XXclose<=XXopen,XXclose ,XXlow ,4,0 ),colorffff66;
STICKLINE(C<持股 AND C<A2X,C,O,5,0),color00CA00;
STICKLINE(C<持股 AND C<A2X,C,O,4,0),Color10b210;
STICKLINE(C<持股 AND C<A2X,C,O,3,0),Color10c110;
STICKLINE(C<持股 AND C<A2X,C,O,2,0),Color10dd10;
STICKLINE(C<持股 AND C<A2X,H,L,1,0),colorgreen;
STICKLINE(C>持股 AND C>A2X,C,O,5,0),COLOR0000B3;
STICKLINE(C>持股 AND C>A2X,C,O,4,0),COLOR0000D7;
STICKLINE(C>持股 AND C>A2X,C,O,3,0),COLOR0000EA;
STICKLINE(C>持股 AND C>A2X,C,O,2,0),COLOR0000FF;
STICKLINE(C>持股 AND C>A2X,H,L,1,0),colorred;
STICKLINE(C<持股 AND C>A2X,C,O,5,0),color00ABFF;
STICKLINE(C<持股 AND C>A2X,C,O,4,0),color00C0FF;
STICKLINE(C<持股 AND C>A2X,C,O,3,0),color00D1FF;
STICKLINE(C<持股 AND C>A2X,C,O,2,0),color00EAFF;
STICKLINE(C<持股 AND C>A2X,H,L,1,0),color00FFFF;
STICKLINE(C>持股 AND C<A2X,C,O,4,0),COLORFF43FF;
STICKLINE(C>持股 AND C<A2X,C,O,3,0),COLORFF63FF;
STICKLINE(C>持股 AND C<A2X,C,O,2,0),COLORFF83FF;
STICKLINE(C>持股 AND C<A2X,H,L,1,0),Colorff00ff;
|