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

PanagiotisCharalampous
20 Jul 2020, 09:58

Hi K100,

Make sure you are not using trailing stop loss.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 09:27

Hi malleswaramma.ram,

The problem is the scale

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 09:21

Hi ramio,

Can you explain what do you mean when you say "linked with the ccopy"? Do you want to become a strategy provider or a follower? You can find all required information for cTrader Copy here.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 09:16

Hi Vadivelan,

If you are looking for somebody to develop the logic for you then unfortunately I cannot help you. I cannot engage in custom development requests.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 09:12

Hi Luca,

There is no API method for this. You need to program this logic yourself.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 09:10

Hi tradermatrix,

At the moment you can only have one instance of the Timer. You will need to implement your logic with this limitation in mind.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 09:08

Hi GridTrader,

You need to be more specific with the terminology you use. There are no "trades" or "trade operations" in cTrader so I am not sure to what are you referring to. In cTrader there are orders, positions and deals, each one with its own unique identifier. For a better explanation of the domain model check this article.  If you are looking for the deal IDs through the API, check History and HistoricalTrade.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:59

Hi Sam,

I checked it and seems to work fine for me.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:50

Hi GridSurfer,

Check this post.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:49

Hi kobit,

I do not understand what do you mean when you say "copy my settings". Can you please elaborate?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:47

Hi trading.university01,

This is not in our immediate plans for cTrader Desktop unfortunately.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:46

Hi Luca,

Just open them the one after the other.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:44

Hi pai314,

We do not have plans to implement this in the near future.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jul 2020, 08:40

Hi Vadivelan,

From first glance, I do not see any problem in the code. If this has been developed by a consultant, it would be better to talk to them.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jul 2020, 11:54

Hi rgasch,

Thanks for your nice words! Appreciated!

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jul 2020, 11:26

Hi tasr1r1,

The link will just redirect users to your strategy page.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jul 2020, 11:19

Hi,

You should receive your fees by tomorrow 18/07 UTC time.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jul 2020, 11:16

Hi BenjaminR,

Historical orders are not available via the Open API. You can only retrieve the pending orders.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jul 2020, 10:22

Hi malleswaramma.ram,

Here you go

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

namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewIndicator : Indicator
    {
        [Parameter("Source")]
        public DataSeries Source { get; set; }

        [Parameter("EMA Length")]
        public int EMALength { get; set; }

        [Output("R", LineColor = "Red")]
        public IndicatorDataSeries R { get; set; }

        [Output("G", LineColor = "Green")]
        public IndicatorDataSeries G { get; set; }

        private IndicatorDataSeries ema1 { get; set; }
        private IndicatorDataSeries ema2 { get; set; }
        private IndicatorDataSeries ema3 { get; set; }

        private IndicatorDataSeries _haOpen;
        private IndicatorDataSeries _haClose;

        protected override void Initialize()
        {
            _haOpen = CreateDataSeries();
            _haClose = CreateDataSeries();
        }

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = ...

            var open = Bars.OpenPrices[index];
            var high = Bars.HighPrices[index];
            var low = Bars.LowPrices[index];
            var close = Bars.ClosePrices[index];
            var previousOpen = Bars.OpenPrices[index - 1];
            var previousClose = Bars.ClosePrices[index - 1];


            _haClose[index] = (open + high + low + close) / 4;
            _haOpen[index] = (previousOpen + previousClose) / 2;

            var ema1 = Indicators.ExponentialMovingAverage(_haClose, EMALength);
            var ema2 = Indicators.ExponentialMovingAverage(ema1.Result, EMALength);
            var ema3 = Indicators.ExponentialMovingAverage(ema2.Result, EMALength);
        }
    }
}

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jul 2020, 09:51

Hi there,

Can you please provide more information? Please let us know the broker, steps to reproduce and some screenshots.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous