通达信分时突破前高分时主副图极品指标 源码附图
{分时趋势副图源码如下}
DRAWGBK((CLOSE > 1),RGB(0,0,0),RGB(0,0,2),0,0,0);
成交额:=V*C/100,NODRAW;
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE< (REF(CLOSE,1)))),成交额,0)),0);
A4:=SUM((IF(((成交额/8< 20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A5:=SUM((IF(((成交额/8< 20) AND (CLOSE< (REF(CLOSE,1)))),成交额,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
A9:=IF((ISLASTBAR),((100*A4)/A6),0);
A10:=IF((ISLASTBAR),((100*A5)/A6),0);
机构买:(A2),LINETHICK8,COLORRED;
机构卖:(A3),LINETHICK8,COLORGREEN;
机构进出:机构买-机构卖,NODRAW;
散户买:(A4),COLOR5555FF;
散户卖:(A5),COLOR55FF55;
强势:((100*A2)/A6>50);
DRAWTEXT(机构进出>0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万')),COLORMAGENTA;
DRAWTEXT(机构进出< 0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万')),COLORWHITE;
DRAWTEXT(机构进出< 0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万')),COLORWHITE;
DRAWTEXT(机构进出< 0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万'))LINETHICK5,COLORWHITE;
拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
DRAWTEXT(ISLASTBAR=1,机构买*0.95,''),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR=1,机构卖*0.95,''),LINETHICK2,COLORFFFF55;
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/Q2),1.03),机构买,34);
{分时突破前高主图源码如下}
均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW;
分时线:=CLOSE;
REFDATE(分时线,DATE),DOTLINE,COLORLIBLUE;
AA1:=REF(HHV(C,0),1);
AA2:=REF(HHV(V,0),1);
AA3:=AA1/DYNAINFO(3)<1.05;
AA4:=CROSS(C,AA1) AND V>AA2 AND AA3;
DRAWICON(AA4,分时线,1);
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{分时趋势副图源码如下} 填充背景((收盘价 > 1),RGB(0,0,0),RGB(0,0,2),0,0,0)
成交额赋值:V*C/100,NODRAW
A2赋值:SUM((IF(((成交额/8>20) AND (收盘价>(1日前的收盘价))),成交额,0)),0)
A3赋值:SUM((IF(((成交额/8>20) AND (收盘价< (1日前的收盘价))),成交额,0)),0)
A4赋值:SUM((IF(((成交额/8< 20) AND (收盘价>(1日前的收盘价))),成交额,0)),0)
A5赋值:SUM((IF(((成交额/8< 20) AND (收盘价< (1日前的收盘价))),成交额,0)),0)
A6赋值:((A2+A3)+A4)+A5
A7赋值:IF((ISLASTBAR),((100*A2)/A6),0)
A8赋值:IF((ISLASTBAR),((100*A3)/A6),0)
A9赋值:IF((ISLASTBAR),((100*A4)/A6),0)
A10赋值:IF((ISLASTBAR),((100*A5)/A6),0)
输出机构买:(A2),LINETHICK8,画红色
输出机构卖:(A3),LINETHICK8,画绿色
输出机构进出:机构买-机构卖,NODRAW
输出散户买:(A4),COLOR5555FF
输出散户卖:(A5),COLOR55FF55
输出强势:((100*A2)/A6>50)
DRAWTEXT(机构进出>0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万')),画洋红色
DRAWTEXT(机构进出< 0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万')),画白色
DRAWTEXT(机构进出< 0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万')),画白色
DRAWTEXT(机构进出< 0 AND 机构进出< 10000000,H*0.98,VARCAT(VAR2STR(机构进出,0),'万'))LINETHICK5,画白色
输出拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18
当满足条件ISLASTBAR=1时,在机构买*0.95和''位置书写文字
当满足条件ISLASTBAR=1时,在机构卖*0.95和''位置书写文字
Q赋值:BETWEEN(C/(SUM(成交额,C的有效数据周期数)/SUM(成交量*100,C的有效数据周期数)),1.05,0.95)
Q2:=IF(Q=0,MA(C,C的有效数据周期数),(SUM(成交额,C的有效数据周期数)/SUM(成交量*100,C的有效数据周期数)))
DRAWICON(CROSS((C/Q2),1.03),机构买,34)
输出{分时突破前高主图源码如下}均价线:240的C*V日累和/240的V日累和,画黄色
分时线赋值:收盘价
REFDATE(分时线,DATE),DOTLINE,COLORLIBLUE
AA1赋值:REF(0日内C最高值,1)
AA2赋值:REF(0日内V最高值,1)
AA3赋值:AA1/DYNAINFO(3)<1.05
AA4赋值:C上穿AA1 AND V>AA2 AND AA3
当满足条件AA4时,在分时线和1之间画图标