ChartElliottImpulse
interface cAlgo.API Since 5.10
DesktopCLICloud
Represents the Elliott Impulse Wave (1-2-3-4-5) chart object - a five-wave motive pattern over six pivots (origin and 1 to 5).
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 ChartElliottImpulse
Namespace: cAlgo.API · Group: Drawings · Implements: ChartElliottWaveBase, ChartObject
Examples
using cAlgo.API;
namespace cAlgo
{
// This sample shows how to use Chart.DrawElliottImpulse method to draw an Elliott Impulse Wave
public partial class ElliottImpulseSample : Indicator
{
protected override void Initialize()
{
var i = Chart.FirstVisibleBarIndex;
var s = (Chart.LastVisibleBarIndex - i) / 6;
var t = Bars.OpenTimes;
var c = Bars.ClosePrices;
Chart.DrawElliottImpulse("Impulse",
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]),
new ChartPoint(t[i + 4 * s], c[i + 4 * s]),
new ChartPoint(t[i + 5 * s], c[i + 5 * s]),
Color.Red);
}
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) // 6
t = api.Bars.OpenTimes
c = api.Bars.ClosePrices
impulse = api.Chart.DrawElliottImpulse("Impulse",
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]), ChartPoint(t[i + 4 * s], c[i + 4 * s]), ChartPoint(t[i + 5 * s], c[i + 5 * s]),
Color.Red)
impulse.IsInteractive = True
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true
}
Properties
| Name | Description |
|---|---|
OriginDesktopCLICloudChartPoint | Gets or sets the origin (wave 0) anchor point. |
Wave1DesktopCLICloudChartPoint | Gets or sets the wave 1 anchor point. |
Wave2DesktopCLICloudChartPoint | Gets or sets the wave 2 anchor point. |
Wave3DesktopCLICloudChartPoint | Gets or sets the wave 3 anchor point. |
Wave4DesktopCLICloudChartPoint | Gets or sets the wave 4 anchor point. |
Wave5DesktopCLICloudChartPoint | Gets or sets the wave 5 anchor point. |
Inherited members
From ChartElliottWaveBase: Degree, ShowLabels, Thickness, Color, LineStyle
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive