Replies

PanagiotisCharalampous
31 Oct 2018, 11:26

Hi lec0456,

Send it to community@spotware.com

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2018, 10:35

Hi Elkon,

Which version do you use? 3.0  or 3.3?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2018, 09:49

Hi oneplusoc,

Thank you for the indicator. swingfish if you need to read the start and end points of lines on the chart, you can try something like the following

            foreach (var obj in Chart.Objects)
            {
                if (obj is ChartTrendLine)
                {
                    var line = (ChartTrendLine)obj;
                    Print(line.Y1);
                    Print(line.Time1);
                    Print(line.Y2);
                    Print(line.Time2);
                }
            }

Note that this only works for 3.3.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2018, 09:41

Hi Elkon,

Thank you for your suggestion. This can be easily programmed in a cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Oct 2018, 09:25

Hi lec0456,

Can you send us the indicators so that we can reproduce the issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 17:03

Hi Eklon,

We managed to reproduce the behavior. We will fix it in one of the following versions of cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 12:23

Change this one as well

var stopLossSell = MarketSeries.High.Last(1) + Symbol.PipSize * SL;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 12:11

Hi jelle2500,

Try this line of code

var SLSell = Math.Round((stopLossSell - Symbol.Bid) / Symbol.PipSize);

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 11:02

Hi lec0456,

We could not reproduce any performance decay in 3.3 on chart scrolling after backtesting. Sometimes is even faster. Do you use any custom indicators?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 10:58

Hi and thanks for posting in our forum. FIX API is enabled by default for all cTrader accounts except if explicitly disabled by the broker. I would suggest to contact the brokers directly before spending your time opening an account.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 10:55

Yes, this works only for version 3.3


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 09:54

Hi swingfish,

Could you please explain which fractals you are talking about?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Oct 2018, 09:43

Hi Jan,

Thank you for contacting Spotware. If you share with us the cBot code and steps to reproduce, we might be able to advise you what the problem is.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 17:50

Hi Sasha,

See below

            foreach (var obj in Chart.Objects)
            {
                if (obj is ChartHorizontalLine)
                {
                    var line = (ChartHorizontalLine)obj;
                    Print(line.Y);
                }
            }

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 14:15

Hi pgplanas@hotmail.com,

Thank you for posting in our forum. If your broker has upgraded to cTrader 3.3 then it is not possilbe to login with your trading account credentials anymore. You will need to contact your broker to link the accounts with your cTID.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 14:07

Hi lec0456,

Note that I am referring to replacing the Print function and writing to a text file instead. See below an example

using System;
using System.Linq;
using System.IO;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FileSystem)]
    public class NewcBot : Robot
    {
        private string fiName;
        private StreamWriter _fileWriter;
        protected override void OnStart()
        {
            _fileWriter = new StreamWriter("c:\\Users\\pcharalampous.CTRADER\\Documents\\log.txt");
            // Put your initialization logic here
        }

        protected override void OnTick()
        {
            _fileWriter.WriteLine(Symbol.Bid);
        }

        protected override void OnStop()
        {
            _fileWriter.Close();
        }
    }
}

 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 11:47

Hi Sasha,

  1. You can use out keyword
  2. A cBot cannot stop other cBots, at least in a direct way. If you could explain what you are trying to do, I could suggest something.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 11:42

Hi sancra01,

Spotware Connect API is fully operational and fully supported. Let me know if you need any further assistance.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 11:37

Hi netread2004,

Can you share the cBot code so that we can reproduce the issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Oct 2018, 11:34

Hi lec0456,

The limit is ten thousand rows. If you need more, you can consider using a custom file and log your information there.

Best Regards,

Panagiotis


@PanagiotisCharalampous