副图公式源码 :支持手机/电脑
REFLINE: 0, 20, 50, 80, 100; RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; K:SMA(RSV,5,1); D:SMA(K,3,1); J:3*K-2*D; 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,COLORYELLOW; 火焰:=STICKLINE(火焰山>0 ,0 ,火焰山 ,4 ,1); 今量:=火焰山; STICKLINE(火焰山>0,0 ,今量*1.2,8,0 ),COLOR00EEFF; STICKLINE(火焰山>0,0 ,今量*0.8,8,0 ),COLOR00BBFF; STICKLINE(火焰山>0,0 ,今量*0.6,8,0 ),COLOR0099FF; STICKLINE(火焰山>0,0 ,今量*0.4,8,0 ),COLOR0066FF; STICKLINE(火焰山>0,0 ,今量*0.2,8,0 ),COLOR0000FF; 缩量:火焰山<REF(火焰山,1); 缩量天数:BARSLAST(缩量=0); 建仓XG:缩量天数=1; 翻红:J>REF(J,1); 翻红天数:BARSLAST(翻红=0); 拉升:翻红天数=1 AND 火焰山>1; 翻红XG:翻红天数=1;
选股公式源码
{选股公式一:翻红XG}RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; K:=SMA(RSV,5,1); D:=SMA(K,3,1); J:=3*K-2*D; 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,COLORYELLOW; 翻红:=J>REF(J,1); 翻红天数:=BARSLAST(翻红=0); 拉升:=翻红天数=1 AND 火焰山>1; 翻红XG:翻红天数=1;
{选股公式二:建仓XG} 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,COLORYELLOW; 缩量:=火焰山<REF(火焰山,1); 缩量天数:=BARSLAST(缩量=0); 建仓XG:缩量天数=1;
|