副图公式源码支持 手机/电脑
N:=3;
GUP1:=MA(HHV(HIGH,485),17);
GUP2:=MA(HHV(HIGH,222),17);
GUP3:=MA(HHV(HIGH,96),17);
GUP4:=MA(LLV(LOW,485),17);
GUP5:=MA(LLV(LOW,222),17);
GUP6:=MA(LLV(LOW,96),17);
GUP7:=MA((GUP4*0.96+GUP5*0.96+GUP6*0.96+GUP1*0.558+GUP2*0.558+GUP3*0.558)/6,17);
GUP8:=MA((GUP4*1.25+GUP5*1.23+GUP6*1.2+GUP1*0.55+GUP2*0.55+GUP3*0.65)/6,17);
GUP9:=MA((GUP4*1.3+GUP5*1.3+GUP6*1.3+GUP1*0.68+GUP2*0.68+GUP3*0.68)/6,17);
GUPA:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);
GUPB:=IF(DATE<=1050531,GUPA,GUPA*DAY);
GUPC:=LOW;
GUPD:=REF(LOW,1);
GUPE:=SMA(ABS(GUPC-GUPD),3,1)/SMA(MAX(GUPC-GUPD,0),N,1)*100;
GUPF:=MA(IF(CLOSE*1.35<=GUPB,GUPE*10,GUPE/10),N);
GUP10:=LLV(LOW,30);
GUP11:=HHV(GUPF,30);
GUP12:=1990831;
绝佳:=IF(DATE<=GUP12,MA(IF(LOW<=GUP10,(GUPF+GUP11*2)/2,0),N),100000000);
短线买入:IF(绝佳>500 AND 绝佳>2500,1,0),COLORYELLOW,LINETHICK1;
中线买入:IF(绝佳>10000 AND 绝佳>20000,2,0),COLORFF00FF,LINETHICK2;
完全买入:IF(绝佳>30000 AND 绝佳>30000,3,0),COLORRED,LINETHICK3;
选股公式源码
{选股公式一:完全买入}
N:=3;
GUP1:=MA(HHV(HIGH,485),17);
GUP2:=MA(HHV(HIGH,222),17);
GUP3:=MA(HHV(HIGH,96),17);
GUP4:=MA(LLV(LOW,485),17);
GUP5:=MA(LLV(LOW,222),17);
GUP6:=MA(LLV(LOW,96),17);
GUP7:=MA((GUP4*0.96+GUP5*0.96+GUP6*0.96+GUP1*0.558+GUP2*0.558+GUP3*0.558)/6,17);
GUP8:=MA((GUP4*1.25+GUP5*1.23+GUP6*1.2+GUP1*0.55+GUP2*0.55+GUP3*0.65)/6,17);
GUP9:=MA((GUP4*1.3+GUP5*1.3+GUP6*1.3+GUP1*0.68+GUP2*0.68+GUP3*0.68)/6,17);
GUPA:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);
GUPB:=IF(DATE<=1050531,GUPA,GUPA*DAY);
GUPC:=LOW;
GUPD:=REF(LOW,1);
GUPE:=SMA(ABS(GUPC-GUPD),3,1)/SMA(MAX(GUPC-GUPD,0),N,1)*100;
GUPF:=MA(IF(CLOSE*1.35<=GUPB,GUPE*10,GUPE/10),N);
GUP10:=LLV(LOW,30);
GUP11:=HHV(GUPF,30);
GUP12:=1990831;
绝佳:=IF(DATE<=GUP12,MA(IF(LOW<=GUP10,(GUPF+GUP11*2)/2,0),N),100000000);
完全买入:绝佳>30000 AND 绝佳>30000,COLORRED,LINETHICK3;
{选股公式二:中线买入}
N:=3;
GUP1:=MA(HHV(HIGH,485),17);
GUP2:=MA(HHV(HIGH,222),17);
GUP3:=MA(HHV(HIGH,96),17);
GUP4:=MA(LLV(LOW,485),17);
GUP5:=MA(LLV(LOW,222),17);
GUP6:=MA(LLV(LOW,96),17);
GUP7:=MA((GUP4*0.96+GUP5*0.96+GUP6*0.96+GUP1*0.558+GUP2*0.558+GUP3*0.558)/6,17);
GUP8:=MA((GUP4*1.25+GUP5*1.23+GUP6*1.2+GUP1*0.55+GUP2*0.55+GUP3*0.65)/6,17);
GUP9:=MA((GUP4*1.3+GUP5*1.3+GUP6*1.3+GUP1*0.68+GUP2*0.68+GUP3*0.68)/6,17);
GUPA:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);
GUPB:=IF(DATE<=1050531,GUPA,GUPA*DAY);
GUPC:=LOW;
GUPD:=REF(LOW,1);
GUPE:=SMA(ABS(GUPC-GUPD),3,1)/SMA(MAX(GUPC-GUPD,0),N,1)*100;
GUPF:=MA(IF(CLOSE*1.35<=GUPB,GUPE*10,GUPE/10),N);
GUP10:=LLV(LOW,30);
GUP11:=HHV(GUPF,30);
GUP12:=1990831;
绝佳:=IF(DATE<=GUP12,MA(IF(LOW<=GUP10,(GUPF+GUP11*2)/2,0),N),100000000);
中线买入:绝佳>10000 AND 绝佳>20000,COLORFF00FF,LINETHICK2;
{选股公式三:短线买入}
N:=3;
GUP1:=MA(HHV(HIGH,485),17);
GUP2:=MA(HHV(HIGH,222),17);
GUP3:=MA(HHV(HIGH,96),17);
GUP4:=MA(LLV(LOW,485),17);
GUP5:=MA(LLV(LOW,222),17);
GUP6:=MA(LLV(LOW,96),17);
GUP7:=MA((GUP4*0.96+GUP5*0.96+GUP6*0.96+GUP1*0.558+GUP2*0.558+GUP3*0.558)/6,17);
GUP8:=MA((GUP4*1.25+GUP5*1.23+GUP6*1.2+GUP1*0.55+GUP2*0.55+GUP3*0.65)/6,17);
GUP9:=MA((GUP4*1.3+GUP5*1.3+GUP6*1.3+GUP1*0.68+GUP2*0.68+GUP3*0.68)/6,17);
GUPA:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);
GUPB:=IF(DATE<=1050531,GUPA,GUPA*DAY);
GUPC:=LOW;
GUPD:=REF(LOW,1);
GUPE:=SMA(ABS(GUPC-GUPD),3,1)/SMA(MAX(GUPC-GUPD,0),N,1)*100;
GUPF:=MA(IF(CLOSE*1.35<=GUPB,GUPE*10,GUPE/10),N);
GUP10:=LLV(LOW,30);
GUP11:=HHV(GUPF,30);
GUP12:=1990831;
绝佳:=IF(DATE<=GUP12,MA(IF(LOW<=GUP10,(GUPF+GUP11*2)/2,0),N),100000000);
短线买入:绝佳>500 AND 绝佳>2500,COLORYELLOW,LINETHICK1; |