private double getTextPosition(Fractal fractal, double offsetMultiplier = 2) { double peakValue = fractal.high ? MarketSeries.High[fractal.index] : MarketSeries.Low[fractal.index]; double distanceToBar = Symbol.PipSize * ScaleHelper.getScale(TimeFrame) * offsetMultiplier; double yPos = peakValue + distanceToBar * (fractal.high ? 1 : -1); return(yPos); }