副图公式源码支持 手机/电脑
N:=3;
CHP1:=MA(HHV(HIGH,485),17);
CHP2:=MA(HHV(HIGH,222),17);
CHP3:=MA(HHV(HIGH,96),17);
CHP4:=MA(LLV(LOW,485),17);
CHP5:=MA(LLV(LOW,222),17);
CHP6:=MA(LLV(LOW,96),17);
CHP7:=MA((CHP4*0.96+CHP5*0.96+CHP6*0.96+CHP1*0.558+CHP2*0.558+CHP3*0.558)/6,17);
CHP8:=MA((CHP4*1.25+CHP5*1.23+CHP6*1.2+CHP1*0.55+CHP2*0.55+CHP3*0.65)/6,17);
CHP9:=MA((CHP4*1.3+CHP5*1.3+CHP6*1.3+CHP1*0.68+CHP2*0.68+CHP3*0.68)/6,17);
CHPA:=MA((CHP7*3+CHP8*2+CHP9)/6*1.738,17);
CHPB:=IF(DATE<=1050531,CHPA,CHPA*DAY);
CHPC:=LOW;
CHPD:=REF(LOW,1);
CHPE:=SMA(ABS(CHPC-CHPD),3,1)/SMA(MAX(CHPC-CHPD,0),N,1)*100;
CHPF:=MA(IF(CLOSE*1.35<=CHPB,CHPE*10,CHPE/10),N);
CHP10:=LLV(LOW,30);
CHP11:=HHV(CHPF,30);
CHP12:=1990831;
绝佳:=IF(DATE<=CHP12,MA(IF(LOW<=CHP10,(CHPF+CHP11*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;
CHP1:=MA(HHV(HIGH,485),17);
CHP2:=MA(HHV(HIGH,222),17);
CHP3:=MA(HHV(HIGH,96),17);
CHP4:=MA(LLV(LOW,485),17);
CHP5:=MA(LLV(LOW,222),17);
CHP6:=MA(LLV(LOW,96),17);
CHP7:=MA((CHP4*0.96+CHP5*0.96+CHP6*0.96+CHP1*0.558+CHP2*0.558+CHP3*0.558)/6,17);
CHP8:=MA((CHP4*1.25+CHP5*1.23+CHP6*1.2+CHP1*0.55+CHP2*0.55+CHP3*0.65)/6,17);
CHP9:=MA((CHP4*1.3+CHP5*1.3+CHP6*1.3+CHP1*0.68+CHP2*0.68+CHP3*0.68)/6,17);
CHPA:=MA((CHP7*3+CHP8*2+CHP9)/6*1.738,17);
CHPB:=IF(DATE<=1050531,CHPA,CHPA*DAY);
CHPC:=LOW;
CHPD:=REF(LOW,1);
CHPE:=SMA(ABS(CHPC-CHPD),3,1)/SMA(MAX(CHPC-CHPD,0),N,1)*100;
CHPF:=MA(IF(CLOSE*1.35<=CHPB,CHPE*10,CHPE/10),N);
CHP10:=LLV(LOW,30);
CHP11:=HHV(CHPF,30);
CHP12:=1990831;
绝佳:=IF(DATE<=CHP12,MA(IF(LOW<=CHP10,(CHPF+CHP11*2)/2,0),N),100000000);
完全买入:绝佳>30000 AND 绝佳>30000,COLORRED,LINETHICK3;
{选股公式二:中线买入}
N:=3;
CHP1:=MA(HHV(HIGH,485),17);
CHP2:=MA(HHV(HIGH,222),17);
CHP3:=MA(HHV(HIGH,96),17);
CHP4:=MA(LLV(LOW,485),17);
CHP5:=MA(LLV(LOW,222),17);
CHP6:=MA(LLV(LOW,96),17);
CHP7:=MA((CHP4*0.96+CHP5*0.96+CHP6*0.96+CHP1*0.558+CHP2*0.558+CHP3*0.558)/6,17);
CHP8:=MA((CHP4*1.25+CHP5*1.23+CHP6*1.2+CHP1*0.55+CHP2*0.55+CHP3*0.65)/6,17);
CHP9:=MA((CHP4*1.3+CHP5*1.3+CHP6*1.3+CHP1*0.68+CHP2*0.68+CHP3*0.68)/6,17);
CHPA:=MA((CHP7*3+CHP8*2+CHP9)/6*1.738,17);
CHPB:=IF(DATE<=1050531,CHPA,CHPA*DAY);
CHPC:=LOW;
CHPD:=REF(LOW,1);
CHPE:=SMA(ABS(CHPC-CHPD),3,1)/SMA(MAX(CHPC-CHPD,0),N,1)*100;
CHPF:=MA(IF(CLOSE*1.35<=CHPB,CHPE*10,CHPE/10),N);
CHP10:=LLV(LOW,30);
CHP11:=HHV(CHPF,30);
CHP12:=1990831;
绝佳:=IF(DATE<=CHP12,MA(IF(LOW<=CHP10,(CHPF+CHP11*2)/2,0),N),100000000);
中线买入:绝佳>10000 AND 绝佳>20000,COLORFF00FF,LINETHICK2;
{选股公式三:短线买入}
N:=3;
CHP1:=MA(HHV(HIGH,485),17);
CHP2:=MA(HHV(HIGH,222),17);
CHP3:=MA(HHV(HIGH,96),17);
CHP4:=MA(LLV(LOW,485),17);
CHP5:=MA(LLV(LOW,222),17);
CHP6:=MA(LLV(LOW,96),17);
CHP7:=MA((CHP4*0.96+CHP5*0.96+CHP6*0.96+CHP1*0.558+CHP2*0.558+CHP3*0.558)/6,17);
CHP8:=MA((CHP4*1.25+CHP5*1.23+CHP6*1.2+CHP1*0.55+CHP2*0.55+CHP3*0.65)/6,17);
CHP9:=MA((CHP4*1.3+CHP5*1.3+CHP6*1.3+CHP1*0.68+CHP2*0.68+CHP3*0.68)/6,17);
CHPA:=MA((CHP7*3+CHP8*2+CHP9)/6*1.738,17);
CHPB:=IF(DATE<=1050531,CHPA,CHPA*DAY);
CHPC:=LOW;
CHPD:=REF(LOW,1);
CHPE:=SMA(ABS(CHPC-CHPD),3,1)/SMA(MAX(CHPC-CHPD,0),N,1)*100;
CHPF:=MA(IF(CLOSE*1.35<=CHPB,CHPE*10,CHPE/10),N);
CHP10:=LLV(LOW,30);
CHP11:=HHV(CHPF,30);
CHP12:=1990831;
绝佳:=IF(DATE<=CHP12,MA(IF(LOW<=CHP10,(CHPF+CHP11*2)/2,0),N),100000000);
短线买入:绝佳>500 AND 绝佳>2500,COLORYELLOW,LINETHICK1; |