N:=21;
天线: 90;
地线: 10;
中线: 50;
Var1:=(HIGH+LOW+CLOSE)/3;
Var2:=IF(YEAR>=20100 AND MONTH>2,0,1);
Var3:=LLV(Var1,N);
Var4:=HHV(Var1,N);
Var5:=EMA((Var1-Var3)/(Var4-Var3)*100,3)*Var2;
Var6:=EMA(0.618*REF(Var5,1)+0.382*Var5,2);
Var7:=SMA(Var6,2,1);
Var8:=SMA(REF(Var6,1),2,1);
Var9:=SMA(REF(Var6,2),2,1);
Var7;
Var9;
STICKLINE(Var7>Var9 AND Var8>=Var9,Var7,Var9,4,0),colorf00ff0 ;
STICKLINE(Var7<Var9 AND Var8<=Var9,Var7,Var9,4,0),colorf0f000 ;