上穿底线买入 简明四线买卖《通达信+指标+公式+副图+源码》分享
副图公式源码支持 手机/电脑
CHA:=(H+L+2*C+O)/5;
CHP60:=EMA(CHA,40);
CHP10:=EMA(CHA,20);
CHP2:=CLOSE*VOL;
CHPR:=EMA((EMA(CHP2,5)/EMA(VOL,5)+EMA(CHP2,10)/EMA(VOL,10)+EMA(CHP2,20)/EMA(VOL,20)+EMA(CHP2,40)/EMA(VOL,40))/4,15);
顶轨:CHPR*1.3,COLORGREEN,LINETHICK2;
底轨:CHPR*0.8,COLORRED,LINETHICK2;
上轨:CHPR*1.1,DOTLINE,COLORFF9900;
下轨:CHPR*0.9,DOTLINE,COLORYELLOW;
DRAWTEXT(FILTER((CROSS(上轨,CLOSE) OR (H>上轨 AND C<上轨) AND C<=REF(C,1)),7),HIGH*1.01,'小顶'),COLORFF9900;
DRAWTEXT(FILTER((CROSS(CLOSE,下轨) OR (L<下轨 AND C>下轨) AND C>REF(C,1)),7),LOW*0.99,'小底'),COLORYELLOW;
DRAWTEXT(FILTER((CROSS(顶轨,CLOSE) OR (H>顶轨 AND C<顶轨) AND C<=REF(C,1)),5),HIGH*1.01,'大顶'),COLORGREEN;
DRAWTEXT(FILTER((CROSS(CLOSE,底轨) OR (L<底轨 AND C>底轨) AND C>REF(C,1)),5),LOW*0.99,'大底'),COLORRED;
选股公式源码
{选股公式一:大底}
CHA:=(H+L+2*C+O)/5;
CHP60:=EMA(CHA,40);
CHP10:=EMA(CHA,20);
CHP2:=CLOSE*VOL;
CHPR:=EMA((EMA(CHP2,5)/EMA(VOL,5)+EMA(CHP2,10)/EMA(VOL,10)+EMA(CHP2,20)/EMA(VOL,20)+EMA(CHP2,40)/EMA(VOL,40))/4,15);
顶轨:=CHPR*1.3,COLORGREEN,LINETHICK2;
底轨:=CHPR*0.8,COLORRED,LINETHICK2;
上轨:=CHPR*1.1,COLORFF9900;
下轨:=CHPR*0.9,COLORYELLOW;
大底:FILTER((CROSS(CLOSE,底轨) OR (L<底轨 AND C>底轨) AND C>REF(C,1)),5);
{选股公式二:小底}
CHA:=(H+L+2*C+O)/5;
CHP60:=EMA(CHA,40);
CHP10:=EMA(CHA,20);
CHP2:=CLOSE*VOL;
CHPR:=EMA((EMA(CHP2,5)/EMA(VOL,5)+EMA(CHP2,10)/EMA(VOL,10)+EMA(CHP2,20)/EMA(VOL,20)+EMA(CHP2,40)/EMA(VOL,40))/4,15);
顶轨:=CHPR*1.3,COLORGREEN,LINETHICK2;
底轨:=CHPR*0.8,COLORRED,LINETHICK2;
上轨:=CHPR*1.1,COLORFF9900;
下轨:=CHPR*0.9,COLORYELLOW;
小底:FILTER((CROSS(CLOSE,下轨) OR (L<下轨 AND C>下轨) AND C>REF(C,1)),7);