通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
DRAWGBK(C O,RGB(60,0,0),RGB(0,0,0),1,2,1);
DRAWKLINE(H,O,L,C);
A1:EMA(C,3),COLORWHITE;
A2:EMA(C,5),COLORYELLOW;
A3:EMA(C,7),COLORBROWN;
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
今日量:=CCI*1.01-REF(CCI,1)*0.99,NODRAW;{K线柱大小}
昨日量:=REF(CCI*1.01,1)-REF(REF(CCI,1)*0.99,1),NODRAW;
注意了:=REF(CCI,1) 50AND今日量 70;
买点:=FILTER(注意了,2);
DRAWTEXT(买点,L-0.04, 买点 ),COLORMAGENTA;
DRAWICON(买点,L-0.04,5);
风险:=CCI 180;
TT:=FILTERX(风险,4);
DRAWTEXT(TT,H, 风险 ),COLORMAGENTA;
DRAWICON(TT,H,2);
VAR1:=REF(CLOSE,2);
AA2:SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLOR00FF00;
超卖1:IF(AA2 12,30,0),COLORF00FF0;
STICKLINE(超卖1,0,30,5,0),COLORF00FF0;
VAR2:=REF(CLOSE,1);
量:V,VOLSTICK;
PJJ:=DMA((((HIGH+LOW)+(CLOSE*2))/4),0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));XVL:=(IF((CLOSE OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)))+IF((CLOSE OPEN)
,(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));
ZLL:=(VOL/CAPITAL);
HSL1:=IF((ZLL 10),10,ZLL);
HSL:=((XVL/20)/1.15);
进攻流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(进攻流量,8);LLJX:=EMA(进攻流量,3);
动态天量:=CONST(IF(V=HHV(V,20),V,REF(V,BARSLAST(V=HHV(V,20))))),COLOR00FF00,POINTDOT;
STICKLINE(((HSL*0.4) =0),动态天量+((HSL*0.4)+LLJX)*20,动态天量,3,0),COLORYELLOW;
STICKLINE(((HSL*0.4) 0),动态天量+((HSL*0.4)+LLJX)*20,动态天量,3,0),COLOR00FF00;
流入:=IF((HSL*0.4+LLJX) 0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;
资金流出:=IF((HSL*0.4+LLJX) 0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;
资金收支:=(HSL*0.4+LLJX),LINETHICK0;
万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;
资金净收支:IF((HSL*0.4+LLJX) 0,资金流入,资金流出),COLORWHITE,POINTDOT;
收支比例%:IF((HSL*0.4+LLJX) 0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;
连红天1:=BARSLASTCOUNT(资金净收支 0),,COLORA20FFD,NODRAW;
连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;
连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;
连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;
近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;
三日资金:SUM(资金收支,3),COLORWHITE,NODRAW;
五日资金:SUM(资金收支,5),COLORFF00FF,NODRAW;
十日资金:SUM(资金收支,10),COLOR0000FF,NODRAW;
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
STICKLINE((资金流量 0),动态天量+资金流量*20,动态天量,3,0),COLOR0000FF;
STICKLINE((资金流量 0),动态天量+资金流量*20,动态天量,3,0),COLOR008000;
{饱和度}
N1:=10,100,34;
N2:=N1*1.05;
N3:=N1+3;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:IF(SAT 1,1,SAT)*100,COLORLIBLUE,NODRAW;
中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}
STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00DDDD;
STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和度,0),COLOR0033FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.82,中点*1.58,量能饱和度,0),COLOR0077FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和度,0),COLOR0099FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,量能饱和度,0),COLOR00DDFF;
DRAWTEXT(CURRBARSCOUNT=N3,中点*1.70, 量能饱和度 ),COLOR000000;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
卖盘:-IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORCYAN,POINTDOT;
比%:买盘/VOL*100,COLORWHITE,NODRAW;
五日:MA(V,5)COLORWHITE;
十日:MA(V,10)COLORYELLOW;
万手:VOL/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE OPEN,BB*(HIGH-LOW),IF(CLOSE OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED;
主动卖:=IF(CLOSE OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN;
差额:(主动买+主动卖)/10000;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;
STICKLINE(CLOSE REF(CLOSE,1),0,VOL,3.5,0),COLORRED;
STICKLINE(CLOSE REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,3.5,0),COLOR00FFFF;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,3.2,0),COLOR007777;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,2.7,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,2.1,0),COLOR00BBBB;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,1.5,0),COLOR00DDEE;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,0.9,0),COLOR66FFFF;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,0.2,0),COLORFFFFFF;
STICKLINE(主动买 =0,VOL,-主动卖,3.2,0),COLOR000033;
STICKLINE(主动买 =0,VOL,-主动卖,2.7,0),COLOR000066;
STICKLINE(主动买 =0,VOL,-主动卖,2.1,0),COLOR000099;
STICKLINE(主动买 =0,VOL,-主动卖,1.5,0),COLOR0000CC;
STICKLINE(主动买 =0,VOL,-主动卖,0.9,0),COLOR0000FF;
STICKLINE(主动买 =0,VOL,-主动卖,0.2,0),COLORCC66FF;
STICKLINE(主动卖 =0,0,-主动卖,3.2,0),COLOR990000;
STICKLINE(主动卖 =0,0,-主动卖,2.7,0),COLORCC0000;
STICKLINE(主动卖 =0,0,-主动卖,2.1,0),COLORFF4400;
STICKLINE(主动卖 =0,0,-主动卖,1.5,0),COLORFF8800;
STICKLINE(主动卖 =0,0,-主动卖,0.9,0),COLORFFCC00;
STICKLINE(主动卖 =0,0,-主动卖,0.2,0),COLORCYAN;
持币:IF(SAR(10,2,20) =H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLOR00FF00,LINETHICK1;
DRAWICON(持币 0,持币,35);
持股:IF(SAR(10,2,20) =L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK1;
DRAWICON(持股 0,持股,34);
个股资金线:=MA(C,1)/MA(REF(C,18),18)*100;
资金生命线:=MA(FORCAST(个股资金线,20),6);
生命线:个股资金线 资金生命线,COLOR000000,STICK,LINETHICK1;
DRAWICON(生命线 0,生命线,34);
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
TESTSKIP(NOT(超BOR大BOR中BOR小BOR超SOR大SOR中SOR小S)!=0);
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
DRAWRECTREL(0,0,282,999.2,IF(120,RGB(10,0,0),0));
DRAWRECTREL(0,CONST(880-(ABS(净流入)*500/DAZHI)),50,880,IF(CONST(净流入) 0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(58,CONST(880-(ABS(超大单)*500/DAZHI)),108,880,IF(CONST(超大单) 0,RGB(102,0,204),RGB(23,125,255)));
DRAWRECTREL(116,CONST(880-(ABS(大单)*500/DAZHI)),166,880,IF(CONST(大单) 0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(174,CONST(880-(ABS(中单)*500/DAZHI)),224,880,IF(CONST(中单) 0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(232,CONST(880-(ABS(小单)*500/DAZHI)),282,880,IF(CONST(小单) 0,RGB(255,0,0),RGB(0,128,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,1,0, 净流入 ),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.060,1,0, 超大单 ),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.126,1,0, 大单 ),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.181,1,0, 中单 ),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.241,1,0, 小单 ),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0,0.001,0, 单位(万元) ),COLORYELLOW;
{M:=0.53;M1:=0.33;}M:=0.58;M1:=0.39;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.001,0.790,0,CEILING(净流入));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.059,0.790,0,CEILING(超大单));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.116,0.790,0,CEILING(大单));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.175,0.790,0,CEILING(中单));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.232,0.790,0,CEILING(小单));
持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),NODRAW;
主筹:WINNER(C)*100,NODRAW;
散筹:(WINNER(C*1.1)-WINNER(C*0.9))*100,NODRAW;
STICKLINE(主力持仓 散筹,0,25,6,0),COLORRED;
STICKLINE(主筹 散筹,26,50,6,0),COLORMAGENTA;
STICKLINE(主力持仓 50,51,75,6,0),COLORBLUE;
STICKLINE(主筹 80AND散筹 REF(散筹,1),76,100,6,0),COLORYELLOW;
公式解读:
[源码注释]通达信公式动态公式解读收盘价-10日前的收盘价的绝对值/10日前的收盘价 =0.01
N:=14;
BOLL:MA(CLOSE,N);
UPPER:BOLL+2*STD(CLOSE,N),LINETHICK2;
LOWER:BOLL-2*STD(CLOSE,N),LINETHICK2;
ENTERLONG:CROSS(CLOSE,LOWER);
EXITLONG:CROSS(CLOSE,UPPER);
HIGH5:REF(HIGH,BARSLAST(V=HHV(V,5))),COLORYELLOW,LINETHICK1,DOTLINE;
LOW5:REF(LOW,BARSLAST(V=HHV(V,5))),COLORYELLOW,LINETHICK1,DOTLINE;
C5:REF(C,BARSLAST(V=HHV(VOL,5))),COLORYELLOW,LINETHICK1;
XC:V =REF(V*1.88,2)ANDV =MA(V,5)*1.68,NODRAW;
STICKLINE(XC,O,C,1,0),COLORGRAY;
持仓:IF(CLOSE =SAR(4,5,20),SAR(4,5,20),
DRAWNULL),CIRCLEDOT,COLORRED,{COLOR9955FF};
_空仓:IF(H =SAR(4,5,20),SAR(4,5,20),
DRAWNULL),CIRCLEDOT,COLORBLUE,{COLORDDFF00};
V34:REF(LOW,BARSLAST(V=LLV(VOL,34))),COLORBROWN,LINETHICK2,DOTLINE;
V34H:REF(H,BARSLAST(V=LLV(VOL,34))),COLORBROWN,LINETHICK1,DOTLINE;
V34C:REF(C,BARSLAST(V=LLV(VOL,34))),COLORBROWN,LINETHICK1;
AA0:=SUMBARS(VOL,CAPITAL),NODRAW;
地量1:IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOL MA(VOL,AA0)/3),NODRAW;
STICKLINE(地量1,OPEN,CLOSE,1,0),COLORBROWN;
V3:MA(V,34),NODRAW;
DRAWTEXT(VOL MA(VOL,5)*2ANDV V3*3ANDC REF(C,1)*1.05,H, 天量 ),COLORYELLOW;
C2:=REF(C,1),NODRAW;
:=REF(C,1)*1.1-C 0.01ANDH=C,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,0001,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2)ANDL=C,1,0),NODRAW;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;
RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,5,1);
J:=3*K-2*D;
X:=REF(J,1) 10ANDH REF(H,1)ANDC REF(C,1)ANDC REF(O,1)ANDL REF(L,1);
X0:=REF(J,1) 99ANDH REF(H,1)ANDC REF(C,1)ANDC REF(O,1)ANDL REF(L,1);
K0:=REF(K,1) 83ANDH REF(H,1)ANDC REF(C,1)ANDC REF(O,1)ANDL REF(L,1);
K1:=REF(K,1) 11ANDH REF(H,1)ANDC REF(C,1)ANDC REF(O,1)ANDL REF(L,1);
STICKLINE(X,L,L,20,0),COLOR008888;
STICKLINE(X,C,O,1,0),COLORFF00FF;
STICKLINE(X0,O,C,1,0),COLORWHITE;
STICKLINE(K0,O,C,1,0),COLOR1880FF;
STICKLINE(K1,C,O,2,2),COLOR00CCFF;
VAR9:=CLOSE-REF(CLOSE,5),NODRAW;
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5),NODRAW;
VARC:=EMA(EMA(VAR9,10),10)/EMA(EMA(ABS(VAR9),20),20),NODRAW;
卖出:=IF(VARA 0ANDCROSS(VARC,VARA),90,100);
DRAWICON(卖出 0,H+0.05,2);买线:=EMA(CLOSE,2),NODRAW;
卖线:=EMA(SLOPE(CLOSE,11)*10+CLOSE,22),NODRAW;
B1:IF(CROSS(买线,卖线),L-0.05,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
B2:IF(CROSS(卖线,买线),H+0.05,DRAWNULL),CROSSDOT,LINETHICK3,COLORGRAY;
S1:IF(CROSS(20,RSI)*10,H+0.05,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
VC:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3,NODRAW;
S2:=IF(VC 20ANDFILTER(VC REF(VC,1),5),H+0.05,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
A0:=(L+H+C*2)/4;
A1:EMA(A0,3)COLORBLUE,LINETHICK2;
A2:=EMA(A0,10)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
看多:IF(A1X =0ANDBARSLAST(CROSS(A1X,0)) 0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
:IF(A1X 0ANDBARSLAST(CROSS(0,A1X)) 0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
买入持股:IF(A1X =0,A1,DRAWNULL)COLORRED,LINETHICK2;
卖出空仓:IF(A1X 0ANDA2X 0,A1,DRAWNULL)COLORGREEN,LINETHICK2;
VAR2:=LLV(LOW,10),NODRAW;
VAR3:=HHV(HIGH,21),NODRAW;
动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4),NODRAW;
:100*VOL/(FINANCE(7)/100),VOLSTICK,NODRAW,COLORGRAY;
DRAWICON(动力线 0.23,LLV(L,10)-0.06,13);
DRAWICON(动力线 3.23AND换手率 10,HHV(H,10)+0.1,14),NODRAW;
换手:VOL/CAPITAL*100,VOLSTICK,NODRAW;
百日低换手:LLV(换手,100)=换手,NODRAW,COLORGREEN;
DRAWICON(百日低换手,L*0.991,23);
DRAWICON(换手 3,H*1.12,19),NODRAW;
DRAWICON(换手 10,H*1.06,21),NODRAW;
STICKLINE(换手 =5,O,C,0.08,0),COLORGREEN,NODRAW;
最低:=TROUGHBARS(L,5,1);{调整之字幅度找到低位起点}
低价:=REF(L,BARSLAST(最低=0));
低价_:DRAWLINE(最低=0,L,ISLASTBAR,低价,0),COLORBROWN;
{通达信文字指标}
所属:=STRCAT( 所属板块: ,STRCAT(STRCAT(STRCAT( [行业]- ,HYBLOCK),STRCAT( [地域]- ,DYBLOCK)),STRCAT( [概念]- ,GNBLOCK)));
总股本:=STRCAT(STRCAT( 总股本: ,CON2STR(TOTALCAPITAL/1000000,2)), 亿
流通盘:=STRCAT(STRCAT( 流通盘: ,CON2STR(CAPITAL/1000000,2)), 亿
全流通:=STRCAT( 全流通: ,CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT( 流通市值: ,CON2STR((CAPITAL/1000000)*C,2)), 亿
上市天数:=STRCAT( 上市天数: ,CON2STR(FINANCE(42),0));
{上市日期:=STRCAT( 上市日期: ,CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));}
股本市值:=STRCAT( 股本市值: ,STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),
上市天数));
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,股本市值),COLORGRAY;
V1:=BARSCOUNT(CLOSE)*3.142/180;
A2:SIN(V1*8)*40,COLOR00FFFF;
IF(A2 REF(A2,1),A2,DRAWNULL),COLORFF00FF;
A3:COS(V1*8)*40,COLORGRAY;
IF(A3 REF(A3,1),A3,DRAWNULL),COLORRED;
PV:=(C*2+H+L)/4;
SK:=EMA(PV,13)-EMA(PV,34);
SD:=EMA(SK,9);
中:0,POINTDOT;
空:(-2*(SK-SD))*61.8,COLORFFFF00;
多:(2*(SK-SD))*61.8,COLORAA77AA;
STICKLINE(多 REF(多,1),多,REF(多,1),2.6,0),COLOR000088;
STICKLINE(多 REF(多,1),多,REF(多,1),1.8,0),COLOR0000AA;
STICKLINE(多 REF(多,1),多,REF(多,1),1,0),COLOR0000CC;
STICKLINE(多 REF(多,1),多,REF(多,1),0.1,0),COLOR0000DD;
STICKLINE(空 REF(空,1),空,REF(空,1),2.6,0),COLOR008800;
STICKLINE(空 REF(空,1),空,REF(空,1),1.8,0),COLOR00AA00;
STICKLINE(空 REF(空,1),空,REF(空,1),1,0),COLOR00CC00;
STICKLINE(空 REF(空,1),空,REF(空,1),0.1,0),COLOR00DD00;
STICKLINE(REF(空,2) REF(空,1)AND空 REF(空,1)AND空 =0,空,REF(空,1),2.6,0),COLOR888888;
STICKLINE(REF(空,2) REF(空,1)AND空 REF(空,1)AND空 =0,空,REF(空,1),1.8,0),COLORAAAAAA;
STICKLINE(REF(空,2) REF(空,1)AND空 REF(空,1)AND空 =0,空,REF(空,1),1,0),COLORCCCCCC;
STICKLINE(REF(空,2) REF(空,1)AND空 REF(空,1)AND空 =0,空,REF(空,1),0.1,0),COLORDDDDDD;
STICKLINE(REF(多,2) REF(多,1)AND多 REF(多,1),多,REF(多,1),2.6,0),COLOR006666;
STICKLINE(REF(多,2) REF(多,1)AND多 REF(多,1),多,REF(多,1),1.8,0),COLOR008888;
STICKLINE(REF(多,2) REF(多,1)AND多 REF(多,1),多,REF(多,1),1,0),COLOR00AAAA;
STICKLINE(REF(多,2) REF(多,1)AND多 REF(多,1),多,REF(多,1),0.1,0),COLOR00CCCC;
DRAWTEXT(REF(空,2) REF(空,1)AND空 REF(空,1)AND空 =0,空-0.5, 逃 ),COLOR009900,LINETHICK3;
DRAWTEXT(REF(多,2) REF(多,1)AND多 REF(多,1),多-0.5, 抄 ),COLORRED,LINETHICK3;
N:=6;
MA5:MA(CLOSE,5);
MA25:MA(CLOSE,25);
MA55:MA(CLOSE,55);
MA99:MA(CLOSE,99);
MA144:MA(CLOSE,144);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),n,1)/SMA(ABS(CLOSE-LC),n,1)*100;
DRAWICON(RSI1 10{《——信号参考值},L*0.98,1);
DRAWTEXT(RSI1 10{《——信号参考值},L*0.98, RSI拐点
高:80,COLORYELLOW;
中:50;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORMAGENTA;
底:20,COLORGREEN;
DRAWGBK(CURRBARSCOUNT=1,RGB(110,108,108),RGB(88,30,0),0, ,0);
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金/量)/100);
提纯:=(((CLOSE-过滤)/过滤)*100);
黄金:=((提纯 (0))ANDZXNH),COLORRED,NODRAW;
低进:IF(黄金ANDRSVV VARB2-2,28,0),STICK,COLOR00FFFF,LINETHICK3;
DRAWTEXT(低进 0,25, 低进 ),COLOR8000FF;
DRAWICON(低进 0,低进,1);
STICKLINE(低进,0,20,1,9),COLOR0000FF;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
AA:(趋势线 =13)ANDFILTER((趋势线 =13),15);
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
主力进:IF(V4 =0,V4,0);
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
见顶清仓:FILTER(趋势线 90AND趋势线 REF(趋势线,1)AND主力进 REF(主力进,1),8);
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
趋势线 90AND趋势线 REF(趋势线,1);
股票公式编写要求:
30日内出涨停次数大于等于1的公式。
股票公式编写结果:
AA:=IF(NAMELIKE( ST ) OR NAMELIKE( *ST ) OR NAMELIKE( SST ) AND NAMELIKE( S*ST ) OR NAMELIKE( S ST ) ,C =ZTPRICE(REF(CLOSE,1),0.05),IF((CODELIKE( 688 ) OR CODELIKE( 300 )),C =ZTPRICE(REF(CLOSE,1),0.2),C =ZTPRICE(REF(CLOSE,1),0.1)));
XG:COUNT(AA,30)