Replies

PanagiotisCharalampous
15 Nov 2021, 08:45

Hi kojomidoji,

Unfortunately I cannot build the entire code for you but below you can find a small example of how to call the Bollinger Bandwidth - Squeeze and Bulge indicator and print the last value to the log.

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

        BBSqueezeBulge _bb;
        protected override void OnStart()
        {
            // Put your initialization logic here
            _bb = Indicators.GetIndicator<BBSqueezeBulge>(10, 2, MovingAverageType.Simple, 20, Bars.ClosePrices);
            Print(_bb.Bandwidth.LastValue);
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

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

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
15 Nov 2021, 08:34

Hi irmantas1981,

Brokers have their own price streams, so usually price quotes are usually different.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
15 Nov 2021, 08:31

Hi mohsabry.ms,

To be able to access your indicator's values from a cBot, you first need to expose them in a public variable, preferably an IndicatorDataSeries.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook 


@PanagiotisCharalampous

PanagiotisCharalampous
15 Nov 2021, 08:19

Hi bowen.guo.kaust,

The standard deviation formula is pretty much... standard :)

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
15 Nov 2021, 08:17

Hi MATRIXTRADER,

As far as I can see, you are using the current chart symbol for your indicators.

            MA = Indicators.MovingAverage(Bars.ClosePrices, MA_period, MAType);
            _macd = Indicators.MacdHistogram(LongCycle, ShortCycle, MACDPeriod);

So for every symbol the indicators will be different. Why do you expect the results to be the same?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
13 Nov 2021, 17:51

Hi kojomidoji,

You did not reply to my question. Can you reply please?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
12 Nov 2021, 09:02

Hi kojomidoji,

So you do not have a code and you need a sample on how to reference the indicators?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
12 Nov 2021, 08:57

Hi m4trader4,

Yes it is.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
11 Nov 2021, 12:04

Hi amml,

No there aren't. This method is not actually supported and from the next update (4.2) you will be able to use dotnet build command instead. So you will need to survive with this workaround till then :).

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Nov 2021, 10:10

Hi amml,

This function is not documented at the moment. However it seems that your path does not include the project file name. You should include the file name in the path as well e.g.

C:\Users\amml\Documents\cAlgo\Sources\Robots\MyFirstRobot\MyFirstRobot\MyFirstRobot.csproj

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 16:44

Hi kojomidoji,

The links provide the code for the indicator. We need your cBot's code as well.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 15:27

Hi xabbu,

The deal map is always greyed out when on Renko. I did not mention anything about on/off on Renko charts.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 15:18

Hi Rob,

It might take some time but there is a workaround for this. Just follow the steps below

  1. Go to a standard candlestick chart.
  2. Right click on chart > Viewing Options and disable the Deal Map.
  3. Go back to Renko.

The deals should be shown now

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 14:59

Hi kojomidoji,

Please share your cBot's code so that we can have a look. 

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 12:30

 

Hi m4trader4,

cTrader applications do not connect to the server but to to a network of proxies around the world, depending on the location of the end user. Then proxies are connected to the server through a tunneled connection. This setup offers better security and performance. Hence what you see on cTrader is a) the latency between your client application and the proxy 2)  The total latency between the application and the server, which is the sum of the client to proxy and proxy to server latencies. 

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 12:09

Hi m4trader4,

You do not have direct access to the server, you can only connect to proxies. So I am not sure how will this info help. Also we cannot provide the server ip for security reasons. You can see the relevant latency info through cTrader.

 

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 11:30 ( Updated at: 21 Dec 2023, 09:22 )

Hi m4trader4,

You can find the connected proxy host name in Settings > FIX API. See below

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2021, 07:55

Hi al-n,

Yes this is possible.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Nov 2021, 11:26

Hi phill.beaney,

There is a known issue with Intel drivers. Can you please check this post in case it helps you?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Nov 2021, 09:54

Hi phill.beaney,

Can you please advise what graphics card you are using? If possible, please post a screenshot from your Device Manager's Display Adapters section.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook 


@PanagiotisCharalampous