Hi
i try to indicate the EMA 9 and EMA 20 Cross on every timeframe
The crossing should be evaluated on the 1Mn chart, and an arrow shall be shown on the candles in the higher charts too.
Here my code
TIMEFRAME(1mn)
indicator1 = ExponentialAverage[9](close)
indicator2 = ExponentialAverage[20](close)
c1 = (indicator1[1] CROSSES OVER indicator2[1])
c2 = (indicator1[1] CROSSES Under indicator2[1])
if C1 then
DRAWARROWUP(barindex,low – (high-low)) COLOURED(245,129,5)
elsif c2 then
DRAWARROWDOWN(barindex,high +(high-low)) COLOURED(245,129,5)
endif
Return
But whenever i change to a higher time frame 5 min , 15 min, 1 h, 1d then the MTF Error comes up and the indicator gets removed.
How can i fix this and get my arrow shown ?
thx
thomas