Subtracting the Price levels
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()...
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.