通达信筹码也有引力公式源码
80,COLORBROWN,DOTLINE;
力巨细:“PAV.GV”,COLORSTICK,COLORRED;
OO:=“PAV.CV”,COLORSTICK,COLORCYAN;
PP:=“PAV.DIFF”,COLORMAGENTA;
极值:HHV(“PAV.GV”,25)COLORGREEN;
-98,COLORBLACK;
绝对值:=极值-REF(极值,1),NODRAW;
IF(HHV(PP,10)》60ANDCROSS(0,PP)ANDEXIST(HHV(PP,10)》REF(HHV(PP,10),1),9),OO,-97)COLORWHITE,LINETHICK2;
强洗盘:IF(EMA(C,12)》EMA(C,50)ANDEVERY(C/REF(C,1)《1.090,5)ANDREF(EVERY(极值《79.5,10),2)ANDREF(绝对值》8ANDREF(EVERY(极值=REF(极值,1),3),1)ANDCROSS(极值,79.7),1)ANDCROSS(79.5,力巨细),OO,-97)COLOR0080FF,LINETHICK2;
中签率:=COUNT(C》REF(C,1),12)/12*100;
MA6:=MA(中签率,6);
黑马:IF(EMA(C,12)》EMA(C,50)ANDREF(REF(EVERY(中签率《70,21),1)ANDEVERY(中签率》REF(中签率,1),2)ANDCROSS(中签率,70)AND中签率=75,1)ANDCROSS(70,中签率)ANDMA6》65,OO,-97)COLORRED,LINETHICK2;
概率:=COUNT(中签率=REF(中签率,1)ANDREF(中签率,1)》REF(中签率,2),5);
天灵盖:IF(EMA(C,12)》EMA(C,50)ANDREF(概率》REF(概率,1)AND概率=3,1)AND中签率》REF(中签率,1),OO,-97)COLORMAGENTA,LINETHICK2;
接地气:IF(EMA(C,12)》EMA(C,50)ANDHHV(中签率,20)》74ANDREF(EVERY(中签率《MA6,12),1)ANDMA6=中签率AND中签率=REF(中签率,1)ANDREF(中签率,1)》REF(中签率,2)ANDEXIST(HHV(中签率,20)》REF(HHV(中签率,20),1),19),OO,-97)COLORYELLOW,LINETHICK2;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10)),;
STICKLINE(CROSS(CCI,300),力巨细,0,0.1,0),COLORWHITE;