Replies

PanagiotisCharalampous
01 Aug 2019, 15:55

Hi zanokhuzwayo,

Thanks for posting in our forum. You can consider contacting a Consultant or posting a Job.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Aug 2019, 09:21

Hi Aiki1000,

If you share the cBot code we might be able to point you to the right direction.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Aug 2019, 09:18

Hi Be Rich,

Thanks for posting in our forum. Positions is not a property of MyClass therefore you can not call it. You need to pass this object from Main.cd as a parameter to the function.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 14:10

Hi davewilson347,

Thanks for posting in our forum. There is no such option at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:32

Hi ancdriver239,

No you cannot hide then from copiers/investors. The positions will be copied to their own subaccounts.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:29

Hi Aiki1000,

LastValue will give you the value of the current bar, not the last closed bar. For the last closed bar use Last(1).

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:27

Hi all,

We have investigated this issue, we have identified the cause ans we are looking into possible solutions.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:21

Hi Ivan,

Trading hours are set by the brokers. Please contact your broker regarding this issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:20

Hi Ivan,

Can you please send us troubleshooting information the next time this happens? To do so, please press Ctrl+Alt+Shift+T, paste the link to this discussion in the text box and press submit.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:18

Hi ctid640565,

There is no such feature available yet in cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:15

Hi Aiki1000,

Yes it is the same for both.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:14

Hi Dj,

This feature is not available yet.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jul 2019, 09:09

Hi leighc1,

Thanks for posting in our forum. In cTrader Desktop you can detach a chart and maximize by clicking on the "Detach Chart" button on the chart tab. I am not sure what steps you follow in point 2. Can you be more specific? A short video would help understand what you are doing.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 16:57

Hi therealnakedtrader,

Then you can consider this

using System;
using System.Collections.Generic;
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
    {
        Dictionary<Position, double> _positions;

        protected override void OnStart()
        {
            _positions = new Dictionary<Position, double>();
            Positions.Opened += Positions_Opened;
            foreach (var position in Positions)
                _positions.Add(position, 0);
        }

        private void Positions_Opened(PositionOpenedEventArgs obj)
        {
            _positions.Add(obj.Position, 0);
        }

        protected override void OnTick()
        {
            foreach (var position in Positions)
            {
                _positions[position] = Math.Max(_positions[position], position.Pips);
            }            
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 16:34

Hi therealnakedtrader,

Try the 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.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {

        double _maxPips;
        protected override void OnStart()
        {
            // Put your initialization logic here
        }

        protected override void OnTick()
        {
            if (Positions.Count > 0)
            {
                _maxPips = Math.Max(_maxPips, Positions.Max(x => x.Pips));
            }
            Print("Max Pips: " + _maxPips);
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 15:18

Hi ancdriver239,

It will be shown as AUD.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 15:14

Hi Hugo,

Change the line below

_ema = Indicators.ExponentialMovingAverage(MarketSeries.Close, 14);

to

_ema = Indicators.ExponentialMovingAverage(MarketSeries.Close, 3);

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 11:40

Hi Symposium,

Did you check the logs? Are the orders executed?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 10:44

Hi Symposium,

I just tried it and worked fine. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jul 2019, 10:16

Hi FireMyst,

As usual, please post this in the Suggestions section :)

Best Regards,

Panagiotis


@PanagiotisCharalampous