Replies

PanagiotisCharalampous
18 Jun 2019, 11:49

Hi diegorcirelli,

Simulating deposits and withdrawals is not possible at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2019, 11:47

Hi Alex,

The codes are in hex. The first two letters represent the opacity.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2019, 10:43

Hi Asen,

I do not see any problem with the indicator and I still do not understand why you expect different values. At the time the value il logged, it matches the indicator value on the chart.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2019, 10:41

Hi Bjorn,

I ran the cBot for some time but could not reproduce the issue. Do you still get this exception or was it something temporary? If yes, can you please provide us with the exact steps you follow to reproduce this problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2019, 10:28

Ηι Greendreamer,

Brokers are responsible for their price feeds. You should address this issue to your broker.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 17:12

Hi Asen,

I am not sure what you are asking for. ef0 is now calculated OnTick, this is why the value keeps changing.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 16:41

Hi Asen,

The value of the closed bar is already found in ef1.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 16:33

Hi zedodia,

I have given you the code above, not sure why you changed it. Here is the complete cBot

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("Fractal Period", DefaultValue = 5)]
        public double _period { get; set; }

        private Fractals _fractal;

        protected override void OnStart()
        {
            _fractal = Indicators.GetIndicator<Fractals>(_period);
        }

        protected override void OnBar()
        {
            var _fractaldown = _fractal.UpFractal.LastValue;
            var _fractalup = _fractal.DownFractal.LastValue;

            var position = ExecuteMarketOrder(TradeType.Buy, Symbol, 1000).Position;
            position.ModifyTakeProfitPrice(_fractalup);
            position.ModifyStopLossPrice(_fractaldown);
        }
    }
}

 


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 16:27

Hi Asen,

This happens because you log the value at the opening of the bar while the value displayed on the chart is the one calculated at the closing of the bar.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 15:06

Hi zedodia,

See an example below

            var _fractaldown = _fractal.UpFractal.LastValue;
            var _fractalup = _fractal.DownFractal.LastValue;

However these values will not work as inputs for SL and TP. Try the below instead

            var position = ExecuteMarketOrder(TradeType.Buy, Symbol, 1000).Position;
            position.ModifyTakeProfitPrice(_fractalup);
            position.ModifyTakeProfitPrice(_fractaldown);

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 14:56

Hi Asen,

Can you send a screenshot of what you see and you think is wrong?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 14:53

Hi Bjorn,

Thanks. Can you also tell us the platform and the cBot parameters used to reproduce this problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 14:48

Hi Bjorn,

No there is no other way.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 14:24

Hi Bjorn,

Can you post the complete cBot code?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 14:23

Hi Bjiorn,

You can try copying the settings file from the source computer. You can find it in C:\Users\User\AppData\Roaming\broker cTrader\Settings. Paste it in the same destination at the target computer. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 10:02 ( Updated at: 21 Dec 2023, 09:21 )

Hi Asen, 

I tried it but I do not see any problem. See below

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 09:53 ( Updated at: 21 Dec 2023, 09:21 )

Hi FireMyst,

Here is your problem

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 09:48

Hi calgodemo,

It seems that the code you shared is not complete. There are no dots drawn on the chart using the posted indicator.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 09:32

Hi office3131,

Thank you for contacting Spotware. Can you please explain why do you think the results are wrong?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Jun 2019, 09:24

RE:

FireMyst said:

HI @Panagiotis:

Before sharing code, since the PID was given in the log output from cTrader, is your team able to look it up in any "transaction logs" to see what, if anything, was logged on the server?

Or is that something I can pass along to Pepperstone, and then they would contact Spotware to find out more?

Thank you,

 

Hi FireMyst,

To investigate the reasons for the specific position you need to go through Pepperstone. They are in charge of their execution. Regarding the code sample, I will need the complete cBot and steps to reproduce. Since I do not see any obvious reason for a technical error, I might need to forward to the QA team for further investigation. Btw a more proper way to round prices is the following

Math.Round(price, Symbol.Digits)

Best Regards,

Panagiotis


@PanagiotisCharalampous