Download MetaTrader 5

debugging

To add comments, please log in or register
Download MetaTrader 5 and start trading today!
mrmedia
342
mrmedia 2013.09.14 16:41 
I'm new to mq5
To debug I went metaeditor>tools>options>debug>    EURUSD  60MIN
Then i can "start debugging" the "MACD Sample" and it steps through to end of init().
But it is the weekend and there are no ticks so the chart sits there with the EA in debug mode.

I want to go to strategy backtester and debug that way.
Shouldn't I be allowed to start a strategy - a visual test - (or even non visual test) and attach to that process?

How do you do that?

If this live feed is the only way - how can you step through your code before the next tick - surely you need to debug strategy backtester only?

( or i suppose you get to test current market and stored ticks from init onwards - but you are precluded from testing a price pattern you want to target)


This separate strategy window is different to MT4 single window.

MT5 does not allow you to click on a balance graph and go to a trade and click to go to the chart.

Isn't that a step backwards?
Alain Verleyen
Moderator
30743
Alain Verleyen 2013.09.14 17:53  
mrmedia:
I'm new to mq5
To debug I went metaeditor>tools>options>debug>    EURUSD  60MIN
Then i can "start debugging" the "MACD Sample" and it steps through to end of init().
But it is the weekend and there are no ticks so the chart sits there with the EA in debug mode.

I want to go to strategy backtester and debug that way.
Shouldn't I be allowed to start a strategy - a visual test - (or even non visual test) and attach to that process?

How do you do that?

If this live feed is the only way - how can you step through your code before the next tick - surely you need to debug strategy backtester only?

( or i suppose you get to test current market and stored ticks from init onwards - but you are precluded from testing a price pattern you want to target)

You can't debug with the Strategy Tester. If you can't wait the opening of the market, one workaround is the use of OnTimer event handler instead of OnTick.

This separate strategy window is different to MT4 single window.

MT5 does not allow you to click on a balance graph and go to a trade and click to go to the chart.

Isn't that a step backwards?
I don't understand the problem here, can you be more explicit ?
mrmedia
342
mrmedia 2013.09.14 23:12  
angevoyageur:
You can't debug with the Strategy Tester. If you can't wait the opening of the market, one workaround is the use of OnTimer event handler instead of OnTick.
I don't understand the problem here, can you be more explicit ?

i guess this is part of the merge process.   Separate out code in MT5 , create compiler for MT4+MT5, come back and finalise MT5.

Alain Verleyen
Moderator
30743
Alain Verleyen 2013.09.15 09:18  
mrmedia:

i guess this is part of the merge process.   Separate out code in MT5 , create compiler for MT4+MT5, come back and finalise MT5.

?
To add comments, please log in or register