Forum

Tester: exchange rate cannot be calculated

Hi, I get this error "Tester: exchange rate cannot be calculated" when trying to backtest indexes such as _DJI on Alpari. This error doesn't occur on Forex, Futures or CFD just indexes. I saw that this error was mentioned in the old forum (in Russian) and using Google translate I somehow understood

OrderSend - error 4059 ERR_FUNCTION_NOT_ALLOWED_IN_TESTING_MODE

In one of my EA I get the error 4059 ERR_FUNCTION_NOT_ALLOWED_IN_TESTING_MODE on a OrderSend function. What is strange is that the first 2 orders are send correctly and then suddenly the others give all the same error 4059 Any idea why? thanks

OrdersTotal() not working for pending orders in backtester

One more issue with pending orders and backtester... I put 2 pending orders and then OrdersTotal() = 0 when 1 of the pending orders is opened OrdersTotal() = 1. According to the MQL5 reference OrdersTotal() should give the number of all orders including pending orders not only the open positions

Does expiration work for pending orders in backtester?

I make the following code for a pending order but then it seems that the order doesn't expire after 1 hour in the backtester Any idea why? request.action=TRADE_ACTION_PENDING; request.magic=1234; request.symbol=_Symbol; request.volume=Lots; request.type=

CopyLow or CopyHigh make some ticks skipped in backtester

First of all I know that in the journal a lot of info is missing and I have to check the agent logs. I am talking about the agent logs here. When I have my code without CopyLow or CopyHigh I see all ticks called If I do ArraySetAsSeries(Low,true); if (CopyLow(_Symbol,PERIOD_M1,1,60*2,Low) != 60)

how to update values in a middle of a CSV file

I have an existing file thath I open with both WRITE and READ rights to be able to update it. I want to update 2 values that are somewhere in the file. I first go tothe correctpositionbyreading the data before. But then should I just write the new values (does it overwrite the old values or will it

Tick charts

Is it planned to get real tick charts in MT4? I mean in a window like the one you get for M1, H1... and were you can apply indicators . I understand that storing the history of tichs would be too heavy but at least the ticks might be collected from the time we open the graph. That is really

why partial close is not working?

In the OrderClose function you are able to define a lot size, then you would hope to only partially close the orders as it works for manual orders. But it doesn't work. The order is closed only if the lot size is the total lot size (then why to have this extra parameter) So the solution is usually

Build 207 very slow to load

I have noticed that more and more (specially with the latest build 207) it takes a very long time to start MT4 and it requires a lot of virtual memory. I don't have a bad computer (laptop with 1 Gb RAM) but it becomes really painfull to start MT4. Once it is started it is OK. Is there any plan to

How to remove demo accounts

I have several demo accounts that have expired and I would like to remove them from the list of accounts. Do you know how to do that? Thanks