old profit/loss information

 

Any idea how to retrieve the order profit/loss at the close of an earlier bar in an EA?

 

(OrderOpenPrice() - Close[X]) * MarketInfo(Symbol(), MODE_TICKVALUE) * OrderLots()

PS of course it depends if it's a buy or a sell

Adjust it yourself

Reason: