Replies

PanagiotisCharalampous
30 Sep 2020, 08:53

Hi Luca,

You can use the Bars collection.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
30 Sep 2020, 08:52

Hi Luca,

Use Bars.ClosePrices.Last(1)

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
30 Sep 2020, 08:48

Hi kebbo,

If I understood your intentions correctly, then the correct solution is the 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 Testbot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }


        Bars EURUSD_m5;
        Bars GBPUSD_m5;
        Bars AUDUSD_m5;

        DateTime EURUSD_LastOpenTime;
        DateTime GBPUSD_LastOpenTime;
        DateTime AUDUSD_LastOpenTime;
        protected override void OnStart()
        {
            EURUSD_m5 = MarketData.GetBars(TimeFrame.Minute5, "EURUSD");
            GBPUSD_m5 = MarketData.GetBars(TimeFrame.Minute5, "GBPUSD");
            AUDUSD_m5 = MarketData.GetBars(TimeFrame.Minute5, "AUDUSD");
        }

        protected override void OnBar()
        {

        }

        protected override void OnTick()
        {
            if (EURUSD_m5.OpenTimes.LastValue != EURUSD_LastOpenTime)
            {
                Print(EURUSD_m5.ClosePrices.Last(1));
                EURUSD_LastOpenTime = EURUSD_m5.OpenTimes.LastValue;
            }
            if (GBPUSD_m5.OpenTimes.LastValue != GBPUSD_LastOpenTime)
            {
                Print(GBPUSD_m5.ClosePrices.Last(1));
                GBPUSD_LastOpenTime = GBPUSD_m5.OpenTimes.LastValue;
            }
            if (AUDUSD_m5.OpenTimes.LastValue != AUDUSD_LastOpenTime)
            {
                Print(AUDUSD_m5.ClosePrices.Last(1));
                AUDUSD_LastOpenTime = AUDUSD_m5.OpenTimes.LastValue;
            }
        }


    }
}

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
29 Sep 2020, 10:13

Hi equantfx,

There is no way to set the built-in advanced take profit programmatically. However the drag and drop functionality can be programmed.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
29 Sep 2020, 08:51

Hi firemyst,

Not it hasn't. At the moment you set the commissions yourself, through the backtesting settings.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
29 Sep 2020, 08:25 ( Updated at: 21 Dec 2023, 09:22 )

Hi ctid2568413,

I tried the indicator and worked fine for me

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
29 Sep 2020, 07:50

Hi Christian,

You do not seem to follow the instructions in the documentation. Here is the generator and here is the command

ProtoGen.exe protofile.proto -output_directory=C:\output_folder --include_imports

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 15:54

Hi markyandrew,

It's in our backlog for future updates but we have not finalized the version in which it will be included yet.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 09:50

Hi cdyett,

We do not have such a list at the moment. You can check our featured brokers and I am sure you will find a lot.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 09:35

Hi phaethon,

The only possible explanation would be that you had more than one instances open, maybe from different brokers as well, using the same workspace and the one closed last has overwritten the workspace saved by the other. Could that be the case?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 09:04

Hi kebbo,

It would be easier for us to help you if you posted the complete cBot code and explained how we can reproduce the problem. With the information I have, I can only suggest that you check for a change in the last bar's open time, to detect when the bar has changed.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:55

Hi Christian,

The procedure explains how to compile C# files. this is what I use as well and works fine.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:52

Hi Mason,

There is no way to automate this procedure. You need to do this manually.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:50

Hi there,

You can find more brokers here.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:48

Hi ctid2568413,

We need the complete cBot code in order to provide further assistance.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:45

Hi Christian,

Both are very mature programming languages supported by an abundance of resources for any possible use. I would suggest C# since this is mostly a C# community and you will have access to more domain specific assistance.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:42

Hi ctid956028,

Can you please provide us with the complete cBot code?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:42

Hi Yuval,

Do you still experience this issue? Do you have active OctaFX accounts? Did you contact OctaFX about it?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:38

Hi markyandrew,

I am not sure how did you end up with so inaccurate conclusions but we do respond to almost all threads addressed to us in this forum and through our Telegram group. Regarding your question, this feature is not available at the moment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
28 Sep 2020, 08:34

Hi FxOrDie,

The current behavior will not change as this is how it was designed to work. As written above,  a future update of cTrader Copy will provide the option to receive your copying fees into a separate trading account so that this behavior is avoided. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous