{
pRows.Add(new PriceRows(e.MarketDataType.ToString(), e.Price, e.Volume, 0));
}
I don't want to keep adding I want to check to see if the "Price" exists, and remove that row, and replace it:
ie:
if (pRows.Contains(e.Price))
pRows.RemoveAt(indexNum);
This throws an error:
The best overloaded method match for 'System.Collections.Generic.List<NinjaTrader.Indic ator.AManager2.PriceRows>.Contains(NinjaTrader.Ind icator.AManager2.PriceRows)' has some invalid arguments
Comment