Topics
16 Nov 2023, 07:42
 1103
 1
15 Nov 2023, 10:36
 1979
 16
Replies

Spotware
23 May 2014, 09:02

Currently it is not possible. You can post your idea to vote.spotware.com


@Spotware

Spotware
22 May 2014, 17:54

Dear Trader, 

Please vote for your favorite features on vote.spotware.com


@Spotware

Spotware
22 May 2014, 17:29

No, it is not true. We are preparing new fancy features which you cannot find in legacy platforms. Stay tuned.


@Spotware

Spotware
22 May 2014, 17:23

Such functions will be added to Open API soon.


@Spotware

Spotware
22 May 2014, 15:44

Yes, backtester automatically handles daylight savings for the historical dates.


@Spotware

Spotware
22 May 2014, 14:08

We are currently investigating this issue.


@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:46

It is possible to specify Label or Comment only when you execute market order or place pending order.


@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:38

You can not change such alignment. We can only propose you to write custom indicator which will aggregate H4 bars from H1 bars using your alignment.


@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, 12:01

RE: RE: RE:

breakermind said:

Hi,

how to check the name of the broker from robot?

Regards

Property Account.BrokerName will be added in next release.


@Spotware

Spotware
20 May 2014, 09:35

System timers are not recommended because cAlgo.API isn't thread safe. We will add OnTimer event in next version of cAlgo which is supposed to be released in couple of weeks.


@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:42

Properties Account.Number and Account.BrokerName will be available in next version of cAlgo. We are going to release it in 2 weeks.


@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:15

RE:

WinningTrader said:

Do I need to use a For Loop to traverse each value or is there a way out - 

 

Pls help -

 

 

Yes, you need to use For loop. There is no such shortcuts in cAlgo.API.


@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
19 May 2014, 12:55

Next release will be available in couple of weeks


@Spotware