网友求助:

N:=9;
M:=3;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,34);
BB:=HHV(HIGH,34);
CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
DD:EMA(0.667*REF(CC,1)+0.333*CC,2),POINTDOT,COLORFFFFFF,LINETHICK1;
OO:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*80;
EE:3.4*SMA(OO,M,1)-2.1*SMA(SMA(OO,M,1),M,1),POINTDOT,COLORFFFFFF;
DRAWBAND(CC,RGB(247,255,0),EE,RGB(247,0,13));
DRAWBAND(CC,RGB(0,155,0),OO,RGB(155,0,0));
XG:=EE<30 AND EE<DD AND V>REF(V,1)*1.3;
DRAWICON((XG),EE*0.98,1);
 

 

解答如下:

N:=9;
M:=3;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,34);
BB:=HHV(HIGH,34);
CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
DD:EMA(0.667*REF(CC,1)+0.333*CC,2),POINTDOT,COLORFFFFFF,LINETHICK1;
OO:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*80;
EE:3.4*SMA(OO,M,1)-2.1*SMA(SMA(OO,M,1),M,1),POINTDOT,COLORFFFFFF;
fillrgn(CC,EE,CC>EE,RGB(247,255,0),CC<EE,RGB(247,0,13));
fillrgn(CC,OO,CC>OO,RGB(0,155,0),CC<OO,RGB(155,0,0));
XG:=EE<30 AND EE<DD AND V>REF(V,1)*1.3;
DRAWICON((XG),EE*0.98,7);