I use the below (and attached) method extensively in Indicators with great success (e.g. High(GetBarsAgo(barNumber))). Indicators calculate and plot as expected.
namespace NinjaTrader.NinjaScript.Indicators
{
public partial class Indicator
{
public int GetBarsAgo(int barNumber)
{
return CurrentBar - barNumber;
}
}
}
This method worked as expected in NT7 with Indicators and Strategies.
Please advise how this method must change for NT8.
Regards
Shannon

Comment