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

PanagiotisCharalampous
17 Sep 2018, 14:06

Hi Sasha,

We plan to add this feature as well.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:58

Hi Sasha,

You will need to create a custom indicator for this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:54

Hi Patrick,

We checked this and indeed there is a delay. However it is does not seem so severe as you describe and since cTrader 3.0 will be released soon, we will not fix this on the current version. cTrader Web 3.0 does not seem to have such an issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:49

Hi Lavio,

The obsolete warning warns developers that there is a newer and better method implementing this functionality. If you don't want to bother updating your code, it does not mean that other developers should not be informed about this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:43

Hi cerradus@gmail.com,

The conditions are wrong in both cases. In the case of Buy position < should become > and in the case of Sell position Symbol.Bid - posi.EntryPrice should become posi.EntryPrice - Symbol.Bid.

Let me know if this helps.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:37

Hi Andreas,

As the message suggests, probably there was reconciliation taking place. Do you still have any issues?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:32

Hi John,

Where does this happen exactly? Can you send me a screenshot?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:29

Hi procumulative@gmail.com,

This feature has not been planned yet. We will consider it for future releases of cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:25

Hi Raefe,

Can you please tell me your broker and when did this happened?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:20

Hi behzad.arian,

You can reset your password here https://id.ctrader.com/reset

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:14

Hi swingfish,

You cannot do this via the API. You will need to do the calculations in your cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Sep 2018, 10:37

Hi,

No, this information is not available via FIX.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 16:12

Hi Allan,

Symbol.PipSize represents the absolute size of each pip. For example, for EURUSD it is 0.0001. If the prize moves up by five pips then it has moved by 0.0005.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 15:40

Hi useretinv,

Here is how you can close all positions when a max has been reached

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 int MaxPositions { get; set; }

        protected override void OnStart()
        {
            // Put your initialization logic here
        }

        protected override void OnTick()
        {
            if (Positions.Count > MaxPositions)
                foreach (var position in Positions)
                {
                    ClosePositionAsync(position);
                }            
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 15:18

Hi useretinv,


In this forum we are trying to help programmers to use cTrader and cAlgo by addressing questions related to the API and the usage of the platform and by providing suggestions in development questions.

If you wish me to provide a sample on how to do what you have asked and then adjust the code yourself, I am more than happy to do so.

But understanding what a 300 lines cBot does and making the change you request is a task that could take some hours and can be considered custom development service. In this case, you should contact a professional.

Let me know if want me to provide you with a code sample.

Best Regards,
Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 10:08

Hi useretinv,

As I proposed in another post, you can post a job or hire a professional consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 10:06

Hi useretinv,

Unfortunately I cannot engage in custom development requests. If you want somebody to help you with developing your cBot, you can post a job or hire a professional consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 09:53

Hi procumulative@gmail.com,

I will send you an email soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 09:53

Hi procumulative@gmail.com,

For which feature of all that you have proposed are you talking about?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Sep 2018, 09:45

Dear Trader,

Your message does not seem to follow our rules of engagement. Tags are missing while not defined tags are sent. You can find the rules of engagement here and an example New Order Single message below

8=FIX.4.4|9=143|35=D|49=theBroker.12345|56=CSERVER|34=77|52=20170117-
10:02:14|50=any_string|57=TRADE|11=876316397|55=1|54=1|60=20170117-
10:02:14|40=1|38=10000|10=010|

Best Regards,

Panagiotis


@PanagiotisCharalampous