VL
Topics
10 Aug 2015, 20:33
2338
2
23 Jun 2015, 13:27
3223
3
Replies
Vlad_Wulf
23 Jun 2015, 13:40
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; namespace cAlgo { [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewIndicator : Indicator { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } [Output("Main")] public IndicatorDataSeries Result { get; set; } int iterator = 0; protected override void Initialize() { // Initialize and create nested indicators } public override void Calculate(int index) { string lineName = "line" + iterator; for (int i = index - Period; i <= index; i++) { ChartObjects.DrawVerticalLine(lineName, index, Colors.Orange); iterator += 1; } } } }
Nevermind I resolved it this way.
@Vlad_Wulf
Vlad_Wulf
06 Aug 2015, 13:53
There is an indicator doing that
@Vlad_Wulf