同花顺分时横盘突破幅图公式
-
相关简介:同花顺分时横盘突破幅图公式 源码 tt:=FORMATTIME(1); CC:=NEW; Vv:=MAX(0,SBUSAMEDAY(VOL)); zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt); zz1:=BETWEEN(C/zz,1.05,0.95); 均线:IF(zz1=0,MA(NEW,TT),zz),COLOR00FFFF,LINETHICK2; 上均:均线 + AVEDEV(NEW,tt)*2,COLOR00FF00; 下均:均线 - AVEDEV(NEW,tt)
-
文章来源:股海网作者:股海网发布时间:2016-07-02浏览次数:
同花顺分时横盘突破幅图公式
源码
tt:=FORMATTIME(1);
CC:=NEW;
Vv:=MAX(0,SBUSAMEDAY(&VOL));
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(C/zz,1.05,0.95);
均线:IF(zz1=0,MA(NEW,TT),zz),COLOR00FFFF,LINETHICK2;
上均:均线 + AVEDEV(NEW,tt)*2,COLOR00FF00;
下均:均线 - AVEDEV(NEW,tt)*2,COLORFF6600;
时长:=IF(tt>=120 AND tt<210,1,0);
涨幅:=(NEW/PRE)>=1.03;
跌幅:=(NEW/PRE)<=0.97;
涨跌幅:=涨幅 OR 跌幅;
yy:=SMA(Vv,30,1);
放量:=(yy-LLV(LLV(yy,1),30))/(HHV(HHV(yy,1),30)-LLV(LLV(yy,1),30))>0;
横盘:=((HHV(NEW,TT)-LLV(NEW,TT))/NEW)<=0.05;
横涨:=涨跌幅=0 AND 横盘 AND 时长 AND 放量 AND CROSS(CC,上均) AND INVOL<OUTVOL;
横跌:=涨跌幅=0 AND 横盘 AND 时长 AND 放量 AND CROSS(下均,CC) ;
PP:= FILTER(横涨,100) ;
UU:= FILTER(横跌,50) ;
DRAWTEXT(PP,上均,'★上突'),colorff00ff;
DRAWTEXT(UU,下均,'★下破'),COLOR00FFFF;
VERLINE( PP,3),colorwhite,LINETHICK2;
VERLINE( UU,3),COLOR00FF00,LINETHICK2;
------------------------------------------------------------------------------------
Vv:=MAX(0,SBUSAMEDAY(&VOL));
改成这样可用了:
B与U调换