Divergence Line in separate indicator Window

 

hi folks!


ist it possible to display a price divergence line in a macd indicator?

i attached an image, the red line would be my goal.

any ideas how to put this in a buffer?




thank you,

mike

 

You can draw it using CreateObject() or as an indicator index with style DRAW_SECTION

 
phy:

You can draw it using CreateObject() or as an indicator index with style DRAW_SECTION

thank you phy!

 

me again :)


i tryed to use DRAW_SECTION to create such lines.

the problem is, that it seems that every value will be connected to the next valid value, so it would be nice for zigzag but i need different lines with space between where no line is drawn.

any ideas?


best regards,

mike

Reason: