I'm creating arrows for swing highs and lows and for some pairs they are created with a gap between bar and arrow as intended but for other pairs the arrow ends up showing up right at the tip of the bar.
Inserted Code
int init()
{
DeleteAllObjects();
// Setup Arrow Drawing Buffers
IndicatorBuffers(2);
SetIndexStyle(0, DRAW_ARROW, EMPTY, 1, White);
SetIndexStyle(1, DRAW_ARROW, EMPTY, 1, White);
SetIndexArrow(0, 233);
SetIndexArrow(1, 234);
SetIndexEmptyValue(0, 0.0);
SetIndexEmptyValue(1, 0.0);
SetIndexBuffer(0, UpArrowBuffer);
SetIndexBuffer(1, DownArrowBuffer);
return(0);
}
void CalculateHighsLows()
{
...
...
...
DownArrowBuffer[i] = currentBarLow - Point * 100;
...
UpArrowBuffer[i] = currentBarHigh + Point * 100;
...
...
...
}