It appears that the strategy tester uses the last official spread for each particular currency, and keeps that value constant for the entire duration of the backtesting period. How does one change this value? Does anyone log these spreads
Is it possible to look at other sectors/instruments on m EA in MT4? For example, I would like to monitor the S&P 500 while I trade EURUSD ? Thanks! Vishal
Hi, I use the OrderHistoryTotal() function in my scripts to output my trade data into a CSV file, but it appears that only recent trade data is processed unless I click the "All History" button in the "Account History" tab. I need
Hi, How do you create a dynamically sized array in mql4? Is there a *new* construct? I can't even use a variable to define the array size: int totalEvents = 7; datetime events[totalEvents]; :(
My brokers test server went down this morning, and I didn't notice until much later. How would I create a function to notify me when the server is down? The EA loop is only triggered when there is an incoming tick, but there are no ticks when the
Presumably yes, but my cpu meter (i.e. task-manager) is running a lot higher than expected when I make the swtich from static binding (i.e. #include -> #import). Is this the case for everyone else too? Any recommendations on dealing with this
Hi, Is it possible to create a pending order that gets converted to a market order only after a pre-existing open order has been closed? That is, I want to create pending orders when my criteria is satisfied, but I only want them converted to market
Does anyone know of a more efficient way to grab 1M currency data via an EA script? This is what I am currently doing, but I was looking for something more clever... int outputCurrencyData( int handle1, string currencyPair, int days=1) {
stupid question, how do I do the following in MQL4? #define f(x) x^2 if I can't do this, can I create a function pointer? It seems that function calls are very expensive with the MQL4 compiler
Hi, I run several (50+) sessions of MT4 simultaneously, and I find the process of individually opening each MT4 with 3+ EAs to be quite tedious. Is there any way to specify which currencies and EAs would run in each session of MT4 from the
Hi, I noticed that it's possible to incorporate Windows DLLs into MT4 (I saw the checkbox in the options menu). Just curious, what are people doing with this feature? I would like to have a second window outside the MT4 sandbox showing various