Replies

PanagiotisCharalampous
19 Sep 2018, 10:55

Hi thriscio,

You can set the source of an indicator to any source as long as it is a DataSeries type. IndicatorDataSeries type derives from DataSeries so you can use another indicator's result as an input to EMA.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2018, 10:46

Hi Allan,

Ok I understand now. My suggestion is to program your logic on OnTick() and keep track that an order has been placed in order not to create multiple subsequent orders being placed. You can use a flag for this and reset it whenever you want new orders to be placed.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2018, 10:43

Hi,

You can try something like this

var profitToday = History.Where(t => t.SymbolCode == Symbol.Code && t.ClosingTime.Year == DateTime.Now.Year &&  t.ClosingTime.DayOfYear == DateTime.Now.DayOfYear).Sum(t => t.NetProfit);

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2018, 10:08

Hi procumulative@gmail.com,

1) I have emailed you about the TeamViewer session but got no reply yet.

2) There are many factors taken in mind when setting priorities, not only popularity amongst users. Can you advise which other platform offer this feature?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2018, 09:53

Hi ctid362150,

As the message indicates, the market was closed. Market hours are defined by the brokers. You should consult with your broker regarding this issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2018, 18:01

Hi anthony21xu,

It is not easy to advise how to use a 500 lines cBot we did not write. Did you try contacting the cBot's creator?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2018, 14:12

Hi Allan,

I noticed that the code is executed in OnBar() so I would not expect accuracy in the order placement. It is still not clear to me why you do not place the limit order at the exact price you want since you already know the desired entry price beforehand.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2018, 09:36

Hi zedodia,

An option is to ask a Consultant to do this for you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2018, 09:32

Hi cerradus@gmail.com,

Can you post your full cBot code? Also, is there a reason that you don't just place the limit order on position opening but you wait the price reach that level? 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2018, 09:26

Hi Frank,

Did you address this issue to ICMarkets? They have a complete view of the execution chain and they should be able to explain what happened.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2018, 09:20

Hi,

What kind of help do you need? Calculating today's net profit?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 17:18

Hi nordic,

I could not reproduce such an issue. cBots should work in backtesting even if compiled in VS.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 14:06

Hi Sasha,

We plan to add this feature as well.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:58

Hi Sasha,

You will need to create a custom indicator for this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:54

Hi Patrick,

We checked this and indeed there is a delay. However it is does not seem so severe as you describe and since cTrader 3.0 will be released soon, we will not fix this on the current version. cTrader Web 3.0 does not seem to have such an issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:49

Hi Lavio,

The obsolete warning warns developers that there is a newer and better method implementing this functionality. If you don't want to bother updating your code, it does not mean that other developers should not be informed about this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:43

Hi cerradus@gmail.com,

The conditions are wrong in both cases. In the case of Buy position < should become > and in the case of Sell position Symbol.Bid - posi.EntryPrice should become posi.EntryPrice - Symbol.Bid.

Let me know if this helps.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:37

Hi Andreas,

As the message suggests, probably there was reconciliation taking place. Do you still have any issues?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:32

Hi John,

Where does this happen exactly? Can you send me a screenshot?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2018, 12:29

Hi procumulative@gmail.com,

This feature has not been planned yet. We will consider it for future releases of cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous