
Topics
Replies
PanagiotisCharalampous
18 May 2018, 11:56
Hi GammaQuant,
Unfortunately you cannot tell for which Symbol was the OnTick() called.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2018, 09:29
Hi FMogyi,
This information is currently not available in cAlgo.API. It will be added in the future.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 May 2018, 17:09
Hi Henry,
OnPendingOrdersCreated will be executed after every order creation.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 May 2018, 16:42
Hi Henry,
Move this line of code in the OnStart() method. As it is, it subscribes again on every tick and that is why you are getting multiple executions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 May 2018, 14:46
Hi warren,
Thanks for posting in our forum. It would be helpful if you could share with us the link to the indicator so that we can try as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 May 2018, 15:26
Hi,
Unfortunately this is not possible in cAlgo. Outputs have to be fixed.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 May 2018, 12:44
Hi megha,
If you wish to unsubscribe from market data you should use MsgType(35)=V and tag 263=2.
Let me know if this helps,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 May 2018, 09:17
Dear Trader,
Unfortunately this is not possible. Currently it is not possible to choose where to install cTrader and cAlgo.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 17:16
Hi nicdanzac,
Try to copy the code into a new cBot and build it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 16:26
Hi Simon,
Without a cBot that we can use to reproduce the problem, it is very difficult to determine the cause of the problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 16:13
Hi simon,
Can you share your cBot code with us so that we can try it as well?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 15:09
Hi ceakuk,
This is currently not available.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 12:15
Hi thoy1,
Try
PendingOrders.Count(x => x.TradeType == TradeType.Buy)
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 09:11
Hi lec0456,
This feature has not been included in the first release of cTrader 3.0. It is going to be restored in one of the next updates.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2018, 09:09
Hi pogostick,
Most probably the reason is that CheckMarketTrend() changes value when called every time from the OnTick method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 May 2018, 10:00
Hi Sasha,
MarketSeries.Open.Last(0) and MarketSeries.Close.Last(0) show the values of the current bar. When on OnBar() both values will be identical since the bar has just opened. If you want the previous bar's value, use MarketSeries.Open.Last(1) and MarketSeries.Close.Last(1).
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 May 2018, 09:54
Hi hurtubey,
Thanks for posting in our forum. Is it possible to take a shot video demonstrating this behavior so that I can send it to the product team?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 May 2018, 09:47
Hi thriscio,
The roll out stage is in progress. We have already deployed cTrader 3.0 to some brokers. It should arrive soon to your broker as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 May 2018, 09:44
Hi jelle2500,
See below
if(AllowBuy1 || AllowBuy2) { // Execute Buy Order } if(AllowSell1 || AllowSell2) { // Execute Sell Order }
Let me know if this is what you are looking for.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2018, 09:16
Dear thongbaogiaodich,
A millisecond contains 10000 ticks. Therefore, you will have a difference. Read more here.
Best Regards,
Panagiotis
@PanagiotisCharalampous