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

Global initialization failed Error

Hello, I have an EA that returns this error when placed on FTMO mt5 terminal. The error does not pop up when placed on the standard mt5 terminal. If anyone know what might cause this error, so I can review the code and fix it, that would be much appreciated. Regards

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