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

PanagiotisCharalampous
27 Feb 2020, 08:20

Hi David,

You need to explain what are you trying to do at that point.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 14:46

Hi tnt_22,

I have forwarded your proposal to the product team for consideration.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 12:47

Hi DisciplinedMindset,

There is no way to prevent demo accounts from copying your strategy at the moment.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 12:16

RE:

rob.p.marshall said:

Thank you! Thank you! Thank you!. I looked everywhere and didn't see this little alien face. I always wondered what that was for.

It is not an alien, it is a robot :)


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 12:06 ( Updated at: 21 Dec 2023, 09:21 )

Hi Rob, 

There is a cBots button in each chart to add your cBot instances. See below

 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 11:44 ( Updated at: 21 Dec 2023, 09:21 )

Hi Rob, 

You can detach a chart pressing the Detach Chart button inside the chart tab. See below

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 11:27 ( Updated at: 21 Dec 2023, 09:21 )

Hi Rob,

You can do this in cTrader Trade. See below

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 10:47

Hi David,

Can I use  this "var _s2 = MarketData.GetSeries("EURUSD", TimeFrame)" to get bid/ask values of certain symbols?

No you cannot. You can only get bid prices if you use t1 timeframe. However you can use MarketData.GetTicks() and construct a series out of it. See an example below

            var ticks = MarketData.GetTicks();
            var series = CreateDataSeries();
            int i = 0;
            foreach (var tick in ticks)
            {
                series[i] = tick.Ask;
                i++;
            }

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 10:16

Hi David,

No you can't. DataSeries is a series of values. A double is a single value. You will need to get the spread difference from a series of values before passing it to the BB indicator. I have the impression that you do not understand the API well. I would suggest you get some assistance from a professional instead of struggling with this yourself. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 09:27

Hi A.R. 

The API offers you the tools to check this. 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; }

        protected override void OnStart()
        {
            Positions.Opened += Positions_Opened;
            ExecuteMarketOrder(TradeType.Buy, Symbol.Name, 1000, "", 0.1, null);
        }

        private void Positions_Opened(PositionOpenedEventArgs obj)
        {
            if (obj.Position.StopLoss == null)
            {
                // Handle the scenario where a stop loss was not set.
            }
        }

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

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

As per your comment 

It is the responsibility of the contractor/receiver to execute or to say it can't.

We report to you that the Stop Loss has not been set. Any further decisions are trading decisions and it is not the job of the API to take trading decisions on behalf of the trader. This task should be a responsibility of the strategy/cBot. After all the cBot is a "contractor" itself. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 08:54

Hi 1222Ht,

Can you please provide the complete code you are using and exact steps to reproduce the problem?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 08:47

Hi David,

1) You cannot use a double in Bollinger Bands constructor. It needs to be a DataSeries object.

2) You can open and close positions for any instrument you want but the code you have written doesn't make much sense. You can find all positions in Positions collection To close a position use the position.Close() function.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 08:40

Hi chatcpe,

Please share the cBot code and cBot parameters so that we can reproduce the problem.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 08:38

Hi scalper1,

Send it to community@spotware.com

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2020, 08:34

Ηι twoheartzin1soul,

You can use DrawTrendLine to achieve this.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
25 Feb 2020, 16:56

RE: staring to get som errors with the new update.

Hi scalper1,

Please post the cBot code in a separate thread and we will have look.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
25 Feb 2020, 14:56

Hi msdamgaci,

Can you explain in details what are you doing to get this message? Can share some screenshots as well?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
25 Feb 2020, 12:38

Hi elmpie,

Yes it will be available in the API as well.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
25 Feb 2020, 12:22

Hi A.R. 

This is by design. Stop losses are set only after a position is opened but it is not possible to be set within the spread. It is the responsibility of the cBot developer to check if the stop loss has been succesfuly set and handle the situation if otherwise.

Best Regards,

Panagiotis 

Join us on Telegram


 


@PanagiotisCharalampous

PanagiotisCharalampous
25 Feb 2020, 11:24

RE: связанные графики и панель заказа

snaiperx11 said:

при нажатии на окно нового инструмента в панели заказа ордеров открывается соответствующий символ и те настройки стоп лосс и тейк которые были выставлены для данного инструмента

у меня открыто 2 графика

Gold and  EUR\USD в панели заказов все правильно(Gold) , я нажимаю на график EUR\USD но панель заказа ордеров по прежнему Gold

 

linking

Hi snaiperx11,

Please post your issues in English.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous