Topics
Replies
Spotware
22 May 2014, 17:54
Dear Trader,
Please vote for your favorite features on vote.spotware.com
@Spotware
Spotware
22 May 2014, 09:21
RE: Encrypted code and manage references
kricka said:
Hi,
When you encrypt the source code the Manage References is not available. Is there a way to get around it or is it not possible? It would be nice if an encrypted code still could use the Manage References.
Thanks..
Please specify what do you mean by saying "encrypted code".
@Spotware
Spotware
22 May 2014, 09:20
cAlgo updates API objects between invocations of user's handlers.
While your code is executing cAlgo doesn't update any API objects. In next version of cAlgo we will add RefreshData() method. RefreshData() method will allow you to refresh state of all API objects explicitly. Probably next version of cAlgo will be released in couple of weeks.
@Spotware
Spotware
21 May 2014, 09:42
You need to specify an index.
fastMa = Indicators.MovingAverage(SourceSeries, FastPeriods, MAType); slowMa = Indicators.MovingAverage(SourceSeries, SlowPeriods, MAType); .. var currentSlowMa = slowMa.Result.Last(0); var currentFastMa = fastMa.Result.Last(0); var previousSlowMa = slowMa.Result.Last(1); var previousFastMa = fastMa.Result.Last(1); if (previousSlowMa > previousFastMa && currentSlowMa <= currentFastMa ...
@Spotware
Spotware
21 May 2014, 09:25
Instead of AccessRights.None you need to specify AccessRights.Internet or AccessRights.FullAccess. You can find more information at /api/guides/access_rights
@Spotware
Spotware
20 May 2014, 09:32
RE: RE:
shatch said:
Spotware said:
I read that this functionality is available and used the MarketData.GetSeries("XXXXXX", TimeFrame) function but my backtest crashed and gave me a message that this is 'not yet' available for backtests.
Is this function available during live trading?
We have plans to support GetSeries in backtesting. You are able to use it during live trading.
You can vote for this feature there: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/5435043-multi-currency-backtesting.
Also is there a way of knowing the status of the market data coming in, ie whether it is historical or live ticks? NinjaTrader for example uses the boolean 'Historical' keyword, does CBot have anything similar?
MarketSeries object contains historical data. However last item in MarketSeries is a live trendbar. You can also read current prices from Symbol object.
Hello,
Can you please confirm that cAlgo Demo backtesting will allow you to trade multiple currency pairs as part of your cBot strategy. This will be a critical factor to determine if I will leave MetaTrader.
Thank you
Steve
cAlgo backtesting doesn't support multi-symbol cBots. We plan to support such functionality in the future.
@Spotware
Spotware
19 May 2014, 15:29
RE:
WinningTrader said:
can we request you to kindly make this feature available in Future -
To enable access . to historical Market series between two Index Values . .
You can post your idea to vote.spotware.com
@Spotware
Spotware
19 May 2014, 15:08
Fixed interval in minutes:
protected override void OnTick() { DateTime? lastPositionClosingTime = null; if (History.Count > 0) { lastPositionClosingTime = History[History.Count - 1].ClosingTime; } if (lastPositionClosingTime == null || lastPositionClosingTime.Value - Server.Time >= TimeSpan.FromMinutes(10)) { // Your logic to open positions } }
@Spotware
Spotware
23 May 2014, 09:02
Currently it is not possible. You can post your idea to vote.spotware.com
@Spotware