改编金龙喜舞(牵引线、趋势关注、量价关注)
【通达信】改编金龙喜舞(牵引线、趋势关注、量价关注)-指标公式源码
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR22:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR32:=(VAR1+VAR22)/2;
VAR42:=EMA(VAR32,30);
VAR52:=EMA(VAR32,60);
VAR62:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR42>REF(VAR42,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(50,110,60));
牵引线:VAR1,COLORYELLOW;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR62,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR32,VAR52) AND VAR62,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR32>VAR52 AND VAR62,1,0),NODRAW,COLORYELLOW;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
牛: EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4),COLORRED;
草: EMA(0.667*REF(牛,1)+0.333*牛,2),COLORGREEN;
VAR6:=(HHV(HIGH,4)-VAR2)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;
VAR7:=(VAR2-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
VAR8:=SMA(VAR7,2,1);
顶:80,COLORLIMAGENTA;
黄山:SMA(VAR8,2,1),COLORYELLOW,LINESTICK;
倒影:SMA(VAR6,4,1),COLORFF9999,LINESTICK;
地平线:12,COLORWHITE;
短进:IF(CROSS(牛,草) AND 牛<50 AND 29<牛,50,0),COLORLIRED,STICK,LINETHICK3 ;
短出:IF(CROSS(草,牛) AND 牛>40 AND 71>牛,50,0),COLORCYAN, STICK,LINETHICK3 ;
低吸:IF(CROSS(牛,草) AND 牛<30,-30,0),COLORRED , STICK,LINETHICK3;
逢高减磅:IF(CROSS(草,牛) AND 牛>70,-30,0),COLORGREEN, STICK,LINETHICK3 ;
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5)*100;
VARB:=EMA(EMA(VAR9,10),10)/EMA(EMA(ABS(VAR9),10),10)*100;
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20)*100;
卖出:IF(VARA>0 AND CROSS(VARC,VARA),-40,0),STICK ,COLORLIGRAY;
- 上一篇公式:胜龙快枪手(底买入、顶区)
- 下一篇公式:财神KDJ(买点)