您的位置:查股网 > 查股公式 > 通达信NB主图源码[查股公式]
股票行情消息查询:
大盘云图

通达信NB主图源码[查股公式]

2022/6/20 13:19:47

通达信NB主图源码

MA5:MA(CLOSE,5),LINETHICK2,COLORWHITE;
MA10:MA(CLOSE,10),LINETHICK2,COLORRED;
MA26:MA(CLOSE,26),LINETHICK2,COLORYELLOW;
获利%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;
DRAWTEXT_FIX(获利%>=95 AND ISLASTBAR,0.97,0.97,0,'高危'),COLORRED;
DRAWTEXT_FIX(获利%>=80 AND 获利%<95 AND ISLASTBAR,0.97,0.97,0,'风险'),COLORYELLOW;
DRAWTEXT_FIX(获利%>=50 AND 获利%<80 AND ISLASTBAR,0.97,0.97,0,'安全'),COLORGREEN;
DRAWTEXT_FIX(获利%<50 AND ISLASTBAR,0.97,0.97,0,'空头'),COLORBLUE;
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),COLOR0055FF;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),COLOR00FF00;
DP:=IF(C=INDEXC,0,1);
GJ:=AMOUNT/V/100;
【明日阻力】:L+(GJ-L)+(C-L),NODRAW;
【明日支撑】:L+(C-GJ),NODRAW;
今日阻力:REF(【明日阻力】 , 1),NODRAW;
今日支撑:REF(【明日支撑】 , 1),NODRAW;
{STICKLINE(ISLASTBAR AND DP=1 AND C>=今日阻力,今日阻力,今日阻力,30,0),COLOR0000FF;
STICKLINE(ISLASTBAR AND DP=1 AND C<今日阻力,今日阻力,今日阻力,30,0),COLOR00FF00;
STICKLINE(ISLASTBAR AND DP=1 AND C>=今日支撑,今日支撑,今日支撑,30,0),COLORFF00FF;
STICKLINE(ISLASTBAR AND DP=1 AND C<今日支撑,今日支撑,今日支撑,30,0),COLORFF0000;}
{A:=ISLASTBAR;
B:=ISLASTBAR;
D:=A-B;
E:=HHV(H,D);}
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR,【明日支撑】,'-----------------------------------'),COLOR00FFFF;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR, 【明日阻力】,'-----------------------------------'),COLORFFFFFF;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR,今日支撑,'-----------------------------------'),COLORFF00FF;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR, 今日阻力,'-----------------------------------'),COLOR33FF33;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR AND 【明日阻力】, 【明日阻力】*1.01,'明日阻力=: '),COLORFFFFFF;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR AND 今日支撑, 今日支撑*0.99,'今日支撑=:'),COLORFF33FF;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR AND 【明日支撑】, 【明日支撑】*0.99,'明日支撑=:'),COLOR00FFFF;
DRAWTEXT(C>0 AND DP=1 AND ISLASTBAR AND 今日阻力, 今日阻力*1.01,'今日阻力=:' ),COLOR33FF33;
A1:EMA(CLOSE,3),COLORLIBLUE;
A2:EMA(CLOSE,5) ,COLORLIBLUE;
A3:EMA(CLOSE,8) ,COLORLIBLUE;
A4:EMA(CLOSE,13) ,COLORLIBLUE;
A5:EMA(CLOSE,21) ,COLORLIBLUE;
A6:EMA(CLOSE,26) ,COLORLIBLUE;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)
<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)
>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);
流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;
DRAWTEXT_FIX(1,0.58,4,0,'~★~本指标特供使用~★~'),COLORFFFFFF;

相关文章列表
天天查股公式列表

股票公式分类

查股网:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红查询 股票评级报告
广告客服:315126368   843010021
天天查股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29