通达信 量价趋势副图源码
A:=EMA(EMA(AMOUNT/10000000,5),10);
N1:=A;
最高:N1,LINETHICK1;
最低:N1,LINETHICK1;
收盘:N1,LINETHICK1;
开盘:REF(收盘,1),LINETHICK1;
均量10:=MA(A,10);
B:=收盘>开盘;
D:=收盘<开盘;
F:=EMA(EMA(C,5),10);
N2:=F;
收盘1:=N2;
开盘1:=REF(收盘1,1);
G:=收盘1>开盘1;
I:=收盘1<开盘1;
DRAWTEXT_FIX(1,0.9,0.42,0,'【量价趋势】'),COLORYELLOW;
DRAWTEXT_FIX(收盘1>开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价涨'),COLORRED;
DRAWTEXT_FIX(收盘1<开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价跌'),COLORGREEN;
DRAWTEXT_FIX(收盘>开盘 AND ISLASTBAR,0.91,0.58,0 ,'量增'),COLORMAGENTA;
DRAWTEXT_FIX(收盘<开盘 AND ISLASTBAR,0.91,0.58,0 ,'量缩'),COLORLIRED;
K:=B AND G;
P:=D AND G;
高:=REF(HHV(N1,130),3);
上部:REFDATE(高,DATE),COLORWHITE,LINETHICK1;
STICKLINE(K,上部,上部*1.05,4,0),COLOR3333FF;
STICKLINE(P,上部,上部*1.05,4,0),COLOR3CFFFF;
DRAWBAND(开盘,RGB(0,255,100),最高,RGB(255,00,100));
DRAWTEXT_FIX(1,0.29,0.1,0,'上部红色为价涨量升,上升趋势;'),COLOR3333FF;
DRAWTEXT_FIX(1,0.485,0.1,0,'黄色为价跌量减,量价背离,注意顶部!'),COLOR3CFFFF;
DRAWTEXT_FIX(1,0.35,0.25,0,'没有标记的区域包括放量下跌和无量阴跌,都不参与'),COLOR66FF33
- 上一篇公式:通达信精准次日涨停源码
- 下一篇公式:通达信宝塔镇河妖主图指标