ChartPriceScaleEventArgs.ChartArea
property · ChartPriceScaleEventArgs · cAlgo.API Since 5.10
DesktopCLICloud
Gets the chart area whose price scale changed. It is the chart itself for the main area.
Definition
public ChartArea ChartArea {get;}
chartPriceScaleEventArgs.ChartArea: ChartArea
Returns ChartArea
Examples
foreach (var indicatorArea in Chart.IndicatorAreas)
{
indicatorArea.PriceScaleChanged += args => Print("Indicator area price scale changed | Auto scale: {0} | Bottom Y: {1} | Top Y: {2}", args.ChartArea.IsAutoScaleEnabled, args.ChartArea.BottomY, args.ChartArea.TopY);
}
for indicatorArea in api.Chart.IndicatorAreas:
indicatorArea.PriceScaleChanged += lambda args: print(f"Indicator area price scale changed | Auto scale: {args.ChartArea.IsAutoScaleEnabled} | Bottom Y: {args.ChartArea.BottomY} | Top Y: {args.ChartArea.TopY}")