源码
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;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)