❶ 求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位。