Why can't I run debugger on this simple indicator that follows the updated MQL4 rules?
I put a break point on the Comment() call in OnCalculate and the indicator ignores it when you hit debug button (it never triggers).
- Errors, bugs, questions
- debugging in mt4
- Print Call Stack function
enjoysmath:
I put a break point on the Comment() call in OnCalculate and the indicator ignores it when you hit debug button (it never triggers).
I put a break point on the Comment() call in OnCalculate and the indicator ignores it when you hit debug button (it never triggers).
What broker and symbol do you use in debug mode?
The OnCalculate() function is called only in custom indicators when it's necessary to calculate the indicator values by the Calculate event.
This usually happens when a new tick is received for the symbol, for which the indicator is calculated.
If there is no ticks - the break point won't be reached.