modify indicator

 

Why modifiying in the MACD indicator (as an example) the line :

from #property indicator_separate_window

to #property indicator_chart_window

saving and compiling under a new name the indicator is not plotted in the chart window ?

actually noting is plotted !!

Thanks for the help.

 
You need to understand the way things are plotted. Horizontally, things are usually price based for plotting in the main window - MACD for example (Moving Average Convergence / Divergence) is not price based. You therefore cannot plot this in the main window as there are no prices shown that relate to the figures the MACD calculation produces, that's why it's plotted in a separate window
 
emisar:

Why modifiying in the MACD indicator (as an example) the line :

from #property indicator_separate_window

to #property indicator_chart_window

saving and compiling under a new name the indicator is not plotted in the chart window ?

actually noting is plotted !!

It is plotted . . . you just can't see it. It is probably off the scale of the normal price chart . . . so probably right at the bottom of the chart, if you adjust the scale by clicking and dragging the Y Axis you might get to see it . . but it will obviously be of no use to you.
 
Paul_B:
You need to understand the way things are plotted. Horizontally, things are usually price based for plotting in the main window - MACD for example (Moving Average Convergence / Divergence) is not price based. You therefore cannot plot this in the main window as there are no prices shown that relate to the figures the MACD calculation produces, that's why it's plotted in a separate window


Mant thanks

 
RaptorUK:
It is plotted . . . you just can't see it. It is probably off the scale of the normal price chart . . . so probably right at the bottom of the chart, if you adjust the scale by clicking and dragging the Y Axis you might get to see it . . but it will obviously be of no use to you.


Many thanks
Reason: