Price_Compare – library MetaTrader 5
This small cross-platform library allows to compare the ‘double’ values of the “price” conveniently and quickly. For example, before placing a SellLimit, it is sometimes useful to check if the opening price is below the current Bid price. // if (NormalizeDouble(OpenPrice, Digits()) >= NormalizeDouble(Bid, Digits())) // this method was the most frequently used if (CP(OpenPrice) … Read more