{筹码引力}
N:=3;
N1:=10;
N2:=20;
N3:=30;
GV:WINNER(CLOSE)*100,LINETHICK2,COLORYELLOW;
CV:EMA(100-GV,3)*(-1),LINETHICK2,COLORGREEN;
MGV:MA(GV,9),LINETHICK2,COLORCYAN;{70822COM}
MCV:MA(CV,13),LINETHICK2,COLORRED;
DIFF:MGV+MCV,LINETHICK2,COLORWHITE;
STICKLINE(GV OPEN,0,GV*1,2,0), COLOR0066FF;
STICKLINE(GV OPEN,0,GV*0.8,2,0),COLOR0000FF ;
STICKLINE(GV OPEN,0,GV*0.6,2,0),COLOR0099FF;
STICKLINE(GV OPEN,0,GV*0.4,2,0),COLOR00CCFF;
STICKLINE(GV OPEN,0,GV*0.2,2,0),COLOR00FFFF ;
STICKLINE(CV 0,0,CV*1,2,0), COLORGREEN;
STICKLINE(CV 0,0,CV*0.8,2,0),COLOR33CC00;
STICKLINE(CV 0,0,CV*0.6,2,0),COLOR339900;
STICKLINE(CV 0,0,CV*0.4,2,0),COLOR337700;
STICKLINE(CV 0,0,CV*0.2,2,0),COLOR337700;
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能;{www.9m8.cn 九毛八公式指标网}
STICKLINE(FF 0,0,FF,2.5,0),COLOR33CFDD;{//黄色:获利回吐}
STICKLINE(FF 0 AND FF REF(FF,1),0,FF,2.5,0),COLOR0000CC;{//红色:做多主导}
STICKLINE(FF =0,0,FF,2.5,0),COLOR00CC00;{//绿色:做空主导}
STICKLINE(FF =0 AND FF REF(FF,1),0,FF,2.5,0),COLORFF9900;{//蓝色:空头回补}
做多主导:IFF(FF 0 AND FF REF(FF,1),FF,0),NODRAW,COLOR0000CC;{//红色:做多主导}
获利回吐:IFF(FF 0 AND FF =REF(FF,1),FF,0),NODRAW,COLOR33CFDD;{//黄色:获利回吐}
做空主导:IFF(FF =0 AND FF =REF(FF,1),FF,0),NODRAW,COLOR00CC00;{//绿色:做空主导}
空头回补:IFF(FF =0 AND FF REF(FF,1),FF,0),NODRAW,COLORFF9900;{//蓝色:空头回补}
本周开盘:=REF(WEEKDAY,1) =WEEKDAY;
上周收盘:=IFF(本周开盘,REF(C,1),0);
上周收盘价:=REF(上周收盘,BARSLAST(本周开盘));
概率中枢:=上周收盘价,COLORWHITE,LINETHICK2;
做空95PER:=上周收盘价*1.17,COLORFF0000,LINETHICK2;
做空68PER:=上周收盘价*1.085,COLORFFFF00,LINETHICK2;
做多68PER:=上周收盘价*0.925,COLOR00FFFF,LINETHICK2;
做多95PER:=上周收盘价*0.85,COLOR0000FF,LINETHICK2;
{//基础计算}
HH:=HHV(做空95PER,120);
LL:=LLV(做多95PER,120);
上涨:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(做多95PER==LL)+1)),NODRAW,COLOR0000FF;
下跌:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(做空95PER==HH)+1)),NODRAW,COLOR00FF00;
判断:=下跌 OR 上涨 OR 上涨==0 OR 下跌==0;
天线:=IFF(判断,REFDATE(REF(做空95PER,下跌),DATE),DRAWNULL),POINTDOT,LINETHICK3,COLOR00FF00;
地线:=IFF(判断,REFDATE(REF(做多95PER,上涨),DATE),DRAWNULL),POINTDOT,LINETHICK3,COLOR0000FF;
中线1:=HIGH;
中线:=LOW;
平衡价:=IFF(1,概率中枢,DRAWNULL),COLORWHITE,LINETHICK2;
做空95胜算:IFF(1,做空95PER,DRAWNULL),COLORFF0000,LINETHICK2;
做空68胜算:IFF(1,做空68PER,DRAWNULL),COLORFFFF00,LINETHICK2;
做多68胜算:IFF(1,做多68PER,DRAWNULL),COLOR00FFFF,LINETHICK2;
做多95胜算:IFF(1,做多95PER,DRAWNULL),COLOR0000FF,LINETHICK2;
{//信号部分}
空95提示:IFF(CROSS(HIGH,做空95胜算),HIGH*1.02,DRAWNULL),CIRCLEDOT,COLORFF0000;
空68提示:IFF(CROSS(HIGH,做空68胜算),HIGH*1.02,DRAWNULL),CIRCLEDOT,COLORFFFF00;
多68提示:IFF(CROSS(做多68胜算,LOW),LOW*0.99,DRAWNULL),CIRCLEDOT,COLOR00FFFF;
多95提示:IFF(CROSS(做多95胜算,LOW),LOW*0.99,DRAWNULL),CIRCLEDOT,COLOR0000FF;