跟庄MCST通达信公式 副图 源码附图
TJ360:=C=HHV(C,150);{黑马线}
TS360:=BARSLAST(TJ360);
HHC360:=REF(C,TS360);
RHHC360:=REF(HHC360,1);
TJ1360:=H>L AND C>RHHC360 ;
CS1360:=BARSLASTCOUNT(TJ1360);
CSS:=COUNT(CS1360=1,60);
MR:=CS1360=1 AND CSS=1;
HMXTS:=BARSLAST(MR);
黑马线:CONST(REF(C,HMXTS)),COLORFFFF00,LINETHICK2;
大周期:MA(C,500),COLORWHITE,LINETHICK2;
高:=REF(HHV(H,72),5);
龙门:REFDATE(高,DATE),COLORWHITE,LINETHICK2;
警示:=NAMEINCLUDE('S');
W:=IF(NAMELIKE('W') OR NAMELIKE('*W'),0.05,0.1);
DT:=(REF(C,1)/C-1>=W-0.01/REF(C,1) AND L=C AND PERIOD=5) OR C=DTPRICE(REF(C,1),IF(警示,0.05,0.1));
ZT:=C>=ZTPRICE(REF(C,1),IF(警示,0.05,0.099)),NODRAW,COLORRED;
ZT1:=H>=ZTPRICE(REF(C,1),IF(警示,0.05,0.099)) AND C<H;
DT1:=REF(C,1)/L-1>=W-0.01/REF(C,1) AND L<C AND PERIOD=5;
STICKLINE(ZT,CLOSE,(OPEN+CLOSE)/2,3,0),COLOR000099;
STICKLINE(ZT,CLOSE,(OPEN+CLOSE)/2,2.2,0),COLOR0000CC;
STICKLINE(ZT,CLOSE,(OPEN+CLOSE)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT,CLOSE,(OPEN+CLOSE)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(ZT,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(DT,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,CLOSE,(OPEN+CLOSE)/2,3,0),COLOR009900;
STICKLINE(DT,CLOSE,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
STICKLINE(DT,CLOSE,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;
STICKLINE(DT,CLOSE,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
{曾涨跌停打开K线颜色设置}
STICKLINE(ZT1,CLOSE,(OPEN+CLOSE)/2,3,0),COLORFF00FF;
STICKLINE(ZT1,CLOSE,(OPEN+CLOSE)/2,2.2,0),COLORFF00FF;
STICKLINE(ZT1,CLOSE,(OPEN+CLOSE)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT1,CLOSE,(OPEN+CLOSE)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT1,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(ZT1,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT1,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT1,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT1,OPEN,(OPEN+CLOSE)/2-0.01,2.7,0),COLORGREEN;
STICKLINE(DT1,C,(OPEN+CLOSE)/2+0.01,2.7,0),COLORWHITE;
STICKLINE(DT,OPEN,(OPEN+CLOSE)/2-0.01,0.5,0),COLORFFFFFF;
假阴:=REF(C>=O,1) AND AMOUNT/V/100>REF(C,1) AND C<O;
假阳:=REF(C<=O,1) AND H<REF(O,1) AND C<(REF(O-C,1))/3+REF(C,1) AND AMOUNT/V/100<REF(C,1) AND C>O;
STICKLINE(假阴,O,C,0.2,0),COLORRED;{假阴柱};
STICKLINE(假阳,O,C,0.7,0),COLORLIGREEN;{假阳};
MAI:=EXIST(CROSS(C,MCST),10) AND (CROSS(C,黑马线) OR CROSS(C,龙门));
DRAWICON(MAI,L,7);
市值:(FINANCE(40)/100000000),NODRAW,COLORRED;
股东占流通比:100*FINVALUE(244)/FINVALUE(239),NODRAW;
历史衰退系数:100/(100-股东占流通比),NODRAW;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TJ360赋值:C=150日内C最高值
{黑马线}
TS360赋值:上次TJ360距今天数
HHC360赋值:TS360日前的C
RHHC360赋值:1日前的HHC360
TJ1360赋值:H>L AND C>RHHC360
CS1360赋值:BARSLASTCOUNT(TJ1360)
CSS赋值:统计60日满足CS1360=1的天数
MR赋值:CS1360=1 AND CSS=1
HMXTS赋值:上次MR距今天数
输出黑马线:CONST(HMXTS日前的C),COLORFFFF00, 线宽为2
输出大周期:C的500日简单移动平均,COLORWHITE, 线宽为2
高赋值:REF(72日内H最高值,5)
输出龙门:REFDATE(高,DATE),COLORWHITE, 线宽为2
警示赋值:NAMEINCLUDE('S')
W赋值:IF(NAMELIKE('W') OR NAMELIKE('*W'),0.05,0.1)
如果警示返回0.05否则返回0.1
如果警示返回0.05否则返回0.099
如果警示返回0.05否则返回0.099
DT1:=1日前的C/L-1>=W-0.01/1日前的C AND L
STICKLINE(ZT,收盘价,(开盘价+收盘价)/2,3,0),COLOR000099
STICKLINE(ZT,收盘价,(开盘价+收盘价)/2,2.2,0),COLOR0000CC
STICKLINE(ZT,收盘价,(开盘价+收盘价)/2,1.5,0),COLOR0000FF
STICKLINE(ZT,收盘价,(开盘价+收盘价)/2,0.5,0),COLORCC66FF
STICKLINE(ZT,开盘价,(开盘价+收盘价)/2,3,0),COLOR999999
STICKLINE(ZT,开盘价,(开盘价+收盘价)/2,2.2,0),COLORBBBBBB
STICKLINE(ZT,开盘价,(开盘价+收盘价)/2,1.5,0),COLORDDDDDD
STICKLINE(ZT,开盘价,(开盘价+收盘价)/2,0.5,0),COLORFFFFFF
STICKLINE(DT,开盘价,(开盘价+收盘价)/2,3,0),COLOR999999
STICKLINE(DT,开盘价,(开盘价+收盘价)/2,2.2,0),COLORBBBBBB
STICKLINE(DT,开盘价,(开盘价+收盘价)/2,1.5,0),COLORDDDDDD
STICKLINE(DT,开盘价,(开盘价+收盘价)/2,0.5,0),COLORFFFFFF
STICKLINE(DT,收盘价,(开盘价+收盘价)/2,3,0),COLOR009900
STICKLINE(DT,收盘价,(开盘价+收盘价)/2,2.2,0),COLOR00BB00
STICKLINE(DT,收盘价,(开盘价+收盘价)/2,1.5,0),COLOR00DD00
STICKLINE(DT,收盘价,(开盘价+收盘价)/2,0.5,0),COLOR00FF00
{曾涨跌停打开K线颜色设置}
STICKLINE(ZT1,收盘价,(开盘价+收盘价)/2,3,0),COLORFF00FF
STICKLINE(ZT1,收盘价,(开盘价+收盘价)/2,2.2,0),COLORFF00FF
STICKLINE(ZT1,收盘价,(开盘价+收盘价)/2,1.5,0),COLOR0000FF
STICKLINE(ZT1,收盘价,(开盘价+收盘价)/2,0.5,0),COLORCC66FF
STICKLINE(ZT1,开盘价,(开盘价+收盘价)/2,3,0),COLOR999999
STICKLINE(ZT1,开盘价,(开盘价+收盘价)/2,2.2,0),COLORBBBBBB
STICKLINE(ZT1,开盘价,(开盘价+收盘价)/2,1.5,0),COLORDDDDDD
STICKLINE(ZT1,开盘价,(开盘价+收盘价)/2,0.5,0),COLORFFFFFF
STICKLINE(DT1,开盘价,(开盘价+收盘价)/2-0.01,2.7,0),画绿色
STICKLINE(DT1,C,(开盘价+收盘价)/2+0.01,2.7,0),COLORWHITE
STICKLINE(DT,开盘价,(开盘价+收盘价)/2-0.01,0.5,0),COLORFFFFFF
假阴赋值:1日前的C>=O AND 成交额/V/100>1日前的C AND C
假阳赋值:1日前的C<=O AND H<1日前的O AND C<(1日前的O-C)/3+1日前的C AND 成交额/V/100<1日前的C AND C>O
当满足条件假阴时,在O和C之间画柱状线
{假阴柱}
当满足条件假阳时,在O和C之间画柱状线
{假阳}
MAI赋值:最近10日存在C上穿MCST AND (C上穿黑马线 OR C上穿龙门)
当满足条件MAI时,在L和7之间画图标
输出市值:(FINANCE(40)/100000000),NODRAW,画红色
输出股东占流通比:100*FINVALUE(244)/FINVALUE(239),NODRAW
输出历史衰退系数:100/(100-股东占流通比),NODRAW