Download MetaTrader 5

How to Debug tick events?

To add comments, please log in or register
Hundreds of articles will help you to create a trading robot. Come and read them!
Winston Smith
53
Winston Smith 2012.09.23 13:38 

Hi folks

 

How do you debug ticks, I can debug the OnInit() event but unable to trigger a OnTick() event to step through and watch the code. Thank you in advance for your response.

Liping Wang
3657
Liping Wang 2012.09.23 13:49  

Set break point first, then Go to strategy tester, find the EA, hit start button, the break point will be hitten.

Winston Smith
53
Winston Smith 2012.09.23 15:06  
MarketArt:

Set break point first, then Go to strategy tester, find the EA, hit start button, the break point will be hitten.

I tried that assuming that would trigger the event. Just carries on with the test, ignoring the breakpoint
Winston Smith
53
Winston Smith 2012.09.23 15:10  
https://www.mql5.com/en/forum/851/page6 it seems that you cannot test ticks at weekends or historical series? 
MetaTrader 5 Strategy Tester!
MetaTrader 5 Strategy Tester!
  • www.mql5.com
With the testing you can assess the qualities of your Expert Advisor on history data before launching it in real trading.
phi nuts
2184
phi nuts 2012.09.23 16:37  
winstonsmith:
https://www.mql5.com/en/forum/851/page6 it seems that you cannot test ticks at weekends or historical series? 

 I have to delete your other topic for double posting asking same question and - amazingly - you find the answer in two minutes while the article was about +/- 30 minutes reading.

winstonsmith 2012.09.23 16:09 | #
winstonsmith 2012.09.23 16:07 | #

Hi,

 Sorry for the questions, the answers are appreciated and I hope to answer anyone else who has quantitative questions in the future. I cannot seem to find logging functions which in the absence of tickdebug mode would be rather useful. I would be grateful to know what logging methods or functions can be deployed.


W

In answer to my own question and for the interest of others:  https://www.mql5.com/en/articles/150

Liping Wang
3657
Liping Wang 2012.09.23 17:25  

You can test any time from strategy tester, it will use history data. Please do not double post the same question. Thanks.

 

To add comments, please log in or register