Replies

PanagiotisCharalampous
12 Dec 2019, 08:46

Hi kahsa,

This probably happens because you use the trading account number instead of the trading account id. You need to use the trading account id which can be found in ProtoOATrader.ctidTraderAccountId.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
12 Dec 2019, 08:44

Hi Leonardo,

See below

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

namespace cAlgo
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FileSystem)]
    public class MACD : Robot
    {

        [Parameter("Volume", DefaultValue = 1000)]
        public int volume { get; set; }

        [Parameter(DefaultValue = 50, MinValue = 1)]
        public int StopLoss { get; set; }

        [Parameter(DefaultValue = 50, MinValue = 1)]
        public int TakeProfit { get; set; }


        [Parameter("MACD LongCycle", DefaultValue = 26, MinValue = 1)]
        public int LongCycle { get; set; }

        [Parameter("MACD ShortCycle", DefaultValue = 12, MinValue = 1)]
        public int ShortCycle { get; set; }

        [Parameter("MACD Period", DefaultValue = 9, MinValue = 1)]
        public int MACDPeriod { get; set; }

        private MacdCrossOver _MACD;

        protected override void OnBar()
        {
            var dailySeries = MarketData.GetSeries(TimeFrame.Daily);
            _MACD = Indicators.MacdCrossOver(dailySeries.Close, LongCycle, ShortCycle, MACDPeriod);
            if (Positions.Count(x => x.TradeType == TradeType.Buy) == 0 && _MACD.MACD.Last(1) < _MACD.Signal.Last(1) && _MACD.MACD.Last(0) > _MACD.Signal.Last(0) && _MACD.Signal.Last(0) < 0)
            {
                foreach (var position in Positions.Where(x => x.TradeType == TradeType.Sell))
                    position.Close();
                ExecuteMarketOrder(TradeType.Buy, Symbol, volume, "korakodmy", StopLoss, TakeProfit, 5);
            }

            if (Positions.Count(x => x.TradeType == TradeType.Sell) == 0 && _MACD.MACD.Last(1) > _MACD.Signal.Last(1) && _MACD.MACD.Last(0) < _MACD.Signal.Last(0) && _MACD.Signal.Last(0) > 0)
            {
                foreach (var position in Positions.Where(x => x.TradeType == TradeType.Buy))
                    position.Close();
                ExecuteMarketOrder(TradeType.Sell, Symbol, volume, "korakodmy", StopLoss, TakeProfit, 5);
            }
        }

    }

}

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 16:21

Hi dynamites,

Thanks, we managed to reproduce this issue and we will fix it in an upcoming update. In the meanwhile, as a workaround, try disabling this setting.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 16:16

Hi khalid-the-soldier,

Make sure you are using FxPro cTrader. cTrader accounts are only available on the brokers platforms.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 15:25

RE: RE:

morassut.s said:

PanagiotisCharalampous said:

Hi dynamites,

Thanks for the clarification. This is not a bug, this is how it was working in previous versions. However we are planning to change this behavior in future versions.

Best Regards,

Panagiotis 

Join us on Telegram

Ok.

Future new beta versions will be downloaded and automatically installed as in metatrader? Or do i have to do it manually?

This is how it works currently. Updates are installed automatically.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 15:14

Hi dynamites,

If you cannot embed it here, send it to community@spotware.com.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 15:12

Hi dynamites,

Thanks for the clarification. This is not a bug, this is how it was working in previous versions. However we are planning to change this behavior in future versions.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 14:42

Hi dynamites,

When you say

Then open NZDUSD which has very similar figures and values. You will find the horizontal line even on NZDUSD!!!!!

do you mean to open a new chart or just change the symbol on the current chart?

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 14:39

Hi dynamites,

I could not reproduce this problem. Any chance you can send us a video demonstrating this issue?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 11:19

Hi Drummond360,

Sorry somehow missed this thread. I thought Paul was in control :) ExecuteMarketRangeOrder limits only negative slippage. It is equivalent to a limit order executed at the range price.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 08:26

RE: RE: RE:

Hi trend_meanreversion,

See here. If you still experience the issue, please send us the cBot code to check.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 08:24

Hi rafaelizidorotrader,

There is no such option at the moment. We have this feature in our backlog though.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
11 Dec 2019, 08:21

Hi noeyamn,

Shall I assume you are using visual backtesting? If yes, for performance reasons some ticks are skipped by the chart so the indicator displayed on the chart might have these deviations. The correct values are the ones recorded by your cBot.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Dec 2019, 14:48

Hi DungeonMaster,

Thanks for posting your suggestion. Please use the Suggestions section for suggesting new features so that we can keep them all gathered in one place and measure demand.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Dec 2019, 14:47

Hi firemyst,

I have checked this is the past and it seems to be an issue with the way the values are calculated for each bar in the real time and what happens when some ticks are missed. I haven't tried to solve it but I would try to recalculate the value of each closed bar when the bar changes and the OHLC data for the previous bar is finalized. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Dec 2019, 12:19

Hi firemyst,

Supertrend is a custom indicator and if you are using the one available in the forum, it has a lot of defects. This is one of them.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Dec 2019, 11:44

Hi 1222Ht,

when you Chart.RemoveObject("string"); , if the string doesnt exist (no object with that string is found) does it simply go over it n ignore it ?

Yes, if the string does not exist nothing will happen

 is it possible to now manipulate the zindex of bar 

No this is not possible yet.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Dec 2019, 08:21

Hi Patrick,

We have released an update on Spotware cTrader Beta that should improve backtesting performance. Please have a look and let us know your feedback.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Dec 2019, 08:13

RE:

Hi A.R.

We have fixed this issue with the latest update on Spotware Beta. Please have a look and let us know if it has been resolved for you.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2019, 15:55

Hi ctid1253733,

That is their website. You can try contacting them.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous