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

PanagiotisCharalampous
08 Jul 2020, 08:24

Hi tperalta82,

You should be calling the method until the desired amount of bars is retrieved. See below

            var bars = MarketData.GetBars(TimeFrame, SymbolName);
            while (bars.Count < 1000)
            {
                bars.LoadMoreHistory();
            }

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Jul 2020, 08:16

Hi luciancastro89,

You can share your cBot's code and somebody might be able to guide you on what you should change.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Jul 2020, 08:12

Hi mmtt,

You can do this by using Linked Charts.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 16:54

Hi Napat,

We can confirm that the deals were executed on this account due to equity to equity readjustment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 15:46

Hi there,

There are many other reasons where this can happen e.g. your follower was stopped out. To provide you with an exact reason for these deals we need to have the strategy name, your broker and your follower's broker.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 15:27

Hi there,

It seems that the copier's deals have been executed at midnight. This is the time fees are deposited to strategy providers account and equity to equity readjustments take place. 

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 14:15

Hi naveenwhy,

See below an example

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(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        var _lastBarOT;
        protected override void Initialize()
        {
            // Initialize and create nested indicators
        }

        public override void Calculate(int index)
        {
            if (IsLastBar)
            {
                if (Bars.OpenTimes.LastValue != _lastBarOT)
                {
                    _lastBarOT = Bars.OpenTimes.LastValue;
                    // Send your alert
                }
            }
        }
    }
}

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 14:11

Hi cokeplus898,

This is how FIX works. It streams only changes in price. It can also happen that bid = ask especially in low spread symbols like EURUSD.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 12:31

Hi GridSurfer,

When you start following a strategy provider, your funds are transferred into a separate subaccount and deducted from your main one. The trades are not executed on your main account but on your subaccount, which is accessible only via cTrader Copy.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 11:36

Hi cokeplus898,

You will only get the price that has changed. Tag 269 indicates if this is a BID or OFFER price.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 11:04

Hi cokeplus898,

This is a subscription to spot prices. Bid and Ask prices will be streamed to you as soon as they change. What did you expect to get instead?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 09:23

Hi Yuval,

You need to go to C:\Users\User\AppData\Roaming\broker-cTrader\BacktestingCache and delete the contents of the folder.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 08:46

Hi Waxy,

It keeps the color of the previous bar.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 08:36

Hi ergun,

Unfortunately without source it is not possible to give you an advise. If you can create a sample indicator that reproduces the problem it would be helpful.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Jul 2020, 08:31

Hi Yuval,

What past data are you referring to? Bar data? And why do you want to reload them?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2020, 15:44

Hi Mohammad,

This happens because you are on a low timeframe and bars have not been loaded up to the deal's start date. For the chart to "jump" to the deal map you will need to manually scroll back the chart so that the bars are loaded.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2020, 14:51

Hi john_7ko,

It uses an Event Handler.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2020, 14:26

Hi MZen,

You are misundestanding ticks. Ticks represent current offers to buy and sell. In OTC markets executed trades are not available since trading takes place over the counter between two counterparties rather than on a centralized exchange.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2020, 14:09

Hi MZen,

It is a property of the message. See below

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2020, 14:05

Hi MZen,

Spot prices streamed through spot events represent exactly what you have described, the latest offers from buyers and sellers. So this is what you are looking for.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous