大智慧四色多空主图指标公式
大智慧四色多空主图指标公式:
a:=(3*c+l+o+h)/6;
x1:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)
+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
ref(a,20))/210;
x2:=ema(x1,6);
x3:=ema(x2,5);
生命线:EMA(C,21),CIRCLEDOT,color008888;
回调支撑:EMA(C,55),CIRCLEDOT,color888888;
牛熊分界:EMA(C,99),CIRCLEDOT,color888800;
stICKLINE(x2>=x3,x2,x3,30,1),Color000077,layer6;
STICKLINE(x2<x3,x2,x3,30,1),color006600,layer6;
stickline(x2>=x3,h,l,0,1),COLOR0000FF;
stickline(x2>=x3 and c>=o,O,C,5,0),COLOR0000FF;
stickline(x2>=x3 and c<o,O,C,5,1),COLOR0000FF;
stickline(x2<x3,H,L,1,0),COLOR00BB00;
stickline(x2<x3 and c<o,O,C,5,0),COLOR00BB00;
stickline(x2<x3 and c>=o,O,C,5,1),COLOR00BB00;
stickline(c<x3 and x2>=x3,h,l,0,1),COLORFFBB00;
stickline(c<x3 and x2>=x3 and c>=o,O,C,5,0),COLORFFBB00;
stickline(c<x3 and x2>=x3 and c<o,O,C,5,1),COLORFFBB00;
stickline((c>=x3 and x2<x3),h,l,0,1),COLORFF00FF;
stickline((c>=x3 and x2<x3) and c>=o,O,C,5,0),COLORFF00FF;
stickline((c>=x3 and x2<x3) and c<o,O,C,5,1),COLORFF00FF;