build failed error shown when try to bulid

Created at 29 Apr 2018, 10:04
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!
SI

simjopaul@gmail.com

Joined 07.04.2018

build failed error shown when try to bulid
29 Apr 2018, 10:04


using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class DeMACD : Indicator
    {
        private DeMarker longDeMarker;
        private DeMarker shortDeMarker;
        private ExponentialMovingAverage signal;

        [Parameter("Source")]
        public DataSeries Source { get; set; }

        [Parameter("Long Cycle", DefaultValue = 26, MinValue = 1)]
        public int LongCycle { get; set; }

        [Parameter("Short Cycle", DefaultValue = 12, MinValue = 1)]
        public int ShortCycle { get; set; }

        [Parameter("Signal Periods", DefaultValue = 9, MinValue = 1)]
        public int Periods { get; set; }

        [Output("DeMACD", Color = Colors.Blue, LineStyle = LineStyle.Solid)]
        public IndicatorDataSeries MACD { get; set; }

        [Output("Signal", Color = Colors.Red, LineStyle = LineStyle.Lines)]
        public IndicatorDataSeries Signal { get; set; }

        protected override void Initialize()
        {
            longDeMarker = Indicators.GetIndicator<DeMarker>(LongCycle);
            shortDeMarker = Indicators.GetIndicator<DeMarker>(ShortCycle);
            signal = Indicators.ExponentialMovingAverage(MACD, Periods);
        }

        public override void Calculate(int index)
        {
            MACD[index] = shortDeMarker.Result[index] - longDeMarker.Result[index];
            Signal[index] = signal.Result[index];
        }
    }
}

i try to modify , then it shows error when try to bulid .plese help me to solve this problem.

error showning (Error : Project C:\Users\simjo\Documents\cAlgo\Sources\Indicators\DeMarker\DeMarker\DeMarker.csproj doesn't exist.)

but that file exist on that folder

 

 

 

 

 


@simjopaul@gmail.com
Replies

PanagiotisCharalampous
07 May 2018, 12:08

Hi simjopaul@gmail.com,

Do you still have this problem? Did you try to create a new cBot, paste the code and build again? Please let me know if I can still help you in any way.

Best Regards,

Panagiotis


@PanagiotisCharalampous