peterbabs / Publications
Forum
Inaccurate MT5 OHLC data. Howto get accurate data
I'm performing optimization on MT5 Strategy Tester using H4 Open Prices Only. It's obvious my data is not accurate, as the number of ticks isn't the same for all 28 pairs which are read on every tick. I printed the iTime for each bar for all 28 pairs on the same line from June 2020 to December 2020
What is the data type for timeframes in MQL5?
In MQL4, below code works pretty well. But in MQL5, I'm getting errors when I make the timeframe an int variable. What's the data type for declaring the timeframe (e.g. PERIOD_H1 ) as a variable/placeholder in MQL5? I can't seem to find it in the documentation. I need to maintain TF as a variable
Convert Last 2 Digits of a double to zeros
Pair= "EURUSD" ; Lev00Ask = NormalizeDouble ( MarketInfo (Pair, MODE_ASK ), 3 ); Print (Pair, " Lev00Ask = " , Lev00Ask); I'm learning to code. When I execute this code, it gives me "Lev00Ask = 1.133" I want to convert the result to 1.13300 and use it in my next calculation. I've not been
Retrieve Specific Data from a JSON Webrequest
I'm learning MQL4, but yet to understand array functions well. I have a piece of data which I retrieved with Webrequest function . It looks like this