副图公式源码支持 手机/电脑
CHP1:=(2*C+H+L)/4;
CHP2:=LLV(L,34);
CHP3:=HHV(H,34);
CHP4:=EMA((CHP1-CHP2) / (CHP3-CHP2)*100,13);
CHP5:=EMA(0.667*REF(CHP4,1)+0.333*CHP4,2)-CHP4;
CHP6:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70;
CHP7:=SMA(CHP6,9,1)+100;
CHP8:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
CHP9:=SMA(CHP8,3,1);
CHP10:=SMA(CHP9,3,1)+100;
CHP11:=CHP10-CHP7;
CHP12:=IF(CHP11>60,CHP11-60,0);
STICKLINE(REF(CHP12,1)<CHP12,CHP12,REF(CHP12,1),5,0),COLORRED;
STICKLINE(REF(CHP12,1)>CHP12,CHP12,REF(CHP12,1),5,0),COLORFFFF00;
CHP13:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(CHP13,5);
CHP14:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
CHP15:=EMA(C,5);
CHP16:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(CHP16,6,1)-2*SMA(SMA(CHP16,5,1),5,1),2));
CHP17:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑马线,1)>90 AND CHP14<0,7),黑马线,'出逃'),COLOR00FF00;
DRAWTEXT(CROSS(CHP13,黑马线)AND 黑马线<CHP17,黑马线,'牛股'),COLORYELLOW;
DRAWTEXT(CROSS(黑马线,CHP17)AND 趋势线<80,黑马线,'追涨'),COLOR688EC1;
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大牛股'),COLORFFFF00;
选股公式源码
{选股公式一:牛股}
CHP13:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(CHP13,5);
CHP17:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
{DRAWTEXT(CROSS(CHP13,黑马线)AND 黑马线<CHP17,黑马线,'牛股'),COLORYELLOW;}
牛股:CROSS(CHP13,黑马线)AND 黑马线<CHP17;
{选股公式二:大牛股}
CHP13:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(CHP13,5);
CHP14:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
CHP15:=EMA(C,5);
CHP16:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(CHP16,6,1)-2*SMA(SMA(CHP16,5,1),5,1),2));
{DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大牛股'),COLORFFFF00;}
大牛股:CROSS(趋势线,0)AND 黑马线<40;
{选股公式三:追涨}
CHP13:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(CHP13,5);
CHP14:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
CHP15:=EMA(C,5);
CHP16:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(CHP16,6,1)-2*SMA(SMA(CHP16,5,1),5,1),2));
CHP17:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
{DRAWTEXT(CROSS(黑马线,CHP17)AND 趋势线<80,黑马线,'追涨'),COLOR688EC1;}
追涨:CROSS(黑马线,CHP17)AND 趋势线<80; |