How to place a middle line on Oscillators?

#1
Hello,



How do I place a permanent line on MACD or any Oscillators in Amibroker.

For instance, I need to have Zero Line as median. I can do that manually placing the line from the tool. But is there a way to make it happen by default , so every time , I open fresh chart, it stays there.
 

mastermind007

Well-Known Member
#3
Hello,



How do I place a permanent line on MACD or any Oscillators in Amibroker.

For instance, I need to have Zero Line as median. I can do that manually placing the line from the tool. But is there a way to make it happen by default , so every time , I open fresh chart, it stays there.

Add the below line to Oscillators formula:

Plot(0,"",colorBlack ,styleLine);
The above solution recommended by abcpankaj is 100% valid and there is also a function named PlotGrid in the amibroker library that tends to be little bit more memory efficient that the constant value Plot.

Therefore, sometimes PlotGrid suits the AFL better. Have a look at both the functions and then decide which one suits better.
 

Similar threads