defparam drawonlastbaronly = true
PRECIO= CLOSE
TIMEFRAME(1day)
ema201 = ExponentialAverage[20](close)
TIMEFRAME(2day)
ema202 = ExponentialAverage[20](close)
TIMEFRAME(3day)
ema203 = ExponentialAverage[20](close)
TIMEFRAME(default)
DrawText("1",BarIndex[3],ema201,dialog,standard,17) COLOURED(0,0,0)
DrawText("2",BarIndex[2],ema202,dialog,standard,17) COLOURED(0,0,0)
DrawText("3",BarIndex[2],ema203,dialog,standard,17) COLOURED(0,0,0)
DRAWHLINE(close)
RETURN PRECIO AS "CLOSE" coloured("Red", 0), ema201 as "ema201" COLOURED("BLUE",0), ema202 as "ema202" COLOURED("BLUE",0), ema203 as "ema203" COLOURED("BLUE",0)