rob / Publications
Forum
Have issue with MT5 indicator on reloading MT5 app
I created a MT5 indicator. It seems to work but has a problem when reloading MT5 for a higher timeframe than the chart period: above: recompile or drag and drop above: reloading the MT5 application //+------------------------------------------------------------------+ //|
Chart vs Strategy Tester Data retrieval
I have a situation where I open a chart and 1 minute Bars for APPL are shown back to August 2019 ~6 months plus of data. Great!! Strategy Tester (ST), only find around 700 bars of 1 Minute time frame? Not Great! The data is obviously available on the brokers server but not being downloaded or made
application crash - will no longer enter debug mode and hit a break point
My code started giving me a error seen in the screen shot below. 1/. I rebooted - same problem 2/. I did RAM and disk checks on my system - no issues reported 3/. reboot and run of sample MACD supplied with MT5 distribution - error similar to the one in my code --- Anyone any ideas where to start
templating a CList to contain only derived flavours of CObject
I want to check when I put/pull out a derived CObject from a derived Clist that it is of the correct type: I thought templating somehow but I can't find a reference to it? #include <Arrays\List.mqh> //+------------------------------------------------------------------+ //| List of trendElements
Script will not close terminal
ShutdownTerminal= true Server=ETXCapital-Demo Server Login= 7001248 Password=xxx EnableNews= false Script=batchGenSymbolsData Period =M5 Symbol =SP500_SB Report=ReportSP500_SBM5 ReplaceReport= true I have tried: ShutdownTerminal= 1 ShutdownTerminal= true ShutdownTerminal= True I cannot get the
MQL5 Storage in MQL4 Editor
I have a problem in storing my newer files: when I look at the file I am trying to place in storage it is different but the old file has a > revision number: If I 1/. keep a copy of the files im trying to save as xFileName for FileName (file) 2/. Then delete the files I want to store 3/. Update
MQL5 Group Name (Symbol Type)
I am porting my code to MQL5 I have a requirement to access the brokers group name (System type or the category that a symbol belongs to). The code below works in MT4 - I found it on the web. Anybody know how to get the same information in MQL5
STRATEGY TESTER: MarketInfo(symbol,MODE_MARGINREQUIRED);
This code executes as it should in normal operation. In strategy tester the value in the print statement for marginRequired is zero. Anything I can do to the system to make it come alive in strategy tester? Metatrader4 version 4 build 1090 19th May 2017 {it is a method of an object}
watch list manipulation
A timer within a EA that loads all watch symbols and supposed to weeds out the ones I dont want: Sorts the List and displays the data list.Sort(sortVar); posY++; list.displayData(var,posY,sortVar); the timer void: //+------------------------------------------------------------------+
update watch list programatically
A timer within a EA that loads all watch symbols weeds out the ones I dont want: meetsCriterion Sorts the List and displays the data list.Sort(sortVar); posY++; list.displayData(var,posY,sortVar); the timer void: void OnTimer () { EventSetTimer (deltaTime); Print ( "EA CSI DATA1