Lee mejor la descripción https://www.mql5.com/es/docs/series/ihighest
This is an English language forum.
Please only post in English.
Use the translation tool if necessary.
Int index = iHighest (NULL, 0, MODE_HIGH, 76,39);
It is starting at 39 for 76 items or [114…39] (39+76-1=114). This is why you got 108.
If you want the range [76…39] then you would use 38,39 since 76-39+1=38