Download MetaTrader 5

WebRequest() alternative for backtesting.....

To add comments, please log in or register
AwarenessForex
32
AwarenessForex  

I was reading mql4 WebRequest() docs and it is turned off during backtesting.  So is there an alternative method(s) to download data from the internet, process it, and then incorporate that data into the backtest when IsTesting() is true?


edit:  one of the uses will be to download historical news calendar data.  So this data can then be used during backtest (dates and events will be lined up). 

WebRequest - Common Functions - MQL4 Reference
WebRequest - Common Functions - MQL4 Reference
  • docs.mql4.com
WebRequest - Common Functions - MQL4 Reference
Carl Schreiber
7358
Carl Schreiber  

Load what you need before the backtest and read it from you hd.

WebRequest during backtest would  slow down the backtest and in case of an optimization with more the 1 mio. runs your requests would look like a DOS attac!

To add comments, please log in or register