PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
04 Oct 2018, 12:43

Hi ashiq2017paypal,

cAlgo does not exist anymore. Only cTrader 3.0 which contains both Trade and Automate modules.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Oct 2018, 11:29

Hi Roman,

This is a limitation of backesting. A workaround is to start the backtesting earlier so that it can collect the necessary information.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Oct 2018, 11:27

Hi John,

Is it possible to arrange a TeamViewer session with one of our QAs to check?  It seems to be a localized issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Oct 2018, 10:40

Hi tekASH,

Yes it can be used for MA crossing another MA. However I do not understand what do you mean when you say candle closing inside MA. Can explain a bit more what do you consider to be inside an MA, maybe with a screenshot?

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
04 Oct 2018, 10:30

Hi Paul,

The problem should have been fixed on Spotware Beta. Can you please check?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 14:47

Hi Sasha,

The only inputs available at the moment are pips for order placement and price levels for position modifications. Any other scenario will require custom development from your side. For example, in the case of ticks, you should keep of track of the number of ticks and close the position when your stop loss is reached.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 12:51

Can you give an example? In any case, when creating the order you must set the SL and TP in pips and when modifying, you must set the actual price levels. Therefore, you will need to calculate this information.


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 12:47

Hi Sasha,

You cannot. Ticks could have any price therefore you cannot calculate a price level based on ticks. If you want to exit the market based on some behavioral pattern of ticks e.g. 10 consecutive negative ticks, then you need to program it yourself.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 12:26

Hi Sasha,

You can try an obsolete method as below

[Output("Main", Color = Colors.Red)]

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 11:03

Hi Roman,

Data is loaded in Indicators on their initialization. There is nothing special you need to do about it. See below

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 NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        SimpleMovingAverage _sma;
        protected override void OnStart()
        {
            _sma = Indicators.SimpleMovingAverage(MarketSeries.Close, 14);
            for (int i = 14; i < _sma.Result.Count; i++)
            {
                Print("SMA: " + _sma.Result[i]);
            }
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 09:55

Hi ashiq2017paypal,

Thanks for posting in our forum. You might find the resources below helpful.

API Guides

API Reference

cTrader Automate Help

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 09:50

Hi John,

There is no such feature at this moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2018, 09:42

Hi William,

A solution would be to store the number of running robots in a file. Then all instances can read and update this file knowing at any time how many instances are running.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 16:51

Sasha,

For which dates do you backtest? I will try on Fondex as well. cTrader 3.3 should be available sometime in October. However, I cannot commit on that. The data of each broker is independent to cTrader releases.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 16:40 ( Updated at: 21 Dec 2023, 09:20 )

Hi Sasha,

I backtested on Beta and I get the trade. See below


Do you backtest on the same dates?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 16:18

Hi Sasha,

I will need the full cBot code so that I can investigate further. Can you please share?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 16:01

In this case, the condition above does not seem to have been fulfilled

   if (MarketSeries.Close.Last(1) > BB.Bottom.Last(1) && MarketSeries.High.Last(1) < BB.Main.Last(1))

That candlestick's last value is below BB Bottom.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 15:52

Hi lec0456,

It does not need to have an Output attribute to read it from a cBot. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 15:48

Hi Sasha,

Can you please point me to the condition you expect to trigger the order?

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2018, 11:21

Hi lec0456,

If you want a parameter not to be plotted then you need to remove the Output attribute.

Best Regards,

Panagiotis


@PanagiotisCharalampous