I'm trying to plot simple MACD across timeframes and chart types. for eg., plotting a 5-tick range chart MACD on 1min chart.
I'm calculating a fastema and slowema that i need to pass on to another indicator method so as I think they need to be passed on as dataseries for that.
I'm defining fastema and slowema within OnBarUpdate() by using the following
If (fastema == null)
{
fastema = new Dataseries(EMA(Closes[1],fastema_period));
}
and similarly the slowema
but I get the error fastema doesnt exist withink this context or something like that.
could you please help with this.
many thanks in advance

Comment