股票论坛

标题: 请老师帮忙把这个公式改为预警,谢谢!! [打印本页]

作者: 暴风雪天    时间: 2016-7-28 16:09
标题: 请老师帮忙把这个公式改为预警,谢谢!!
请帮忙把这个公式中的“上”做一个条件选股,谢了
M:=34;
RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
主:SMA(RSV,3,1),COLORFF00FF;

RSV2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
散:SMA(RSV2,5,1),COLOR00BBFF;

上线:80,COLOR00FF00,DOTLINE;
下线:20,COLORFF6600,DOTLINE;

DRAWTEXT(COUNT(主>散,5)>2 AND CROSS(散,主) AND 主>60,散,'下'),COLOR00FFFF;
DRAWTEXT(COUNT(主<散,5)>2 AND CROSS(主,散) AND 主<40,散,'上'),COLOR00FFFF;

上标:=COUNT(主>86 AND 散>83,4);
下标:=COUNT(主<14 AND 散<17,4);
STICKLINE(主>86 AND 散>83 AND REF(主,1)<REF(散,1)  AND 主>散*0.965,94,99,8,1),COLORGREEN;
STICKLINE(主<14 AND 散<17 AND REF(主,1)>REF(散,1)  AND 主<散*1.035,10,1,8,1),COLORFF00FF;
作者: (百川)    时间: 2016-7-28 16:09
{副图}
M:=34;
RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
主:=SMA(RSV,3,1),COLORFF00FF;

RSV2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
散:=SMA(RSV2,5,1),COLOR00BBFF;

上线:=80,COLOR00FF00,DOTLINE;
下线:=20,COLORFF6600,DOTLINE;


上拐:COUNT(主<散,5)>2 AND CROSS(主,散) AND 主<20,COLORYELLOW;

DRAWTEXT(上拐,(COUNT(主<散,5)>2 AND CROSS(主,散) AND 主<20)*0.38,' 上拐'),COLORYELLOW;



{预警}
M:=34;
RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
主:=SMA(RSV,3,1),COLORFF00FF;

RSV2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
散:=SMA(RSV2,5,1),COLOR00BBFF;

上线:=80,COLOR00FF00,DOTLINE;
下线:=20,COLORFF6600,DOTLINE;


上拐:COUNT(主<散,5)>2 AND CROSS(主,散) AND 主<20;

作者: (百川)    时间: 2016-7-28 19:05

作者: (百川)    时间: 2016-7-28 19:10
{上拐预警}
M:=34;
RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
主:=SMA(RSV,3,1),COLORFF00FF;

RSV2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
散:=SMA(RSV2,5,1),COLOR00BBFF;


上拐:COUNT(主<散,5)>2 AND CROSS(主,散) AND 主<20;

作者: 学习    时间: 2016-8-26 22:30
(百川) 发表于 2016-7-28 19:10
{上拐预警}
M:=34;
RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;

百川老师 能加个QQ吗




欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2