手机端
当前位置:爱约股 > 公式技巧 > 把金龙喜舞和分时指标底部指标合并成一个指标

把金龙喜舞和分时指标底部指标合并成一个指标

请老师帮忙把这两个指标合并成一个指标,方便看分时用,两个指标的图形合成一个显示. 真的非常需要帮忙,请会的大大们务秘帮忙编个出来. 下面是源码: 金龙喜舞: {金龙喜舞} QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2; VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2; VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2; VAR3:=(VAR1+VAR2)/2; VAR4:=EMA(VAR3,30); VAR5:=EMA(VAR3,60); VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5); DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30)); 牵引线:VAR1,COLORYELLOW; 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED; 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE; 冲击量:IF(VAR3>VAR5 AND VAR6,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:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200*10; 能量: SMA(VAR2,5,1),COLORRED; STICKLINE(能量>REF(能量,1),0,能量,4,0),COLORRED; STICKLINE(能量OPEN,VAR3*(HIGH-LOW),IF(CLOSEOPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSEOPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSEOPEN,VAR3*(HIGH-LOW),IF(CLOSE0 AND VAR71.07,300,200),COLORFFFF00,POINTDOT;

爱约股解答:

QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;    

VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;    

VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;    

VAR3:=(VAR1+VAR2)/2;    

VAR4:=EMA(VAR3,30);    

VAR5:=EMA(VAR3,60);    

VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);    

DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));    

牵引线:VAR1,COLORYELLOW;    

趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;    

量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;    

冲击量:IF(VAR3>VAR5 AND VAR6,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;

 

VAR22:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;      

能量:SMA(VAR22,5,1),COLORRED,NODRAW;

AA:=CONST((HHV(VAR1,0)+LLV(VAR1,0))/2);

CC:=CONST(HHV(VAR1,0));

EE:=(CC-AA)*(能量/100);

STICKLINE(能量>REF(能量,1),AA+EE,AA,0,0),COLORRED;

STICKLINE(能量<REF(能量,1),AA+EE,AA,0,0),COLORFF0000;

危险区:90,COLOR208FFF,NODRAW;      

次险区:75,COLORFF33FF,NODRAW;

NOTEXT1:AA+(CC-AA)*0.9,COLOR208FFF;

NOTEXT2:AA+(CC-AA)*0.75,COLORFF33FF,POINTDOT;

VAR33:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));      

VAR44:=(IF(CLOSE>OPEN,VAR33*(HIGH-LOW),IF(CLOSE<OPEN,VAR33*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR33*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR33*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR33*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR33*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR33*(HIGH-LOW),IF(CLOSE<OPEN,VAR33*(HIGH-OPEN+CLOSE-LOW),VOL/2)));      

VAR55:=AMOUNT/(100*VOL);      

VAR66:=MA(VAR55,40);      

VAR77:=100*(CLOSE-VAR66)/VAR66;      

底部区:IF(VAR44>0 AND VAR77<-12 AND CLOSE/OPEN>1.07,AA+(CC-AA),AA),COLORFFFF00,POINTDOT;

TAG:
分享至:

相关推荐