Subtracting the Price levels

 

double PriceLevel = OrderOpenPrice() - Bid;    // if Order was a buy Order.

Why is that when the current price level is far away from the OrderOpenPrice level i get zero values.

 
kamada2020:

double PriceLevel = OrderOpenPrice() - Bid;    // if Order was a buy Order.

Why is that when the current price level is far away from the OrderOpenPrice level i get zero values.

PriceLevel is zero, or OrderOpenPrice() is zero?

A lot depends on whether you precede OrderOpenPrice() with a OrderSelect()...