Errors, bugs, questions - page 2606

 
Igor Zakharov:

longPositionGetInteger()

I also find this point inconvenient: one can translate from enum to integer types and back automatically, without forcing

ButlongOrderGetInteger( does not return anything of the kind. (((

Nature's conundrum ))))))))

 

When testing a multi-currency EA on real ticks an erroneous swap accrual happens for a trade that closes automatically at the end of the test.

Test on GBPUSD:


Test on EURUSD and several other instruments:


Bild 2200, MQ-demo.

[Tester]
Symbol=GBPUSD
Period=M5
Optimization=0
Model=4
FromDate=2019.08.01
ToDate=2019.10.01
ForwardMode=0
Deposit=100000
Currency=USD
ProfitInPips=0
Leverage=500
ExecutionMode=0
OptimizationCriterion=4
Visual=0

I usually update new builds and immediately roll them back. Compilation and launching of Expert Advisors in them is obscenely long...

 

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

Andrey Khatimlianskii, 2019.11.21 03:11

Bild 2200, MQ demo.

[Tester]
Symbol=GBPUSD
Period=M5
Optimization=0
Model=4
FromDate=2019.08.01
ToDate=2019.10.01
ForwardMode=0
Deposit=100000
Currency=USD
ProfitInPips=0
Leverage=500
ExecutionMode=0
OptimizationCriterion=4
Visual=0

Thanks for the exemplary report on settings of the tester! Clearly and instantly reproducible in your own environment with no errors. I suggest everyone do so.

For those not in the know, to create such data, press CTRL+C in the Tester Settings tab and do CTRL+V in the editor. It also works the other way round.



SZY Dear developers, could you CTRL+C add more of this data as a comment?

; Server=MetaQuotes-Demo
; Build=2220
; DLL=0
; Hedge=1
; Agents=8
; Memory(Gb)=16
; и спецификация символа.
[Tester]
Symbol=GBPUSD
Period=M5
Optimization=0

It would make it much easier to report Tester errors on the forum.

 

Greetings. Could you please tell me where to copy the DLL? I have no Libraries directory (C:\Program Files\ MT5\\MQL5\ ???? ).

Thank you.

 
fxsaber:

For those not in the know, to create such data, press CTRL+C in the Tester Settings tab and do CTRL+V in the editor. It works the other way round as well.

How cool is that! Thank you!

i wish we could do the same for the chart EA... and that the start button could be pressed from the EA in the chart

 
Andrey Dik:

I wish we could do this with the EA from the chart... If I wanted to do it with a chart and I could press the start button

Forum on trading, automated trading systems & strategy testing

Libraries: MultiTester

fxsaber, 2019.11.12 11:41

#include <fxsaber\MultiTester\MTTester.mqh> // https://www.mql5.com/ru/code/26132

void OnStart()
{  
  MessageBox(MTTESTER::GetSettings()); // Текущие настройки Тестера

  string Settings = "[Tester]\nFromDate=2019.09.01"; // Задание даты начала интервала Тестирования
  MTTESTER::SetSettings(Settings); // Установили соответствующие настройки
}
 
fxsaber:

dlls are used there... and I would like to use regular mql commands to control the tester/optimiser

 
Andrey Dik:

dlls are used there... and I would like to use regular mql commands to control the tester/optimizer.

Workable functionality is needed by a few people. It's not going to work now only in Market. So 99.99% of the tasks are already covered.

So far I can't think of a scenario (other than Market) where the standard functionality would be more convenient for the task.
 
There is an error when calculating custom symbols. If the formula contains the Ask(EURUSD) function, the Ask price is taken into account only for newly arrived quotes, for historical data the bid price is taken. The chart is incorrect, changing depending on whether the terminal is online or not at the moment.
 
Lyuk:
There is an error when calculating custom symbols. If the formula contains the Ask(EURUSD) function, then the Ask price is taken into account only for newly arrived quotes, for historical data the bid price is taken. The chart is incorrect, changing depending on whether the terminal is online or not at the moment.

The open, high, low, close prices of the corresponding bars are taken for the historical data to recalculate the open, high, low, close synthetic bar