❶ 求K线图 和 VOL图的公式源码
主图:
STICKLINE(C>=O,H,L,0,1), COLORred;
STICKLINE(C>=O,C,O,6,1), COLORred;
STICKLINE(C< O,H,L,0,0), ColorFFFF00;
STICKLINE(C< O,C,O,6,0),ColorFFFF00;
VOL图
VOL,VOLSTICK;
MA1:MA(VOL,5),colorwhite;
MA2:MA(VOL,10),coloryellow;
MA3:MA(VOL,20),colorff00ff;
K线图(Candlestick Charts)又称蜡烛图、日本线、阴阳线、棒线、红黑线等,常用说法是“K线”。它是以每个分析周期的开盘价、最高价、最低价和收盘价绘制而成。
❷ 缠论主图通达信指标公式源码
搜索缠论选股缠论工具包
❸ 倍量柱主图指标源码怎么设置
1、首先,打开纸标源码,按ctrl+f调出公式管理器,点击新建。
2、其次,按照图中红色文字提示操作,点击测试通过。
3、最后,通过后确定保存即可。
❹ 悬赏高人写一个可以显示即时涨跌股票信息的通达信公式
您好。在自定义主图指标添加如下源码即可:
AAA1:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0));
AAA2:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,AAA1),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,AAA2),COLORGREEN;
由于通达信不是全推行情,数据不能时时写盘,所以无法支持其它涨跌幅实时数据显示,还请了解。
祝投资顺利 。
❺ 请高手编一个:能显示所属板块指标的通达信主图公式,谢谢!
{说明:通达信最新版可用}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
HH:=CONST(HHV(H,160));
LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}
HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));
HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));
HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));
HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));
HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));
HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24));
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;
DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF;
DRAWTEXT_FIX(1,0.80,HL1,0,'股本:');
DRAWNUMBER_FIX(1,0.84,HL1,0,CONST(FINANCE(1)/100000000));
DRAWTEXT_FIX(1,0.80,HL2,0,'流通:');
DRAWNUMBER_FIX(1,0.84,HL2,0,CONST(FINANCE(7)/100000000));
DRAWTEXT_FIX(1,0.80,HL3,0,'动PE:');
DRAWNUMBER_FIX(1,0.84,HL3,0,CONST(DYNAINFO(39)));
DRAWTEXT_FIX(1,0.80,HL4,0,'换手:');
DRAWNUMBER_FIX(1,0.84,HL4,0,CONST(DYNAINFO(37)*100));
DRAWTEXT_FIX(1,0.80,HL5,0,'量比:');
DRAWNUMBER_FIX(1,0.84,HL5,0,CONST(DYNAINFO(17)));
DRAWTEXT_FIX(1,0.80,HL6,0,'涨幅:');
DRAWNUMBER_FIX(1,0.84,HL6,0,CONST(DYNAINFO(14)*100)),COLORFF00FF;
DRAWNUMBER_FIX(1,0.84,HL6,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO(14)*100),DRAWNULL))COLOR00FF00;
❻ 只是在主图上显示涨停的K线,不涨停的不显示,如何编写呢通达信的主图指标
涨停k线显示黄色,
如果不想显示可线可以用下面指标,在只显示收盘线.
效果如图.
STICKLINE(C/REF(C,1)>1.097 AND C=H,H,L,0,0),COLORYELLOW;
STICKLINE(C/REF(C,1)>1.097 AND C=H,C,O,2,0),COLORYELLOW;
或者用下面代码,涨停显示黄色,不涨停显示黑色.
STICKLINE(C/REF(C,1)>1.097 AND C=H,H,L,0,0),COLORYELLOW;
STICKLINE(C/REF(C,1)>1.097 AND C=H,C,O,3,0),COLORYELLOW;
STICKLINE(NOT(C/REF(C,1)>1.097 AND C=H),H,L,1,0),COLORBLACK;
STICKLINE(NOT(C/REF(C,1)>1.097 AND C=H),C,O,3,0),COLORBLACK;
❼ 通达信主图公式 左下方显示今天实体涨幅(数字)
A:=(C/O-1)*100;
B:=(O/C-1)*100;
DRAWNUMBER((A>0 OR B>0 )AND ISLASTBAR=1,H*1.01,A),COLORYELLOW;
在设置公式时,显示小数选择固定2位。