九毛八公式指标
公式模块:
均价:=(2*C+(H-L)/2+L+o)/4;
价差:=SUM(均价-REF(均价,1),2)/2;
实价:=(均价+价差);
m8:=MA(实价,8);
MM:=EMA(均价+价差,64);
xm:=EMA(均价,64);
I0:=(Ema(MM,3)+Ema(MM,6)+EMA(MM,12)+EMA(MM,24))/4;
I1:=(Ema(xm,3)+Ema(xm,6)+EMA(xm,12)+EMA(xm,24))/4;
牛熊线:=0.5*(I0+I1);
半年均价:=REF(均价,BArslAST(MOD(MONTH,6)=0)-1);
年均价:=REF(均价,BARSLAST(MOD(MONTH,12)=0)-1);
bov:=SUM(IF(实价>均价,vol,IF(实价<均价,-VOL,0)),0);
mn:=ma(MA(ma(BOV,8),8),2);
ST:=IF(bov>0,bov/MN*100,ABS(bov)/ABS(MN)*100);
JgV:=(8*v+7*REF(v,1)+6*REF(v,2)+5*REF(v,3)+4*REF(v,4)+3*REF(v,5)+2*REF(v,6)+1*REF(v,7))/(8+7+6+5+4+3+2+1);
MMV:=EMA(V,64);
xmV:=EMA(JgV,64);
IV0:=(Ema(MMV,3)+Ema(MMV,6)+EMA(MMV,12)+EMA(MMV,24))/4;
IV1:=(Ema(xmV,3)+Ema(xmV,6)+EMA(xmV,12)+EMA(xmV,24))/4;
生命:=0.5*(IV0+IV1);
中线买:crOSS(c,半年均价)AND 半年均价=年均价 AND ALL(半年均价=REF(年均价,1),3)AND V>生命 AND ST>REF(st,1),COLORMAGENTA;
启动:COUNT(实价<牛熊线,5)<=4 AND 实价/牛熊线>1.004 AND CROSS(m8,牛熊线) AND 牛熊线>=REF(牛熊线,1),COLORRED;
均价:=(2*C+(H-L)/2+L+O)/4;
价差:=SUM(均价-REF(均价,1),2)/2;
实价:=(均价+价差);
M8:=MA(实价,8);
MM:=EMA(均价+价差,64);
XM:=EMA(均价,64);
I0:=(EMA(MM,3)+EMA(MM,6)+EMA(MM,12)+EMA(MM,24))/4;
I1:=(EMA(XM,3)+EMA(XM,6)+EMA(XM,12)+EMA(XM,24))/4;
牛熊线:=0.5*(I0+I1);
半年均价:=REF(均价,BARSLAST(MOD(MONTH,6)=0)-1);
年均价:=REF(均价,BARSLAST(MOD(MONTH,12)=0)-1);
BOV:=SUM(IF(实价>均价,VOL,IF(实价<均价,-VOL,0)),0);
MN:=MA(MA(MA(BOV,8),8),2);
ST:=IF(BOV>0,BOV/MN*100,ABS(BOV)/ABS(MN)*100);
JGV:=(8*V+7*REF(V,1)+6*REF(V,2)+5*REF(V,3)+4*REF(V,4)+3*REF(V,5)+2*REF(V,6)+1*REF(V,7))/(8+7+6+5+4+3+2+1);
MMV:=EMA(V,64);
XMV:=EMA(JGV,64);
IV0:=(EMA(MMV,3)+EMA(MMV,6)+EMA(MMV,12)+EMA(MMV,24))/4;
IV1:=(EMA(XMV,3)+EMA(XMV,6)+EMA(XMV,12)+EMA(XMV,24))/4;
生命:=0.5*(IV0+IV1);
中线买:CROSS(C,半年均价)AND 半年均价=年均价 AND EVERY(半年均价=REF(年均价,1),3)AND V>生命 AND ST>REF(ST,1),COLORMAGENTA;
启动:COUNT(实价<牛熊线,5)<=4 AND 实价/牛熊线>1.004 AND CROSS(M8,牛熊线) AND 牛熊线>=REF(牛熊线,1),COLORRED;