Replies

DeletedUser2
14 Jan 2016, 02:33 ( Updated at: 16 Aug 2022, 15:13 )

RE:

 

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

namespace cAlgo
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        private MarketSeries anothertimeframe;

        private StochasticOscillator stoc1;
        private StochasticOscillator stoc2;

        protected override void OnStart()
        {
            // Put your initialization logic here
            anothertimeframe = MarketData.GetSeries(Symbol, TimeFrame.Minute5);

            stoc1 = Indicators.StochasticOscillator(MarketSeries, 9, 3, 9, MovingAverageType.Exponential);

            stoc2 = Indicators.StochasticOscillator(anothertimeframe, 9, 3, 9, MovingAverageType.Exponential);
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

 


@DeletedUser2

DeletedUser2
07 Jan 2016, 08:38

RE:

You might want to check the data your receiving from the different brokers matches, as in the start time of the data feed, and the period you are calculating over, this can lead to varying values.


@DeletedUser2

DeletedUser2
31 Dec 2015, 12:39 ( Updated at: 14 Aug 2022, 18:54 )

.


@DeletedUser2

DeletedUser2
31 Dec 2015, 11:03 ( Updated at: 14 Aug 2022, 18:54 )

.


@DeletedUser2

DeletedUser2
30 Dec 2015, 12:25 ( Updated at: 14 Aug 2022, 18:54 )

.


@DeletedUser2

DeletedUser2
30 Dec 2015, 09:13 ( Updated at: 14 Aug 2022, 18:54 )

RE: RE:

.


@DeletedUser2

DeletedUser2
30 Dec 2015, 09:00 ( Updated at: 14 Aug 2022, 18:53 )

RE:

.


@DeletedUser2