ChartElliottCorrection
interface cAlgo.API Since 5.10
DesktopCLICloud
Represents the Elliott Correction Wave (A-B-C) chart object - a three-wave corrective pattern over four pivots (origin and A, B, C).
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 ChartElliottCorrection
Namespace: cAlgo.API · Group: Drawings · Implements: ChartElliottWaveBase, ChartObject
Examples
using cAlgo.API;
namespace cAlgo
{
// This sample shows how to use Chart.DrawElliottCorrection method to draw an Elliott Correction Wave
public partial class ElliottCorrectionSample : Indicator
{
protected override void Initialize()
{
var i = Chart.FirstVisibleBarIndex;
var s = (Chart.LastVisibleBarIndex - i) / 4;
var t = Bars.OpenTimes;
var c = Bars.ClosePrices;
Chart.DrawElliottCorrection("Correction",
new ChartPoint(t[i], c[i]),
new ChartPoint(t[i + s], c[i + s]),
new ChartPoint(t[i + 2 * s], c[i + 2 * s]),
new ChartPoint(t[i + 3 * s], c[i + 3 * s]),
Color.Blue);
}
public override void Calculate(int index)
{
}
}
}
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
i = api.Chart.FirstVisibleBarIndex
s = (api.Chart.LastVisibleBarIndex - i) // 4
t = api.Bars.OpenTimes
c = api.Bars.ClosePrices
correction = api.Chart.DrawElliottCorrection("Correction",
ChartPoint(t[i], c[i]), ChartPoint(t[i + s], c[i + s]), ChartPoint(t[i + 2 * s], c[i + 2 * s]), ChartPoint(t[i + 3 * s], c[i + 3 * s]),
Color.Blue)
correction.IsInteractive = True
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true
}
Properties
| Name | Description |
|---|---|
OriginDesktopCLICloudChartPoint | Gets or sets the origin (wave 0) anchor point. |
WaveADesktopCLICloudChartPoint | Gets or sets the wave A anchor point. |
WaveBDesktopCLICloudChartPoint | Gets or sets the wave B anchor point. |
WaveCDesktopCLICloudChartPoint | Gets or sets the wave C anchor point. |
Inherited members
From ChartElliottWaveBase: Degree, ShowLabels, Thickness, Color, LineStyle
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive