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

PanagiotisCharalampous
10 Apr 2020, 07:42

Hi septumrar,

There is no such feature at the moment in cTrader.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Apr 2020, 07:41

Hi giuseppealessiof,

This message means that there are no tick data for that symbol for that period.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Apr 2020, 07:39

Hi uvwxyz,

Can you please provide us with exact steps to reproduce this behavior? If you could record a short video demonstrating this, it would be very helpful.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Apr 2020, 07:37

Hi alisalehicontact,

You can use Position.EntryTime property and compare it with Server.Time to decide if a position with be closed or not.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
10 Apr 2020, 07:35 ( Updated at: 21 Dec 2023, 09:22 )

Hi cysecsbin.01,

I tried that as well and seems to work fine.

 

Which broker do you use?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 13:36

Hi zoltan.f,

See an example below

            var ticks = MarketData.GetTicks(Symbol.Name);
            foreach (var tick in ticks)
            {
                Print(tick.Time);
            }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 12:29

Hi Luca,

Save the symbol you use in a global variable and use it for the calculation of your trailing stop variables.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 12:20

Hi Luca,

You seem to trade on another symbol but you use the values of the chart's symbol to calculate your trailing stop loss. That is obviously wrong.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 11:56

Hi mark_govender,

This behavior is by design. Chart objects are kept om the chart even if you change a symbol. If you need to set up a different symbol, you need to open a new chart.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 11:54 ( Updated at: 21 Dec 2023, 09:22 )

Hi cysecsbin.01,

I could not reproduce such a behavior. Instead I get an exception in the log. Did you debug it to find out what it is causing it?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 09:37

Hi firemyst,

See my response above.

 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 09:12

Hi calgodemo.

Coordinated Universal Time is not affected by Daylight Saving Time changes. Your local timezone, set by the operating system, does. Just google UTC time and you will find out that it is the same as in cTrader.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 08:37

Hi luke52e,

Your pc does not need to run for trades to be copied. All the copying process takes place on our servers.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 08:28

Hi mark_govender,

Can you please record a short video demonstrating this issue so that we can understand what you are actually doing.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 08:18

Hi Luca,

The code runs only on start. This is why it does not change. You need to put the login in OnTick().

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
09 Apr 2020, 08:12

Hi firemyst,

You cannot add them to the built-in enum. You will need to develop your own enum for this.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
08 Apr 2020, 17:03

Hi kittu.ce10,

Yes of course you can.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
08 Apr 2020, 16:47

Hi kittu.ce10

First observation. The below condition is wrong. 

if (rsi.Result.Last(0) > 70 && rsi.Result.Last(1) < 70)

When the bar changes both values will be almost the same. The comparison should be between Last(1) and Last(2). See below

if (rsi.Result.Last(1) > 70 && rsi.Result.Last(2) < 70)

Fix this and check again if it works as you expect.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
08 Apr 2020, 14:39

Hi kittu.ce10,

Can you send us some information like backtesting parameters and dates where you expect the events to happen but they don't so that we can explain to you what happens?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Apr 2020, 11:25

Hi Takis,

We managed to reproduce this issue and we will fix it in the next version of cTrader. If you need to have the actual number of MaxVisibleBars at any time and you need to get notified when this size changes, you can subscribe to Chart.SizeChanged event.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous