副图公式源码支持 手机/电脑
GUP1:=(C-MA(C,6))/MA(C,6)*100;
GUP2:=(C-MA(C,12))/MA(C,12)*100;
GUP3:=(C-MA(C,24))/MA(C,24)*100;
GUP0:=(GUP1+2*GUP2+3*GUP3)/6;
乖离趋势:MA(GUP0,3);
接近底部:IF((MA(C,5)-C)/C>0.03 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.03,-6,DRAWNULL),STICK,LINETHICK3,COLORLIGREEN;
接近顶部:IF((MA(C,5)-C)/C<-0.03 AND (MA(C,10)-MA(C,5))/MA(C,5)<-0.03,6,DRAWNULL),STICK,LINETHICK3,COLORLIRED;
绝对底部:IF(CROSS(GUP0,乖离趋势) AND 乖离趋势<-9,-6,DRAWNULL),STICK,LINETHICK3,COLORGREEN;
绝对顶部:IF(CROSS(乖离趋势,GUP0) AND 乖离趋势>9,6,DRAWNULL),STICK,LINETHICK3,COLORRED;
选股公式
{选股公式一:接近底部}
接近底部MA(C,5)-C)/C>0.03 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.03,LINETHICK3,COLORLIGREEN;
{选股公式二:绝对底部}
GUP1:=(C-MA(C,6))/MA(C,6)*100;
GUP2:=(C-MA(C,12))/MA(C,12)*100;
GUP3:=(C-MA(C,24))/MA(C,24)*100;
GUP0:=(GUP1+2*GUP2+3*GUP3)/6;
乖离趋势:=MA(GUP0,3);
绝对底部:CROSS(GUP0,乖离趋势) AND 乖离趋势<-9,LINETHICK3,COLORGREEN;
{卖出公式一:接近顶部}
接近顶部MA(C,5)-C)/C<-0.03 AND (MA(C,10)-MA(C,5))/MA(C,5)<-0.03,LINETHICK3,COLORLIRED;
{卖出公式二:绝对顶部}
GUP1:=(C-MA(C,6))/MA(C,6)*100;
GUP2:=(C-MA(C,12))/MA(C,12)*100;
GUP3:=(C-MA(C,24))/MA(C,24)*100;
GUP0:=(GUP1+2*GUP2+3*GUP3)/6;
乖离趋势:=MA(GUP0,3);
绝对顶部:CROSS(乖离趋势,GUP0) AND 乖离趋势>9,LINETHICK3,COLORRED;
|