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

PanagiotisCharalampous
16 Sep 2019, 09:00

Hi charltonrbrts5,

Thanks for posting your suggestion. Please use the Suggestions section for such posts.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 08:56

Hi indra,

To add an IndicatorDataSeries you can use the syntax below

        [Output("Range ADR", Color = Colors.Lime, Thickness = 1)]
        public IndicatorDataSeries Range_ADR { get; set; }

However from what I see you cannot just add it and use it on the existing indicator as there are a lot of changes that need to take place. It would be better to rewrite it from scratch. If you need assistance, you can consider contacting a Consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 08:43

Hi bienve.pf,

There is no such option at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 08:42

Hi 85percent,

Thanks for posting in our forum. Please make sure you are using the correct proxy and password.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 08:41

Hi Collins,

Thanks for posting in our forum. Snapping does not apply for horizontal lines.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Sep 2019, 16:40

Hi tgjobscv,

1. Please explain to us clearly what is the problem. Provide us with instructions to reproduce it on backtesting.

2. What do you mean how to put the parameters? Do you need somebody to develop the functionality for you? Can you please explain what do you need the parameters to do?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Sep 2019, 15:05

Hi ctid588397,

Lý Nguyễn has given the answer. Demo accounts can copy live accounts but demo copiers are not represented in the stats where (Live) is mentioned.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Sep 2019, 09:10

Hi Hirgent,

There is no such option at the moment but it is considered for a future release.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Sep 2019, 09:08

Hi radoslawkupisek,

You can use DrawStaticText instead.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Sep 2019, 09:05

Hi hogandsteer,

Thanks for posting in our forum. To remove the logo from the background just right click on the chart and click on Background Image. In the form that will pop up, you can choose the image opacity, you can even replace it or remove it completely.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Sep 2019, 09:01

Hi radoslawkupisek,

The problem is with your GetIndexByDate() method. To fix it just replace line 74 with the one below

var index24h = TF.OpenTime.GetIndexByTime(MarketSeries.OpenTime[index]);

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 14:54

Hi RayAdam,

You are looking at two different method signatures. To fix the issue in your code you need to use the symbol name instead of the symbol itself.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 14:41

Hi RayAdam,

There is no error posted. Did you forget to attach something?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 12:56

Hi Mario,

Here is an example

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
    {
        Symbol _gbpjpy;

        protected override void OnStart()
        {
            _gbpjpy = Symbols.GetSymbol("GBPJPY");
        }

        protected override void OnTick()
        {
            Print("GBPJPY Bid: " + _gbpjpy.Bid);
            Print("GBPJPY Ask: " + _gbpjpy.Ask);
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 11:25

Hi all,

By design OnTick() will trigger only once if both bid and ask change. However TickVolume will add to the volume two ticks for both bid and ask price changes. A more accurate way to calculate and compare tick volume is the following

private int TickVolume;
private decimal LastBid;
private decimal LastAsk;

protected override void OnTick()
{
    var bid = (decimal)Symbol.Bid;
    var ask = (decimal)Symbol.Ask;

    if (bid != LastBid)
        TickVolume++;
    if (ask != LastAsk)
        TickVolume++;

    LastBid = bid;
    LastAsk = ask;
}

protected override void OnBar()
{
    Print(MarketSeries.TickVolume.Last(1) + " vs " + TickVolume + " counted.");
    TickVolume = 0;
}

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 11:04

Hi radoslawkupisek,

Unfortunately the code you posted here does not build

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 10:26

Hi zarn,

It is not clear what feature are you referring to. Pending orders were always executed as GTC orders.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 09:32

Hi pooria222222,

Demo accounts can follow live accounts because traders need to have the option to try your strategy before commiting theirmoney to it. Copying takes place on subaccounts which are not directly accessible by cTrader, cTrader Automate or API therefore there is not much benefit from following using a demo account.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 09:05

Hi indra,

Thanks for posting in our forum. The indicator does not have any output series that can be accessed by a cBot. You will need to add an  IndicatorDataSeries and save the range_adr value there, so that it can be accessed by a cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Sep 2019, 08:59

Hi pooria222222,

It seems that your followers are following you from demo accounts.

Best Regards,

Panagiotis


@PanagiotisCharalampous