同花顺红塔AB线副图指标 源码介绍
同花顺红塔AB线副图指标 源码
红柱为多,绿柱为空,轴线上穿柱图时为多,反之轴线下穿柱图则为空,B.买s.卖,增加AB趋势双线。本指标简单易懂。
方向线:=SMA(V,10,1)/300000;
T:=MA(方向线,5);
STICKLINE(T>REF(T,1) ,T ,REF(T,1),8 ,0 ),colorred,linethick1;
STICKLINE(T<=REF(T,1) ,T,REF(T,1) ,8 ,0 ),colorgreen,linethick1;
轴线: EMA(方向线,4),colorred,linethick1;
A:EMA (方向线,15),COLORff00ff,linethick1;
B:IF(方向线<0,0,MA(A,4,1)),colorblue,linethick1;
DRAWTEXT(CROSS(轴线,T),轴线-5,'B'),colorwhite;
DRAWTEXT(CROSS(T,轴线),轴线+5,'S'),colorliblue;
gd49018