主图公式源码 :支持手机/电脑
趋势线:EMA(C,5);
短期线:EMA(趋势线,8);
中期线:EMA(短期线,13);
长期线:EMA(中期线,50);
GUP1:=(H+L+C*2)/4;
GUP2:=EMA((L+H+O)/3,5);
GUP3:=EMA(GUP1,8);
GUP4:=STD(GUP1,8);
GUP5:=(GUP1-GUP3)/GUP4*100;
GUP6:=EMA(EMA(GUP5,8),4);
GUP7:=EMA(GUP6,9);
GUP8:=((H+L+C)/3-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100-50;
GUP9:=SMA(GUP8,3,1);
GUP10:=SMA(GUP8,26,1);
GUP11:=SMA(GUP9,3,1);
GUP12:=SMA(GUP11,3,1);
GUP13:=CROSS(GUP11,GUP12)AND GUP11<0 AND GUP11>REF(GUP11,1)AND 趋势线>REF(趋势线,1)AND H<长期线;
GUP14:=趋势线>REF(趋势线,1)AND CROSS(趋势线,GUP2)AND GUP11>REF(GUP11,1)AND GUP11<0 AND 趋势线<短期线 AND 趋势线<中期线 AND 趋势线<长期线 ;
DRAWICON(CROSS(趋势线,短期线)AND (CROSS(GUP6,GUP7)AND GUP7<-20 OR GUP7<-85 AND C>O),短期线*0.98,38);
DRAWTEXT(CROSS(趋势线,短期线)AND (CROSS(GUP6,GUP7)AND GUP7<-20 OR GUP7<-85 AND C>O),短期线*0.96,'追涨'),COLORYELLOW;
DRAWTEXT(FILTER(GUP6>REF(GUP6,3) AND C<趋势线,3),H*1.03,'逃顶'),COLOR00FF00;
DRAWICON(FILTER(GUP6>REF(GUP6,1) AND GUP6<-10 AND CROSS(GUP6,GUP7) AND GUP10>REF(GUP10,1) AND GUP10<-10,5),L,1);
DRAWICON(FILTER(趋势线>中期线 AND 趋势线>长期线 ,5),H*1.03,2);
DRAWICON(FILTER(CROSS(C,趋势线) AND CROSS(C,短期线) AND CROSS(C,中期线),3)AND GUP11<0 AND GUP11>REF(GUP11,1)AND CROSS(趋势线,短期线) AND (趋势线<长期线 OR 长期线>REF(长期线,1)),L*0.97,23);
DRAWTEXT(FILTER(CROSS(C,趋势线) AND CROSS(C,短期线) AND CROSS(C,中期线),3)AND GUP11<0 AND GUP11>REF(GUP11,1)AND CROSS(趋势线,短期线) AND (趋势线<长期线 OR 长期线>REF(长期线,1)),L*0.96,'穿三线'),colorred;
选股公式源码
{选股公式一:追涨}
趋势线:=EMA(C,5);
短期线:=EMA(趋势线,8);
中期线:=EMA(短期线,13);
长期线:=EMA(中期线,50);
GUP1:=(H+L+C*2)/4;
GUP2:=EMA((L+H+O)/3,5);
GUP3:=EMA(GUP1,8);
GUP4:=STD(GUP1,8);
GUP5:=(GUP1-GUP3)/GUP4*100;
GUP6:=EMA(EMA(GUP5,8),4);
GUP7:=EMA(GUP6,9);
追涨:CROSS(趋势线,短期线)AND (CROSS(GUP6,GUP7)AND GUP7<-20 OR GUP7<-85 AND C>O);
{选股公式二:穿三线}
趋势线:=EMA(C,5);
短期线:=EMA(趋势线,8);
中期线:=EMA(短期线,13);
长期线:=EMA(中期线,50);
GUP8:=((H+L+C)/3-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100-50;
GUP9:=SMA(GUP8,3,1);
GUP10:=SMA(GUP8,26,1);
GUP11:=SMA(GUP9,3,1);
穿三线:FILTER(CROSS(C,趋势线) AND CROSS(C,短期线) AND CROSS(C,中期线),3)AND GUP11<0 AND GUP11>REF(GUP11,1)AND CROSS(趋势线,短期线) AND (趋势线<长期线 OR 长期线>REF(长期线,1));
{选股公式三:红箭头}
GUP1:=(H+L+C*2)/4;
GUP2:=EMA((L+H+O)/3,5);
GUP3:=EMA(GUP1,8);
GUP4:=STD(GUP1,8);
GUP5:=(GUP1-GUP3)/GUP4*100;
GUP6:=EMA(EMA(GUP5,8),4);
GUP7:=EMA(GUP6,9);
GUP8:=((H+L+C)/3-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100-50;
GUP9:=SMA(GUP8,3,1);
GUP10:=SMA(GUP8,26,1);
红箭头:FILTER(GUP6>REF(GUP6,1) AND GUP6<-10 AND CROSS(GUP6,GUP7) AND GUP10>REF(GUP10,1) AND GUP10<-10,5); |