Download MetaTrader 5

When can MT5 test expert with VISUAL mode?

To add comments, please log in or register
HongDi s& t development co.,ltd.
1603
hongbin fei  

I think it is so useful for me 

thanks

Brett Luedtke
114
Brett Luedtke  

I was thinking to output a log format for this during backtest.

Logic being:

In Your expert:

  • When important expert event occurs:
  • Get current chart location & action taken
  • Set values to file 

Create a script:

  • Implement action methods into script
  • Open expert log file
  • For each log entry starting at timestamp of first entry:
    1. Read location
    2. Perform expert's taken action
    3. Increment chart bar by bar until action = false

For example, put the logic in your expert OnTrade() and if the trade is being closed, you write the history of the order (Start time, price, modify times & values). If designed right it can be any other special things about your EA. Use the script then to jump order to order, incrementing bar to bar until the trade is finished.

Cheers - happy coding

Johnny
140
Johnny  

Hello,

Can you atleast let us know, will the visual mode be available before ATC 2010 start..

tk

HongDi s& t development co.,ltd.
1603
hongbin fei  

will this function be add to the software?

 

Pawel Wojnarowski
685
Pawel Wojnarowski  
codeidea:

will this function be add to the software?

 

I have asked MetaQuotes via service desk if this feature is going to be added. The answer is: "Yes, there will be visual testing in MT5 and should be available soon". I guess we have to wait patiently - there's nothing else we can do anyway ;)
HongDi s& t development co.,ltd.
1603
hongbin fei  
Enigma71fx:
I have asked MetaQuotes via service desk if this feature is going to be added. The answer is: "Yes, there will be visual testing in MT5 and should be available soon". I guess we have to wait patiently - there's nothing else we can do anyway ;)

thank you, Enigma71fx!

 

HongDi s& t development co.,ltd.
1603
hongbin fei  
Lugner:

I was thinking to output a log format for this during backtest.

Logic being:

In Your expert:

  • When important expert event occurs:
  • Get current chart location & action taken
  • Set values to file 

Create a script:

  • Implement action methods into script
  • Open expert log file
  • For each log entry starting at timestamp of first entry:
    1. Read location
    2. Perform expert's taken action
    3. Increment chart bar by bar until action = false

For example, put the logic in your expert OnTrade() and if the trade is being closed, you write the history of the order (Start time, price, modify times & values). If designed right it can be any other special things about your EA. Use the script then to jump order to order, incrementing bar to bar until the trade is finished.

Cheers - happy coding

I think it is a not prefessional way to test a robot 

To add comments, please log in or register