Replies

PanagiotisCharalampous
21 Apr 2020, 13:49

Hi Tj11,

Why do you thing your question is being ignored? It was just posted today. We need more information about the issue. Can you provide us with steps to reproduce this behavior?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 12:44

Hi andresort28,

To fix the issue, please remove the static keyword from

[Parameter("Open")]
public static DataSeries Source_Open { get; set; }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 12:19

Hi firemyst,

I was wrong above. You can actually get the deal information even for open positions. See below an example on how to get all deals of an open position on modification.

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.CentralAsiaStandardTime, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        protected override void OnStart()
        {
            Positions.Modified += Positions_Modified;
        }

        private void Positions_Modified(PositionModifiedEventArgs obj)
        {
            foreach (var trade in History.Where(x => x.PositionId == obj.Position.Id))
            {
                Print("Entry price: " + trade.EntryPrice);
                Print("Closing price: " + trade.ClosingPrice);
            }
        }

        protected override void OnTick()
        {
            
        }

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

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 11:46

Hi firemyst,

Indeed History provides the information of closed deals only and you need to filter by position id. Deals associated with open positions are not available in History.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 10:07

Hi Luca,

This is because you cannot set a stop loss below a sell position's entry price e.g. 0. Note that SL and TP in ModifyPosition are set as prices not as pips. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:57

Hi Luca,

What do you mean? Can you give us an example?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:42

Hi keltrem,

I am not sure how is this related to Open API. If your question is related to cTrader Automate API, you can check DrawText() method.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:39

Hi mizo.rakkii,

If you need to get tick data of a symbol you can use MarketData.GetTicks(Symbol) method.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:34

Hi fjimenezbaez,

To see Autochartist on cTrader, your broker needs to subscribe to the service.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:33

Hi rampurkar.amit,

cTrader Copy works on the sever side hence there is nothing you need to worry about. You do not need to have anything turned on.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:21 ( Updated at: 21 Dec 2023, 09:22 )

Hi elenigna,

Can you please confirm that your sounds are on?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:20

Hi firemyst,

Deal information is available through History. Each entry represents a deal.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:07

Hi EarlGrey,

You can set the trigger method as an argument when you place a stop limit order. Check here.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 09:04

Hi reifth,

Can you please explain to us what do you mean?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 08:57

Hi zo.abed,

Even if you subscribe to incremental refresh, the first message will be a full refresh, else there is nothing to increment on.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
16 Apr 2020, 16:54

Hi zo.abed,

1) What this means is that the specific optional tag allows only for specifying incremental refresh. If the tag is not used then you should get a full refresh.

2) Message 35=W does not have a 271 tag. This is only available in 35=X.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
16 Apr 2020, 09:20

Hi Hamza,

No this is not possible. Chart drawings are only kept on the chart they have been drawn.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
15 Apr 2020, 16:49

Hi erik.lindblad,

We could not reproduce such a behavior. Can you please provide us the following as well?

1. iOS version

2. Device information

3. The symbol you are trying to trade

4. A screenshot of the application at the time you are putting the relevant value

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
15 Apr 2020, 15:12

Hi erik.lindblad,

This has been fixed in a recent update. Can you please tell us which version and broker do you use and which iPhone do you have?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
15 Apr 2020, 08:32

Hi reyx,

This feature in not available at the moment but you can consider using transparency so that the candles behind your objects are visible.

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@PanagiotisCharalampous