源码
n:=5;
Var1:=SUM(CLOSE-REF(CLOSE,1),7);
Var2:=SUM(Var1-REF(Var1,1),3);
Var3:=SUM(Var2-REF(Var2,1),2);
Var4:=(Var1+Var2+Var3)/3;
Var5:=EMA(Var4,1);
Var6:=EMA(Var4,3);
Var7:=EMA(Var4,7);
Var8:=EMA(Var4,21);
SM: SUM(Var4,0);
DM1: DMA(SM,CLOSE/Var5);
DM2: DMA(SM,CLOSE/Var6);
DM3: DMA(SM,CLOSE/Var7), COLORRED;
DM4: DMA(SM,CLOSE/Var8),COLORGREEN;
江恩线:EMA(CLOSE,144), ;
Var2C:=MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5);
Var2D:=5;
Var2F:=CROSS(Var2C,Var2D);
DRAWICON(Var2F,LOW-LOW*1/100,3);
DRAWICON(Var2F AND CLOSE>EMA(CLOSE,144),LOW-LOW*1/100,1);
DRAWTEXT(Var2F AND CLOSE
cb:=(HIGH+LOW+CLOSE)/3,LINETHICK0;
cb1:=((ref(cb,1)+ref(cb,2))/2*0.618+cb*0.382),LINETHICK0;
卖预测值:FORCAST(h,n),SHIFT0;
卖估算值:cb1+STD(h,n),SHIFT0;
估算成本:cb1,SHIFT0;
买估算值:cb1-STD(l,n),SHIFT0;
买预测值:FORCAST(l,n),SHIFT0;