You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The timer events are actually a subclass of ChartEvent, and are called only when the indicator is run directly on the chart. In indicators called through iCustom, you will not wait for the call of OnTimer, nor for the call of OnChartEvent
There, one indicator starts drawing only after the other indicator it calls has been drawn. It means, you have to press refresh once to build the one, the most distant in the chain, then once again to build the one that uses its data :)
Why do you need to get it?
I will have to check it. But anyway, I was talking about something else. You're talking about displaying, and on an offline chart (which is not the primary task, because trading is online). I, on the other hand, am talking about data availability. In your case the data is already available. But it is poorly displayed. I am talking about getting all the available data correctly.
I realise we are talking about different things. You just said that data access in MT4 and MT5 is the same. In fact it is different and quite different.
By the way, MT4 uses a script that physically opens and scrolls the windows with charts of required symbols back to the history, imitating the user's actions.
I doubt that you can load the history in MT4 using MT5 methods, even if the SeriesInfoInteger function works for you.
I realise we are talking about different things. You just said that access to data in MT4 and MT5 is the same. In fact it is different and quite different.
By the way, MT4 uses a script that physically opens and scrolls the windows with charts of the required instruments back to history, imitating the user's actions.
I doubt that you can load the history in MT4 using MT5 methods, even if the SeriesInfoInteger function works for you.
You're talking about displaying, and on an offline chart (which is not the primary task, because trading is online).
Just analysing the market at the weekend to make a plan for the week is one of the primary tasks for many traders.
Write the result of your experiments with the story in MT4)
OK, I'll post it here. It would be nice if you could back up your claims with code and results as well.
What do you mean? What I have written about iCustom indicators in MT5 is not questioned. This is kind of normal and it should be so.
Forum on trading, automated trading systems and testing trading strategies
Service Desk. Complaints, suggestions.
Ilya Malev, 2015.10.30 18:50
Timer events are actually a subclass of ChartEvent, and are only called when the indicator is running directly on the chart. In indicators called via iCustom, you don't wait for either OnTimer or OnChartEvent to be called
There, one indicator starts drawing only after the other one has been drawn. You need to press refresh once to build the first, farthest in the chain, then once again to build the one that uses its data :)
Because, the indicator in its thread cannot wait for data building of another indicator, without coming back from OnCalculate. It is also a nice feature. The user will always face the menu of the chart instead of working with data.