I am getting trouble passing the Volume highest price from SuperDom Volume.
I want to get the highest price level of the volume regardless of the "autocenter option".
For now, the highest price is base on the window price level as it is automatically scaled in the autocenter.
hp = 0;
lp = double.MaxValue;
lock (SuperDom.Rows)
foreach (PriceRow row in SuperDom.Rows)
{
hp = Math.Max(hp, row.Price);
lp = Math.Min(lp, row.Price);
}
sometimes it returns a different price.
it must not be executed on this method, but is there any way I can achieve this?
Also, I want to pass the value to strategy,
somewhat like:
if(Superdom.Volume().Highestprice)
Print(""+Superdom.Volume().Highestprice);
Any workaround, please.
Thanks
Comment