通达信开叉涨彩色K线副图/选股预警指标公式副图源码
开叉涨彩色K线主图,图形简单明了,只有黄绿两条线,绿线分叉以后变成两条黄线。为了选股方便,我编写了副图和选股公式。
X_4:=CLOSE*VOL;
X_5:=EMA((EMA(X_4,3)/EMA(VOL,3)+EMA(X_4,6)/EMA(VOL,6)+EMA(X_4,12)/EMA(VOL,12)+EMA(X_4,24)/EMA(VOL,24))/4,13);
X_6:=1.06*X_5;
X_7:=EMA(X_6-(EMA(CLOSE,3)-X_6),5);
AAK:=IF(X_7 =X_6,X_7,X_6);
X_8:=2*X_6-AAK;
AAA:=IF(X_8 =X_6,X_8,X_6);
XG:REF(AAK,1)=REF(AAA,1) AND AAA