Price_Compare – library MetaTrader 5

Price_Compare - library for 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

Price_Compare – library MetaTrader 4

Price_Compare - library for MetaTrader 4
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