以下是通达信三线合一主图+指标公式源码和截图
通达信三线合一主图+选股指标公式源码:
FL:ma(CLOSE,17)+Abs(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORWHITE;
FS:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORGREEN;
CG:IF(MA(CLOSE,17) FS,FS,MA(CLOSE,17)),COLORRED;
选股公式:
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
CG:=IF(MA(CLOSE,17) FS,FS,MA(CLOSE,17));
合一:=FL=FSANDFS=CG;
XG:REF(合一,1)=0AND合一=1;
CG:MA(C,15);
FL:HHV(CG,5);
FS:CG-(FL-CG);
MA60:MA(CLOSE,60),LINETHICK3,COLORRED;
DRAWTEXT(C REF(C,1)ANDMA(C,5) MA(C,10)ANDMA(C,20) MA(C,60)ANDREF(MA(C,20),1) REF(MA(C,60),1)
ANDMA(C,60) REF(MA(C,60),1)ANDFL MA(C,60)ANDFS MA(C,60)ANDFL=FSANDREF(FL,1) REF(FS,1),FS,'买入'),COLORYELLOW;
STICKLINE(C 1.095*REF(C,1),C,O,3.6,0),COLORYELLOW;
PLOYLINE(1,CONST(C)),COLOR008888,LINETHICK1;
{DRAWTEXT_FIX(1,0.00,0,0,'行业:')COLORMAGENTA;}
DRAWTEXT_FIX(1,0.00,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.11,0,0,HYBLOCK)COLORMAGENTA;
DRAWTEXT_FIX(1,0.00,0.07,0,GNBLOCK)COLORYELLOW;
{现价:PLOYLINE(1,CONST(C)),COLOR008888,LINETHICK1;};
DRAWTEXT_FIX(1,0.16,0,0,'主营业务:')COLORWHITE;
DRAWTEXT_FIX(1,0.22,0,0,EXTERNSTR(0,1))COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.14,0,'公积金:'),COLORRED;
DRAWNUMBER_FIX(1,0.05,0.14,0,CONST(FINANCE(18))),COLORRED;
急速超跌:=(C-ma(C,34))/MA(C,34)*100 {34日乖离率}
当日收阳:=(H-L)/L 0.07{当天振幅大于7%}
AND(C-O)/O 0.07{当天的实体长度大于7%}
ANDC/REF(C,1) 1.05{当日涨幅超过5%};
枯木逢春:急速超跌AND当日收阳;
I枯木逢春:stICKLINE(枯木逢春,0,99,4,1),COLORGREEN;
DRAWTEXT(枯木逢春,98,'枯木逢春97.36%'),COLORGREEN;
爆点:LLV(L,3)=LLV(L,60)ANDC/REF(C,1) =1.04;{爆点60.64%}
XL3:(C-EMA(C,21))/EMA(C,21)*100;
爆破:crOSS(XL3,-20);{爆破}
爆炸:LLV(L,3)=LLV(L,120)ANDC/REF(C,1) =1.06;{爆炸}
XL6:(C-MA(C,24))/MA(C,24)*100;
启爆:CROSS(XL6,-20);{启爆}
I爆破:STICKLINE(爆破 0,0,70,2,0),COLORRED;
DRAWTEXT(爆破,68,'爆破86.91'),COLORRED;
I启爆:STICKLINE(启爆 0,0,52,2,0),COLORLIRED;
DRAWTEXT(启爆,51,'启爆81.97%'),COLORLIRED;
I爆点:STICKLINE(爆点 0,0,20,2,0),COLORLIGRAY;{橙色}
DRAWTEXT(FILTER(爆点,5),18,'爆点60.64%'),COLORLIGRAY;
0;
选股公式:
爆点:=LLV(L,3)=LLV(L,60)ANDC/REF(C,1) =1.04;
FILTER(爆点,5);
通达信三线合一主图+选股指标公式截图