Replies

PanagiotisCharalampous
17 Feb 2020, 09:23

Hi ctid229331,

Please try a clean installation and let us know if it resolves the issue.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 09:20

Hi GlenHendriks,

Please post your suggestions in the Suggestions section of the forum.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 09:15

RE:

Hi 1222Ht,

A hotfix has been released to Beta last weeks which fixes several issues but it has not been pushed to brokers. Please have a look again as soon as the hotfix is pushed to your broker's cTrader.

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 09:10

Hi Xavier R,

Can you please post the complete cBot code in text format so that we can use it to reproduce the issue?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 09:07

Hi ctid1006205,

We will need more information in order to investigate this issue. Please let us know the following

  1. The strategy name.
  2. The trading account number and the broker of the follower's account.
  3. A screenshot of the strategy provider's position with exact entry and exit times.
  4. The position ID for which you you expected the TP to be triggered but was not. 

 Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 08:59

Hi Tj11,

No there is no such option. When the timeframe changes, a new indicator is initialized and the Initialize() method is called.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 08:50

Hi firemyst,

If you notice, your entry price has a lot of decimal places, probably caused by the fact that it is a VWAP price. Thus you should expect your pips to have a lot of decimal places as well.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
17 Feb 2020, 08:45

Hi Mr. John,

We do not have plans to add this at the moment but this can be programmed by you in a custom indicator.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 16:53

Hi A.R.

This usually happens if your cBot/Indicator has parameter declared as static. If you remove the static keyword, the issue should be resolved.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 12:08

Hi firemyst,

Why do you think this is an issue?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 09:44

Hi Takis,

Symbols.GetSymbol() doesn't work in optimization. You will need to replace the references to symbol with strings.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 09:16

Hi thoy1,

See below

  Symbol symbol = Symbols.GetSymbol(position.SymbolName);

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 08:46

Hi Mparama,

We have released a hotfix on Spotware Beta. Can you please check?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 08:45

Hi,

You need to replace this line of code

   ExecuteMarketOrder(type, this.Symbol, volume, InstanceName, StopLoss, null, marketRangePips, Comment);

with

   ExecuteMarketRangeOrder(type, this.Symbol.Name, volume, marketRangePips, Symbol.Bid, InstanceName, StopLoss, null, Comment);

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 08:40

Hi Vladimiros,

It seems I did not read your question well :) There is no built in function for this, you will need to write it yourself. Here is an example for finding the index for the maximum

        private int IndexOfMax(DataSeries series, int noOfBars)
        {
            double maximum = series[0];
            int maxIndex = 0;
            for (int i = 1; i < noOfBars; i++)
            {
                if (series[i] > maximum)
                {
                    maximum = series[i];
                    maxIndex = i;
                }
            }
            return maxIndex;
        }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 08:30

Hi royj1995,

See an example using two SMAs below

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

namespace cAlgo
{
    [Cloud("Fast MA", "Slow MA", FirstColor = "Aqua", Opacity = 0.5, SecondColor = "Red")]
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class CloudExample : Indicator
    {
        [Parameter("Fast MA Period", DefaultValue = 21)]
        public int FastMaPeriod { get; set; }

        [Parameter("Slow MA Period", DefaultValue = 50)]
        public int SlowMaPeriod { get; set; }

        [Output("Fast MA", LineColor = "#FF6666")]
        public IndicatorDataSeries FastMaResult { get; set; }

        [Output("Slow MA", LineColor = "#0071C1")]
        public IndicatorDataSeries SlowMaResult { get; set; }

        SimpleMovingAverage FastMa;
        SimpleMovingAverage SlowMa;


        protected override void Initialize()
        {
            FastMa = Indicators.SimpleMovingAverage(Bars.ClosePrices, FastMaPeriod);
            SlowMa = Indicators.SimpleMovingAverage(Bars.ClosePrices, SlowMaPeriod);
        }

        public override void Calculate(int index)
        {
            FastMaResult[index] = FastMa.Result[index];
            SlowMaResult[index] = SlowMa.Result[index];
        }
    }
}

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 08:24

Hi Ivan,

We have restored this option in Spotware cTrader Beta. It will be pushed to brokers soon.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Feb 2020, 08:19

Hi TzvetomirTerziysky,

I tried the source code you provided in this thread and seems to be working fine. Can you please confirm that you are using Spotware cTrader Beta? If yes, can you please provide the source code that causes the problem?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
12 Feb 2020, 16:48

Hi Takis,

Just use the code you posted and enable/disable your network adapter. You should see the events registering in the log.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
12 Feb 2020, 16:17

Hi Takis,

Your code works fine for me. How do you test it?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous