Download MetaTrader 5

How to create indicator both in chart and separate window?

To add comments, please log in or register
Download MQL5 library codes via MetaTrader. It is convenient!
etrader58
335
etrader58 2014.11.09 16:25 

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
2159
honest_knave 2014.11.09 16:41  
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