编写要求:
指标如下:
{风警线2代}
STICKLINE(C>0,90,95,10,0),COLOR408000;
STICKLINE(C>0,10,5,10,0),COLOR408000;
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DRAWBAND(HDY,RGB(255,000,139),10,RGB(255,255,71));
STICKLINE(HDY>90,100,98,2,1),COLORLIGREEN;
STICKLINE(HDY>95,100,98,2,0),COLORGREEN;
STICKLINE(HDY<10,0,2,2,1),COLORLIRED;
STICKLINE(HDY<5,0,2,2,0),COLORRED;
STICKLINE(C>0,90,10,10,0),COLOR000000;
风险值:HDY,COLORCYAN,LINETHICK2;
超高位区:=风险值>=95,COLORGREEN,NODRAW;
高位区:=风险值<95 AND 风险值>90,COLORLIGREEN,NODRAW;
低位区:=风险值<10 AND 风险值>5,COLORLIRED,NODRAW;
超低位区:=风险值<=5,COLORGREEN,NODRAW;
底背离:IF(CREF(风险值,1) AND 风险值<15,1,0),COLORMAGENTA,NODRAW;
STICKLINE(底背离,0,-2,2,0),COLORMAGENTA;
顶背离:IF(C>REF(C,1) AND 风险值85,1,0),COLORBLUE,NODRAW;
STICKLINE(顶背离,100,102,2,0),COLORBLUE;
A:=风险值/REF(风险值,1)-1;
B:=风险值/REF(风险值,2)-1;
高位变盘:A>=-0.035 AND A<=0.035 AND 风险值>50{ AND 风险值<70},NODRAW;
STICKLINE(高位变盘,50,52,2,0),COLORRED;
低位变盘:A>=-0.035 AND A<=0.035 AND 风险值<50{ AND 风险值>30},NODRAW;
STICKLINE(低位变盘,50,48,2,0),COLORGREEN;
危险:=高位变盘 AND C
解答: ?{风警线2代} STICKLINE(C>0,90,95,10,0),COLOR408000;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!