把以下二指标叠加成一个
2020/1/15 18:35:20
公式编写说明:
指标一:VAR1:=AMOUNT/VOL/100; VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,34)/VAR1/100;VAR4:=DMA(VAR2,VOL/VAR3); AA:100*(C-VAR4)/VAR4; BB:MA(AA,13)+STDP(AA,13);指标二:换手:=100*V/CAPITAL; STICKLINE(c>ref(c,1),v,0,7,1),color330099;STICKLINE(换手>8,v/2.5,0,6.9,0),COLORgreen;STICKLINE(c<=ref(c,1),v,0,7,1),COLORbbbbbb;量:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);均差: EMA(量,7) - EMA(量,19);
公式源码示例:
VAR1:=AMOUNT/VOL/100;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,34)/VAR1/100;
VAR4:=DMA(VAR2,VOL/VAR3);
AA:100*(C-VAR4)/VAR4,LAYER0;
BB:MA(AA,13)+STDP(AA,13),LAYER0;
S1:=(HHVALL(AA)-LLVALL(AA));
S2:=(HHVALL(AA)-LLVALL(AA))/HHVALL(V);
S3:=LLVALL(AA);
换手:=100*V/CAPITAL;
量:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
STICKLINE(c>ref(c,1),S3,S3+V*S2,7,1),color330099;
STICKLINE(换手>8,S3,S3+(v/2.5)*S2,6.9,0),COLORgreen;
STICKLINE(c<=ref(c,1),S3,S3+v*S2,7,1),COLORbbbbbb;
均差:EMA(量,7) - EMA(量,19),COLORGREEN,LINETHICK0;
POLYLINE(C>0,均差*S2+S3),COLORGREEN;
看股吧 公式 www.kanguba .com
其它股票公式列表