网友求助:

MM1:=EMA(C,3);
MM2:=EMA(C,25);

D3×3:MM1,shift3,COLORC08000,LINETHICK1;
D25×5:MM2,shift5,COLORRED,LINETHICK1;

A1:=HHV(HIGH,N);
A2:=LLV(LOW,N);
A3:=(A1-A2)*0.618+A2;
A4:=(A1-A2)*0.5+A2;
A5:=(A1-A2)*0.382+A2;
PD:=ISLASTBAR;
最高:A1,COLORFF8080;
最低:A2,COLORFF8080;
F3:A3,COLOR808080,LINEDOT;
F4:A4,COLOR808080,LINEDOT;
F5:A5,COLOR808080,LINEDOT;

DRAWNUMBER(PD,最高,最高,2),COLORFF8080,ALIGN0;
DRAWNUMBER(PD,最低,最低,2),COLORFF8080,ALIGN0;
DRAWNUMBER(PD,F3,F3,2),COLOR808080,ALIGN0;
DRAWNUMBER(PD,F4,F4,2),COLOR808080,ALIGN0;
DRAWNUMBER(PD,F5,F5,2),COLOR808080,ALIGN0;
 

 

 

解答如下:

MM1:=EMA(C,3);
MM2:=EMA(C,25);

D3×3:REF(MM1,2),COLORC08000,LINETHICK1;
D25×5:REF(MM2,4),colorred,LINETHICK1;

A1:=HHV(HIGH,N);
A2:=LLV(LOW,N);
A3:=(A1-A2)*0.618+A2;
A4:=(A1-A2)*0.5+A2;
A5:=(A1-A2)*0.382+A2;
PD:=ISLASTBAR;
最高:A1,COLORFF8080;
最低:A2,COLORFF8080;
F3:A3,COLOR808080,DOTLINE;
F4:A4,COLOR808080,DOTLINE;
F5:A5,COLOR808080,DOTLINE;

DRAWNUMBER(PD,最高,最高),COLORFF8080;
DRAWNUMBER(PD,最低,最低),COLORFF8080;
DRAWNUMBER(PD,F3,F3),COLOR808080;
DRAWNUMBER(PD,F4,F4),COLOR808080;
DRAWNUMBER(PD,F5,F5),COLOR808080;