通达信自用的趋势主图
强势区域:Ema(C,250),COLORBLUE,DOTLINE{GPGS};
AA:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30){GPGS};
JAX:=dma((2*CLOSE+LOW+HIGH)/4,AA){GPGS};
压力:(1+9/100)*JAX,COLORLICYAN;
支撑:(1-9/100)*JAX,COLORLICYAN{GPGS};
顶:(1+13/100)*JAX,COLORLICYAN{GPGS};
底:(1-13/100)*JAX,COLORLICYAN{GPGS};
下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORBLUE{GPGS};
DRAWBAND(MA(C,13),RGB(155,50,50),MA(C,21),RGB(83,123,68)){GPGS};
DRAWKLINE(H,O,L,C){GPGS};
主力线:MA(C,13),COLORLICYAN{GPGS};
工作线:MA(C,21),COLORLICYAN{GPGS};
生命线:ema(CLOSE,60),COLORWHITE, LINETHICK1{GPGS};
强势判定:EMA(C,250),COLORWHITE,DOTLINE{GPGS};
ELE:=(((REF(HIGH,1))+(REF(LOW,1))+(REF(OPEN,1))+2*(REF(CLOSE,1)))/5){GPGS};
突破价:=(ELE+((REF(HIGH,1))-(REF(LOW,1)))),NODRAW{GPGS};
阻力价:=(2*ELE-(REF(LOW,1))),NODRAW{GPGS};
DRAWTEXT(ISLASTBAR,强势判定,'←强势判定'),COLORFFCC10,COLORLIMAGENTA{GPGS};
DRAWTEXT(ISLASTBAR,生命线,'←生命线'),COLORFFCC10,COLORLIMAGENTA{GPGS};
DRAWTEXT(ISLASTBAR,压力,'←压力'),COLORFFCC10,COLORBLUE{GPGS};
DRAWTEXT(ISLASTBAR,支撑,'←支撑'),COLORFFCC10,COLORBLUE{GPGS};
DRAWTEXT(ISLASTBAR,顶,'←落袋为安'),COLORFFCC10,COLORBLUE{GPGS};
DRAWTEXT(ISLASTBAR,底,'←底.短线机会'),COLORFFCC10,COLORBLUE{GPGS};
DRAWTEXT(ISLASTBAR,主力线,'←主力线'),COLORFFCC10,COLORBLUE{GPGS};
DRAWTEXT(ISLASTBAR,工作线,'←工作线'),COLORFFCC10,COLORBLUE{GPGS};
IF(主力线<=REF(主力线,1),主力线,DRAWNULL),COLORCYAN{GPGS};
IF(工作线<=REF(工作线,1),工作线,DRAWNULL),COLORCYAN{GPGS};
IF(压力<=REF(压力,1),压力,DRAWNULL),COLORCYAN{GPGS};
IF(支撑<=REF(支撑,1),支撑,DRAWNULL),COLORCYAN{GPGS};
IF(顶<=REF(顶,1),顶,DRAWNULL),COLORCYAN{GPGS};
IF(底<=REF(底,1),底,DRAWNULL),COLORCYAN{GPGS};
IF(生命线<=REF(生命线,1),生命线,DRAWNULL),COLORCYAN{GPGS};
IF(强势判定<=REF(强势判定,1),强势判定,DRAWNULL),COLORCYAN;
{+W~W_W.G~P_G+S~C~N~{*}