强势区域:EMA(C,250),COLORYELLOW,DOTLINE;
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
JAX:=DMA((2*CLOSE+LOW+HIGH)/4,AA);
压力:(1+9/100)*JAX,COLORLIRED;
支撑:(1-9/100)*JAX,COLORLIRED;
顶:(1+13/100)*JAX,COLORLIRED;
底:(1-13/100)*JAX,COLORLIRED;
下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;
DRAWBAND(MA(C,13),RGB(155,50,50),MA(C,21),RGB(83,123,68));
DRAWKLINE(H,O,L,C);
主力线:MA(C,13),COLORLIRED;
工作线:MA(C,21),COLORLIRED;
生命线:EMA(CLOSE,60),COLORRED, LINETHICK1;
强势判定:EMA(C,250),COLORRED,DOTLINE;
ELE:=(((REF(HIGH,1))+(REF(LOW,1))+(REF(OPEN,1))+2*(REF(CLOSE,1)))/5);
突破价:=(ELE+((REF(HIGH,1))-(REF(LOW,1)))),NODRAW;
阻力价:=(2*ELE-(REF(LOW,1))),NODRAW;
DRAWTEXT(ISLASTBAR,强势判定,'←强势判定'),COLORFFCC10,COLORMAGENTA;
DRAWTEXT(ISLASTBAR,生命线,'←生命线'),COLORFFCC10,COLORMAGENTA;
DRAWTEXT(ISLASTBAR,压力,'←压力'),COLORFFCC10,COLORYELLOW;
DRAWTEXT(ISLASTBAR,支撑,'←支撑'),COLORFFCC10,COLORYELLOW;
DRAWTEXT(ISLASTBAR,顶,'←落袋为安'),COLORFFCC10,COLORYELLOW;
DRAWTEXT(ISLASTBAR,底,'←底.短线机会'),COLORFFCC10,COLORYELLOW;
DRAWTEXT(ISLASTBAR,主力线,'←主力线'),COLORFFCC10,COLORYELLOW;
DRAWTEXT(ISLASTBAR,工作线,'←工作线'),COLORFFCC10,COLORYELLOW;
IF(主力线<=REF(主力线,1),主力线,DRAWNULL),COLORGREEN;
IF(工作线<=REF(工作线,1),工作线,DRAWNULL),COLORGREEN;
IF(压力<=REF(压力,1),压力,DRAWNULL),COLORGREEN;
IF(支撑<=REF(支撑,1),支撑,DRAWNULL),COLORGREEN;
IF(顶<=REF(顶,1),顶,DRAWNULL),COLORGREEN;
IF(底<=REF(底,1),底,DRAWNULL),COLORGREEN;
IF(生命线<=REF(生命线,1),生命线,DRAWNULL),COLORGREEN;
IF(强势判定<=REF(强势判定,1),强势判定,DRAWNULL),COLORGREEN;