【通达信源码分享】精品指标公式-黄珠买蓝珠卖
{副图源码}
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
IF(VAR2,10,DRAWNULL),COLORGREEN,LINETHICK9;
黄珠买: IF(VAR2>VAR3,10,DRAWNULL), COLORYELLOW,LINETHICK9;
蓝珠卖: IF(VAR2<VAR3,10,DRAWNULL),COLORBLUE,LINETHICK9;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORYELLOW;
D:SMA(K,3,1),COLORBLUE;
{主图源码}
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA60:MA(C,60);
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
黄珠买: IF(VAR2>VAR3,VAR2,DRAWNULL), POINTDOT,LINETHICK8, COLORYELLOW;
蓝珠卖: IF(VAR2<VAR3,VAR3,DRAWNULL),POINTDOT,LINETHICK8, COLORBLUE;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!