Replies

ctid233655
10 Aug 2016, 15:51

That's what it says, Opentime.

 

Let's see:

daily = MarketData.GetSeries(TimeFrame.Daily);

dailyHigh = daily.High.Last(0)

 

At what time did it happened?

 


@ctid233655

ctid233655
21 Jul 2016, 02:31

cTrader's Network

Why don't they save the Workspaces locally?

 

Why are they using a cloud feature that only brings problems and doesn't bring any valued added? If they save the Workspaces locally like you do with templates them there's no need for it.

 

They are overloading the network with something that's totally unnecessary in a game where speed is the essence.

 

Terrible, terrible. Terrible!

 

The loading times are terrible. It can take minutes to load while the application hangs.

 

What kind of software solution is this?


@ctid233655

ctid233655
19 Jul 2016, 00:12

RE:

nealkaplan said:

MACD Zero line cross over indicator. Anyone know of a good one?

Thanks

 

Hey, Where did you get that idea?

 


@ctid233655

ctid233655
30 Jun 2016, 03:28

Problem solved.

The previous code works on a cbot as well.

The problem is that you need to initialize the previous values in the _dataSeries up to the number of periods in the Moving average. Otherwise you'll have to wait until the number of periods have gone by which in higher timeframe charts might be a very long time.

 

 


@ctid233655

ctid233655
29 Jun 2016, 13:16

This is the IndicatorDataSeries platform example:

//  The following example is the calculation of the simple moving average
//  of the median price


[Output("Result")]
public IndicatorDataSeries Result { get; set; }
private IndicatorDataSeries _dataSeries;
private SimpleMovingAverage _simpleMovingAverage;


protected override void Initialize()
{
    _dataSeries = CreateDataSeries();
    _simpleMovingAverage = Indicators.SimpleMovingAverage(_dataSeries, 14);
}
public override void Calculate(int index)
{
    _dataSeries[index] = (MarketSeries.High[index] + MarketSeries.Low[index])/2;
    Result[index] = _simpleMovingAverage.Result[index];
}
 

This works well in an indicator but it doesn't seem to work in a cBot.


@ctid233655