上涨家数:HY_INDEXADV,NODRAW;
下跌家数:HY_INDEXDEC,NODRAW;
VAR1:=AMOUNT/VOL/100;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,5)/VAR1/100;
VAR4:=SUM(AMOUNT,13)/VAR1/100;
VAR5:=SUM(AMOUNT,34)/VAR1/100;
VAR6:=SUM(AMOUNT,120)/VAR1/100;
CYC5:=DMA(VAR2,VOL/VAR3);
CYC13:=DMA(VAR2,VOL/VAR4);
CYC34:DMA(VAR2,VOL/VAR5),COLORRED;
CYC0:=DMA(VAR2,VOL/VAR6),COLORYELLOW;
MA5:="MAA引用.MA1#DAY";
ZG:="MAA引用.MA2#DAY";
ZD:="MAA引用.MA3#DAY";
DRAWTEXT_FIX(1,0.00.01,0.00,0,STRCAT(STRCAT('昨最高: ',CON2STR(ZG,2)),'元')),COLORRED;
DRAWTEXT_FIX(1,0.00.01,0.10,0,STRCAT(STRCAT('昨最低: ',CON2STR(ZD,2)),'元'));
DRAWTEXT_FIX(1,0.00.01,0.20,0,STRCAT(STRCAT('五日均: ',CON2STR(MA5,2)),'元'))COLORLICYAN;
=======================================================================
需另建一个指标名为“MAA引用”的引用指标
MA1:MA(C,5);
MA2:REF(H,1);
MA3:REF(L,1);