副图公式源码支持 手机/电脑
GUA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买进量:=IF(CLOSE>OPEN,GUA*(HIGH-LOW),IF(CLOSE<OPEN,GUA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
卖出量:=IF(CLOSE>OPEN,0-GUA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-GUA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
进出量:=买进量+卖出量,COLOR00FFFF;
净流入5日:=SUM(进出量,5),LINETHICK1,COLORLIBLUE;
GUB1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
GUB2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
GUB3:=EMA(0.618*REF(GUB2,1)+0.382*GUB2,2);
GUB4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
GUB5:=POW(MA(LOW,5),2)+MA(LOW,5);
GUB6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
GUB7:=(GUB4-LLV(GUB5,64))/(HHV(GUB6,64)-LLV(GUB5,64))*150+65-10;
GUB8:=SMA((SMA(GUB7,3,1)*1.5-100),3,1);
GUB9:=3*(SMA(GUB7,3,1)*1.5-100)-2*GUB8;
GUB10:=(HIGH+LOW+CLOSE*2)/4;
GUB11:=(GUB10-(EMA(GUB10,13)))*100/(STD(GUB10,13));
GUB12:=EMA((EMA(GUB11,5)),13)+200-100;
GUB13:=(SMA(GUB1,3,1))+GUB2+(SMA(GUB7,3,1)*1.5-100)+GUB12;
GUB14:=(SMA((SMA(GUB1,3,1)),3,1))+GUB3+GUB8+(EMA(GUB12,10));
GUB15:=(3*(SMA(GUB1,3,1))-2*(SMA((SMA(GUB1,3,1)),3,1)))+(3*GUB12-2*(EMA(GUB12,10)))+
GUB9+(3*GUB12-2*(EMA(GUB12,10)));
GUB16:=(HIGH+LOW+CLOSE)/3;
GUB17:=(GUB16-MA(GUB16,34))/(0.015*AVEDEV(GUB16,34));
GUB18:=(HIGH+LOW+CLOSE+GUB16)/4;
GUB19:=(GUB18-(EMA(GUB18,24)))/(STD(GUB18,24))*100;
GUB20:=(GUB16-MA(GUB16,24))/(0.015*AVEDEV(GUB16,24));
GUB21:=(((EMA(GUB19,5))+GUB20+GUB17)/3+165)/4;
GUB22:=(GUB13+GUB14+GUB15*30)/32/5-15;
买卖线:EMA(((GUB21+GUB22)/2/1.1),1);
阻力线:MA(买卖线,3),COLORWHITE,LINETHICK2;
IF(买卖线< 阻力线,买卖线,DRAWNULL),COLORGREEN,LINETHICK2;
IF(买卖线>=阻力线,买卖线,DRAWNULL),COLORRED,LINETHICK2;
神测CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*250,COLORYELLOW,LINETHICK2;
黑马狂奔:IF(CROSS(神测,0) AND CROSS(买卖线,阻力线) AND 阻力线>0 AND 阻力线>REF(阻力线,1) AND 净流入5日>0 AND 净流入5日>REF(净流入5日,1),10,0),COLORRED;
DRAWICON(CROSS(买卖线,阻力线) AND 神测>REF(神测,1),阻力线,1);
DRAWICON(CROSS(阻力线,买卖线),阻力线-3.66,2);
DRAWICON(CROSS(买卖线,120),买卖线*1.06,39);
STICKLINE(CROSS(神测,0) AND CROSS(买卖线,阻力线) AND 阻力线>0 AND 阻力线>REF(阻力线,1) AND 净流入5日>0 AND 净流入5日>REF(净流入5日,1),22.8,0,1,0),COLORRED;
DRAWTEXT(CROSS(神测,0) AND CROSS(买卖线,阻力线) AND 阻力线>0 AND 阻力线>REF(阻力线,1) AND 净流入5日>0 AND 净流入5日>REF(净流入5日,1),29,'←━黑马狂奔'),COLORLIMAGENTA;
GUP2W:=REF(LOW,1);
GUP3W:=SMA(ABS(LOW-GUP2W),3,1)/SMA(MAX(LOW-GUP2W,0),3,1)*100;
GUP4W:=EMA(IF(CLOSE*1.3,GUP3W*10,GUP3W/10),3);
GUP5W:=LLV(LOW,30);
GUP6W:=HHV(GUP4W,30);
GUP7W:=IF(MA(CLOSE,58),1,0);
GUP8W:=EMA(IF(LOW<=GUP5W,(GUP4W+GUP6W*2)/2,0),3)/618*GUP7W;
GUP9W:=IF(GUP8W>100,100,GUP8W);
STICKLINE(GUP9W>-150,0,GUP9W,2,0),COLORLIMAGENTA;
吸筹:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
STICKLINE(CROSS(吸筹,-24),88,0,1,0), COLORWHITE;
DRAWTEXT(CROSS(吸筹,-24),89,'抄底');
强弱线:50,COLORLIBLUE,DOTLINE;
顶部:100,COLORLIGREEN;
DRAWTEXT(ISLASTBAR,100,'逃顶'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,10,'低吸'),COLORGREEN;
选股公式源码
{选股公式一:黑马狂奔}
GUA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买进量:=IF(CLOSE>OPEN,GUA*(HIGH-LOW),IF(CLOSE<OPEN,GUA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
卖出量:=IF(CLOSE>OPEN,0-GUA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-GUA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
进出量:=买进量+卖出量,COLOR00FFFF;
净流入5日:=SUM(进出量,5),LINETHICK1,COLORLIBLUE;
GUB1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
GUB2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
GUB3:=EMA(0.618*REF(GUB2,1)+0.382*GUB2,2);
GUB4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
GUB5:=POW(MA(LOW,5),2)+MA(LOW,5);
GUB6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
GUB7:=(GUB4-LLV(GUB5,64))/(HHV(GUB6,64)-LLV(GUB5,64))*150+65-10;
GUB8:=SMA((SMA(GUB7,3,1)*1.5-100),3,1);
GUB9:=3*(SMA(GUB7,3,1)*1.5-100)-2*GUB8;
GUB10:=(HIGH+LOW+CLOSE*2)/4;
GUB11:=(GUB10-(EMA(GUB10,13)))*100/(STD(GUB10,13));
GUB12:=EMA((EMA(GUB11,5)),13)+200-100;
GUB13:=(SMA(GUB1,3,1))+GUB2+(SMA(GUB7,3,1)*1.5-100)+GUB12;
GUB14:=(SMA((SMA(GUB1,3,1)),3,1))+GUB3+GUB8+(EMA(GUB12,10));
GUB15:=(3*(SMA(GUB1,3,1))-2*(SMA((SMA(GUB1,3,1)),3,1)))+(3*GUB12-2*(EMA(GUB12,10)))+
GUB9+(3*GUB12-2*(EMA(GUB12,10)));
GUB16:=(HIGH+LOW+CLOSE)/3;
GUB17:=(GUB16-MA(GUB16,34))/(0.015*AVEDEV(GUB16,34));
GUB18:=(HIGH+LOW+CLOSE+GUB16)/4;
GUB19:=(GUB18-(EMA(GUB18,24)))/(STD(GUB18,24))*100;
GUB20:=(GUB16-MA(GUB16,24))/(0.015*AVEDEV(GUB16,24));
GUB21:=(((EMA(GUB19,5))+GUB20+GUB17)/3+165)/4;
GUB22:=(GUB13+GUB14+GUB15*30)/32/5-15;
买卖线:=EMA(((GUB21+GUB22)/2/1.1),1);
阻力线:=MA(买卖线,3),COLORWHITE,LINETHICK2;
神测:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*250,COLORYELLOW,LINETHICK2;
黑马狂奔:CROSS(神测,0) AND CROSS(买卖线,阻力线) AND 阻力线>0 AND 阻力线>REF(阻力线,1) AND 净流入5日>0 AND 净流入5日>REF(净流入5日,1),COLORRED;
{选股公式二:抄底}
吸筹:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
抄底:CROSS(吸筹,-24);
{选股公式三:红箭头图标}
GUB1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
GUB2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
GUB3:=EMA(0.618*REF(GUB2,1)+0.382*GUB2,2);
GUB4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
GUB5:=POW(MA(LOW,5),2)+MA(LOW,5);
GUB6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
GUB7:=(GUB4-LLV(GUB5,64))/(HHV(GUB6,64)-LLV(GUB5,64))*150+65-10;
GUB8:=SMA((SMA(GUB7,3,1)*1.5-100),3,1);
GUB9:=3*(SMA(GUB7,3,1)*1.5-100)-2*GUB8;
GUB10:=(HIGH+LOW+CLOSE*2)/4;
GUB11:=(GUB10-(EMA(GUB10,13)))*100/(STD(GUB10,13));
GUB12:=EMA((EMA(GUB11,5)),13)+200-100;
GUB13:=(SMA(GUB1,3,1))+GUB2+(SMA(GUB7,3,1)*1.5-100)+GUB12;
GUB14:=(SMA((SMA(GUB1,3,1)),3,1))+GUB3+GUB8+(EMA(GUB12,10));
GUB15:=(3*(SMA(GUB1,3,1))-2*(SMA((SMA(GUB1,3,1)),3,1)))+(3*GUB12-2*(EMA(GUB12,10)))+
GUB9+(3*GUB12-2*(EMA(GUB12,10)));
GUB16:=(HIGH+LOW+CLOSE)/3;
GUB17:=(GUB16-MA(GUB16,34))/(0.015*AVEDEV(GUB16,34));
GUB18:=(HIGH+LOW+CLOSE+GUB16)/4;
GUB19:=(GUB18-(EMA(GUB18,24)))/(STD(GUB18,24))*100;
GUB20:=(GUB16-MA(GUB16,24))/(0.015*AVEDEV(GUB16,24));
GUB21:=(((EMA(GUB19,5))+GUB20+GUB17)/3+165)/4;
GUB22:=(GUB13+GUB14+GUB15*30)/32/5-15;
买卖线:=EMA(((GUB21+GUB22)/2/1.1),1);
阻力线:=MA(买卖线,3),COLORWHITE,LINETHICK2;
神测:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*250,COLORYELLOW,LINETHICK2;
红箭头图标:CROSS(买卖线,阻力线) AND 神测>REF(神测,1);
|