飞狐放量攻击副图指标
{N:5,60,34;}
{放量攻击指标使用说明:
量能饱和看股市,放量上涨要升值;
攻击凶猛防登顶,缩量小坑幸福池。}
源码
A:=EMA(AMOUNT/C/1000000,7);
MID :=EMA(A,N);
UPPER:=MID + 2*STD(A,N);
LOWER:=MID - 2*STD(A,N);
量能:(A-LOWER)/(UPPER-LOWER)*100,COLORFFFFFF;
放量:IF(CROSS(量能,70),70,50),COLOR00FF00;
↑:IF(CROSS(量能,50),1,0),COLORFF00FF;
攻击:IF(CROSS(量能,100),1,0),COLOR0000FF,POINTDOT,LINETHICK0;
缩量:IF(CROSS(30,量能),1,0),COLORFFFF00,POINTDOT,LINETHICK0;
{以下设置副图显示方式}
100,POINTDOT,COLORFF00FF;
70,COLORFFFFFF;
30,POINTDOT,COLORFFFFFF;
0,POINTDOT,COLORFF6600;
STICKLINE(量能>70,70,量能,4,0),COLOR00FFFF;
STICKLINE(量能>100,100,量能,4,0),COLOR0000FF;
STICKLINE(量能<30,30,量能,4,0),COLORFFFF00;
STICKLINE(量能<0,0,量能,4,0),COLOR00FF00;
DRAWTEXT(↑,50,'↑'),COLORFF00FF;
DRAWTEXT(攻击,70, '↑'),COLOR0000FF;
DRAWTEXT(缩量,30, '↓'),COLORFFFF00;
{以下设置指标使用提示,明白以后可以删除.}
BDDW:=FILTER(缩量,60);
DRAWTEXT(BDDW,45,'量能看股市'),COLORFFFFFF;
DRAWTEXT(BDDW,25,'放量要升值'),COLORFFFFFF;
DRAWTEXT(REF(BDDW,15),45,'攻击防登顶'),COLOR00FFFF;
DRAWTEXT(REF(BDDW,15),25,'缩量幸福池'),COLOR00FFFF;