Trying to create an ema of the range of the day ( without gap, so do not want to use ATR ) Tried the following.

var Range = high()...