Topics
05 Jun 2019, 06:17
 1155
 5
Replies

stevennjuki
05 Jun 2019, 09:46

Just tried this on version 3.5 and it compiles. All bots on 3.5 compile apart from sample advanced take...

on version 3.3 though none of the bots seem to compile. Will try to work with 3.5. Thanks.


@stevennjuki

stevennjuki
05 Jun 2019, 09:31

Sample RSI cbot. It comes with ctrader.

 


@stevennjuki

stevennjuki
27 Sep 2016, 10:44

To my point, if I attach the bot below to a chart I do not see the print message in either the journal or the log. 

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; }

        protected override void OnStart()
        {
            // Put your initialization logic here
        }

        protected override void OnBar()
        {
            Print("Hi there!");
        }

        protected override void OnTick()
        {
            // Put your core logic here
            Print("Hi there!");
        }

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

 

 


@stevennjuki

stevennjuki
16 Aug 2016, 16:29

Hello please add this functionality for custom enumerations. Even decimal data types are not yet possible!!


@stevennjuki