通信达公式编写 通达信越红越好副图指标公式(3)
DRAWICON(多1,50,13);
DRAWICON(CROSS(多空,空方),50,23);
DRAWICON(多2,50,14);
多空金叉:=多1,NODRAW;
DRAWTEXT(ISLASTBAR=1,IF(多1,45,45),'-多空'),COLORCYAN;
AB1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
AB2:=SMA(AB1,9,1)+100;
AB3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
AB4:=SMA(AB3,3,1);
AB5:=SMA(AB4,9,1)+100;
波段:AB5-AB2, COLORGREEN,NODRAW;
波段1:=波段>=REF(波段,1);
波段2:=波段<REF(波段,1);
DRAWICON(波段1,40,15);
DRAWICON(波段2,40,2);
机构金叉:=波段1,NODRAW;
DRAWTEXT(ISLASTBAR=1,IF(波段1,35,35),'-波段'),COLORCYAN;
成交量:VOL,COLORBROWN,NODRAW;
F1:=成交量>=REF(成交量,5);
F2:=成交量<REF(成交量,5);
DRAWICON(F1,30,1);
DRAWICON(F2,30,2);
成交量金叉:=F1,NODRAW;
DRAWTEXT(ISLASTBAR=1,IF(F1,25,25),'-成交量'),COLORCYAN;
量比:=IF(ISLASTBAR,(VOL/FROMOPEN)/(SUM(REF(VOL,1),5)/(240*5)),VOL/MA(REF(VOL,1),5))*5,NODRAW;
H1:=量比>=REF(量比,1);
H2:=量比<REF(量比,1);
DRAWICON(H1,20,1);
DRAWICON(H2,20,2);
量比金叉:=H1,NODRAW;
DRAWTEXT(ISLASTBAR=1,IF(H1,15,15),'-量比'),COLORCYAN;
LC:=REF(CLOSE,1),NODRAW;
(股票知识网zhishi.southmoney.com)