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:
- Read location
- Perform expert's taken action
- 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
Hello,
Can you atleast let us know, will the visual mode be available before ATC 2010 start..
tk
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 ;)
thank you, Enigma71fx!
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:
- Read location
- Perform expert's taken action
- 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
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I think it is so useful for me
thanks