一目了然看两市涨跌-精品通达信指标公式源码分享
沪涨家:"SH999999$ADVANCE",COLORRED,NODRAW;
沪跌家: "SH999999$DECLINE",COLORGREEN,NODRAW;
深涨家:"SZ399001$ADVANCE",COLORRED,NODRAW;
深跌家: "SZ399001$DECLINE",COLORGREEN,NODRAW;
总涨家:"SZ399001$ADVANCE"+"SH999999$ADVANCE",COLORRED,NODRAW;
总跌家:"SZ399001$DECLINE"+"SH999999$DECLINE",COLORGREEN,NODRAW;
涨占比%:总涨家/(总涨家+总跌家)*100,COLORMAGENTA,NODRAW;
VAR1:=SMA(AMOUNT,10,1)/1000000;
VAR2:=REF(VAR1,1);
VAR3:=MA(REF(CLOSE,1),5);
最高:=VAR1*HIGH/VAR3*1/10,POINTDOT,COLOR009900,COLORGRAY;
最低:=VAR1*LOW/VAR3*1/10,POINTDOT,COLOR009900,COLORYELLOW;
开盘:=VAR1*OPEN/VAR3*1/10,POINTDOT,COLOR009900,COLORMAGENTA;
收盘:VAR1*CLOSE/VAR3*1/10,COLOR009900,COLORWHITE,POINTDOT;
生命线:EMA(收盘,12),COLORYELLOW;
昨收盘:=REF(收盘,1),POINTDOT,COLOR009900,LINETHICK0;
涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;
STICKLINE(收盘>开盘,收盘,开盘,3,0),COLORRED;
STICKLINE(收盘>开盘,最高,MAX(收盘,开盘),0,1),COLORRED;
STICKLINE(收盘>开盘,MIN(收盘,开盘),最低,0,1),COLORRED;
STICKLINE(收盘<开盘,收盘,开盘,2,0),COLORGREEN;
STICKLINE(收盘<开盘,最高,MAX(收盘,开盘),0,1),COLORGREEN;
STICKLINE(收盘<开盘,MIN(收盘,开盘),最低,0,1),COLORGREEN;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!