stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Start to build Template for Robots
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2457
Page 1 of 1
Author:  babalu4u [ Thu Jun 06, 2013 11:19 am ]
Post subject:  Start to build Template for Robots

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:
Author:  talkyPip [ Tue Mar 04, 2014 12:52 pm ]
Post subject:  Start to build Template for Robots

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();
        }
    }
}
All times are UTC Page 1 of 1