Topics
Replies
Spotware
24 Jun 2015, 15:55
Dear Trader,
An open position doesn’t have a closing time therefore we do not provide ClosingTime. Once the position is closed it will be removed from the Positions list. In the History tab it is available because it shows the time that a position was closed. The following code snippet shows how to retrieve the closing time of a closed position, which is considered a historical trade:
ExecuteMarketOrder(TradeType.Buy, Symbol, 10000, "mylabel"); ClosePosition(Positions.Find("mylabel")); HistoricalTrade hist = History.FindLast("mylabel"); Print("Position closed at: ", hist.ClosingTime.ToString());
We hope this helps you.
@Spotware
Spotware
24 Jun 2015, 15:22
Dear Trader,
Currently it is not possible to change the color of the indicator in the way you were trying to change it. However please take a look at the following indicator: /algos/indicators/show/265
He hope this helps you.
@Spotware
Spotware
24 Jun 2015, 10:05
Dear Trader,
We do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware
Spotware
23 Jun 2015, 14:21
Dear Trader,
Thank you for your detailed suggestions. We will consider them. Additionally you can post your ideas/suggestions to http://vote.spotware.com/
@Spotware
Spotware
23 Jun 2015, 14:06
Dear Trader,
You have the ability to change your username by performing the following steps:
-
Log in to the Spotware Connect (use cTDN login information)
-
Click your account shown in the right top corner and select “Change cTrader ID”.
- Insert a username of your choice.
@Spotware
Spotware
23 Jun 2015, 12:58
Dear Trader,
It is possible to store a return value of a method in a variable, or print it to the log. The following code snippet illustrates it.
private double Example(int temp1, int temp2) { double temp3 = 0; //do some calculations return temp3; } double divide = Example(10,20); Print("", Example(70, 10));
We hope this helps you.
@Spotware
Spotware
23 Jun 2015, 12:12
Dear Trader,
We do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware
Spotware
22 Jun 2015, 16:46
Dear Trader,
Please check the following link: /api/reference/internals/marketdata
It provides you information regarding the MarketData. For your information it is in our plans to update the API documentation in the future. Stay tuned.
@Spotware
Spotware
22 Jun 2015, 16:43
Dear Trader,
Please take a look at the following indicator which calculates USDX and EURX indices: /algos/indicators/show/459
Regarding the other parts of your question, you cannot draw candle sticks and you cannot replace the priceline with a custom priceline.
@Spotware
Spotware
22 Jun 2015, 16:15
Dear Trader,
Currently we do not support Microsoft Visual Studio 2015 editions. It is in our plans to support these editions too. Supported editions are 2010, 2012, 2013.
You cannot use an express edition of Visual Studio because express editions do not support extensions.
@Spotware
Spotware
22 Jun 2015, 14:27
Dear Traders,
Please take a look at our updated cMirror help guide which now covers more topics: http://help.spotware.com/cmirror
@Spotware
Spotware
19 Jun 2015, 17:46
Dear Trader,
Thank you for your suggestion. We will consider it. Additionally you can post your ideas/suggestions to http://vote.spotware.com/
@Spotware
Spotware
19 Jun 2015, 17:45
Dear Trader,
A download of .csv file is not possible. However please take a look at the following link: /algos/cbots/show/591
@Spotware
Spotware
25 Jun 2015, 10:16
Dear Trader,
The value cannot be printed in the way you wrote the method because the Print(…) method is written after the return statement of the method. Please note that we do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware