牛熊线-精品通达信指标公式源码分享
顶部:STICKLINE(C,75,75,0.5,0.5),COLOR3C3CFF;
底部:STICKLINE(C,25,25,0.5,0.5),COLORCYAN;
均价:=(HIGH+LOW+CLOSE)/3;
VAR1:=LLV(LOW,12);
VAR2:=HHV(HIGH,5);
快线:=EMA((均价-VAR1)/(VAR2-VAR1)*100,4);
慢线:=EMA(0.667*REF(快线,1)+0.333*快线,2);
转点:=IF(快线>慢线,1,0);
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
N:=28;
个股LC:=REF(均价,1);
个股牛熊:SMA(MAX(均价-个股LC,0),N,1)/SMA(ABS(均价-个股LC),N,1)*100,COLORWHITE;
DRAWBAND(个股牛熊,RGB(155,50,50),50,RGB(0,100,50));
LC:=REF(大盘均价,1);
大盘牛熊:SMA(MAX(大盘均价-LC,0),N,1)/SMA(ABS(大盘均价-LC),N,1)*100,COLORYELLOW;
长线转强:IF(个股牛熊>50,个股牛熊,DRAWNULL),COLORRED;
长线转弱:IF(个股牛熊<50,个股牛熊,DRAWNULL),COLORGREEN;
STICKLINE(转点=1,50,50,2,0),COLORYELLOW;
STICKLINE(转点=0,50,50,2,0),COLORCYAN;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!