本公式是 变色彩带,趋势类公式。
主线+飘带结合共振把握高,不漂移没未来。
SJ:=1;
DIFF:=(EMA(CLOSE,12)*SJ - EMA(CLOSE,26))*4.1;
DEA:=EMA(DIFF,9)*SJ;
MA601:=MA(C,60);
DKB:MA601+DIFF,COLORWHITE,LINETHICK1;
DKA:MA601+DEA,COLORYELLOW,LINETHICK1;
IF(DKB>=DKA,DKB,DKA),COLOR408080;
IF(DKB<DKA,DKB,DKA),COLORFFFF00;
DRAWBAND(DKB,RGB(255,51,87),DKA,RGB(0,185,0));
{MA20:MA(CLOSE,20)*SJ,LINETHICK2,COLORRED;}
MA60:MA(CLOSE,60)*SJ,LINETHICK3,COLORMAGENTA;
距离60均线空间:=C-MA60;
DRAWSL(C>0 AND ISLASTBAR,MA60,0,10,2),COLORWHITE;
DRAWNUMBER(C>0 AND ISLASTBAR AND MA60 >C,MA60*1.0016,距离60均线空间),COLORGREEN;
DRAWNUMBER(C>0 AND ISLASTBAR AND MA60 <C,MA60*0.999,距离60均线空间),COLORRED;
STICKLINE(C>0 AND ISLASTBAR,MA60,MA60,50,0),COLORWHITE;
XCLOSE2:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
IF((MA60>=XCLOSE2),MA60,DRAWNULL),LINETHICK3,COLORBLUE;
IF((MA60<XCLOSE2),MA60,DRAWNULL),LINETHICK3,COLORMAGENTA;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);