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

PanagiotisCharalampous
04 Nov 2019, 09:00

Hi rksseclude,

This feature will be available in the next update of the application. Read more here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Nov 2019, 08:55

Hi erik.lindblad,

This would be possible using cBots, one that exports all the necessary information to a csv file and one that places pending orders based on the information stored in the csv file on the new account.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
04 Nov 2019, 08:51

Hi BrunoLeroty001,

Can you reproduce this behavior or did it just happened once? Can you also please clarify what do you mean when you say "freeze"? Does the interface stop responding or are you just not receiving prices?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Nov 2019, 08:43

Hi mylowsmoke,

Can you please send me the relevant images to community@spotware.com?

Best Regards.

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 16:51

Hi soursunshine103,

To access your live account, you need to use your broker's cTrader. Live accounts are not accessible via Spotware cTrader Beta.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 15:54

Hi FireMyst, 

Indeed that solves the issue but in a weird way :)  What I would have done would be to exit the method if the closed position was not created by this instance. See below

        private void Positions_Closed(PositionClosedEventArgs args)
        {
                Position p1 = args.Position; 
                if(p1.Label != _positionLabel) 
                   return;

Best Regards,

Panagiotis

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 15:46

Hi soursunshine103,

Thanks for posting in our forum. Email alerts in settings correspond to the account selected in cTrader. You can change the selected cTrader account on the top right of the screen. Can you please post a screenshot to see what are you looking at?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 15:28

Hi BrunoLeroty001,

Thanks for positng in our forum. Do you run any custom indicators or cBots? If yes, can you send them to us? Also if you send us troubleshooting information it will help us identify the reason. To do so pllease press Ctrl+Alt+Shift+T, paste a link to this discussion in the text box and press submit.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 14:45

Hi FireMyst,

You do not check anywhere if the closed position was actually created by this instance. So if it has been created by another instance on the same symbol then the positions of this instance will be closed as well.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 14:36

Hi Tj11,

Can you give us an example of this so that we can investigate?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 12:23

Hi Anatoly,

Thanks for posting in our forum. Can you please explain to us what do you mean when you say it stopped working? Do you get any exceptions/messages? Can you share some screenshots/videos that will help us understand the problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 11:46

Hi FireMyst,

You should add a condition in Positions_Closed to be executed only when the closed position has the same same label as _positionLabel. Else the method will be executed when positions from other instances are closed, eventually closing all positions of the account.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 09:04

Hi FireMyst,

There is a RemoveObject function for this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 08:41

Hi ctid1502193,

Thanks for posting in our forum. Can you please clean up your statistics cache and let me know if it resolves the issue? You can find it here C:\Users\User\AppData\Roaming\broker-cTrader\Statistic. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Nov 2019, 08:38

Hi Luke18032000,

Thanks for posting in our forum. Execution issues are addressed by the brokers. Please contact your broker.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2019, 11:52

Hi mark.lite,

This has been fixed in 3.6.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2019, 08:42

Hi cysecsbin.01,

Currently, a user can run multiple cTrader instances for one installation. All instances will work with one settings file and it has the following disadvantages:

  • The last closed cTrader will overwrite all settings (including selected account)
  • You can't save different lists of cBot instances in Automat tab
  • Overwrite of settings file creates a lot of possible issues for users in the planned feature 'cBots Autorestart'

Each settings profile stores the following information

  • Authorization token if you check 'Keep me logged in' during cTID login
  • Last selected account
  • Last selected workspace
  • cBots and indicators instances in Automate

 That means that you need to use multiple profiles to be able to:

  • Use multiple cTIDs sumalteniously
  • Use multiple accounts side by side
  • Work with multiple workspaces side by side
  • Work with multiple sets of cBot/indicator instances in Automate

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2019, 08:15

Hi arri.vdm,

Thanks for sharing your suggestions with us. We have a specific section for suggestions here. You are advised to post them there, one by one, so that we can easily track them and manage them.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2019, 08:12

Hi radoslawkupisek,

The refenence was provided as a guide on how to read and write to and from csv files. From there and on you will need to adjust it to your code. You cannot just copy and paste things and expect them to work. If it is hard for you to implement it, you can always contact a Consultant or post a Job.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2019, 12:14

Hi Jani,

See below how you can check if an indicator output value is NaN

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; }
        SimpleMovingAverage _sma;
        protected override void OnStart()
        {
            _sma = Indicators.SimpleMovingAverage(MarketSeries.Close, 10);
        }

        protected override void OnTick()
        {
            if (double.IsNaN(_sma.Result.LastValue))
            {
                // Execute your logic here
            }
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous