Topics
16 Nov 2023, 07:42
 1129
 1
15 Nov 2023, 10:36
 2013
 16
Replies

Spotware
24 Feb 2014, 12:48

We are aware of this problem. It will be fixed as soon as possible.

As a work around you can move everything from Indicators folder to some temporary folder, run cAlgo and move everything back. You need to do it only for first run of cAlgo.


@Spotware

Spotware
24 Feb 2014, 12:22

DoM received from LP as well as spot prices. LP could be Bank, aggregator, etc. - ask about it your Broker.  We do not offer exchange instruments at the moment, so DoM is not related to Stock Exchange prices.


@Spotware

Spotware
24 Feb 2014, 12:17

RE: RE:

AimHigher said:

Spotware said:

To check current time you can use Server.Time:

if (Server.Time.Year == 2013 && Server.Time.Month == 10 && ...)

For placing orders you can use PlaceLimitOrder or PlaceStopOrder functions.

I think the question is if you can backtest a set of trades with entry and exit times and entry and exit prices that are already determined regardless of whether those prices match the prices in the price history in cAlgo. Personally i think that kind of analysis is preferable to set up in Excel, assuming that you have a list of trades e.g in a csv file.

cAlgo doesn't have such functionality 


@Spotware

Spotware
24 Feb 2014, 11:07

We are aware of the problem and we will fix it as soon as possible.


@Spotware

Spotware
24 Feb 2014, 10:35

Hello, we are looking into the issue and it will be fixed soon. Note that this affects only historical data (a chunk of data is missing). The trendbars that are created live should be working fine and live trading is not affected. 

We apologise for the error and we thank you for your patience and undrestanding. 


@Spotware

Spotware
24 Feb 2014, 09:35

Hello, the feature you have requested has been released!

 


@Spotware

Spotware
21 Feb 2014, 14:23

It is an issue of that specific Heikin Ashi custom indicator. As an alternative you can use Heikin-Ashi Smoothed with period 1


@Spotware

Spotware
21 Feb 2014, 14:03

You can try cTrader Web. It has a native implementation of Heikin Ashi.


@Spotware

Spotware
21 Feb 2014, 09:21

cAlgo.API doesn't have such functionallity


@Spotware

Spotware
21 Feb 2014, 09:19 ( Updated at: 21 Dec 2023, 09:20 )

You can try to fix first and second problems by switching to line chart mode:


@Spotware

Spotware
20 Feb 2014, 11:44

TRADING_BAD_STOPS means that you have a mistake in the calculation of SL or TP levels


@Spotware

Spotware
20 Feb 2014, 09:35

Regarding to label problems, you still do not filter your positions by Label.

add the following code to the beginning of PositionsOnOpened method:

Position position = args.Position;
if (position.Label != RF_Label)
  return;

 


@Spotware

Spotware
19 Feb 2014, 17:39

Please look at the following example:

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

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC)]
    public class AdxR : Indicator
    {
        [Output("adx 7", Color = Colors.Blue)]
        public IndicatorDataSeries Adx7 { get; set; }

        [Output("adx 21", Color = Colors.Yellow)]
        public IndicatorDataSeries Adx21 { get; set; }

        [Output("adx 42", Color = Colors.Red)]
        public IndicatorDataSeries Adx42 { get; set; }

        private DirectionalMovementSystem _dms7;
        private DirectionalMovementSystem _dms21;
        private DirectionalMovementSystem _dms42;

        protected override void Initialize()
        {
            _dms7 = Indicators.DirectionalMovementSystem(7); 
            _dms21 = Indicators.DirectionalMovementSystem(21); 
            _dms42 = Indicators.DirectionalMovementSystem(42); 
        }

        public override void Calculate(int index)
        {
            Adx7[index] = _dms7.ADX[index];
            Adx21[index] = _dms21.ADX[index];
            Adx42[index] = _dms42.ADX[index];
        }
    }
}

There are 3 ADX lines in the same panel.


@Spotware

Spotware
19 Feb 2014, 12:37

Which version of cAlgo do you use to compile .algo file?


@Spotware

Spotware
18 Feb 2014, 17:51

Thank you for your kind words. We really appreciate your feedback and your support means a lot to us.


@Spotware

Spotware
18 Feb 2014, 17:50

Please look at the following example:

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)]
    public class Sample : Robot
    {
        const string Label = "My unique label";

        protected override void OnTick()
        {
            var position = Positions.Find(Label);
            if (position == null)
            {
                //if there is no position with my label                
                ExecuteMarketOrder(TradeType.Buy, Symbol, Symbol.VolumeMin, Label);
            }
            else
            {
                //if position exists
                
                //some actions with position object
            }
        }
    }
}

You need to specify the Label in trade operation and then find your position with Positions.Find method


@Spotware

Spotware
18 Feb 2014, 15:46

To check current time you can use Server.Time:

if (Server.Time.Year == 2013 && Server.Time.Month == 10 && ...)

For placing orders you can use PlaceLimitOrder or PlaceStopOrder functions.


@Spotware

Spotware
18 Feb 2014, 14:57

We are, of course, considering of adding this functionality in the future. 


@Spotware

Spotware
18 Feb 2014, 09:49

We will consider it, but this feature is not in our immediate priorities. You can use a channel that has the same effect. 


@Spotware

Spotware
18 Feb 2014, 09:48

All the features of the cTrader web platform will one day come to cTrader platform


@Spotware