Summary
Provides data for the chart scrolling event.
Signature
| 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
| public Chart Chart {get;}
|
Return Value
Chart
ChartArea
Summary
Gets the chart area.
Signature
| 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
| public int BarsDelta {get;}
|
Return Value
int
BottomYDelta
Summary
Gets the lowest value of the bars delta.
Signature
| public double BottomYDelta {get;}
|
Return Value
double
TopYDelta
Summary
Gets the highest value of the bars delta.
Signature
| public double TopYDelta {get;}
|
Return Value
double