以下是顶底决策(终极分享源码欢迎优化)(无源码的请下载附件导入)
NOTEXT1:10,COLORBLUE,DOTLINE;
NOTEXT2:15,COLORMAGENTA,DOTLINE;
NOTEXT3:85,COLORYELLOW,DOTLINE;
NOTEXT4:90,COLORBLUE,DOTLINE;
NOTEXT5:50,COLORWHITE,DOTLINE;
DRAWTEXT(ISLASTBAR,10,' 底'),COLORRED;
DRAWTEXT(ISLASTBAR,15,' 预备'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,85,' 预备'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,90,' 顶'),COLORGREEN;
M:=IF(LLV(C,30)=LLV(C,60),21,IF(LLV(C,60)=LLV(C,120),34,55));
DDDS:=EMA((C-LLV(L,M))/(HHV(H,M)-LLV(L,M))*100,5);
快线:SMA(SMA(DDDS,2,1),2,1),COLORRED,LINETHICK2;
慢线:SMA(SMA(快线,2,1),2,1),COLORGREEN,LINETHICK2;
大顶:DRAWICON(CROSS(快线,89),快线,35);
大底:DRAWICON(CROSS(快线,11),快线,34);
历史最低:=CONST(LLV(快线,0));
历史最高:=CONST(HHV(快线,0));
触底率:((100-快线)/(100-历史最低))*100,NODRAW,COLORRED;
碰顶率:((快线)/(历史最高))*100,NODRAW,COLORGREEN;
724400981.jpg
|