Topics
Replies
Spotware
02 Jan 2014, 11:24
You can now access it easier with the GetIndexByTime or GetIndexByExactTime methods:
DateTime date = MarketSeries.OpenTime.LastValue.Date; var firstBarIndex = MarketSeries.OpenTime.GetIndexByTime(date);
/api/reference/timeseries/getindexbytime-9d11
@Spotware
Spotware
02 Jan 2014, 10:17
RE: RE:
Now you can access it easier like this:
MarketSeries.Close.Last(5);
/api/reference/dataseries/last-870a
Cerunnos said:
Hyperloop said:
I know we can use MarketSeries.Close.LastValue to obtain the close value last bar, but how do we get the value of the close, say 5 bars ago?
Index = MarketSeries.Close.Count;
... MarketSeries.Close[Index-5]
@Spotware
Spotware
30 Dec 2013, 16:25
RE: RE:
oktrader said:
cAlgo_Development said:
In nearest future we plan to provide two options:
- Backtesting with tick-data from our server (maximum precision)
- Ability to use one minute data from external source
We will also consider an ability to use tick-data from external source.
Hi,
May I ask you why the ability to use one minute data from external source is available, but not the ability to backtest with tick-data from your server?
It seemed that you were going to update the two of them at the same time.
We will release this in the future.
@Spotware
Spotware
30 Dec 2013, 14:35
RE: ... does not exist
Any subscribed method has to be defined.
See the examples here:
/api/reference/positionclosedeventargs
/api/reference/positionopenedeventargs
jeex said:
Positions.Closed += PositionsOnClosed;Gives the error: PositionsOnClosed does not exist...
@Spotware
Spotware
30 Dec 2013, 11:55
( Updated at: 23 Jan 2024, 13:16 )
RE: RE:
bendyarm said:
Spotware said:
A new feature will be available in the next release of cAlgo: Backtesting with data from a CSV file.
xAny update on a release date yet?
Thanks
Backtesting with data from a CSV file has already been released.
[/forum/whats-new/1931]
@Spotware
Spotware
30 Dec 2013, 11:46
RE:
There are examples for Maximum here: /api/reference/functions/maximum-6dc9
Thank you for the feedback. We will add more examples to the API Reference.
jeex said:
It seems to me that the API reference is not really up to date any more. Lots of nice features are missing, like for example
MarketSeries.High.Maximum(periods)Many practical new solutions in cAlgo have te be searched for on the forum. But it's hard searching for things if one does not even know they exist.
Spotware: please update the API reference with the many fine answers and examples that you give in the forum threads.
@Spotware
Spotware
24 Dec 2013, 16:56
You have two ways to access current and previous values.
First way is to use indexes:
MarketSeries.High[MarketSeries.High.Count - 1] - current value MarketSeries.High[MarketSeries.High.Count - 2] - previous value
Second way is to use Last method of DataSeries class:
MarketSeries.High.Last(0) - current value MarketSeries.High.Last(1) - previous value
@Spotware
Spotware
23 Dec 2013, 10:11
RE:
lec0456 said:
With the new API, can you only enter your trade stop losses and takeprofits in pips? I tryed to use 7.5 pips and it seems its rounding to 8? You used to be able to put in a specific price for the SL and TP. If thats not going to be possible, the stoplosspips should accept at least one decimal place.
We are going to support decimal SL and TP in near future. At the moment you can use only integer number of pips.
@Spotware
Spotware
03 Jan 2014, 09:33
Workspaces will be available in cTrader. Thank you for your feedback.
@Spotware