准确找底 自编改进MACD寻底选股副图指标公式
源码
N:=5; 趋势线:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORWHITE,LINETHICK1; 下线:=15,COLORGREEN; 上穿:=CROSS(趋势线,下线); DIFF : EMA(CLOSE,12) - EMA(CLOSE,26); DEA : EMA(DIFF,9); MACD :=2*(DIFF-DEA); STICKLINE(MACD>0,0,MACD,1,0),COLORRED; STICKLINE(MACD<0,0,MACD,1,1),COLORLIBLUE; 底部买入:上穿 AND MACD<0,NODRAW; STICKLINE(底部买入,0,0.1,4,0),COLORYELLOW; DRAWTEXT(底部买入,0.15,'底'),COLORYELLOW; 平衡线:=0,COLORLIBLUE;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
准确找底 自编改进MACD寻底选股副图指标公式
源码
N:=5;
趋势线:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORWHITE,LINETHICK1;
下线:=15,COLORGREEN;
上穿:=CROSS(趋势线,下线);
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
STICKLINE(MACD>0,0,MACD,1,0),COLORRED;
STICKLINE(MACD<0,0,MACD,1,1),COLORLIBLUE;
底部买入:上穿 AND MACD<0,NODRAW;
STICKLINE(底部买入,0,0.1,4,0),COLORYELLOW;
DRAWTEXT(底部买入,0.15,'底'),COLORYELLOW;
平衡线:=0,COLORLIBLUE;