通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
连涨天数:BARSLASTCOUNT(C REF(C,1));
连涨幅:IF(C REF(C,1),(C-REF(C,连涨天数))/REF(C,连涨天数)*100,0);
换手:=V/CAPITAL*100;
大换手天:BARSLASTCOUNT(换手 4);
FJ1:1;FJ2:2;FJ3:3;FJ4:5;FJ5:8;FJ6:15;FJ7:25;
STICKLINE(C 0,FJ1,0,5,0),COLOR9F5F9F;
STICKLINE(C 0,FJ1,FJ2,5,0),COLOR545454;
STICKLINE(C 0,FJ2,FJ3,5,0),COLORD8BFD8;
STICKLINE(C 0,FJ3,FJ4,5,0),COLORLIRED;
STICKLINE(C 0,FJ4,FJ5,5,0),COLOR4F2F4F;
STICKLINE(C 0,FJ5,FJ6,5,0),COLORBC8F8F;
STICKLINE(C 0,FJ6,FJ7,5,0),COLOR4F4F2F;
HS:DYNAINFO(37)*100,LINETHICK2,COLORYELLOW;
DRAWTEXT(ISLASTBAR,1, ---1 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,2, ---2 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,3, ---3 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,5, ---5 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,8, ---8 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,15, ---15 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,25, ---25 ),COLORGREEN;
DRAWTEXT(HS FJ1ANDISLASTBAR,0.5, -----地量 ),COLORYELLOW;
DRAWTEXT(HS FJ2ANDHS =FJ1ANDISLASTBAR,HS, -----低靡 ),COLORMAGENTA;
DRAWTEXT(HS FJ3ANDHS =FJ2ANDISLASTBAR,HS, -----温和 ),COLORYELLOW;
DRAWTEXT(HS FJ4ANDHS =FJ3ANDISLASTBAR,HS, -----活跃 ),COLORRED;
DRAWTEXT(HS FJ5ANDHS =FJ4ANDISLASTBAR,HS, -----带量 ),COLORGREEN;
DRAWTEXT(HS FJ6ANDHS =FJ5ANDISLASTBAR,HS, -----放量 ),COLORMAGENTA;
DRAWTEXT(HS FJ7ANDHS =FJ6ANDISLASTBAR,HS, -----巨量 ),COLORGREEN;
DRAWTEXT(HS 100ANDHS =FJ7ANDISLASTBAR,HS, -----怪异 ),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=40,0.5, 绝对地量 ),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=40,1.5, 成交低靡 ),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=40,2.5, 成交温和 ),COLOR5C3317;
DRAWTEXT(CURRBARSCOUNT=40,4, 成交活跃 ),COLOR5C3317;
DRAWTEXT(CURRBARSCOUNT=40,6.5, 成交带量 ),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=40,11.5, 成交放量 ),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=40,20, 成交巨量 ),COLORRED;
DRAWTEXT(CURRBARSCOUNT=40,26, 成交怪异 ),COLORYELLOW;
VC:=(REF(C,4)*REF(V,4)+REF(C,3)*REF(V,3)+REF(C,2)*REF(V,2)+REF(C,1)*REF(V,1)+C*V)/(V+REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4));
SQX:=(VC-MA(VC,14))*100;
DIF:MA(SQX,4),COLORWHITE;
DEA:EMA(DIF,5),COLORYELLOW;
:(DIF-DEA)*2,linethick0;
STICKLINE(macd 0andmacd ref(macd,1),0,macd,8,0),COLORred;
STICKLINE(macd 0andmacd ref(macd,1),0,macd,8,1),COLORred;
STICKLINE(macd 0andmacd ref(macd,1),0,macd,8,0),COLORgreen;
STICKLINE(macd 0andmacd ref(macd,1),0,macd,8,1),COLORgreen;
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
DEA高点延:IF(DIF VAR1ANDDEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),LINEDOT,ColorEA91B5,LINETHICK1;
DEA低点延长线:IF(DIF VAR2ANDDEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2),COLOR00FFFF,LINEDOT,LINETHICK1;
主流:=EMA(100*(C-LLV(LOW,21))/(HHV(H,21)-LLV(LOW,21)),3),colorred,LINETHICK2;
PARTLINE(主流资金,主流资金 REF(主流资金,1),RGB(250,10,10),主流资金 =REF(主流资金,1),RGB(250,250,250)),LINETHICK3;
非主流资金:=EMA(100*(INDEXC-LLV(INDEXL,21))/(HHV(INDEXH,21)-LLV(INDEXL,21)),3),colorgreen,LINETHICK2;
PARTLINE(非主流资金,非主流资金 REF(非主流资金,1),RGB(250,10,250),非主流资金 =REF(非主流资金,1),RGB(10,250,10)),LINETHICK2;
分界线:43,LINETHICK02,POINTDOT,ColorFF26FF;
压力线:78,LINETHICK02,POINTDOT,Color2FFFFF;
寻底线:10,LINETHICK02,POINTDOT,ColorFFFF11;
公式解读:
编写条件:
前3日有涨幅5%以上大阳线的公式。
编写方法:
XG:EXIst(C/REF(C,1) 1.05,3);