Forum

Do European MetaTrader5 users or MQL5 programmers use '.' instead of ',' for the decimal place when using the platform or programming?

Hello, I know that most people in Europe use a comma instead of a period for the decimal place, and I am curious about how MetaTrader 5 and the MQL5 editor and compiler handle this. 1. When Europeans type in a decimal value in the MetaTrader 5 user interface, do they use a comma or a period for the

How to create a function template that treats numeric types differently than all other types?

Hello, The MQL5 Reference has a page on function templates ( https://www.mql5.com/en/docs/basis/oop/templates ) which has the following function template: template < typename T> T ArrayMax(T &arr[]) { uint size= ArraySize (arr); if (size== 0 ) return ( 0 ); T max=arr[ 0 ];

Please help: The following compiles in MT4 but not MT5: void demofunc( double & arr[][]) { }

Hello, The following function compiles in MT4 (build 1045) (per @whroeder1 ), but not in MT5 (build 1545): void demofunc( double & arr[][]) { } Does anybody else know why this would compile in MT4 but not in MT5? What is the correct syntax for defining a function in MT5 that accepts as a parameter a

How can one create an MQL4 function that accepts a parameter that is an array whose elements' datatype is unknown?

Hello, How can one create an MQL4 function that accepts a parameter that is an array whose elements' datatype is unknown , such as MQL4's built-in ArraySize function? https://docs.mql4.com/array/arraysize int ArraySize ( const void & array[] // checked array ); The ArraySize function is

Are there still a lot of MetaTrader4 Pre-Build 600 Users?

Hello, I am a software developer who is considering creating a piece of software for MetaTrader4 and MetaTrader5. I am trying to determine if I can save programming time by focusing only MetaTrader4 Build 600 and above, or if I need to worry about Pre-Build 600 users of MetaTrader4. Are there still