副图公式源码支持 手机/电脑
GUA:=(H+L+2*C+O)/5;
GUP60:=EMA(GUA,40);
GUP10:=EMA(GUA,20);
GUP2:=CLOSE*VOL;
GUPR:=EMA((EMA(GUP2,5)/EMA(VOL,5)+EMA(GUP2,10)/EMA(VOL,10)+EMA(GUP2,20)/EMA(VOL,20)+EMA(GUP2,40)/EMA(VOL,40))/4,15);
顶轨:GUPR*1.3,COLORGREEN,LINETHICK2;
底轨:GUPR*0.8,COLORRED,LINETHICK2;
上轨:GUPR*1.1,DOTLINE,COLORFF9900;
下轨:GUPR*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;
选股公式源码
{选股公式一:大底}
GUA:=(H+L+2*C+O)/5;
GUP60:=EMA(GUA,40);
GUP10:=EMA(GUA,20);
GUP2:=CLOSE*VOL;
GUPR:=EMA((EMA(GUP2,5)/EMA(VOL,5)+EMA(GUP2,10)/EMA(VOL,10)+EMA(GUP2,20)/EMA(VOL,20)+EMA(GUP2,40)/EMA(VOL,40))/4,15);
顶轨:=GUPR*1.3,COLORGREEN,LINETHICK2;
底轨:=GUPR*0.8,COLORRED,LINETHICK2;
上轨:=GUPR*1.1,COLORFF9900;
下轨:=GUPR*0.9,COLORYELLOW;
大底:FILTER((CROSS(CLOSE,底轨) OR (L<底轨 AND C>底轨) AND C>REF(C,1)),5);
{选股公式二:小底}
GUA:=(H+L+2*C+O)/5;
GUP60:=EMA(GUA,40);
GUP10:=EMA(GUA,20);
GUP2:=CLOSE*VOL;
GUPR:=EMA((EMA(GUP2,5)/EMA(VOL,5)+EMA(GUP2,10)/EMA(VOL,10)+EMA(GUP2,20)/EMA(VOL,20)+EMA(GUP2,40)/EMA(VOL,40))/4,15);
顶轨:=GUPR*1.3,COLORGREEN,LINETHICK2;
底轨:=GUPR*0.8,COLORRED,LINETHICK2;
上轨:=GUPR*1.1,COLORFF9900;
下轨:=GUPR*0.9,COLORYELLOW;
小底:FILTER((CROSS(CLOSE,下轨) OR (L<下轨 AND C>下轨) AND C>REF(C,1)),7); |