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

PanagiotisCharalampous
11 Mar 2021, 12:03

Hi maxdelater,

Can you share the complete cBot code?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Mar 2021, 11:49

Ηι eliezer_barros,

It seems to be an issue with your SMTP settings. You need to verify that your SMTP settings are correct.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Mar 2021, 10:46

Hi ctid444989,

Where did you find this link?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Mar 2021, 08:16

Hi ctid318043,

Accounts can be accessed only from the broker's cTrader. Make sure you are using IC Markets cTrader.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Mar 2021, 08:14

Hi Cashpoint,

Who is your broker?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Mar 2021, 16:10 ( Updated at: 10 Mar 2021, 16:33 )

Hi arunsub321,

I have explained to you why this happens. As per the log, you are sending three orders to close the same position at the same time

2021.03.10 14:01:41.349 | Request to close position PID71780050 is sent to server
2021.03.10 14:01:41.349 | Request to close position PID71780050 is sent to server
2021.03.10 14:01:41.349 | Request to close position PID71780050 is sent to server

 If you cannot spot the problem in your code, please share the source code and we will try to find the problem for you.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Mar 2021, 14:25

Hi Takis,

This is caused due to a lazy loading design of the IndicatorDataSeries. Calculate function is only called when Last() method and LastValue property are called for an output IndicatorDataSeries. This was always the case.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Mar 2021, 08:29

Hi bienve.pf,

Here is the complete cBot code. It seems to work fine for me

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()
        {
            ChartTrendLine _line = null;

            Chart.MouseMove += arg =>
            {
                if (_line != null)
                {
                    _line = Chart.DrawTrendLine("myline", _line.Time1, _line.Y1, arg.TimeValue, arg.YValue, Color.Yellow, 2);
                    Chart.DrawStaticText("info", "Time1: " + _line.Time2.ToString() + "/ Y1: " + _line.Y2, VerticalAlignment.Top, HorizontalAlignment.Left, Color.Yellow);
                }
            };
            Chart.MouseDown += arg =>
            {
                Print("MouseDown event....");
                if (_line == null)
                {
                    _line = Chart.DrawTrendLine("myline", arg.TimeValue, arg.YValue, arg.TimeValue, arg.YValue, Color.Yellow, 2);
                    _line.IsInteractive = false;
                }
                else
                {
                    _line.IsInteractive = true;
                    _line = null;
                }
            };

        }

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

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 15:35

Hi arunsub321,

POSITION_LOCKED means that the server is trying to close the position i.e. sent the order to LP and waiting a response. Make sure you are not trying to modify/close a position after you have already sent an order to close it.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 14:46

Hi ctid2950011,

I am not sure if you have understood my reply. As I have explained above, from now and on, you need to have a separate live account to deposit your fees. You cannot receive the fees in the same account as the one that it is providing the strategy. Therefore, please ask your broker to create you a new live account and use it to receive your fees.

The message you receive explains this clearly

Your account for fees should be different from your strategy account if any of your fees are set to positive values.

 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 14:13 ( Updated at: 09 Mar 2021, 14:34 )

Hi Kimura, 

Thanks for reporting this to us. We checked the proxies and everything seems fine at the moment. There are no anomalies reported. If your cTrader is reconnecting while running then there might be connectivity issues that could be attributed a number of reasons e.g. slow VPS, network issues etc.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 13:01

Hi xabbu,

Thanks for the contribution! I will have a look as soon as I find some time.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 10:52

Hi bienve.pf,

I checked this with the product team and the this behavior is normal of interactive objects. A workaround is to create a non-interactive line for drawing purposed and make it interactive on second mouse click. Like this

Chart.MouseDown += arg =>
            {
                Print("MouseDown event....");
                if (_line == null)
                {
                    _line = Chart.DrawTrendLine("myline", arg.TimeValue, arg.YValue, arg.TimeValue, arg.YValue, Color.Yellow, 2);
                    _line.IsInteractive = false;
                }
                else
                {
                    _line.IsInteractive = true;
                    _line = null;
                }
            };

Let me know if this helps.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 10:33

Hi Professional,

The next version of cTrader Copy will have an additional option in that drawdown list where the strategy provider will be able to hide the open positions from everybody. Therefore to change these conditions a restart of the strategy will be required.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 10:31

Hi ctid2950011,

Thanks. From now and on, you need to have a separate live account to deposit your fees. Therefore ask your broker to create you a new live account and use it to receive your fees.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 08:23

Hi ctid2950011,

When you hover over the Save Changes button, you should be getting a message. What does it say?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Mar 2021, 08:14

Hi matthew_toomey,

If you need two RSI indicators in the same panel, you will need to code your own custom indicator to achieve this.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Mar 2021, 16:35

Hi heet007,

Jiri is correct. If the position volume cannot be decreased due minimum size limitations, then the partial TP cannot be executed.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
08 Mar 2021, 15:05

Hi xabbu,

You could consider creating a new indicator that will return as a result the value of ClosePrice * 1000 and use that as an input to the MA. 

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Mar 2021, 12:49

Hi m.creku,

Can we have your account number and broker? 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous