May 21, 2019, 2:22pm
As can be seen in the graph, the price and the scale do not match, did anyone come across this and know how to solve it?
You can search the forum, there are many Topics on lack of understanding of using Plot functions and the scaling parameters associated with them.
They are explained in the manual.
No, you just need at least one Plot() in your formula. Plot() call sets the scale but PlotGrid() doesn’t (it leaves scale unaffected)
/* Onto an AB pane displaying a ticker bar chart I want to overlay an S&P indice line chart so to visually compare recent performances over say 6 months.
Ticker prices are just a fraction of the S&P indice prices so I need to scale down the S&P Indice to match each Ticker Prices scale.
I think that taking an average of the past 130 days S&P values and dividing the sum of that into the ticker lastvalue(c) value would scale the S&P down nicely but I can’t code this to work. How can I do this?
As you can see in the pic, we can easily overlay an indicator with different scale with: styleLeftAxisScale, but how can I change the y position of the indicator, in other words, how to change the indicator's vertical position? meaning how to move the indicator up or down?
[I could not delete the previous post. I wanted to use a better chart example]
I'lm using PlotOHLC() to plot horizontal zones on a chart. I notice that if the plotted approaches about 33% of either the bottom or top edge of the chart, it causes the entire chart to be be rescaled, such that the chart is compressed. This leaves an empty band at the top or bottom of the chart, where no price information is displayed.
I tried using the styleNoRescale option to the PlotOHLC(), but this case…
May 21, 2019, 2:41pm
Thank you for your quick response
From the screenshot it can be guessed that in your formula you have used
leftAxisStyle style in your formula which actually asks AmiBroker to use separate independent scale for each line and NOT to use axis.
Covered in the manual
Always I mean always you should provide the
code you have used. See How to ask a good question