Saad Janah / Publications
Codes
Highest High fetch for MetaTrader 5
The code defines a function "RangeHighs" that calculates the highest price of a financial instrument within a specified time range (start and end time). The time range is defined by 4 input parameters (hour and minute of start and end time). The highest price is found using the "CopyHigh" function
Forum
Volume lot calculation error
I use this function to calculate volume lots to be traded : double VolumeLots( double pMoney, double pSlp) { pMoney = NormalizeDouble (pMoney, 2 ); // Risked money value in account currency double tickSize = SymbolInfoDouble ( _Symbol , SYMBOL_TRADE_TICK_SIZE ); double