double maxprice;
double minprice;
double maxdelta = maxprice = double.MinValue;
double mindelta = minprice = double.MaxValue;
for (double p = High[0]; p >= Low[0]; p -= TickSize)
{
if (barsType.Volumes[CurrentBar].GetDeltaForPrice(p) > maxdelta)
{
maxdelta = barsType.Volumes[CurrentBar].GetDeltaForPrice(p);
maxprice = p;
}
if (barsType.Volumes[CurrentBar].GetDeltaForPrice(p) < mindelta)
{
mindelta = barsType.Volumes[CurrentBar].GetDeltaForPrice(p);
minprice = p;
}
}
[CurrentBar]
[CurrentBar-1]
Any help?
Thanks!

Comment