Topics
Replies
Spotware
14 Apr 2014, 09:39
You can specify label and comment in ExecuteMarketOrder, PlaceLimitOrder and PlaceStopOrder methods. If you would like to modify label and comment after that please post your idea to vote.spotware.com.
@Spotware
Spotware
10 Apr 2014, 09:12
RE: Statement
breakermind said:
Spotware said:
breakermind said:
Hi,
how to retrieve the history of closed positions from calgo robot?
bye
you can use History collection
Hi,
HOW ?
and what the label?
can I generate Statement from robot?
really could not read the history of the position from the robot (it is a joke unless)?
PS.
If I see again "We will add this in the future."
I walk out of here and never come back ...
You can iterate through History collection:
foreach (HistoricalTrade trade in History) { Print("EntryTime: {0}, ClosingTime: {1}, Profit: {2}", trade.EntryTime, trade.ClosingTime, trade.NetProfit); }
@Spotware
Spotware
09 Apr 2014, 14:33
RE: Limiting negative slippage
breakermind said:
It is possible set slippage in cAlgo Robots ?
Slippage can be either positive or negative. Positive slippage means that the execution price is better than the reference price (never seen on *Moderated*), and negative slippage means that the execution price is worse than the reference price (Allways seen on *Moderated*).
Regards
You can use market range parameter of ExecuteMarketOrder function
@Spotware
Spotware
09 Apr 2014, 11:07
It is not possible at the moment. You can post your feature request to vote.spotware.com.
@Spotware
Spotware
08 Apr 2014, 17:02
It is not possible at the moment. You can vote for this feature there: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/5502949-custom-parameters
@Spotware
Spotware
04 Apr 2014, 13:55
RE:
rkokerti said:
You mean if operation failed, I need to use OnTick method to repeat the functionality of OnBar?
Thanks in advance!
Yes, you can use OnTick method to repeat the failed trade. You can also do Thread.Sleep in OnBar method and then repeat the failed trade.
@Spotware
Spotware
04 Apr 2014, 08:50
Thank you for this bug report. In order to troubleshoot this issue we need your assistance. Please answer to the following questions:
- Is it reproducible?
- Which API method do you use to place Stop orders?
- From which method do you call it (OnTick, OnBar, callback, etc)?
- Is it possible to send us code of your cBot? (engage@spotware.com)
@Spotware
Spotware
04 Apr 2014, 08:44
Thank you for your idea, we will consider it. Additionally, you can post your idea to vote.spotware.com
@Spotware
Spotware
14 Apr 2014, 09:47
We can not reproduce such memory leaks by using our built-in samples.
Please review code of your cBots and Custom Indicators and try to find memory leaks there.
@Spotware