通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
R:=(ZDMR+BDMR);
RSV:=(r-LLV(r,15))/(HHV(r,15)-LLV(r,15))*100;
RS:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100;
价趋线:MA(RS,1),colorwhite,linethick1;
量:MA(RSV,3),colorred;
量副:EMA(量,3),coloryellow;
底线:10,DOTLINE,colorgreen;
强线:30,DOTLINE,ColorDB7093;
DRAWICON(CROSS(量副,底线),8,1);
DRAWICON(CROSS(价趋线,强线),30,7);
A1:=(DVOL/C)/2,NODRAW;
A2:=SUM(IF(A1 100ANDCLOSE REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1 100ANDCLOSE REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1 100ANDCLOSE REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1 100ANDCLOSE REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:(A2/A6)*100,LINETHICK2,COLORRED;
机卖:(A3/A6)*100,LINETHICK2,COLORGREEN;
散买:(A4/A6)*100,LINETHICK0;
散卖:(A5/A6)*100,LINETHICK0;
差:机买-机卖,LINETHICK2,NODRAW;
差:散买-散卖,LINETHICK0,NODRAW;
DRAWTEXT(主力差 0ANDREF(主力差,1) =0,C*0.85, ● ),COLORRED;
DRAWTEXT(主力差 0ANDREF(主力差,1) =0,-C*0.85, ○机构 ),COLORWHITE;
DRAWTEXT(散户差 0ANDREF(散户差,1) =0,C*0.15, ▲散户 ),COLORCYAN;
DRAWTEXT(散户差 0ANDREF(散户差,1) =0,-C*0.15, △散户 ),COLORWHITE;
创业板:=INBLOCK( 创业板
中小企业:=INBLOCK( 中小企业
上证A股:=INBLOCK( 上证A股
深证A股:=INBLOCK( 深证A股
INDEH:=IF(中小企业=1, 399005$H ,IF(创业板=1, 399006$H ,IF(上证A股=1, 999999$H , 399001$H ))),NODRAW;
INDEO:=IF(中小企业=1, 399005$O ,IF(创业板=1, 399006$O ,IF(上证A股=1, 999999$O , 399001$O ))),NODRAW;
INDEL:=IF(中小企业=1, 399005$L ,IF(创业板=1, 399006$L ,IF(上证A股=1, 999999$L , 399001$L ))),NODRAW;
INDEC:=IF(中小企业=1, 399005$C ,IF(创业板=1, 399006$C ,IF(上证A股=1, 999999$C , 399001$C ))),NODRAW;
DRAWKLINE(INDEH,INDEO,INDEL,INDEC);
:=IF(中小企业=1, 中小企业指数 ,IF(创业板=1, 创业板指数 ,IF(上证A股=1, 上证指数 , 深证指数 )));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,板块),COLOR0055FF;
MA5:MA(INDEC,5),COLORWHITE;
MA10:MA(INDEC,10),COLORYELLOW;
MA20:MA(INDEC,20),COLORMAGENTA;
MA60:MA(INDEC,60),COLORGREEN;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
HDY:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DD:=短期 2AND中期 2AND中长期 2AND长期 2,COLORRED;
XG:CROSS(C,MA(C,5))ANDCOUNT(DD,3);
精准买点:C/REF(C,1) 1.015ANDL/REF(C,1) 0.985
ANDO/REF(C,1) 0.99ANDH/REF(C,1) 1.016
ANDREF(C O,1)ANDREF(C/REF(C,1) 0.975,1)
ANDCOUNT(DD,2)ANDCOUNT(HDY 10,2)ANDCAPITAL/1000000 10.01,COLORRED;
N:=(C-REF(C,55))/REF(C,55)*100;
量价关系:=100*N/SUM(V,55);
STICKLINE(量价关系 0,量价关系*2,0,2,0),colorred;
STICKLINE(量价关系 =0,量价关系*2,0,2,0),colorgreen;
N1:=(C-REF(C,34))/REF(C,34)*100;
量价关系1:=100*N1/SUM(V,34);
STICKLINE(量价关系1 0,量价关系1*1,0,2,0),COLOR8977FF;
STICKLINE(量价关系1 =0,量价关系1*1,0,2,0),COLORFFFF00;
N2:=(C-REF(C,13))/REF(C,13)*100;
量价关系2:=100*N2/SUM(V,13);
STICKLINE(量价关系2 0,量价关系2*0.5,0,2,0),COLOR00FFFF;
STICKLINE(量价关系2 =0,量价关系2*0.5,0,2,0),COLORFFFFFF;
公式解读:
公式解读:
编写条件:
3天前的5日里阳线大于3的公式。
编写方法:
XG:REF(COUNT(C O,5) 3,3);