Forum

Is the spread field in the strategy tester in pips or fractional pips?

Is the spread field in the strategy tester in pips or fractional pips? I can't find it in the documentation. For instance, on a pair with 5 digits should that parameter be set to 1.6 or 16 if you want to simulate a spread of 1.6 pips

iTime out of range in strategy tester? (error 4051)

So I was working on an EA that looks back several days on the 1 minute time frame, and I was getting strange results I didn’t understand. Until I noticed that not all history is available in the strategy tester . datetime SomeTime = iTime( Symbol() , PERIOD_M1 , 1001 ); int rc = GetLastError(); If I

Errors 4066 and 4073 in strategy tester ( while history is available )

I have a class that I use to check for a new bar. I initiate a timer in OnInit with the iTime function. Then in OnTick I check to see if the timer still corresponds with the time of the current bar. Yesterday I noticed a weird behavior in the Strategy Tester (ST), which doesn’t happen in real

Disappearing input string values

This has happened a couple of times now. My EAs have a few string input parameters. The values of those strings are sometimes empty after restarting the terminal. There is no warning or anything like that. The strings are suddenly just empty. But it doesn’t happen every time. I’m running build 840

What MQL5 functionality is interesting for using in MQL4?

Since mixing MQL4 and MQL5, what kind of new features do you like to use? The reason I ask is because I just don’t see the point of most of it. Structures are great. They are a no-brainer. But beyond that… For instance, why would I use the SymbolInfoTick with the MqlTick structure when variabels

Strategy tester results that I don't understand

I’m using MT4 build 675. I made an EA which opens a market BUY and market SELL at the same time. Both trades have the same lot size. The BUY enters at 1.18436 and exits 1.18236 (20 pips loss). The SELL enters at 1.18431 and exits at 1.18231 (20 pips profit). Spead is 0.5 pips. Now the strategy

Terminals are more active?

I wonder if anyone else has noticed this. Before the latest release the terminals that I run on my vps , would require little of the CPU. They would take up quite a lot of memory on start up but after a couple of hours they would release at least half of that memory. But since the latest update each

BUY and SELL stops, smart or not?

A while back I used BUY and SELL stops to place my trades, because they are easier to program and handle. After a while I found out that my broker (market maker) was hunting these stops, so I switched to market orders. N ow I have an account at another broker, who market themselves more as an

OP_BUY the same on Instant Execution and Market Execution?

Last week I got an email from one of the brokers I use, stating that they would switch from Instant Execution to Market Execution on the 29 th of June. It also mentioned that you can’t set SL and TP directly when using a market order. You have to wait for the order to be opened and then modify the

When are indicators calculated if they are called from an EA?

If use an indicator (custom or not) in my EA, when is that indicator updated? Is it updated on every tick or only when it is called from the EA