Keltner Channels
Keltner Channels
15 Dec 2020, 21:22
I'm trying to code a bot using the Keltner channels but all i get build failed
Have searched this forum and there's only one post which was sort of helpful,but still no joy.
can someone Please show me how to code this.
Replies
parkermark446
16 Dec 2020, 10:07
i'm just trying to reference the indicator,so i can build the bot around it.
@parkermark446
PanagiotisCharalampous
16 Dec 2020, 10:13
Hi parkermark446,
So what is the question? How to reference an indicator? Did you try something and it did not work? What did you try? If you don't bother giving information about your problem, nobody will bother helping you. We have our problems to solve as well :).
Best Regards,
Panagiotis
@PanagiotisCharalampous
parkermark446
16 Dec 2020, 10:21
RE:
parkermark446 said:
i'm just trying to reference the indicator,so i can build the bot around it.
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo.Robots
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class KeltnerChannels : Robot
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
[Parameter("Instance Name", DefaultValue = "001")]
public string InstanceName { get; set; }
[Parameter("Lot Size", DefaultValue = 0.1)]
public double LotSize { get; set; }
//create indicators on start
public KeltnerChannels KeltnerChannels(int maPeriod, MovingAverageType maType, int atrPeriod, MovingAverageType atrMaType, double bandDistance);
public (Bars bars, int maPeriod, MovingAverageType maType, int atrPeriod, MovingAverageType atrMaType, double bandDistance);
protected override void OnStart()
{
}
protected override void OnTick()
{
// Put your core logic here
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
@parkermark446
PanagiotisCharalampous
16 Dec 2020, 10:34
Hi parkermark446,
I would advise you to check our sample cBots to see how indicators are referenced e.g. Sample RSI cBot or Sample SAR Trailing Stop.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Dec 2020, 08:28
Hi parkermark446,
You need to be more specific regarding your request. What are you trying to program? What is your cBot code? What error do you get when you build? If you need somebody to build a cBot for you, you can post a Job or contact a Consultant.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous