DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9); :=2*(DIFF-DEA), COLORSTICK,LINETHICK2;R := SUM(MAX(MAX(HIGH-LOW,A(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);:= PDM*100/TRTR;:= MDM*100/TRTR;A1:=BAAST(ref(oss("md.diff"(12,26,9),"macd.dea"(12,26,9)),1));B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.de