Replies

PanagiotisCharalampous
11 Jan 2019, 14:06

Hi densotnikovhtc,

You can find more information here. Let me know if you need any further assistance. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Jan 2019, 12:23

Hi densotnikovhtc,

Thank you for posting in our forum and for sharing your suggestions with us. The code editor is basic tool for creating basic cBots. If you are an advanced user, I would suggest to you to use Visual Studio to edit your cBots since it contains all the features you want. It does not make much sense for us to reinvent the wheel and develop features that already exist and they are easily available to anyone.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Jan 2019, 10:24

Hi Ben,

So probably the problem in the non relevant parts :)

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Jan 2019, 17:04

Hi Ben,

I will need to have the robot to comment on this. Can you post it?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Jan 2019, 12:53

Hi Dim13,

Yes all brokers have them except FxPro.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Jan 2019, 09:52

Hi Filip,

We did not receive any troubleshooting inforrmation with a link to this thread. Can you please send it again? We will also need your indicators as well as your settings file. Your settings file is located here C:\Users\<USERNAME>\AppData\Roaming\<BROKERNAME cTrader>\Settings\settings.ctr201. You can send them at community@spotware.com.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Jan 2019, 09:40

Hi Patrick,

There is no such option. Why do you want to hide it?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Jan 2019, 09:39

Hi Piotr,

I am confused regarding what you are trying to do. Why do you need to call GetPosCnt(robot) from within the cBot? Where did you define this function? What do you try to accomplish with the following line of code?

robot = Robot;

In order to help you, I would be good to understand what you are trying to do.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Jan 2019, 12:08 ( Updated at: 21 Dec 2023, 09:21 )

Hi terryww2,

It does not seem that FXPIG has DoM for the specific symbol. See below

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Jan 2019, 11:30

Hi terryww2,

Who is your broker?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Jan 2019, 10:43

Hi terryww2,

If you do not get a response using the example application then probably you have entered wrong credentials. Regarding your questions

1. If you set tag 264 to 0 then you should be getting the full order book with message 35=W. Subsequent messages 35=X should only include incremental updates, additions and deletions. If you manage to run the sample application, you will see how this works.
2. Not really. I do not get such a behavior using the example application.
3. I am not sure what do you mean with trades. 35=X messages just inform you about new entries in the market depth as well as deletions of existing entries.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Jan 2019, 10:10

Hi jam584St1,

If you get a resend message from the server, then probably you have a problem in the message sequence numbering (tag 34). Make sure that you implement message sequence numbering properly.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Jan 2019, 09:59

Ηι lec0456,

There is no feature to take chartshors in the API.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Jan 2019, 16:12

Hi Norbert,

It is not possible at the moment but it is in the backlog. You will get this in a future release.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Jan 2019, 11:59

Hi terryww2,

Yes I meant 35=V, sorry for the typo. You can find the example here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Jan 2019, 09:43

Hi terryww2,

Does this happen every time you sent a 35=W? Can you reproduce with the example application?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jan 2019, 16:45

Hi reza h,

There is no feature to do this currently. We are planning to implement reading color from output parameters in one of the future releases. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jan 2019, 16:17

Hi reza h,

You can use something like the below

Chart.DrawStaticText("test", "test", VerticalAlignment.Bottom, HorizontalAlignment.Center, Color.FromHex("FFFE0000"));

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jan 2019, 09:41

Hi missyeam,

Thanks for posting in our forum. You can use a flag. See an example 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.AlaskanStandardTime, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {

        bool _orderExecuted;
        bool _conditionMet;
        protected override void OnStart()
        {

        }

        protected override void OnBar()
        {
            //Set your condition
            // _conditionMet = ...
            if (!_orderExecuted && _conditionMet)
            {
                _orderExecuted = true;
                //Execute your trading
            }

        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jan 2019, 09:36

Hi Ben,

An indicator's Calculate method is called only on each bar for past bars and on each tick for the current bar. So using an indicator you can obtain such information only for the current bar. So it is not possible to acquire this information without using backtesting.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous