通达信龙虎榜主图易鸣龙虎榜公式
BOLL1:=MA(C,20);
顶部:=BOLL1+2*STD(CLOSE,20);
底部:=BOLL1-2*STD(CLOSE,20);
{股票指标网WWW.}
DRAWBAND(顶部,RGB(35,35,35),底部,RGB(25,25,25));
DRAWKLINE(H,O,L,C);
DRAWBAND(BOLL1,RGB(155,155,155),BOLL1,RGB(155,25,25));
布林线:IF(ISLASTBAR,BOLL1,DRAWNULL),COLORRED,CIRCLEDOT;
ZT:=C>=REF(C,1)*1.097 AND NOT(C>=REF(C,1)*1.097 AND C=O AND H=L) AND BARSCOUNT(CLOSE)>2;
HS:=V/CAPITAL*100>=20 AND BARSCOUNT(CLOSE)>2;
振幅:(H-L)/REF(C,1)*100>15 AND BARSCOUNT(CLOSE)>2;
ZFPL:=C/REF(C,1)>1.08 AND NOT(C>=REF(C,1)*1.097 AND C=O AND H=L) AND BARSCOUNT(CLOSE)>2;
DFPL:=REF(C,1)/C<=1.08;
DRAWTEXT(ZT,H,'<---涨停'),COLORMAGENTA;
DRAWTEXT(HS,L*1.05,'<---换手20%'),COLORYELLOW;
DRAWTEXT(振幅,L*1.02,'<---震幅15%'),COLORGRAY;
DRAWTEXT(ZFPL,H*0.98,'<---涨幅7%'),COLORRED;
DRAWTEXT(NOT(DFPL) AND BARSCOUNT(CLOSE)>2,L,'<---跌幅7%'),COLORGREEN;
{股票指标网WWW.}
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,' ');
DRAWTEXT_FIX(ISLASTBAR,0,5,0,STRCAT(Z4,GNBLOCK)),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
BOLL1赋值:C的20日简单移动平均
顶部赋值:BOLL1+2*收盘价的20估算标准差
底部赋值:BOLL1-2*收盘价的20估算标准差
{股票指标网WWW.}
DRAWBAND(顶部,RGB(35,35,35),底部,RGB(25,25,25))
DRAWKLINE(H,O,L,C)
DRAWBAND(BOLL1,RGB(155,155,155),BOLL1,RGB(155,25,25))
如果ISLASTBAR返回BOLL1否则返回DRAWNULL
ZT赋值:C>=1日前的C*1.097 AND NOT(C>=1日前的C*1.097 AND C=O AND H=L) AND 收盘价的有效数据周期数>2
HS赋值:V/当前流通股本*100>=20 AND 收盘价的有效数据周期数>2
输出振幅:(H-L)/1日前的C*100>15 AND 收盘价的有效数据周期数>2
ZFPL赋值:C/1日前的C>1.08 AND NOT(C>=1日前的C*1.097 AND C=O AND H=L) AND 收盘价的有效数据周期数>2
DFPL赋值:1日前的C/C<=1.08
当满足条件ZT时,在H和'<---涨停'位置书写文字
当满足条件HS时,在L*1.05和'<---换手20%'位置书写文字
当满足条件振幅时,在L*1.02和'<---震幅15%'位置书写文字
当满足条件ZFPL时,在H*0.98和'<---涨幅7%'位置书写文字
DRAWTEXT(NOT(DFPL) AND 收盘价的有效数据周期数>2,L,'<---跌幅7%'),画绿色
{股票指标网WWW.}
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,FGBLOCK)
Z3赋值:STRCAT(Z2,DYBLOCK)
Z4赋值:STRCAT(Z3,' ')
DRAWTEXT_FIX(ISLASTBAR,0,5,0,STRCAT(Z4,GNBLOCK)),画黄色