ChartArrow
Summary
Represents the arrow chart object.
Signature
| public abstract interface ChartArrow
|
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | using cAlgo.API;
namespace cAlgo;
[Indicator(AccessRights = AccessRights.None)]
public class Test : Indicator
{
protected override void Initialize()
{
var chartArrow = Chart.DrawArrow("Test Arrow", Chart.LastVisibleBarIndex, Bars.LowPrices[Chart.LastVisibleBarIndex], Chart.LastVisibleBarIndex, Bars.HighPrices[Chart.LastVisibleBarIndex], Color.Red, 2, LineStyle.Dots);
chartArrow.IsInteractive = true;
}
public override void Calculate(int index)
{
}
}
|
| import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
chartArrow = api.Chart.DrawArrow("Test Arrow", api.Chart.LastVisibleBarIndex, api.Bars.LowPrices[api.Chart.LastVisibleBarIndex], api.Chart.LastVisibleBarIndex, api.Bars.HighPrices[api.Chart.LastVisibleBarIndex], Color.Red, 2, LineStyle.Dots)
chartArrow.IsInteractive = True
|
Methods
CalculateY (2)
CalculateY (1 of 2)
Summary
Calculates Y-axis value corresponding the specified bar index.
Signature
| public abstract double CalculateY(int barIndex)
|
Parameters
| Name | Type | Description |
| barIndex | int | Index of the bar. |
Return Value
double
CalculateY (2 of 2)
Summary
Calculates Y-axis value corresponding the specified time value.
Signature
| public abstract double CalculateY(DateTime time)
|
Parameters
| Name | Type | Description |
| time | DateTime | The time. |
Return Value
double
Properties
Time1
Summary
Gets or sets the value 1 on the Time line.
Signature
| public abstract DateTime Time1 {get; set;}
|
Return Value
DateTime
Time2
Summary
Gets or sets the value 2 on the Time line.
Signature
| public abstract DateTime Time2 {get; set;}
|
Return Value
DateTime
Y1
Summary
Gets or sets the value 1 on the Y-axis.
Signature
| public abstract double Y1 {get; set;}
|
Return Value
double
Y2
Summary
Gets or sets the value 2 on the Y-axis.
Signature
| public abstract double Y2 {get; set;}
|
Return Value
double
Color
Summary
Gets or sets the color of the Trend Line.
Signature
| public abstract Color Color {get; set;}
|
Return Value
Color
Thickness
Summary
Gets or sets the thickness of the Arrow.
Signature
| public abstract int Thickness {get; set;}
|
Return Value
int
Related Tutorials
LineStyle
Summary
Gets or sets the Arrow style.
Signature
| public abstract LineStyle LineStyle {get; set;}
|
Return Value
LineStyle
ShowAngle
Summary
Defines the arrow angle.
Signature
| public abstract bool ShowAngle {get; set;}
|
Return Value
bool
ExtendToInfinity
Summary
Defines if the Arrow extends to infinity.
Signature
| public abstract bool ExtendToInfinity {get; set;}
|
Return Value
bool