In looking through the NinjaScript.BarTypes I notice there are variants of Compare used;
In Range Bars;
if (close.ApproxCompare(barLow + rangeValue) > 0)
In LineBreakBars;
if (bars.Instrument.MasterInstrument.Compare(bars.Get Close(bars.Count - 1), anchorPrice) > 0)
and in NinjaScript intellisense there is also available;
if(close.CompareTo(barHigh - rangeVale) > 0)
Each of these variants would appear to do the same - are there situations where one would be favored over another?
And separately - in what way are they better than say;
if(close < barHigh - rangeValue)
Thank you
Comment