Skip to content

ChartScrollEventArgs

Summary

Provides data for the chart scrolling event.

Signature

1
public class ChartScrollEventArgs

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the Chart ChartScrollEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartScrollEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.ScrollChanged += Chart_ScrollChanged;
         }
         private void Chart_ScrollChanged(ChartScrollEventArgs obj)
         {
             Print("Scrolled, Bars Delta : {0} | Top Y Delta: {1} | Bottom Y Delta: {2}", obj.BarsDelta, obj.TopYDelta, obj.BottomYDelta);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also

Properties

Chart

Summary

Gets the chart.

Signature

1
public Chart Chart {get;}

Return Value

Chart

ChartArea

Summary

Gets the chart area.

Signature

1
public ChartArea ChartArea {get;}

Return Value

ChartArea

BarsDelta

Summary

Gets a value that indicates the amount of bars that the chart was scrolled for

Signature

1
public int BarsDelta {get;}

Return Value

int

BottomYDelta

Summary

Gets the lowest value of the bars delta.

Signature

1
public double BottomYDelta {get;}

Return Value

double

TopYDelta

Summary

Gets the highest value of the bars delta.

Signature

1
public double TopYDelta {get;}

Return Value

double