M1:=5;
SHORT:=12;
LONG:=26;
MID:=9;
V100:MA(V,100),LINETHICK3,COLOR000000;
DRAWBAND(V,RGB(255,255,255),V100,RGB(255,255,168));
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
Vvol:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
虚拟倍量:=VVOL/REF(V,1);
DRAWNUMBER(虚拟倍量>1,VVOL,ROUND(虚拟倍量));
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1);
倍量:=VOL/REF(VOL,1)>=1.5;
缩量:=REF(VOL,1)/VOL>=1.5;
DRAWNUMBER(倍量,V,ROUND(V/REF(V,1))),COLORRED;
DRAWNUMBER(缩量,V,ROUND(REF(V,1)/V)),COLORBLUE;
{macd}
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MacD:(DIF-DEA)*2,COLORSTICK;
{上绿下红};
{BArslAST(C<=O);上个阴线位置}
上个阴:BARSLAST(C<=O);
大于顶:C>REF(O,上个阴);
大于量:V>REF(V,上个阴);
上绿下红:MACD<=0 AND C>O AND C>REF(O,上个阴) AND V>REF(V,上个阴);
DRAWICON(FILTER(上绿下红,4),V,1);
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/172849.html,转载请注明出处。