副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(G1-LLV(G2,80))/(HHV(G4,80)-LLV(G2,80))*200;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=3*GUP2-2*GUP3;
GUP5:=LLV(G2,5);
GUP6:=HHV(G4,5);
GUP7:=EMA((G1-GUP5)/(GUP6-GUP5)*100,4)*2;
GUP8:=EMA(0.667*REF(GUP7,1)+0.333*GUP7,2);
GUP9:=3*GUP7-2*GUP8;
GUPA:=POW(MA(G1,5),2)+MA(G1,5);
GUPB:=POW(MA(G2,5),2)+MA(G2,5);
GUPC:=POW(MA(G4,5),2)+MA(G4,5);
GUPD:=(GUPA-LLV(GUPB,64))/(HHV(GUPC,64)-LLV(GUPB,64))*150+65-10;
GUPE:=SMA(GUPD,3,1)*1.5-100;
GUPF:=SMA(GUPE,3,1);
GUP10:=3*GUPE-2*GUPF;
GUP11:=(G4+G2+G1*2)/4;
GUP12:=EMA(GUP11,13);
GUP13:=STD(GUP11,13);
GUP14:=(GUP11-GUP12)*100/GUP13;
GUP15:=EMA(GUP14,5);
GUP17:=EMA(GUP15,13)+200-100;
GUP18:=EMA(GUP17,10);
GUP19:=3*GUP17-2*GUP18;
GUP1A:=GUP2+GUP7+GUPE+GUP17;
GUP1B:=GUP3+GUP8+GUPF+GUP18;
GUP1C:=GUP4+GUP9+GUP10+GUP19;
GUP1D:=(G4+G2+G1)/3;
GUP20:=(GUP1D-MA(GUP1D,34))/(0.015*AVEDEV(GUP1D,34));
GUP21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
GUP22:=(G4+G2+G1+GUP1D)/4;
GUP23:=EMA(GUP22,24);
GUP24:=STD(GUP22,24);
GUP25:=(GUP22-GUP23)/GUP24*100;
GUP26:=(GUP1D-MA(GUP1D,24))/(0.015*AVEDEV(GUP1D,24));
GUP27:=EMA(GUP25,5);
GUP2A:=((GUP27+GUP26+GUP20)/3+165)/4;
GUP2B:=(EMA(EMA(EMA(GUP2A,15),10),5)-25)*2+GUP21;
GUP2C:=(GUP1A+GUP1B+GUP1C*30)/32/5-15;
GUP2D:=EMA(GUP2C,13);
GUP2E:=(GUP2A+GUP2C)/2/1.1;
短线趋势:EMA(GUP2E,3),COLORMAGENTA,LINETHICK2;
波段趋势:EMA(短线趋势,5),COLORLIRED,LINETHICK2;
资金趋势:EMA((GUP2B+GUP2D)/2,2),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(波段趋势,资金趋势),资金趋势,' ←波段买'),COLORMAGENTA;
DRAWTEXT(CROSS(短线趋势,波段趋势),波段趋势,' ←短线买'),COLORLIMAGENTA;
选股公式源码
{选股公式一:波段买}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(G1-LLV(G2,80))/(HHV(G4,80)-LLV(G2,80))*200;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=3*GUP2-2*GUP3;
GUP5:=LLV(G2,5);
GUP6:=HHV(G4,5);
GUP7:=EMA((G1-GUP5)/(GUP6-GUP5)*100,4)*2;
GUP8:=EMA(0.667*REF(GUP7,1)+0.333*GUP7,2);
GUP9:=3*GUP7-2*GUP8;
GUPA:=POW(MA(G1,5),2)+MA(G1,5);
GUPB:=POW(MA(G2,5),2)+MA(G2,5);
GUPC:=POW(MA(G4,5),2)+MA(G4,5);
GUPD:=(GUPA-LLV(GUPB,64))/(HHV(GUPC,64)-LLV(GUPB,64))*150+65-10;
GUPE:=SMA(GUPD,3,1)*1.5-100;
GUPF:=SMA(GUPE,3,1);
GUP10:=3*GUPE-2*GUPF;
GUP11:=(G4+G2+G1*2)/4;
GUP12:=EMA(GUP11,13);
GUP13:=STD(GUP11,13);
GUP14:=(GUP11-GUP12)*100/GUP13;
GUP15:=EMA(GUP14,5);
GUP17:=EMA(GUP15,13)+200-100;
GUP18:=EMA(GUP17,10);
GUP19:=3*GUP17-2*GUP18;
GUP1A:=GUP2+GUP7+GUPE+GUP17;
GUP1B:=GUP3+GUP8+GUPF+GUP18;
GUP1C:=GUP4+GUP9+GUP10+GUP19;
GUP1D:=(G4+G2+G1)/3;
GUP20:=(GUP1D-MA(GUP1D,34))/(0.015*AVEDEV(GUP1D,34));
GUP21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
GUP22:=(G4+G2+G1+GUP1D)/4;
GUP23:=EMA(GUP22,24);
GUP24:=STD(GUP22,24);
GUP25:=(GUP22-GUP23)/GUP24*100;
GUP26:=(GUP1D-MA(GUP1D,24))/(0.015*AVEDEV(GUP1D,24));
GUP27:=EMA(GUP25,5);
GUP2A:=((GUP27+GUP26+GUP20)/3+165)/4;
GUP2B:=(EMA(EMA(EMA(GUP2A,15),10),5)-25)*2+GUP21;
GUP2C:=(GUP1A+GUP1B+GUP1C*30)/32/5-15;
GUP2D:=EMA(GUP2C,13);
GUP2E:=(GUP2A+GUP2C)/2/1.1;
短线趋势:=EMA(GUP2E,3),COLORMAGENTA,LINETHICK2;
波段趋势:=EMA(短线趋势,5),COLORLIRED,LINETHICK2;
资金趋势:=EMA((GUP2B+GUP2D)/2,2),COLORGREEN,LINETHICK2;
波段买:CROSS(波段趋势,资金趋势);
{选股公式二:短线买}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(G1-LLV(G2,80))/(HHV(G4,80)-LLV(G2,80))*200;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=3*GUP2-2*GUP3;
GUP5:=LLV(G2,5);
GUP6:=HHV(G4,5);
GUP7:=EMA((G1-GUP5)/(GUP6-GUP5)*100,4)*2;
GUP8:=EMA(0.667*REF(GUP7,1)+0.333*GUP7,2);
GUP9:=3*GUP7-2*GUP8;
GUPA:=POW(MA(G1,5),2)+MA(G1,5);
GUPB:=POW(MA(G2,5),2)+MA(G2,5);
GUPC:=POW(MA(G4,5),2)+MA(G4,5);
GUPD:=(GUPA-LLV(GUPB,64))/(HHV(GUPC,64)-LLV(GUPB,64))*150+65-10;
GUPE:=SMA(GUPD,3,1)*1.5-100;
GUPF:=SMA(GUPE,3,1);
GUP10:=3*GUPE-2*GUPF;
GUP11:=(G4+G2+G1*2)/4;
GUP12:=EMA(GUP11,13);
GUP13:=STD(GUP11,13);
GUP14:=(GUP11-GUP12)*100/GUP13;
GUP15:=EMA(GUP14,5);
GUP17:=EMA(GUP15,13)+200-100;
GUP18:=EMA(GUP17,10);
GUP19:=3*GUP17-2*GUP18;
GUP1A:=GUP2+GUP7+GUPE+GUP17;
GUP1B:=GUP3+GUP8+GUPF+GUP18;
GUP1C:=GUP4+GUP9+GUP10+GUP19;
GUP1D:=(G4+G2+G1)/3;
GUP20:=(GUP1D-MA(GUP1D,34))/(0.015*AVEDEV(GUP1D,34));
GUP21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
GUP22:=(G4+G2+G1+GUP1D)/4;
GUP23:=EMA(GUP22,24);
GUP24:=STD(GUP22,24);
GUP25:=(GUP22-GUP23)/GUP24*100;
GUP26:=(GUP1D-MA(GUP1D,24))/(0.015*AVEDEV(GUP1D,24));
GUP27:=EMA(GUP25,5);
GUP2A:=((GUP27+GUP26+GUP20)/3+165)/4;
GUP2B:=(EMA(EMA(EMA(GUP2A,15),10),5)-25)*2+GUP21;
GUP2C:=(GUP1A+GUP1B+GUP1C*30)/32/5-15;
GUP2D:=EMA(GUP2C,13);
GUP2E:=(GUP2A+GUP2C)/2/1.1;
短线趋势:=EMA(GUP2E,3),COLORMAGENTA,LINETHICK2;
波段趋势:=EMA(短线趋势,5),COLORLIRED,LINETHICK2;
资金趋势:=EMA((GUP2B+GUP2D)/2,2),COLORGREEN,LINETHICK2;
短线买:CROSS(短线趋势,波段趋势);
|