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
Can you please tell me why levels are not drawn in the window. It's just an empty window in which I add indicators. But I need the window to have levels, and it doesn't want to
Can you please tell me why levels are not drawn in the window. It's just an empty window in which I add indicators. But I need the window to have levels, and it doesn't want to
Nope, doesn't help. Even if you remove all lines 5 to 11 and try to add levels manually when joining the graph, they still don't appear
You must also specify the window minimum and maximum:
It's not working again. If I add lines about minimum - maximum (or manually) to the code of the required indicatorhttps://www.mql5.com/ru/code/537?source=terminal5_mql5, it is not drawn at all. It itself is not drawn to the edge of the window, that's the problem, that's why I wanted to add levels, to see where the boundary of its drawing is.
Ideally, of course, you want it to go from window edge to window edge. Is there any way to achieve this?
It's not working again. If I add lines about minimum - maximum (or manually) to the code of the required indicatorhttps://www.mql5.com/ru/code/537?source=terminal5_mql5, it is not drawn at all. It itself is not drawn to the edge of the window, that's the problem, that's why I wanted to add levels, to see where the boundary of its drawing is.
Ideally, of course, you want it to go from window edge to window edge. Is there any way to achieve this?
Yes. You have to monitor the events and constantly track the new maximum and minimum on the bars visible in the window. To do this, see the OnChartEvent() and IndicatorSetDouble() functions in the help, and all identifiers for them.
P.S. And ChartGetInteger().
Got it, thanks, I'll look into it.
What function could be used to make a script that
1). Change the background of the graph to Custom on startup;
2). When restarting on the same chart, would it change the background back to the previous one?
Got it, thanks, I'll look into it.
What function could be used to make a script that
1). Change the background of the graph to Custom on startup;
2). When restarting on the same chart, would it change the background back to the previous one?