Download MetaTrader 5

How to create indicator both in chart and separate window?

To add comments, please log in or register
etrader58
337
etrader58  

In a custom indicator, we can set

 #property indicator_chart_window

or

#property indicator_separate_window

 

How can I draw indicators (e.g., indicator_buffers 2) on both a separate window and the chart ? One drawing goes in the separate window and one on the main chart!

honest_knave
Moderator
2328
honest_knave  
With some imagination, you can create objects such as lines, rectangles and labels etc in the main window, while drawing the indicator in the separate window.... ObjectCreate takes an argument for subwindow.
To add comments, please log in or register