I am sorry to bring a Metatrader’s term to this forum. I am struggling since one week already with this topic, but I am failing to solve the problem. I hope you could help me understanding this term.
I have this function from Metatrader4:
for (int i = 0; i <= 10; i++) { double a = iHighest(NULL, 0, MODE_LOW, Period, i); }
double b = iHighest(NULL, 0, MODE_HIGH, Period, i);
In Google, I found the definition of iHighest as followed: Returns the shift of the maximum value over a specific number of bars depending on type.
But I want there my specific number of bars to be 1.
In Ninjatrader documentation, I also found this:
int highestBarsAgo = HighestBar(High, Bars.BarsSinceNewTradingDay);
double highestPrice = High[highestBarsAgo];
With this, I would already be out of range in my loop.
Could someone advise me what could the the equivalent of double a = iHighest(NULL, 0, MODE_LOW, Period, i) in Ninjatrader?
Any help would be very appreciate.
Thanks!
Comment