DIFF := EMA(CLOSE,68) - EMA(CLOSE,170);
DEA := EMA(DIFF,90);
macd := 2*(DIFF-DEA);
A:MacD;
G:MA(MACD,2);
j:MA(MACD,3);
j1:=MA(MACD,5);
STICKLINE(crOSS(ma(A,1),G),ma(G,1),ma(G,1)+0.02,1,0),COLORRED,linethick2;
DRAWTEXT(CROSS(A,j1),G+0.03,'ok'),COLORCYAN;
DRAWTEXT(CROSS(j1,A),G+0.03,'911'),COLORCYAN;
STICKLINE(A>j,A,0,0.01,1),COLORRED,POINTDOT;
STICKLINE(A
j1:MA(MACD,5),COLORccffcc,linethick2;
{ _大智慧股票指标公式}
IF BARSTATUS=2 and (A) THEN BEGIN DRAWTEXTREL(0,0,'注意长线macd下穿上穿0的变化,A:'+NUMTOSTRN(A,1)),COLORccffcc,LINETHICK6;end;
var13:=if(year>=2018and month>=11 and day>=1,0,1);
aa:=(ma(c,1)+ma(c,3)+ma(c,5)+ma(c,7)+ma(c,9))/5;
bb:=(ma(c,2)+ma(c,4)+ma(c,6)+ma(c,8)+ma(c,10))/5;
cc:=ema(aa,2);
dd:=ema(bb,5);
var14:=max(ema(aa,2)-ema(bb,5),0)*1.2;
var15:=ema(var14,5);
ss:=ema(var15,2);
风险系数:(var15-ss)/10*var13,pointdot,colorffffff;
波浪系数:var15*var13,stick,colorff00ff;
A10:波浪系数,linethick1 ;
B:MA(A10,3),coloryellow,linethick2 ;
PARTLINE(波浪系数,波浪系数REF(波浪系数,1),RGB(255,0,0)),linethick2;
PARTLINE(B,BREF(B,1),RGB(180,50,0)),linethick2;
stickline(var15>ref(var15,1) and var13,var15,0,2,0),COLOR0099FF;
stickline(var15>ref(var15,1) and var13,var15,ss,3.5,0),COLORyellow;
stickline(var15
stickline(var15
升跌:=ema((c/ma((2*c+h+l)/4,8)-1)*100,3);0;