How to Debug tick events?

 

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.

 

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

 
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
 
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.
 
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

 

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