Draw in the main and sub chart in same time

 

Hi how can use and draw in the main and sub chart windows in same time? in both mql4 and mql5?

I want show an indicator in the main chart and draw some object types in sub window. how can i do it?

 
One way of doing it in MQL5 is by having an indicator load a second indicator which in turn gives you the second window. (Subwindow)

Now you can control the indicator by some data exchange mechanism to feed it with whatever you want.

And you can use ObjectXXX () functions to draw into the subwindow.

I don't exactly know for MQL4 but would guess it is somehow similar.




Reason: