Netherlands
Experience: Advanced
Platform: Ensign, Multicharts
Trading: SP500
Posts: 91 since Nov 2009
Thanks Given: 66
Thanks Received: 57
|
In my indicator, it is a custom plot like in Ninja's custom plot example so the scale is not set automatically like with a normal plot.
In the indicator code i use:
this.ChartControl.FixedPanelMaxRight = highest + (highest/10);
this.ChartControl.FixedPanelMinRight = lowest - (lowest/10);
to set the min and max values and that works.
But when i try to set the Range Type
this.ChartControl.YAxisRangeTypeRight = YAxisRangeType.Fixed;
the range in the chartpanel is set instead of the panel the indicator is on.
How to set the range in a specific panel?
Also what is the correct way to update the chart with such changes?
Refresh?
Invalidate?
ChartControl.Update();
Any help is greatly appreciated.
|