Nikolay Panev / Publications
Codes
Balance of Power for MetaTrader 5
The Balance of Power (BOP) indicator was described by Igor Livshin and measures the strength of the bulls vs bears by assessing the ability of each to push price to an extreme level
Forum
Possible MQL4 Bug
Hi, I've come across on something weird. Having an extern input variable followed by comment changes the name of the variable in the EA's/script's Inputs Window. The following code: extern string myVar = "abc" ; // This is a comment extern double d = 2.5 ; /* Another comment */ compiles fine and
2D arrays
Hi, Is there any way to declare a two-dimensional array in MQL5 without knowing the size of the second dimension? Thx
StrToTime()
According to documentation: https://docs.mql4.com/convert/StrToTime datetime StrToTime ( string value) Converts string in the format "yyyy.mm.dd hh:mi" to datetime type (the amount of seconds that have passed since 1 Jan., 1970). Parameters: value - String value of date/time format as "yyyy.mm.dd
1.#INF Error
Hi, I have the following simple code: double open[], close[], midpoint= 0.0 ; int handle_1, handle_2; ArrayResize (open, 2 ); ArrayResize (close, 2 ); handle_1 = CopyOpen ( _Symbol , _Period ,shift, 2 ,open); handle_2 = CopyClose ( _Symbol , _Period ,shift, 2 ,close);
Volume mystery
Hi guys, I know this topic is discussed a lot but I found few things I cannot understand. I was researching the Volumes shown in MT, made a simple script that every tick outputs the price and volume. And I got interesting results. According to docs Volume shows tick volumes of each bar of the