Two types of indicators on one chart? - page 3

 
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.
 
If the indicator is not to be looked at, the subwindow doesn't matter at all
 
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.
What object should be used to draw the curve?
 
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

Документация по MQL5: Операции с графиками / ChartIndicatorDelete
Документация по MQL5: Операции с графиками / ChartIndicatorDelete
  • www.mql5.com
Операции с графиками / ChartIndicatorDelete - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Alexander Puzanov:
What kind of object do you use to draw a curve?
points, lines
 
Комбинатор:
dots, lines
Can you show the result of this drawing when the scale of the graph = 5?
 
Alexander Puzanov:
What object do you draw the curve with?
Withtrend lines.
 
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.
 
Yuriy Asaulenko:

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

I do not see any complications.
Reason: