副图公式源码:支持手机/电脑
NOTEXT1:0,POINTDOT;
NOTEXT21:100,POINTDOT;
NOTEXT22:85,POINTDOT;
趋势:=EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1),3);
趋势吸筹:IF(趋势<=14,趋势,DRAWNULL),NODRAW,COLORCYAN;
DRAWICON(趋势>85 AND 趋势>REF(趋势,1),100,35);
DRAWICON(趋势>85 AND 趋势>REF(趋势,1),90,35);
DRAWICON(趋势>85 AND 趋势>REF(趋势,1),80,35);
ZL2:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
ZL3:=EMA(ZL2*10,3);
ZL4:=LLV(L,38);
ZL5:=HHV(ZL3,38);
ZL7:=EMA(IF(L<=ZL4,(ZL3+ZL5*2)/2,0),3)/618;
ZL8:=IF(ZL7>=100,100,ZL7);
主力吸筹:IF(ZL8>0,ZL8,DRAWNULL),COLORRED,NODRAW;
ZF3:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
ZF4:=EMA(ZF3*10,3);
ZF5:=LLV(L,13);
ZF6:=HHV(ZF4,13);
ZF7:=EMA(IF(LOW<=ZF5,(ZF4+ZF6*2)/2,0),3)/618;
ZF8:=IF(ZF7>500,500,ZF7);
致富吸筹:IF(ZF8>-120,ABS(ZF8),DRAWNULL),COLORGRAY,NODRAW;
黄彩柱:ZF8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),COLORYELLOW,NODRAW;
粉彩柱:ZF8>0.1 AND ZF8<1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),COLORMAGENTA,NODRAW;
最大值:=MAX(趋势吸筹,MAX(主力吸筹,致富吸筹));
最小值:=MIN(趋势吸筹,MIN(主力吸筹,致富吸筹));
STICKLINE(趋势吸筹=最大值,0,IF(趋势吸筹>0,趋势吸筹,DRAWNULL),2,0),COLORCYAN;
STICKLINE(主力吸筹=最大值,0,IF(主力吸筹>0,主力吸筹,DRAWNULL),2,0),COLORRED;
STICKLINE(致富吸筹=最大值,0,IF(致富吸筹>0,致富吸筹,DRAWNULL),2,1),COLORGRAY;
STICKLINE(RANGE(趋势吸筹,最小值,最大值)=1,0,IF(趋势吸筹>0,趋势吸筹,DRAWNULL),2,0),COLORCYAN;
STICKLINE(RANGE(主力吸筹,最小值,最大值)=1,0,IF(主力吸筹>0,主力吸筹,DRAWNULL),2,0),COLORRED;
STICKLINE(RANGE(致富吸筹,最小值,最大值)=1,0,IF(致富吸筹>0,致富吸筹,DRAWNULL),2,1),COLORGRAY;
STICKLINE(趋势吸筹=最小值,0,IF(趋势吸筹>0,趋势吸筹,DRAWNULL),2,0),COLORCYAN;
STICKLINE(主力吸筹=最小值,0,IF(主力吸筹>0,主力吸筹,DRAWNULL),2,0),COLORRED;
STICKLINE(致富吸筹=最小值,0,IF(致富吸筹>0,致富吸筹,DRAWNULL),2,1),COLORGRAY;
STICKLINE(黄彩柱,0,ZF8,0.1,0),COLORYELLOW;
STICKLINE(粉彩柱,0,ZF8,0.1,0),COLORMAGENTA;
DRAWICON(CROSS(趋势,10),最大值,25);
GUP10:=IF(ZF8>-120,ZF8,0);
GUP11:=GUP10<REF(GUP10,1);
DRAWICON(GUP11 AND REF(NOT(GUP11),1),ZF8+5,1);
GUP12:=SMA(((HHV(C,13)-C)/(HHV(C,13)-LLV(C,13))),5,1);
顶:2/GUP12-2,NODRAW,COLORGREEN;
STICKLINE(2/GUP12-2>0,20,2/GUP12-2+20,0,-1),COLORLIRED;
STICKLINE(1/13>GUP12,0+20,2/GUP12-2+20,1,0),COLORGREEN;
STICKLINE(1/13>GUP12,0+20,2/GUP12-2+20,0,0),COLORGREEN;
趋势线:趋势-10,COLORBLUE,LINETHICK2;
DRAWTEXT(FILTER(趋势线<=4,15),最大值+5,'建仓'),COLORCYAN;
快速线:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
慢速线:=SMA(快速线,3,1),COLORRED,LINETHICK2;
空头:=SMA(慢速线,3,1),COLOR00FF00;
牛股:IF(BARSLAST(CROSS(慢速线,空头))<9 AND BARSLAST(CROSS(空头,慢速线))<9 AND CROSS(慢速线,空头) AND 慢速线<20,100,0),COLORWHITE,LINETHICK2,STICK;
GUA:=IF(BARSLAST(CROSS(慢速线,快速线))>=3 AND CROSS(快速线,慢速线) AND 慢速线<30,20,0);
STICKLINE(GUA,0,60,0.5,0),COLORLIMAGENTA;
GUB:=IF(BARSLAST(CROSS(快速线,慢速线))>=4 AND CROSS(慢速线,快速线) AND 快速线>50,20,0);
STICKLINE(GUB,80,100,3,0),COLORGREEN;
选股公式源码
{选股公式一:牛股}
快速线:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
慢速线:=SMA(快速线,3,1),COLORRED,LINETHICK2;
空头:=SMA(慢速线,3,1),COLOR00FF00;
牛股:BARSLAST(CROSS(慢速线,空头))<9 AND BARSLAST(CROSS(空头,慢速线))<9 AND CROSS(慢速线,空头) AND 慢速线<20;
{选股公式二:红钻}
趋势:=EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1),3);
红钻:CROSS(趋势,10);
{选股公式三:红箭头}
ZF3:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
ZF4:=EMA(ZF3*10,3);
ZF5:=LLV(L,13);
ZF6:=HHV(ZF4,13);
ZF7:=EMA(IF(LOW<=ZF5,(ZF4+ZF6*2)/2,0),3)/618;
ZF8:=IF(ZF7>500,500,ZF7);
GUP10:=IF(ZF8>-120,ZF8,0);
GUP11:=GUP10<REF(GUP10,1);
红箭头:GUP11 AND REF(NOT(GUP11),1);
{选股公式四:建仓}
趋势:=EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1),3);
趋势线:=趋势-10,COLORBLUE,LINETHICK2;
建仓:FILTER(趋势线<=4,15);
{选股公式五:暗红柱}
快速线:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
慢速线:=SMA(快速线,3,1),COLORRED,LINETHICK2;
GUA:=IF(BARSLAST(CROSS(慢速线,快速线))>=3 AND CROSS(快速线,慢速线) AND 慢速线<30,20,0);
STICKLINE(GUA,0,60,0.5,0),COLORLIMAGENTA; |