副图公式源码支持 手机/电脑
GUP1:=EMA(HHV(HIGH,500),21);
GUP2:=EMA(HHV(HIGH,250),21);
GUP3:=EMA(HHV(HIGH,90),21);
GUP4:=EMA(LLV(LOW,500),21);
GUP5:=EMA(LLV(LOW,250),21);
GUP6:=EMA(LLV(LOW,90),21);
GUP7:=EMA((GUP4*0.96+GUP5*0.96+GUP6*0.96+GUP1*0.558+GUP2*0.558+GUP3*0.558)/6,21);
GUP8:=EMA((GUP4*1.25+GUP5*1.23+GUP6*1.2+GUP1*0.55+GUP2*0.55+GUP3*0.65)/6,21);
GUP9:=EMA((GUP4*1.3+GUP5*1.3+GUP6*1.3+GUP1*0.68+GUP2*0.68+GUP3*0.68)/6,21);
GUPA:=EMA((GUP7*3+GUP8*2+GUP9)/6*1.738,21);
GUPB:=REF(LOW,1);
GUPC:=SMA(ABS(LOW-GUPB),3,1)/SMA(MAX(LOW-GUPB,0),3,1)*100;
GUPD:=EMA(IF(CLOSE*1.35<=GUPA,GUPC*10,GUPC/10),3);
GUPE:=LLV(LOW,30);
GUPF:=HHV(GUPD,30);
GUP10:=IF(MA(CLOSE,58),1,0);
筹码换手:EMA(IF(LOW<=GUPE,(GUPD+GUPF*2)/2,0),3)/618*GUP10,COLORRED;
GUP11:=100-WINNER(C/0.99)*100;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))*1000/(15*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
GUA1:=CROSS(K,20);
GUA2:=EXIST(GUP11>40,10);
GUA3:=EXIST(CCI<-150,15);
筹码抄底:=GUA1 AND GUA2 AND GUA3;
启动:25;
小顶:100;
大顶:110,LINETHICK2;
GUB1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
GUB2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUB3:=(SMA(GUB2,3,1)-18)*1.55;
GUB4:=SMA(GUB3,3,1);
GUB5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
GUB6:=SMA(GUB5,10,1);
GUB7:=(EMA(SMA(GUB6,8,1),34)-25)*2.6;
GUB8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
GUB9:=POW(MA(LOW,5),2)+MA(LOW,5);
GUBA:=POW(MA(HIGH,5),2)+MA(HIGH,5);
GUBB:=((GUB8-LLV(GUB9,64))/(HHV(GUBA,64)-LLV(GUB9,64))*150+65-10)/2;
GUBC:=SMA(GUBB,3,1)*1.5-46;
GUBD:=SMA(GUBC,3,1);
GUBE:=3*GUBC-2*GUBD;
GUBF:=(GUB1+GUB2+GUB5)/3;
GUB10:=((GUB3+GUB3+GUB6+GUBC)/4-15)*1.67;
GUB11:=((GUB4+GUB4+GUB7+GUBD)/4-15)*1.67;
GUB12:=((GUB1+GUB5*2+GUBF+GUB10+GUB11+GUBB+GUBC+GUBD+GUBE)/10-15)*1.67;
GUB13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
GUB14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
GUB15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
GUB16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
GUB17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
GUB18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
GUB19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
GUB1A:=((GUB13*8+GUB14*8+GUB15*8+GUB16+GUB17+GUB18+GUB19)/28-0.1)*185;
GUB1B:=SMA(GUB1A,3,1);
筹码GUB3+GUB6+GUB1B*2)/4,LINETHICK2;
STICKLINE(筹码抄底,0,20,3,0),COLORYELLOW;
DRAWTEXT (筹码抄底,30,'抄底'),COLORYELLOW,LINETHICK2;
卖出:=CROSS(大顶,筹码);
STICKLINE(卖出,105,110,2,0),COLORRED;
DRAWTEXT (卖出,103,'离场'),COLORRED,LINETHICK3;
GUP1J:=3;
GUP2J:=((3*SMA((((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*100),5,1))-(2*SMA(SMA((((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*100),5,1),3,1)));
底:IF(CROSS(GUP2J,GUP1J),1,0),COLORFFFFFF;
STICKLINE(底,0,8,3,0),COLORFF00FF;
减:=CROSS(小顶,筹码);
STICKLINE(减,95,100,2,0),COLORGREEN;
DRAWTEXT (减,90,'减仓'),COLORGREEN,LINETHICK3;
选股公式源码
{选股公式:抄底}
GUP11:=100-WINNER(C/0.99)*100;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))*1000/(15*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
GUA1:=CROSS(K,20);
GUA2:=EXIST(GUP11>40,10);
GUA3:=EXIST(CCI<-150,15);
筹码抄底:=GUA1 AND GUA2 AND GUA3;
抄底:筹码抄底;
{卖出公式一:离场}
大顶:=110,LINETHICK2;
GUB1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
GUB2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUB3:=(SMA(GUB2,3,1)-18)*1.55;
GUB4:=SMA(GUB3,3,1);
GUB5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
GUB6:=SMA(GUB5,10,1);
GUB7:=(EMA(SMA(GUB6,8,1),34)-25)*2.6;
GUB8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
GUB9:=POW(MA(LOW,5),2)+MA(LOW,5);
GUBA:=POW(MA(HIGH,5),2)+MA(HIGH,5);
GUBB:=((GUB8-LLV(GUB9,64))/(HHV(GUBA,64)-LLV(GUB9,64))*150+65-10)/2;
GUBC:=SMA(GUBB,3,1)*1.5-46;
GUBD:=SMA(GUBC,3,1);
GUBE:=3*GUBC-2*GUBD;
GUBF:=(GUB1+GUB2+GUB5)/3;
GUB10:=((GUB3+GUB3+GUB6+GUBC)/4-15)*1.67;
GUB11:=((GUB4+GUB4+GUB7+GUBD)/4-15)*1.67;
GUB12:=((GUB1+GUB5*2+GUBF+GUB10+GUB11+GUBB+GUBC+GUBD+GUBE)/10-15)*1.67;
GUB13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
GUB14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
GUB15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
GUB16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
GUB17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
GUB18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
GUB19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
GUB1A:=((GUB13*8+GUB14*8+GUB15*8+GUB16+GUB17+GUB18+GUB19)/28-0.1)*185;
GUB1B:=SMA(GUB1A,3,1);
筹码:=(GUB3+GUB6+GUB1B*2)/4,LINETHICK2;
卖出:=CROSS(大顶,筹码);
离场:卖出;
{卖出公式二:减仓}
小顶:=100;
GUB1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
GUB2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUB3:=(SMA(GUB2,3,1)-18)*1.55;
GUB4:=SMA(GUB3,3,1);
GUB5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
GUB6:=SMA(GUB5,10,1);
GUB7:=(EMA(SMA(GUB6,8,1),34)-25)*2.6;
GUB8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
GUB9:=POW(MA(LOW,5),2)+MA(LOW,5);
GUBA:=POW(MA(HIGH,5),2)+MA(HIGH,5);
GUBB:=((GUB8-LLV(GUB9,64))/(HHV(GUBA,64)-LLV(GUB9,64))*150+65-10)/2;
GUBC:=SMA(GUBB,3,1)*1.5-46;
GUBD:=SMA(GUBC,3,1);
GUBE:=3*GUBC-2*GUBD;
GUBF:=(GUB1+GUB2+GUB5)/3;
GUB10:=((GUB3+GUB3+GUB6+GUBC)/4-15)*1.67;
GUB11:=((GUB4+GUB4+GUB7+GUBD)/4-15)*1.67;
GUB12:=((GUB1+GUB5*2+GUBF+GUB10+GUB11+GUBB+GUBC+GUBD+GUBE)/10-15)*1.67;
GUB13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
GUB14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
GUB15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
GUB16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
GUB17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
GUB18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
GUB19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
GUB1A:=((GUB13*8+GUB14*8+GUB15*8+GUB16+GUB17+GUB18+GUB19)/28-0.1)*185;
GUB1B:=SMA(GUB1A,3,1);
筹码:=(GUB3+GUB6+GUB1B*2)/4,LINETHICK2;
减:=CROSS(小顶,筹码);
减仓:减;
|