Replies

PanagiotisCharalampous
27 Feb 2019, 10:25

Hi Nick,

Many brokers have price feeds for cryptocurreny pairs. We even have some on cTrader Public Beta. You can check them to see if they suit you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:56

Hi lec0456,

Chart.DrawText() draws on the main chart. IndicatorArea.DrawText() draws on the separate indicator area only if this exists. If the indicator is an overlay then it is ignored.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:43

Hi lec0456,

Can you share a cBot that reproduces this message?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:41

Hi rooky06,

We will add this feature in cTrader Deskop v3.5. The beta version will be released any time now.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:40

Hi leohermoso,

Swaps are not available via FIX API but they are available in Open API.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:36

Hi Ton.

Please post your suggestions in the Suggestions section so that product managers can find them all in one place.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:32

Hi AndreaDev,

Remove the following line from your indicator and it should work fine

NewOpen = CreateDataSeries();

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Feb 2019, 09:19

Hi Ton,

As the message indicates, the issue is with the Take Profit. The Take Profit cannot be lower than the Symbol's decimal places. I guess that in this case Symbol.TickSize and Symbol.PipSize match therefore 0.1 pips is not a valid Take Profit value. Who is your broker?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 13:42

RE:

pmedia said:

Great Paul,

I will research more,
The 2nd important thing to understand is if cTrader has access to BTC pricedata for proper backtesting? I tried asking this but it got ignored/misunderstood.

 "Does cTrader have access to market data for tickers BTCUSD from Coinbase/BitStamp or XBTUSD via Bitmex so proper backtesting can be performed."

Regards
Nick

Hi Nick.

I answered this question in my first reply. See below

"Thanks for posting in our forum. cTrader is a CFD trading platform therefore it does not have direct access to crypto exchanges. However there are several cTrader brokers that offer cryptocurrency CFDs via cTrader."

Since cTrader doesn't have direct access to crypto exchanges then it cannot have price data from them as well. However some brokers offer cryptocurrency pairs for trading through their own liquidity sources, therefore you might use their price feeds for testing.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 12:36

Hi lw3010996,

Here is an example

using System;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections.Generic;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;


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

        private bool showSMA;
        private int i;

        public int redPeriod = 12;
        [Output("Red SMA", LineColor = "Red", Thickness = 1)]
        public IndicatorDataSeries redSMA { get; set; }


        private MovingAverage _redSMA;


        protected override void Initialize()
        {
            Timer.TimerTick += OnTimerTick;
            Timer.Start(2);
            _redSMA = Indicators.MovingAverage(MarketSeries.Close, redPeriod, MovingAverageType.Simple);
        }

        public override void Calculate(int index)
        {

            redSMA[index] = _redSMA.Result[index];


        }

        private void OnTimerTick()
        {
            showSMA = !showSMA;
            if (showSMA)
            {
                for (int i = 0; i < redSMA.Count; i++)
                {
                    redSMA[i] = _redSMA.Result[i];
                }
            }
            else
            {
                for (int i = 0; i < redSMA.Count; i++)
                {
                    redSMA[i] = double.NaN;
                }
            }
        }
    }
}

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 12:17

Hi jpwtrading,

You have a wrong bracket at line 65 and lots of missing brackets at the end.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 11:27

Hi Adrian,

Thanks for posting in our forum. I am not sure what do you mean when you say start price. The target price is the price at which the pending order will be triggered. You can add a SL and TP on that order separately.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 10:38

Hi Patrick,

The broker-cTrader, as shown in my previous post. If this happens on FxPro, then FxPro-cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 10:35

Hi Nick,

No it is not but I am not sure what do you expect to hear. You have asked if cTrader can send external email alerts and I said that this is possible. Here is how

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 10:19

Hi lec0456,

For which symbol? Do other brokers have market sentiment for that symbol?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 10:16

Hi lw3010996,

The reason you see nothing is because showSMA is always false.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 10:13

Hi Nick,

In principle it is possible. But I cannot advise you futher than that since I do not have any details about what you are talking about.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 09:57

Hi hishalv,

Thanks for posting in our forum. Yes this is possible. See an example below

 Chart.ColorSettings.BackgroundColor = Color.Red;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
26 Feb 2019, 09:53

Hi FMogyi,

The following links might be helpful

https://stackoverflow.com/questions/4758283/reading-data-from-a-website-using-c-sharp

https://www.codeproject.com/Tips/443588/Simple-Csharp-FTP-Class

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
25 Feb 2019, 17:55

Hi Nick,

Do you need to read external alerts using cTrader and execute the traders with in cTrader?

Best Regards,

Panagiotis


@PanagiotisCharalampous