Topics
16 Nov 2023, 07:42
 1088
 1
15 Nov 2023, 10:36
 1967
 16
Replies

Spotware
03 Jan 2014, 09:33

Workspaces will be available in cTrader. Thank you for your feedback.


@Spotware

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
02 Jan 2014, 09:31

RE: On Positions Modified

Not yet but we will include an event for positions being updated.

jeex said:

I cannot find if there is a OnPositionsModified. Would come in handy for my Semi-robots.

 


@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, 16:14

The reason for this is probably the absence of prices at the time. If you use GetIndexByTime this will return the index of the bar of the previous open time if the open time passed in the parameter does not exist.


@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, 14:27

If the referenced indicator is using ChartObjects then it will be displayed in the robot but plotting an IndicatorDataSeries is not yet supported. We will add this feature in future releases.


@Spotware

Spotware
30 Dec 2013, 12:05

We plan to add parameters of enum type in robots/indicators then you will be able to do this. At the time being the best way to code this is as you have done with integer.


@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.

x

Any 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
27 Dec 2013, 17:42

Can you tell us what exactly you find to be inconvenient with cTrader? 


@Spotware

Spotware
26 Dec 2013, 11:10

If you are looking for a professional to code your indicator or robot, the service providers below can deliver clean, robust solutions for cAlgo and cTrader:

/consultants/


@Spotware

Spotware
26 Dec 2013, 09:15

Indexes from different symbols are different. You should always use GetIndexByTime or GetIndexByExactTime to get index by open time.


@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
24 Dec 2013, 14:05

We will contact you by email to troubleshoot this issue.


@Spotware

Spotware
23 Dec 2013, 15:52

Trade.Close is a method of old trading API. If you want to close position partially please use ClosePosition method.

Example:

ClosePosition(position, 10000);

 


@Spotware

Spotware
23 Dec 2013, 13:00

We recommend to use Windows 7. Windows 8.1 also works properly but Windows 8 has a problem with rendering of charts.


@Spotware

Spotware
23 Dec 2013, 10:23

We decided to add such function in future releases. Stay tuned.


@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