Replies

PanagiotisCharalampous
30 Jan 2019, 11:33

Hi Vito,

Based on your description, it seems that the broker's portal does not give you the choice to link the account to the correct cTrader ID . This is out of our control and we are not aware how the portal is implemented, so you will need to discuss it with your broker. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 11:25

Hi FMogyi,

Ok now its clear. To get the value of a trend line at a specific point in time, you can use CalculateY. Let me know if this helps.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 11:18

Hi quangson1511,

Thanks for posting in our forum and reporting this. We will investigate and let you know what happened.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 10:40

Hi Vitore,

Thanks for posting in our forum. How do you create your accounts? If you create a demo account using cTrader then the account should be linked to the cTrader ID you have used to sign in at the moment. If you create the account through another channel e.g. broker CRM, then you need to contact your broker about this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 10:32

Hi hsbcstor,

Indeed there are more errors you might get and we do not have them somewhere in the documentation at the moment. Most of the errors are self explanatory but we will add them in the documentation as well in the near future.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 10:07

Hi bienve.pf,

I am not sure what do you mean. You can choose the timeframe on Symbol parameters. Do you mean to get data from another timeframe that the one specified on the chart? If yes, read the discussion here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 10:03

Hi FMogyi,

You can use GetIndexByTime and then use the index to get a specific value from a Series at a specific time. See an example below

var closePrice15hoursBefore = MarketSeries.Close[MarketSeries.OpenTime.GetIndexByTime(Server.Time.AddHours(-15))];

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2019, 09:58

Hi tgjobscv,

There is no option to change the sound at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 17:22 ( Updated at: 21 Dec 2023, 09:21 )

Hi Alex,

Here is the indicator

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

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class OHLC4 : Indicator
    {

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


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

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            Result[index] = (MarketSeries.Open.LastValue + MarketSeries.High.LastValue + MarketSeries.Low.LastValue + MarketSeries.Close.LastValue) / 4;
        }
    }
}

Create it and add it to the chart. Then when you will add RSI, it will show up in the Source list. See below

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 16:58

Hi Alex,

You can write the OHLC/4 indicator and feed it to the RSI. You do not need to develop the RSI from scratch.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 16:56

Hi Glen,

There are solutions but substantial effort will be required. Most possible the solution will be to offer cloud execution of cBots. But we do not have anything concrete towards that direction yet.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 16:47

Hi Glen,

Even though we are not negative to the idea, I am afraid that this will not happen any time soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 15:49 ( Updated at: 21 Dec 2023, 09:21 )

Hi Alex,

You can any indicator as an input to RSI or Stochastic RSI. If you add an indicator on the chart, then it will appear on the Source list. See below

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 15:28

Hi ryan.a.blake,

First of all the cBot does not build. We get the following error

Error CS1061: 'cAlgo.Indicators.KAMA' does not contain a definition for 'LastValue' and no extension method 'LastValue' accepting a first argument of type 'cAlgo.Indicators.KAMA' could be found (are you missing a using directive or an assembly reference?)

I assume you need to use

_Kama1.kama.LastValue

instead of

_Kama1.LastValue

Then the cBot does not have an OnBar or OnTick method. So I would not expect it to do anything since it is not programmed to do anything. If you add the below

        protected override void OnBar()
        {
            ManagePositions();
        }

you will start seeing something. But still there are no exit conditions for positions. But I cannot assume what you would like to do.

Usually, it is easier for others to help when they know what you expect the cBot to do instead of a general "it doesn't work". 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 14:37

Hi abierbrauer,

Do you receive any message at all after logon message? If yes, can you post it? If not, then probably your credentials are wrong. Try resetting your password via FIX API section in Settings and try again.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 12:32

Hi abierbrauer,

When credentials are wrong, you will receive no response. To stay connected, you need to send heartbeats every x seconds as defined by tag 108. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 12:02

Hi hsbcstor,

You can find possible error codes in CommomModelMessages.ProtoErrorCode.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 11:27

Hi abierbrauer,

Thanks for posting in our forum. Tag 57 is missing from your message. You can check our Rules of Engagement here. The message on the documentation will be updated.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 10:34

Hi shrumr,

I cannot reproduce any problem. Did this happen again? Can you consistently reproduce it?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Jan 2019, 10:23

Hi Alex,

Source code is not available unfortunately. But the formulas for most of them are publicly available and easily discoverable.

Best Regards,

Panagiotis


@PanagiotisCharalampous