1010行情pvc回放 ama自適應(yīng)均線指標(biāo)分享

STEP1:=STEP/100;
MVALUE1:=MVALUE/100;
SARLINE:SAR(N1,STEP1,MVALUE1),CIRCLEDOT,NOTEXT;
IF(SARLINE>0,SARLINE,NULL),COLORRED,CIRCLEDOT;
IF(SARLINE<0,ABS(SARLINE),NULL),COLORCYAN,CIRCLEDOT;
DRAWTEXT(CROSS(SARLINE,0),L,'多'),FONTSIZE9;
DRAWTEXT(CROSS(0,SARLINE),L,'空'),FONTSIZE9;
壓力:HHV(MA((HIGH+CLOSE+LOW)/3,1),10);
支撐:LLV(MA((HIGH+LOW+CLOSE)/3,1),10);
DRAWNUMBER(ISLASTBAR,壓力,壓力,0,COLORGREEN),ALIGN0;
DRAWNUMBER(ISLASTBAR,支撐,支撐,0,COLORRED),ALIGN0;
DIRECTION:=CLOSE-REF(CLOSE,10);
VOLATILITY:=SUM(ABS((CLOSE-REF(CLOSE,1))),10);
ER:=ABS(DIRECTION/VOLATILITY);
FASTSC:=2/(2+1);
SLOWSC:=2/(30+1);
SSC:=ER*(FASTSC-SLOWSC)+SLOWSC;
CONSTANT:=SSC*SSC;
AMA:EMA(DMA(CLOSE,CONSTANT),2),COLORGREEN,LINETHICK3;
FIL:=STD(AMA-REF(AMA,1),20);
PARTLINE(AMA-LLV(AMA,3)>FIL*0.1,AMA,COLORMAGENTA),LINETHICK3;