把金龙喜舞和分时指标底部指标合并成一个指标
2019/12/5 18:02:58
公式编写说明:
请老师帮忙把这两个指标合并成一个指标,方便看分时用,两个指标的图形合成一个显示.真的非常需要帮忙,请会的大大们务秘帮忙编个出来.下面是源码:金龙喜舞:{金龙喜舞} 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(能量<REF(能量,1),0,能量,4,0),COLORFF0000; 危险区:1800,COLOR208FFF; 次险区:1500,COLORFF33FF, POINTDOT; VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))); VAR5:=AMOUNT/(100*VOL); VAR6:=MA(VAR5,40); VAR7:=100*(CLOSE-VAR6)/VAR6; 底部区: IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.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;
看股 吧公式 www.kang uba.com
其它股票公式列表