紫气东来本公式,用了新版通达信的公式函数,老通达信已经不能使用。
本网的开心果整合版本,就可以使用。搜索:整合版
{一帆风顺}
SX:=FINONE(77,0,0)+FINONE(77,0,1231)-FINONE(77,1,0);
销售:SX/FINVALUE(283)/100,NODRAW,COLORMAGENTA;
GL:=FINONE(78,0,0)+FINONE(78,0,1231)-FINONE(78,1,0);
管理:GL/FINVALUE(283)/100,NODRAW,COLORCYAN;
CW:=FINONE(80,0,0)+FINONE(80,0,1231)-FINONE(80,1,0);
财务:CW/FINVALUE(283)/100,NODRAW,COLORGREEN;
YF:=FINONE(304,0,0)+FINONE(304,0,1231)-FINONE(304,1,0);
研发:YF/FINVALUE(283)/100,NODRAW,COLORYELLOW;
调研:GPJYVALUE(10,1,1),NODRAW,COLORRED;
机构:FINVALUE(246),NODRAW,COLORMAGENTA;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;
STICKLINE(A1X<0,空方,突破,10,0),COLOR00CC66;
SMA1:=SMA(SMA(SMA(MA(C,1),2,1),2,1),2,1);
SMA2:=MA(SMA1,3);
NOTEXT1:IF(LLV(MA(SMA1,8),3)<SMA1,LLV(MA(SMA1,8),3),SMA1),LINETHICK2,COLORWHITE;
NOTEXT2:IF(SMA1>SMA2,SMA1,DRAWNULL),LINETHICK5,COLORRED;
NOTEXT3:IF(SMA1<SMA2,SMA1,DRAWNULL),LINETHICK5,COLORGREEN;
NOTEXT4:HHV(MA(SMA1,1),13),LINETHICK2,COLORYELLOW;
NOTEXT5:MA(C,60),POINTDOT,LINETHICK2,COLORWHITE;
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1));
VAR1:=C>=ZTPRICE(REF(C,1),BK) AND C>=H;
VAR2:=C<=DTPRICE(REF(C,1),BK) AND C<=L;
STICKLINE(C=O,H,L,0,0),COLORF1F1F1;
STICKLINE(C=O,O,C,-1,0),COLORF1F1F1;
STICKLINE(C>O,H,L,0,0),COLOR0000DD;
STICKLINE(C>O,O,C,-1,0),COLOR000055;
STICKLINE(C>O,O,C,2.8,0),COLOR000066;
STICKLINE(C>O,O,C,2.5,0),COLOR000077;
STICKLINE(C>O,O,C,2.1,0),COLOR000088;
STICKLINE(C>O,O,C,1.7,0),COLOR000099;
STICKLINE(C>O,O,C,1.2,0),COLOR0000AA;
STICKLINE(C>O,O,C,0.7,0),COLOR0000CC;
STICKLINE(C>O,O,C,0.2,0),COLOR0000FF;
STICKLINE(C<O,H,L,0,0),COLORDDDD00;
STICKLINE(C<O,O,C,-1,0),COLOR555500;
STICKLINE(C<O,O,C,2.8,0),COLOR666600;
STICKLINE(C<O,O,C,2.5,0),COLOR777700;
STICKLINE(C<O,O,C,2.1,0),COLOR888800;
STICKLINE(C<O,O,C,1.7,0),COLOR999900;
STICKLINE(C<O,O,C,1.2,0),COLORAAAA00;
STICKLINE(C<O,O,C,0.7,0),COLORCCCC00;
STICKLINE(C<O,O,C,0.2,0),COLORFFFF00;
STICKLINE(VAR1,O,C,-1,0),COLOR0055AA;
STICKLINE(VAR1,O,C,2.8,0),COLOR0066BB;
STICKLINE(VAR1,O,C,2.5,0),COLOR0077CC;
STICKLINE(VAR1,O,C,2.1,0),COLOR0088DD;
STICKLINE(VAR1,O,C,1.7,0),COLOR0099EE;
STICKLINE(VAR1,O,C,1.2,0),COLOR00AAFF;
STICKLINE(VAR1,O,C,0.7,0),COLOR00CCFF;
STICKLINE(VAR1,O,C,0.2,0),COLOR00FFFF;
STICKLINE(VAR2,O,C,-1,0),COLOR005500;
STICKLINE(VAR2,O,C,2.8,0),COLOR006600;
STICKLINE(VAR2,O,C,2.5,0),COLOR007700;
STICKLINE(VAR2,O,C,2.1,0),COLOR008800;
STICKLINE(VAR2,O,C,1.7,0),COLOR009900;
STICKLINE(VAR2,O,C,1.2,0),COLOR00AA00;
STICKLINE(VAR2,O,C,0.7,0),COLOR00CC00;
STICKLINE(VAR2,O,C,0.2,0),COLOR00FF00;