九毛八公式指标
老师帮忙改写的通达信指标,还有些差别,再请劳神一下! 原指标代码,分析家公式: 参数:N 缺省75 最小1 最大250 步长1 Var1:=3*SMA((CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*100,20,1),15,1); Var2:=3*SMA((OPEN-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*100,20,1),15,1); Var3:=100-Var2; Var4:=100-Var1; Var5:=REF(CLOSE,1); Var6:=100*VOL/CAPITAL*10; STICKLINE(Var4Var7,(-1)*Var4,(-1)*Var3,Var6,1), , [00010001]; STICKLINE(Var4>=REF(Var3,1),(-1)*Var4,(-1)*Var3,Var6,1), , [00010001]; FORCAST((-1)*Var3,21); -100; 0; -70; 老师盖通达信版本后还有色彩的差别,在求助
公式模块:
N :=75;
VAR1:=3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,20,1),15,1); VAR2:=3*SMA((OPEN-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,20,1),15,1); VAR3:=100-VAR2; VAR4:=100-VAR1; VAR5:=REF(CLOSE,1); VAR6:=100*vol/CAPITAL*10; STICKLINE(VAR4<REF(VAR3,1),(-1)*VAR4,(-1)*VAR3,VAR6,1),COLORWHITE; VAR7:=MA(VAR3,3); STICKLINE((-1)*VAR4>VAR7,(-1)*VAR4,(-1)*VAR3,VAR6,1),COLORWHITE; STICKLINE(VAR4>=REF(VAR3,1),(-1)*VAR4,(-1)*VAR3,VAR6,1),COLORMAGENTA; FORCAST((-1)*VAR3,21),COLORGREEN; -100,COLORGRAY; 0,COLORBLUE; -70,COLORMAGENTA;