麻烦老师把第二个公式中的买卖合并到第一个公式中,谢谢
MA05:MA(C,5),LINETHICK3,COLOR00CCFF;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
AMOUNT:=AVPRICE*V*100;
五日乖离率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
IF(BB05>30 AND MA05>REF(MA05,1), MA05,NULL),LINETHICK3,COLORGRAY;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
IF(BB05<0 AND MA05<REF(MA05,1), MA05,NULL),LINETHICK3,COLORYELLOW;
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,1)-1)*100) *180/3.1416;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MVX:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
压力线:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;
支撑线:MA(REF(LLV(C,30),1),2),COLORABFF46;
至尊:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
顺势:SMA(至尊,5,1),COLORRED,NODRAW;
而为:SMA(顺势,3,1),COLORGREEN,NODRAW;
高抛:IFELSE(CROSS(而为,顺势) AND 顺势>70,80,90),COLORGREEN,LINETHICK2;
低吸:IFELSE(CROSS(顺势,而为) AND 而为<25,20,10),COLORRED,LINETHICK2;
N1:=BARSLAST(CROSS(顺势>REF(顺势,1)&&而为>REF(而为,1),0.5))+1;
N2:=BARSLAST(CROSS(顺势<REF(顺势,1)&&而为<REF(而为,1),0.5))+1;
DRAWTEXT(CROSS(顺势>REF(顺势,1)&&而为>REF(而为,1),0.5)&&COUNT(CROSS(顺势>REF(顺势,1)&&而为>REF(而为,1),0.5),N2)=1,L,'买'),VALIGN0;
DRAWTEXT(CROSS(顺势<REF(顺势,1)&&而为<REF(而为,1),0.5)&&COUNT(CROSS(顺势<REF(顺势,1)&&而为<REF(而为,1),0.5),N1)=1,H,'卖');
(来源:文华财经)