Topics

Forum Topics not found

Replies

Kate
04 Oct 2013, 16:54

You can write data to file or windows registry.


@Kate

Kate
01 Oct 2013, 10:13

If you use high-frequency algorithmic trading it's better to get VPS in London. If you trade on large timeframes - your latency is ok as far as you don't have connectivity issues (i mean if your internet connection is good enough).

For manual trading I guess it's ok, anyway VPS will not help you for this.


@Kate

Kate
25 Sep 2013, 10:43

Right, this is wrong. You need to pass your exact robot type to custom class:

public class CustomClass
{
    private MyRobot _robot;
 
    public CustomClass(MyRobot robot)
    {
        _robot = robot;
    }
 
    public void Print(string message)
    {
         _robot.PrintToLog(message)
    }
}

 

 


@Kate

Kate
25 Sep 2013, 09:28

You can declare public method in robot:

public class MyRobot : Robot
{
    public void PrintToLog(string message)
    {
        Print(message);
    }
}

 

And then call it from another class:

public class CustomClass
{
    private cAlgo.API.Robot _robot;

    public CustomClass(cAlgo.API.Robot robot)
    {
        _robot = robot;
    }

    public void Print(string message)
    {
         _robot.PrintToLog(message)
    }
}

 


@Kate

Kate
24 Sep 2013, 11:37

Here is a workaround for colors: /algos/indicators/show/289

You can use something similar for other things.

I hope cAlgo team will implement native support for this in future.


@Kate

Kate
23 Sep 2013, 18:35

Try Trade.IsExecuting


@Kate

Kate
20 Sep 2013, 10:27

There is no such function but you can implement robot that takes live prices and saves it to a file.


@Kate

Kate
11 Sep 2013, 21:06

/forum/whats-new/1463


@Kate

Kate
11 Sep 2013, 12:33

There was several threads about this, check those ones:

/forum/calgo-reference-samples/499

/forum/cbot-support/859


@Kate

Kate
10 Sep 2013, 12:10

You can use tick volume or some volatility indicators, for example Average True Range. I also use statistics for several days to determine which time is more volatile, not only current values.


@Kate

Kate
06 Sep 2013, 16:25

May be something is wrong with firewall.


@Kate

Kate
05 Sep 2013, 10:57

You can easily use VPS to host cAlgo. You just go to any VPS provider you want, it can be providers that offer special VPS for traders or in general any VPS provider. You get access to virtual PC, install cAlgo there and run it. That's all. No broker involvement needed, but sometimes brokers can offer VPS with better conditions. I usually run cAlgo 24/5, and restart/update it on weekends.

cAlgo can be run on VPS with 500mb of memory, but I would recommend to use 1gb. If you need low latency VPS it's better to choose something located in London.


@Kate

Kate
01 Sep 2013, 22:18

Select it on a chart (click on it) and press Del.


@Kate

Kate
15 Aug 2013, 12:28

RE: RE:

pennyfx said:

Here's the new link.    https://www.myfxbook.com/portfolio/26-bots/662349

 

Can not access it.


@Kate

Kate
06 Aug 2013, 12:31

Historical Volatility calculation is decribed here: http://www.ivolatility.com/help/2.html


@Kate

Kate
04 Aug 2013, 18:54

That's it:

    [Indicator(TimeZone = TimeZones.UTC, ScalePrecision = 5)]
    public class MyIndicator : Indicator
    {

    }




@Kate

Kate
25 Jul 2013, 10:31

This is right. But optimizing on 14 years of data sounds also strange. Do you really think that behavior of traders and markets stays the same for 14 years? A lot of things changed since 1999. My opinion is that 4-6 years must be enought. 2.5 years is not enought in general, but it's better than 1 year :)


@Kate

Kate
21 Jul 2013, 10:45

using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = false)]
    public class CloseLessSma : Indicator
    {
        [Parameter(DefaultValue = 14)]
        public int Period { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }
        
         private MovingAverage sma;

        protected override void Initialize()
        {
            sma = Indicators.SimpleMovingAverage(MarketSeries.Close, Period);
        }

        public override void Calculate(int index)
        {
            Result[index] = MarketSeries.Close[index] - sma.Result[index];
        }
    }
}

 


@Kate

Kate
20 Jun 2013, 10:03

There are brokers with minimum account much less than 2000€.


@Kate

Kate
14 Jun 2013, 16:57

I think you always can go to cAlgo from cTrader using "cAlgo" broker even if you they do not allow to download it from there site :)


@Kate