Topics
Replies
Spotware
04 Mar 2015, 17:58
Perhaps a relevant question that you can answer. Do all indicators (custom or otherwise) change value on each tick, despite not being accessed, used or otherwise referenced in OnTick()? My indicators work fine when placed on a sheet, but the robot version of them sees different value.
Indicators in cBots are lazy, they are calculated when cBots gets their values.
My question then is does customIndicator.Last(1) refer to the previous tick rather then the last bar when called in OnBar()
Last(index) method takes a value by index from the end of data series. It is not about ticks.
@Spotware
Spotware
03 Mar 2015, 15:41
Dear Trader,
The following links could help you:
You can also post questions on the cTDN Forums for help from cAlgo developers community.
@Spotware
Spotware
03 Mar 2015, 15:32
We can recommend you to contact one of our Partners or post a job in Development Jobs section.
@Spotware
Spotware
03 Mar 2015, 15:23
Spotware team doesn't provide cBot development support any more. We can recommend you to contact one of our Partners or post a job in Development Jobs section.
@Spotware
Spotware
03 Mar 2015, 15:21
Dear Trader,
Thank you for the suggestion. We will consider it. Additionally you can post it to vote.spotware.com.
@Spotware
Spotware
03 Mar 2015, 15:11
You can find an example there:
https://msdn.microsoft.com/en-us/library/ezwyzy7b.aspx
@Spotware
Spotware
03 Mar 2015, 15:10
Hi Spotware, Do we have an ETA when we will have Protection Settings for Pending Orders.
A lot of the Ctrader users are retail traders and we don't have the luxury to sit in front of the trading software from work. It would be really helpful if we can implement the aforesaid feature.
If the feature is unavailable in the near feature, if you guys can come up with a CBOT code that simulates the feature, that would be great.
Something like a CBOT that monitors any open positions and provide the trailing features based on the user input parameters.
Dear Trader,
This feature will be available in the future. We apologize that we cannot promise an ETA at this point. Currently we do not plan to provide a cBot with such functionality. You can write such cBot yourself or contact professional developers: /consultants/, /jobs/
@Spotware
Spotware
05 Mar 2015, 11:28
RE:
lec0456 said:
If you use synchronous methods like ExecuteMarketOrder, ClosePosition, etc., there is no need to check the executing property. If you use asynchronous methods like ExecuteMarketOrderAsync, ClosePositionAsync, etc., you can check IsExecuting property of TradeOperation object:
@Spotware