副图公式源码 :支持手机/电脑
GUP1:=(CLOSE*2+HIGH+LOW)/4;
GUP2:=EMA(GUP1,13)-EMA(GUP1,34);
GUP3:=EMA(GUP2,5);
SHZJX:=(-2)*(GUP2-GUP3)*3.8;
ZLZJX:=2*(GUP2-GUP3)*3.8;
STICKLINE(ZLZJX>0,0,ZLZJX*10,3.2,4),COLORRED;
STICKLINE(ZLZJX<0,0,ZLZJX*10,3.2,4),COLORGREEN;
GUP4:=EMA(EMA(CLOSE,9),9);
控盘:=(GUP1-REF(GUP4,1))/REF(GUP4,1)*30;
GUA10:=CROSS(控盘,0);
散户控盘:IF(控盘<0,控盘,0),COLORYELLOW,NODRAW;
开始控盘:IF(GUA10,15,0),LINETHICK3,COLORMAGENTA;
庄家控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
GUP5:=100*WINNER(CLOSE*0.95);
高度控盘:IF(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
散户资金线:SHZJX,COLORGREEN;
主力资金线:ZLZJX,COLORYELLOW,LINETHICK2;
XA:=CROSS(主力资金线,散户资金线),COLORMAGENTA;
建仓:IF(XA,4,0),LINETHICK1,COLORMAGENTA;
飞龙在天:=EMA(COST(80),13);
启动:主力资金线>REF(主力资金线,1) AND 主力资金线>-1.3 AND C/REF(C,1)>1.05 AND C>飞龙在天 AND 高度控盘>1,COLORRED;
主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLORCYAN,NODRAW;
清仓:CROSS(散户资金线,主力资金线),COLORGREEN;
STICKLINE(控盘<0,控盘,0,2.8,0),COLOR00AAFF;
STICKLINE(控盘<0,控盘,0,1.5,0),COLOR00CCFF;
STICKLINE(控盘<0,控盘,0,0.5,0),COLOR00FFFF;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,2.8,0),COLOR000055;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLOR000088;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1.5,0),COLOR0000AA;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR0000CC;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,0.5,0),COLOR0000EE;
STICKLINE(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0,2.8,0),COLOR550055;
STICKLINE(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0,2,0),COLOR880088;
STICKLINE(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0,1.5,0),COLORAA00AA;
STICKLINE(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0,1.0,0),COLORCC00CC;
STICKLINE(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0,0.5,0),COLOREE00EE;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2.8,0),COLOR555500;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLOR888800;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1.5,0),COLORAAAA00;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORCCCC00;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,0.5,0),COLOREEEE00;
DRAWTEXT(建仓,5,'建仓'),COLORMAGENTA;
DRAWICON(启动 AND NOT(REF(启动,1)),ZLZJX*10+5,1);
GUA2:=(C - REF(C,1)) / REF(C,1) * 100;
GUA3:=COUNT(GUA2 > 8,120);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.2,0,0,GUA3),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0,0,'级: '),COLORYELLOW;
生命CCI线:=CCI(84)/10,COLORRED,LINETHICK2;
DRAWTEXT(CROSS(生命CCI线,0),0,'主升浪'),COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线,25),25,'预警'),COLORWHITE;
DRAWTEXT(CROSS(生命CCI线,12),12,'强势'),COLORYELLOW;
选股公式源码
{选股公式一:建仓}
GUP1:=(CLOSE*2+HIGH+LOW)/4;
GUP2:=EMA(GUP1,13)-EMA(GUP1,34);
GUP3:=EMA(GUP2,5);
SHZJX:=(-2)*(GUP2-GUP3)*3.8;
ZLZJX:=2*(GUP2-GUP3)*3.8;
散户资金线:=SHZJX,COLORGREEN;
主力资金线:=ZLZJX,COLORYELLOW,LINETHICK2;
XA:=CROSS(主力资金线,散户资金线),COLORMAGENTA;
建仓:IF(XA,4,0);
{选股公式二:主升浪}
生命CCI线:=CCI(84)/10,COLORRED,LINETHICK2;
主升浪:CROSS(生命CCI线,0);
{选股公式三:预警}
生命CCI线:=CCI(84)/10,COLORRED,LINETHICK2;
预警:CROSS(生命CCI线,25);
{选股公式四:强势}
生命CCI线:=CCI(84)/10,COLORRED,LINETHICK2;
强势:CROSS(生命CCI线,12);
{选股公式五:启动(含有WINNER和COST函数)}
GUP1:=(CLOSE*2+HIGH+LOW)/4;
GUP2:=EMA(GUP1,13)-EMA(GUP1,34);
GUP3:=EMA(GUP2,5);
SHZJX:=(-2)*(GUP2-GUP3)*3.8;
ZLZJX:=2*(GUP2-GUP3)*3.8;
GUP4:=EMA(EMA(CLOSE,9),9);
控盘:=(GUP1-REF(GUP4,1))/REF(GUP4,1)*30;
GUP5:=100*WINNER(CLOSE*0.95);
高度控盘:=IF(GUP5>50 AND COST(80)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF;
散户资金线:=SHZJX,COLORGREEN;
主力资金线:=ZLZJX,COLORYELLOW,LINETHICK2;
飞龙在天:=EMA(COST(80),13);
启动:主力资金线>REF(主力资金线,1) AND 主力资金线>-1.3 AND C/REF(C,1)>1.05 AND C>飞龙在天 AND 高度控盘>1,COLORRED; |