Hi,
I am using: https://www.mql5.com/en/code/7673 for create graph no-standard time frame on MT4. I created graph 2min, inserted my test easy code, see below. Why fce. IndicatorCounted() always return zero?!! When I insert the same indicator in graph with standard timeframe MT4 (1min, 5min,...) return no-zero value - that´s ok.
You aren't the first to report that IndicatorCouned() returns 0
https://www.mql5.com/en/forum/135405
This might help: https://www.mql5.com/en/forum/138616
datetime historyAnalyzed; int start(){ // int counted = IndicatorCounted(); // for(int iBar = Bars - 1 - counted; iBar >= 0; iBar--){ .. int iBar = iBarShift(NULL, 0, historyAnalyzed); historyAnalyzed = Time[0]; for(; iBar >= 0; iBar--){ ..
Thank you for links. I have one question:
How can I detect programatically that is chart offline? Is it possible? Does it exist any predefined constant into MT / MQL?
Thank you for links. I have one question:
How can I detect programatically that is chart offline? Is it possible? Does it exist any predefined constant into MT / MQL?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am using: https://www.mql5.com/en/code/7673 for create graph no-standard time frame on MT4. I created graph 2min, inserted my test easy code, see below. Why fce. IndicatorCounted() always return zero?!! When I insert the same indicator in graph with standard timeframe MT4 (1min, 5min,...) return no-zero value - that´s ok.