|
CODE:[Copy to clipboard]input:p1(60),n(12),m(60);
MA(EMA(CLOSE,n),1), , linethick2,colored,;
MA(EMA(CLOSE,n),3), , linethick1,colored,;
MA(EMA(CLOSE,n),5), , COLORyellow;
MA(EMA(CLOSE,n),7), , COLORRED;
MA(EMA(CLOSE,n),9), , COLORRED;
MA(EMA(CLOSE,n),11), ,COLORRED;
MA(EMA(CLOSE,n),13), ,COLORRED;
MA(EMA(CLOSE,m),1), , COLORGREEN;
MA(EMA(CLOSE,m),3), , COLORGREEN;
MA(EMA(CLOSE,m),5), , COLOR89BD00;
MA(EMA(CLOSE,m),7), , COLORGREEN;
MA(EMA(CLOSE,m),9), , COLORGREEN;
MA(EMA(CLOSE,m),11), , COLORGREEN;
MA(EMA(CLOSE,m),13), , COLORGREEN;
mA1:MA(CLOSE,P1),linethick1,colorwhite,;
DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND
EMA(CLOSE,12)/LOW>1.15,3),
LOW,'●'),linethick3 , COLORMAGENTA;
DRAWTEXT(FILTER(EMA(CLOSE,12)-EMA(CLOSE,60)>0 AND
HIGH/EMA(CLOSE,12)>1.15,3),
HIGH,'●'),linethick3 , linethick2,color99ff00,;
KOH:=LOW>REF(HIGH,1);
KOL:=HIGH<REF(LOW,1);
HIF:=LOW>REF(HIGH,BARSLAST(KOH)+1);
NHIF:=LOW<=REF(HIGH,BARSLAST(KOH)+1);
LIF:=HIGH<REF(LOW,BARSLAST(KOL)+1);
NLIF:=HIGH>=REF(LOW,BARSLAST(KOL)+1);
DRAWICON(HIF AND BARSLAST(koh)<BARSLAST(nhif) and
BARSLAST(HIF)<BARSLAST(NHIF),REF(HIGH,BARSLAST(KOH)+1),6),ALIGN0;
DRAWICON(LIF AND BARSLAST(kol)<BARSLAST(nlif) and
BARSLAST(LIF)<BARSLAST(NLIF),REF(LOW,BARSLAST(KOL)+1),05),ALIGN0;
|
|