The cAlgo builder is always error

Created at 05 Apr 2018, 20:56
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
Bits's avatar

Bits

Joined 14.03.2018

The cAlgo builder is always error
05 Apr 2018, 20:56


using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
//using Me.Core.Ind;
//using System.Collections.Generic;

namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Lk : Indicator
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }
        //public List<BarInfo> bars;
        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }
        //   public Czsc Czsc;

        protected override void Initialize()
        {
            // Czsc = new Czsc(MarketSeries);
            // Initialize and create nested indicators
        }

        public override void Calculate(int index)
        {
            Result[index] = MarketSeries.Close[index];
        }
    }
}

 


@Bits
Replies

PanagiotisCharalampous
10 Apr 2018, 10:10

Hi yearn2012,

I tried to build the posted indicator in both cAlgo and VS 2017 and I get no errors. Please make sure you have posted the correct indicator.

Best Regards,

Panagiotis


@PanagiotisCharalampous