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

PanagiotisCharalampous
17 Sep 2019, 16:47

Hi chim,

This is a known issue and will be fixedin an update. A workaround is to zoom in and then drag the time counter on the bottom axis left and right and past data will be retrieved. Let me know if this helps.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2019, 14:49

Hi Bhavin Dholakia,

See below 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
    {
        ExponentialMovingAverage _ema;
        bool _askBelowPrice;
        bool _bidAbovePrice;

        protected override void OnStart()
        {
            _ema = Indicators.ExponentialMovingAverage(MarketSeries.Close, 28);
            _askBelowPrice = Symbol.Ask >= _ema.Result.LastValue;
            _bidAbovePrice = Symbol.Bid <= _ema.Result.LastValue;
        }

        protected override void OnTick()
        {
            if (Symbol.Ask <= _ema.Result.LastValue)
            {
                if (!_askBelowPrice)
                    ExecuteMarketOrder(TradeType.Buy, Symbol.Name, 1000);
                _askBelowPrice = true;
            }
            else
            {
                _askBelowPrice = false;
            }
            if (Symbol.Bid >= _ema.Result.LastValue)
            {
                if (!_bidAbovePrice)
                    ExecuteMarketOrder(TradeType.Sell, Symbol.Name, 1000);
                _bidAbovePrice = true;
            }
            else
            {
                _bidAbovePrice = false;
            }
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2019, 14:00

Hi Xavier,

All fonts installed on your PC are supported. You can specify multiple fonts seperated by comma. The first font found will be used or it will fall back to the default one, if no fonts found. 

Regarding the question about the grid. RemoveRowAt and RemoveColumnAt do not remove child elements. E.g. if you remove the third row, the child in this row will be moved to the second one.

RemoveChild() method has only a child parameter. A child element will be removed regardless of the row and column. So for RemoveChild there is no need to know about row and column of the child

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2019, 12:51

Hi Bhavin Dholakia,

HasCrossedAbove and HasCrossedBelow tell you the direction of crossing. If you want to implement this on a tick based strategy you can compare the value of the ema with the previous and with the current tick. If you clarify what do you need exactly, I can provide you with an example.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2019, 09:15

Hi wiktor,

Can you add tag 50 as well and let me know if it works?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2019, 08:14

Hi Bhavin Dholakia,

Thanks for posting in our forum. Why do you need a special function for this? Current prices can be found in Symbol.Bid and Symbol.Ask and the latest EMA value can be found in the ema.Result.LastValue property. You can use them to make any comparison you like.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2019, 07:59

Hi Cam_maC,

Can you share the cBot code so that we can have a look?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 14:13

Hi Vince,

Is it possible to arrange a TeamViewer session? In order to investigate this issue further we need to check your computer. If yes, please send us an email at community@spotware.com to arrange it.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 13:57

Hi pacault.romain,

Many traders run their cBots on virtual private servers so that they do not need to turn them off.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 12:06

Hi Perdo,

Can you tell me symbol and the broker you are using?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 12:05

Hi Vince,

Can you try a clean installation of cTrader and let me know if it resolves the problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 11:02

Hi RayAdam,

See below an example

var index = MarketSeries.OpenTime.GetIndexByTime(MarketSeries.OpenTime.Last(9));

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 10:59

Hi pacault.romain,

Thanks for posting in our forum. See below my answers to your questions

From the PLC part (CAlgo) of the CTrader graphical interface, is it possible to create projects with several "classes"? I only see one for each algo

Yes, if you edit the cBot in Visual Studio then you will have access to the project and you will be able to add more classes.

 Where are the controllers running, locally or on your servers?

If with the terms controllers you mean cBots, then they run locally.

 If we decided to do the algos in Java, what solutions for the deployment? Do you have a cloud offering hosting Java, or would we have to go through an AWS platform?

You cannot use Java in cTrader Automate. If you want to use Java, you can consider using our Open API.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 10:55

Hi Wiktor, 

Thanks for posting in our forum. The messages seem correct and the position seems to open with an ID 64196589. Are you sure you are checking the correct account in cTrader?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 09:17

Hi Leonardo,

There is no such option at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 09:14

Hi augrust,

Thanks for posting in our forum. You can add indicators on Renko bars in the exact same way as in normal candlesticks.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 09:13

Hi pmcarvalho,

From where do you want to access the prices? From the chart? If yes then just scroll back to the specific date.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 09:11

Hi tgjobscv,

Can you please explain which cBot are you referring to?

 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 09:05

Hi tgjobscv,

As expailned above we need more information in order to help you with such issues.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Sep 2019, 09:01

Hi charltonrbrts5,

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

Best Regards,

Panagiotis


@PanagiotisCharalampous