Start to build Template for Robots

Place your robots here
Post Reply
User avatar
babalu4u
Trader
Posts: 173
Joined: Fri Apr 13, 2012 6:52 pm
Location: Slovenia - EU

Start to build Template for Robots

Post by babalu4u »

Hi,

my first impressions of programming in cAlgo is that with cAlgo you can faster program code than in mq4... I realy like C#(my first steps)... Is similar to mq4 but much easier... the editor in cAlgo is realy primitive but they plan to improve it and you can use Microsoft C# Express for edit code and it is free...

I will tray to build template for Robots and and every one is welcome to help or improve the code.... :geek:
talkyPip
Posts: 4
Joined: Tue Mar 04, 2014 11:25 am

Start to build Template for Robots

Post by talkyPip »

Template, such as a basebot that combines the majority of code therefore coders don't have to rewrite all the necessary Trading concepts? Sounds great. I've done the same using VS 2012 express. All code is outside directory of calgo/robots besides a simple CallBot which includes about

Code: Select all

// reference your My.cAlgo.dll

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Requests;
using cAlgo.Indicators;
using My.cAlgo.Robots;

namespace cAlgo.Robots
{

    [Robot(TimeZone = TimeZones.UTC)]
    public class oct29 : UpUpDownBot
    {
        // identifier = Name (oct29) : 
        [Parameter("Version", DefaultValue = "")]
        public string Version { get; set; }

        protected override void OnStart()
        {
            base.Label = this.Version;

            base.RobotName = "debug";
            base.SettingKeyName = "trendchannel";
            base.OnStart();
        }
    }
}
Post Reply

Return to “Robots”