If the indicator is to be looked at rather than called from an Expert Advisor, there is a convenient solution. You make an indicator for the sub-window and draw graphically on the price chart with objects.
Dmitry Fedoseev: If the indicator is to be looked at rather than called from an Expert Advisor, tor there is a handy solution. We make an indicator for the sub-window and draw it on the price chart using graphical objects.
Is it possible to write such an artificial"indicator buffer", so that you can work with it (read/write, like to an array) like with a real one, but it draws lines (and any other arbitrary geometric variants) with graphical objects?
Dmitry Fedoseev: If the indicator is intended to be looked at rather than called from an Expert Advisor, it has a convenient solution. We make an indicator for a sub-window and draw graphical objects on the price chart.
Why go to all that trouble? You can already watch and call from the Expert Advisor. For now, before changing settings, remove all unnecessary indicators from Chart, change settings in Separate. When you save the settings, the indicator with new settings will be created in Chart.
Then you can do it automatically, I don't need it in a hurry yet. For example ChartIndicatorDelete
comp: Is it possible to write such an artificial"indicator buffer", so that you can work with it (read/write, like to an array) like with a real one, but it draws lines (and any other arbitrary geometrical variants) by graphic objects?
You could use a regular buffer, but just not mapped ones. Also add a couple of lines to draw trend lines on that buffer.
Why go to all that trouble? You can already watch and call from the Expert Advisor. For now, before changing settings, remove all unnecessary indicators from Chart, change settings in Separate. When you save the settings, the indicator with new settings will be created in Chart.
Then you can do it automatically, I don't need it in a hurry yet. For example ChartIndicatorDelete
If the indicator is to be looked at rather than called from an Expert Advisor, tor there is a handy solution. We make an indicator for the sub-window and draw it on the price chart using graphical objects.
If the indicator is intended to be looked at rather than called from an Expert Advisor, it has a convenient solution. We make an indicator for a sub-window and draw graphical objects on the price chart.
Why go to all that trouble? You can already watch and call from the Expert Advisor. For now, before changing settings, remove all unnecessary indicators from Chart, change settings in Separate. When you save the settings, the indicator with new settings will be created in Chart.
Then you can do it automatically, I don't need it in a hurry yet. For example ChartIndicatorDelete
What kind of object do you use to draw a curve?
dots, lines
What object do you draw the curve with?
Is it possible to write such an artificial"indicator buffer", so that you can work with it (read/write, like to an array) like with a real one, but it draws lines (and any other arbitrary geometrical variants) by graphic objects?
Why go to all that trouble? You can already watch and call from the Expert Advisor. For now, before changing settings, remove all unnecessary indicators from Chart, change settings in Separate. When you save the settings, the indicator with new settings will be created in Chart.
Then you can do it automatically, I don't need it in a hurry yet. For example ChartIndicatorDelete