Relative vigor index indicator arrows display problem

 

Why aren't the arrows being drawn/displayed on each candle's respective highs and/or lows?

Files:
PROBLEM.png  25 kb
RVI_TEST.mq4  6 kb
 
Imaad Fakier:

Why aren't the arrows being drawn/displayed on each candle's respective highs and/or lows?

            //Maybe instead of
            LONG_TRADES[buy_index] = High[candle_number];
            //you could try
            LONG_TRADES[candle_number] = High[candle_number];
 
Keith Watford:
Wow, there was no problem, just me not spotting the obvious. Wow. Nevertheless, thank you for the correction and my apologies to you for spending time on something that’s actually so trivial. Wow.