ChartArrow
interface cAlgo.API
DesktopCLICloud
Represents the arrow chart object.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
public interface ChartArrow
Namespace: cAlgo.API · Group: Drawings · Implements: ChartObject
Examples
using cAlgo.API;
namespace cAlgo;
public partial 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
{
"AccessRights": "None"
}
Methods
| Name | Description |
|---|---|
CalculateY 2 overloadsDesktopCLIClouddouble | Calculates Y-axis value corresponding the specified bar index. |
Properties
| Name | Description |
|---|---|
ColorDesktopCLICloudColor | Gets or sets the color of the Trend Line. |
ExtendToInfinityDesktopCLICloudbool | Defines if the Arrow extends to infinity. |
LineStyleDesktopCLICloudLineStyle | Gets or sets the Arrow style. |
ShowAngleDesktopCLICloudbool | Defines the arrow angle. |
ThicknessDesktopCLICloudint | Gets or sets the thickness of the Arrow. |
Time1DesktopCLICloudDateTime | Gets or sets the value 1 on the Time line. |
Time2DesktopCLICloudDateTime | Gets or sets the value 2 on the Time line. |
Y1DesktopCLIClouddouble | Gets or sets the value 1 on the Y-axis. |
Y2DesktopCLIClouddouble | Gets or sets the value 2 on the Y-axis. |
Inherited members
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive