Topics
Replies
Spotware
24 Feb 2016, 15:42
Dear Trader,
Please have a look at the "Email Notifications" section of our Support site.
@Spotware
Spotware
24 Feb 2016, 15:38
Dear Trader,
Please have a look at the following code snippet and at the API Reference section of cTDN.
double balance = Account.Balance; string currency = Account.Currency; double equity = Account.Equity; double freemargin = Account.FreeMargin; double margin = Account.Margin; double? marginlevel = Account.MarginLevel; int leverage = Account.Leverage;
@Spotware
Spotware
24 Feb 2016, 15:31
Dear Trader,
Please have a look at the "Referencing a dll" section of the API Programmers Guides.
A simple search using any search engine will show you several tutorials on how to create your own library.
@Spotware
Spotware
24 Feb 2016, 15:25
Dear Trader,
We kindly ask you to optimize your code and try to use as less loops as possible on the Calculate method.
The Calculate method is called for each historic bar starting from the beginning of the series up to the current bar and then on each incoming tick. In the case of multi-symbol / multi-timeframe implementation, it will be called on each tick of each symbol that is used in the indicator.
@Spotware
Spotware
24 Feb 2016, 14:57
Dear Trader,
Thank you for your suggestion. We will consider it. Additionally, you can vote for your suggestion at: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/6495226-modify-volume-of-a-position
@Spotware
Spotware
24 Feb 2016, 14:53
Dear Trader,
We would like to inform you that we do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware
Spotware
24 Feb 2016, 14:46
Dear Trader,
You can compare the values of the IndicatorDataseries, but not the IndicatorDataseries with each other.
Please have a look at the following code snippet:
public ExponentialMovingAverage ema; protected override void Initialize() { ema = Indicators.ExponentialMovingAverage(Source, Periods); } public override void Calculate(int index) { Result[index] = 1; if (Result[index] < ema.Result[index]) Print("Successful"); }
@Spotware
Spotware
24 Feb 2016, 14:20
Dear Trader,
As said, we see that you loop from 0 to the index and you print on the log. This code snippet consumes a lot of memory, and CPU usage according to the frequency the Calculate method is called. We kindly ask you to check your code again.
We kindly ask you to be careful when using loops in the Calculate() Method. This method is called for each historic bar starting from the beginning of the series up to the current bar and then on each incoming tick.
@Spotware
Spotware
17 Feb 2016, 17:13
Dear Traders,
Thank you for your suggestion. We will consider it. Additionally, you can post your ideas/suggestions to http://vote.spotware.com/
@Spotware
Spotware
17 Feb 2016, 16:53
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
17 Feb 2016, 16:46
Dear Trader,
Thank you for your suggestions. We will consider them. Additionally, you can vote for range bars at: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/5545131-does-everyone-trade-time-based-charts-would-anyo
@Spotware
Spotware
24 Feb 2016, 16:09
Dear Trader,
Could you please send us a video at troubleshooting@spotware.com showing your issue?
@Spotware