TAJTrades
12-27-2007, 03:39 AM
How do I retrieve the Value from any Indicator n BarsAgo? The following code leaves the Output Window empty and will not populate the study on the chart. I am using a 20 Period EMA 1 Bar Ago to keep things simple.
double value = EMA(20)[1];
Print("The previous EMA value is " + value.ToString());
PreviousEMA.Set( EMA(eMAPeriod)[eMABarsBack] );
Thanks
double value = EMA(20)[1];
Print("The previous EMA value is " + value.ToString());
PreviousEMA.Set( EMA(eMAPeriod)[eMABarsBack] );
Thanks