Draw indicator lines in chart window AND in a separate window?

 

Dear all,


there is an indicator in mind which should draw lines in the chart window and also in a separate window (because line levels are totally different).

In the chart window trigger lines should be drawn and in the separate window a conclusion of combinating the trigger lines should be drawn.

Is it, for general, possible to draw lines of a single indicator in different windows?

If not, is it an approach to write two indicators, one for each window?

Indicator for separate window is using indicator for chart window via iCustom?


Best regards

Dirk

 
sahl04:

Dear all,


there is an indicator in mind which should draw lines in the chart window and also in a separate window (because line levels are totally different).

In the chart window trigger lines should be drawn and in the separate window a conclusion of combinating the trigger lines should be drawn.

Is it, for general, possible to draw lines of a single indicator in different windows?

If not, is it an approach to write two indicators, one for each window?

Indicator for separate window is using indicator for chart window via iCustom?


Best regards

Dirk



With using Objects you can create lines in chart window. Also you can draw lines in the separate window of your indicator

But if it is possible to create the thing you have in mind you can only say if you start coding it and trie to make it

ofcours you can also write more then one indicator to use in separate windows. We can only say without coding it you won't get it...

 

sahl04:

Indicator for separate window is using indicator for chart window via iCustom?


I think we tried this recently and an indicator can't successfully call iCustom. But you can have two separate indicators and use a template to call them both up together. And you can use an EA to call up two separate indicators. And either an EA or a script can draw objects in any window.
 
sahl04:

Dear all,


there is an indicator in mind which should draw lines in the chart window and also in a separate window (because line levels are totally different).

In the chart window trigger lines should be drawn and in the separate window a conclusion of combinating the trigger lines should be drawn.

Is it, for general, possible to draw lines of a single indicator in different windows?

If not, is it an approach to write two indicators, one for each window?

Indicator for separate window is using indicator for chart window via iCustom?

Best regards, Dirk


Hi Dirk,

I've seen some divergence indicators that draw lines on both the chart and in the indicator.

One example is called FX5_MACD_Divergence.

You can find it in the codebase here: https://www.mql5.com/en/code/7116

See if that does what you want....

Hope this helps,

Robert





Reason: