I'd like to view a chart build at high speeds in market replay without the current price moving off the screen & without the y-axis scale changing.
Looking through the forums I've picked up bits and pieces, and downloaded various scripts, but can't get anything to work yet.
Here's an outline of my current effort:
protected override void Initialize() { Overlay = true; BarsRequired = 0; CalculateOnBarClose = false; } protected override void OnBarUpdate() { // do nothing here } public override void GetMinMaxValues(Gui.Chart.ChartControl chartControl, ref double min, ref double max) { // print values of min & max to determine units (pixels or price) Print((int)min + " " + (int)max); // each returns -2147483648...why?? // set min and max to new price level min = 1950.00; max = 1960.00; } public override void Plot(Graphics graphics, Rectangle bounds, double min, double max) { base.Plot(graphics, bounds, min, max); }
Many thanks!
Comment