九毛八公式指标
公式模块:
我的要求有点多 先谢谢老师啦!
请老师做一个expma优化指标:要求该指标只有3条线,即 7、21、50号线。(该3条线用颜色分开,但最好不要有红色)
同时该指标叠加下面的主图指标
牛熊分界点: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),vol),LINETHICK2,COLORRED;
MID:MA(CLOSE,20),COLORYELLOW;
UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE;
LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,CIRCLEDOT,COLOR0099FF;
下:(1-7/100)*DD,CIRCLEDOT,COLOR0099FF;
中:(上+下)/2,CIRCLEDOT,COLOR0099FF;
DRAWTEXTREL(1,10,'■所属板块:'+BKNAME),COLORGREEN;
MA7:MA(C,7),LINETHICK2;
MA21:MA(C,21),LINETHICK2;
MA50:MA(C,50),LINETHICK2;
牛熊分界点: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),LINETHICK2,COLORRED;
MID:MA(CLOSE,20),COLORYELLOW,LINETHICK1;
UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE,LINETHICK1;
LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE,LINETHICK1;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,CIRCLEDOT,COLOR0099FF;
下:(1-7/100)*DD,CIRCLEDOT,COLOR0099FF;
中:(上+下)/2,CIRCLEDOT,COLOR0099FF;
DRAWTEXTREL(1,10,'■所属板块:'+BKNAME),COLORGREEN;