Replies

PanagiotisCharalampous
03 Mar 2021, 07:54

Hi there,

I cannot recall cTrader FIX API offering tag 17. If you need a tag to identify your orders, use tag 11.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Mar 2021, 07:50

Hi jarivandalen18,

You need to contact your broker regarding this.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2021, 15:29

Hi yuval.ein,

Your money is always with your broker. The cTrader Copy subaccounts belong to the broker as well.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2021, 14:56

Hi robymall, 

As per the above

The Volume Fee is deposited to the Strategy Provider account along with other types of Fee, unlike previously, when the Volume Fee was deposited at the end of the day.

So from now and on, you will receive fees from each follower every thirty days. If you still think that you should have received fees but you did not, please create a separate thread and provide us with more information, like your broker and strategy name, so that we can investigate

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2021, 14:33

Hi SmartArtsStudio,

There is no such option in the API to achieve that. The only way to achieve it is to set your time2 variable in a distant future time and keep the distance far away as the chart moves to the right.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2021, 10:47

Hi xabbu,

Here is an example

            var fractals = Indicators.Fractals(10);
            int lastUpFractalIndex = 1;
            int lastDownFractalIndex = 1;
            
            while (double.IsNaN(fractals.UpFractal.Last(lastUpFractalIndex)))
                lastUpFractalIndex++;
            while (double.IsNaN(fractals.DownFractal.Last(lastDownFractalIndex)))
                lastDownFractalIndex++;

            if (lastUpFractalIndex < lastDownFractalIndex)
                Print("Last Fractal  was Up");
            if (lastUpFractalIndex > lastDownFractalIndex)
                Print("Last Fractal was Down");

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2021, 09:56

Hi JerryTrader,

Here you go 

var tickValue = Symbol.PipValue * (Symbol.TickSize / Symbol.PipSize);

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2021, 08:11

Hi robymall, 

You can see the fees you receive in the Transactions tab of the TradeWatch.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 23:07

Hi jcr1818,

This usually happens when cTrader is disconnected and connected again. cTrader needs to be synchronized with the server when connection is reestablished.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 20:51

Hi eelko14,

Thanks, it is a known issue and it will be fixed in v4.0 which will be released soon on IC Markets.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 20:39

Hi jcr1818,

Can you explain what do you mean with synchronization? 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 20:38

Hi jiminparky,

You can find examples of request messages in our Rules of Engagement. You can also use our sample application to generate such FIX messages.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 15:20

Hi xabbu,

Yes it should adjust automatically.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 15:16

Hi xabbu,

What is the code you posted supposed to do?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 12:44

Hi xabbu,

The values are stored in UpFractal and DownFractal data series

            var fractals = Indicators.Fractals(10);
            Print(fractals.DownFractal.LastValue);
            Print(fractals.UpFractal.LastValue);

The values are saved at the relevant index of the data series. If there is no value, then the value will be NaN. Therefore the last fractal is the one with a value at the highest index.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 12:05

Hi jiminparky,

You just need to login (MsgType(35)=A) and then subscribe to market data (MsgType(35)=V). Let me know if you have any further questions.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 11:28

Hi Shares4UsDevelopment,

At the moment Tick Volume is not supported for Renko and Range bars, therefore it will always be set to 1.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 11:27 ( Updated at: 21 Dec 2023, 09:22 )

Hi maxalta,

This has been added in cTrader v4.0 so you should have it anytime soon if your broker does not have this already.

In the meanwhile, a workaround is to pass the timeframe as a parameter. This way you will be able to choose tick based timeframes from the UI. 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("Timeframe")]
        public TimeFrame Timeframe { get; set; }

        protected override void OnStart()
        {
            var bars = MarketData.GetBars(Timeframe, "GBPUSD");
            bars.BarOpened += Bars_BarOpened;
        }

        private void Bars_BarOpened(BarOpenedEventArgs obj)
        {
            Print("New bar created for " + obj.Bars.SymbolName + " at " + obj.Bars.Last(0).OpenTime);
        }

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

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 11:19

Hi linton.nkambule,

Thanks for bringing this to our attention. It seems to be a bug and it will be updated in an upcoming update.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2021, 10:55

Hi xabbu,

It sounds correct to me!

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous