副图公式源码 支持 手机/电脑
GUP1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
长趋势:=DMA((2*CLOSE+LOW+HIGH)/4,GUP1);
GUP2:=(CLOSE/长趋势);
MA1:=MA(GUP2*(2*CLOSE+HIGH+LOW)/4,3);
GUP3:=((MA1-长趋势)/长趋势)/3;
TMP:=MA1-GUP3*MA1;
长趋势升:IF(TMP>长趋势 ,长趋势,DRAWNULL),LINETHICK4,COLORRED;
IF(TMP>长趋势,长趋势,DRAWNULL),COLORYELLOW,POINTDOT,LINETHICK4;
长趋势降:IF(TMP<=长趋势,长趋势,DRAWNULL),LINETHICK4,COLORGREEN;
IF(TMP<=长趋势,长趋势,DRAWNULL),COLORBLUE,POINTDOT,LINETHICK4;
GUP4:=CROSS(TMP,长趋势);
GUP5:=CROSS(长趋势,TMP);
DRAWICON(GUP4,长趋势-0.1,38);
DRAWICON(GUP5,长趋势+0.1,39);
选股公式源码
{选股公式:红三角图标}
GUP1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
长趋势:=DMA((2*CLOSE+LOW+HIGH)/4,GUP1);
GUP2:=(CLOSE/长趋势);
MA1:=MA(GUP2*(2*CLOSE+HIGH+LOW)/4,3);
GUP3:=((MA1-长趋势)/长趋势)/3;
TMP:=MA1-GUP3*MA1;
{长趋势升:IF(TMP>长趋势 ,长趋势,DRAWNULL),LINETHICK4,COLORRED;
IF(TMP>长趋势,长趋势,DRAWNULL),COLORYELLOW,POINTDOT,LINETHICK4;
长趋势降:IF(TMP<=长趋势,长趋势,DRAWNULL),LINETHICK4,COLORGREEN;
IF(TMP<=长趋势,长趋势,DRAWNULL),COLORBLUE,POINTDOT,LINETHICK4;}
GUP4:=CROSS(TMP,长趋势);
{DRAWICON(GUP4,长趋势-0.1,38);}
红三角图标:GUP4;
{卖出公式:绿三角图标}
GUP1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
长趋势:=DMA((2*CLOSE+LOW+HIGH)/4,GUP1);
GUP2:=(CLOSE/长趋势);
MA1:=MA(GUP2*(2*CLOSE+HIGH+LOW)/4,3);
GUP3:=((MA1-长趋势)/长趋势)/3;
TMP:=MA1-GUP3*MA1;
{长趋势升:IF(TMP>长趋势 ,长趋势,DRAWNULL),LINETHICK4,COLORRED;
IF(TMP>长趋势,长趋势,DRAWNULL),COLORYELLOW,POINTDOT,LINETHICK4;
长趋势降:IF(TMP<=长趋势,长趋势,DRAWNULL),LINETHICK4,COLORGREEN;
IF(TMP<=长趋势,长趋势,DRAWNULL),COLORBLUE,POINTDOT,LINETHICK4;}
GUP5:=CROSS(长趋势,TMP);
{DRAWICON(GUP5,长趋势+0.1,39);}
绿三角图标:GUP5; |