副图公式 源码支持手机/电脑
CHA:=(O+H+L+C)/4;
CHB:=MA(CHA,3);
CHC:=SUM(IF(CHA>REF(CHA,1),CHA*VOL,0),4)/SUM(IF(CHA
CHD:=REF(100-(100/(1+CHC)),1);
CHA1:=HHV(CHA,15);
CHA2:=LLV(CHA,15);
CHA3:=CHA1-CHA2;
CHA4:=EMA((CHA-CHA2)/CHA3,2)*100;
CHB1:=HHV(CHA,60);
CHB2:=LLV(CHA,60);
CHB3:=CHB1-CHB2;
CHB4:=EMA((CHA-CHB2)/CHB3,2)*100;
CHC1:=HHV(CHA,240);
CHC2:=LLV(CHA,240);
CHC3:=CHC1-CHC2;
CHC4:=EMA((CHA-CHC2)/CHC3,2)*100;
短线:CHA4,COLORGREEN;
中线:CHB4,COLORYELLOW;
长线:CHC4,COLORFF00FF;
IF(FILTER(中线[90 AND CHB]
IF(FILTER(中线>REF(中线,1) AND 中线<5 AND C>REF(C,1),5),20,0),COLORRED,LINETHICK2;
STICKLINE(短线>90 AND 中线>70,95,100,1,0),COLORFF00FF;
STICKLINE(短线<5 AND 中线<30,0,5,1,0),COLORFF00FF;
CHD1:=中线>REF(中线,1) AND 短线>REF(短线,1) AND 长线>REF(长线,1) AND 长线<8 AND 中线<10 AND 短线<15;
CHD2:=CROSS(短线,中线) AND 中线<8;
CHD3:=CROSS(短线,长线) AND 长线<8 AND 中线<20;
DRAWICON(FILTER((CHD1 OR CHD2 OR CHD3) AND CHD<15 AND C>REF(C,1),5),5,1);
DRAWICON(FILTER((中线[95 AND 短线>85)OR (长线>100 AND 中线>100 AND 短线>100),5),95,2);]
顶部线:90,LINETHICK1,COLORWHITE;
牛熊线:50,LINETHICK1,COLORYELLOW;
底部线:20,COLORFFFF00;
选股公式源码
{选股公式一:红色信号}
CHA:=(O+H+L+C)/4;
CHB:=MA(CHA,3);
CHC:=SUM(IF(CHA>REF(CHA,1),CHA*VOL,0),4)/SUM(IF(CHA
CHD:=REF(100-(100/(1+CHC)),1);
CHA1:=HHV(CHA,15);
CHA2:=LLV(CHA,15);
CHA3:=CHA1-CHA2;
CHA4:=EMA((CHA-CHA2)/CHA3,2)*100;
CHB1:=HHV(CHA,60);
CHB2:=LLV(CHA,60);
CHB3:=CHB1-CHB2;
CHB4:=EMA((CHA-CHB2)/CHB3,2)*100;
CHC1:=HHV(CHA,240);
CHC2:=LLV(CHA,240);
CHC3:=CHC1-CHC2;
CHC4:=EMA((CHA-CHC2)/CHC3,2)*100;
短线:=CHA4,COLORGREEN;
中线:=CHB4,COLORYELLOW;
长线:=CHC4,COLORFF00FF;
红色信号:FILTER(中线>REF(中线,1) AND 中线<5 AND C>REF(C,1),5),COLORRED,LINETHICK2;
{选股公式二:绿箭头图标}
CHA:=(O+H+L+C)/4;
CHB:=MA(CHA,3);
CHC:=SUM(IF(CHA>REF(CHA,1),CHA*VOL,0),4)/SUM(IF(CHA
CHD:=REF(100-(100/(1+CHC)),1);
CHA1:=HHV(CHA,15);
CHA2:=LLV(CHA,15);
CHA3:=CHA1-CHA2;
CHA4:=EMA((CHA-CHA2)/CHA3,2)*100;
CHB1:=HHV(CHA,60);
CHB2:=LLV(CHA,60);
CHB3:=CHB1-CHB2;
CHB4:=EMA((CHA-CHB2)/CHB3,2)*100;
CHC1:=HHV(CHA,240);
CHC2:=LLV(CHA,240);
CHC3:=CHC1-CHC2;
CHC4:=EMA((CHA-CHC2)/CHC3,2)*100;
短线:=CHA4,COLORGREEN;
中线:=CHB4,COLORYELLOW;
长线:=CHC4,COLORFF00FF;
CHD1:=中线>REF(中线,1) AND 短线>REF(短线,1) AND 长线>REF(长线,1) AND 长线<8 AND 中线<10 AND 短线<15;
CHD2:=CROSS(短线,中线) AND 中线<8;
CHD3:=CROSS(短线,长线) AND 长线<8 AND 中线<20;
绿箭头图标:FILTER((CHD1 OR CHD2 OR CHD3) AND CHD<15 AND C>REF(C,1),5); |