Topics
16 Nov 2023, 07:42
 1110
 1
15 Nov 2023, 10:36
 1987
 16
Replies

Spotware
29 Oct 2014, 09:34

You can use the following code snippet:

var shortPositionsCount = Positions.Count(p => p.TradeType == TradeType.Sell);
var longPositionsCount = Positions.Count(p => p.TradeType == TradeType.Buy);

 


@Spotware

Spotware
29 Oct 2014, 09:30

Is tick data being downloaded from broker server to user's computer? if yes, where can i find them? if no, would like to know how reliable is tick data backtest in calgo. afaik, in mt4, tick data has to be downloaded locally so not sure if calgo does the same?

cAlgo automatically downloads tick data from Spotware's servers. Tick data is broker specific. Tick data is 100% reliable because it contains every tick. You can find tick data on your machine in the following directory:

C:\Users\%UserName%\AppData\Roaming\%BrokerName%-cAlgo\BacktestingCache\Ticks

and it also seems like users need to be connected to the internet to run a backtest, why?

We plan to remove this restriction in the future. Thank you for your feedback.


@Spotware

Spotware
29 Oct 2014, 09:18

Dear Trader,

Unfortunately due to contractual agreements, we cannot distribute a list of brokers/banks that offer cTrader.


@Spotware

Spotware
29 Oct 2014, 09:16

RE: Disconnecting Issue

jobenb said:

Hi Spotware

 

Today I noticed another time when the cAlgo platform keeps on disconnecting from the server, and that is whenever I try and optimize more than 3 currency pairs at the same time. I have resources set at 12% per optimization. It tries to connect a few times and then after a while it just seems to give up trying and the red dot stays next to the account number.

Are you currently working on this issue or is it pushed back in the queue?

Thank you.

Does the problem still persist? Could you please send environment details (live/demo, broker name) to troubleshooting@spotware.com?


@Spotware

Spotware
27 Oct 2014, 12:53

Try to find "2c72cc50-6c69-4b16-b1f4-ab470673f284"


@Spotware

Spotware
27 Oct 2014, 11:06

You need to remove one registry key:

/forum/calgo-support/3659


@Spotware

Spotware
27 Oct 2014, 09:42 ( Updated at: 21 Dec 2023, 09:20 )

Dear Traders,

You can save and load parameters (including cBots) using Workspaces:


@Spotware

Spotware
27 Oct 2014, 09:33

RE:

felipetto said:

Can I set the visibility of the indicator at runtime?.. starting visible and then hide (vice-versa)!

You can use PlotType.DiscontinuousLine


@Spotware

Spotware
27 Oct 2014, 09:24

RE: RE:

felipetto said:

Spotware said:

If you don't want to expose DataSeries from indicator, you don't need to use Output attribute. But in this case you need to initialize DataSeries manually using CreateDataSeries method:

        [Output("VisibleDataSeries")]
        public IndicatorDataSeries VisibleDataSeries { get; set; }

        private IndicatorDataSeries HiddenDataSeries;

        protected override void Initialize()
        {
            HiddenDataSeries = CreateDataSeries();
        }

 

Can I set the visibility of the indicator at runtime?.. starting visible and then hide (vice-versa)!

You can use PlotType.DiscontinuousLine


@Spotware

Spotware
27 Oct 2014, 09:21

Hello MaRCHeW,

Did you remove another version of Visual Studio previously?


@Spotware

Spotware
24 Oct 2014, 09:27

Probably database is the bottleneck. You can try the following things:

  • Do not establish database connection on every query. Instead of that you can establish database connection in OnStart method and drop it in OnStop method
  • Install database on your machine, instead of connecting to remote one
  • Try other database engines. There is a chance that this problem is specific for mysql.

@Spotware

Spotware
24 Oct 2014, 09:22

The following code snippet could help you:

            var directionalMovementSystem = Indicators.DirectionalMovementSystem(21);
            var emaOverADX = Indicators.ExponentialMovingAverage(directionalMovementSystem.ADX, 14);

 


@Spotware

Spotware
24 Oct 2014, 09:08

The application error occurred, we will check it. Thank you for your report.


@Spotware

Spotware
23 Oct 2014, 12:22

RE: RE: RE:

oktrader said:

Spotware said:

You can adjust number of CPU cores used for optimization: http://help.spotware.com/calgo/cbots/optimization#resources

That resource slider changes number of threads used for optimization. 100% value means that number of threads will be the same as number of cores.

 

Is cAlgo able to use HyperThreading technology? For example, like in this Intel Core i7-5820K. Or the resource slider just recognize physical cores?

It uses logical cores as well. You can note that resource slider allows you to change resources by fixed step. Number of steps is the number of cores.


@Spotware

Spotware
23 Oct 2014, 12:18

We already plan to implement it in the future. Thank you for your request.


@Spotware

Spotware
23 Oct 2014, 12:17

Thank you for your idea, we have added this feature to our roadmap.


@Spotware

Spotware
23 Oct 2014, 12:14

RE:

TETL said:

that didn't work. new folders appeared but charts and list of bots/ indicators are still missing. It's running fine on win7 but on this computer I have xp - could that be causing this?

We don't have any compatibility issues with Windows XP. You can try to move documents folder to a different place and run cAlgo again. Very long file path could be a reason of such problems.


@Spotware

Spotware
23 Oct 2014, 11:51

RE:

AlexanderRC said:

Better yet some kind of a public API into backtesting engine or optimizer itself.

We will consider both interfaces: API exposed from .NET dll and command line arguments. Thank you for your ideas.


@Spotware

Spotware
22 Oct 2014, 09:48

RE: RE: RE: RE:

TETL said:

Spotware said:

TETL said:

I have the same problem.

Already re-installed cAlgo, tried creating new/ installing cBots but all it does is it creates a new folder in the cAlgo directory. Nothing changes in the applicaton itself - can only see empty frames and menu buttons.

If you have a solution please share it. thanks

Please press Shift+Ctrl+Alt+T, it will send us troubleshooting information.

I have just now as well as 24hrs ago. Please can you check

We checked your troubleshooting report. Unfortunately, we cannot find any issue. Please try to do the following:

  1. close cAlgo and cTrader
  2. copy Documents\cAlgo folder to another place (perform backup operation)
  3. remove Documents\cAlgo folder
  4. start cAlgo

Does it help?


@Spotware

Spotware
22 Oct 2014, 09:36

Please press Shift+Ctrl+Alt+T. It will send us troubleshooting information.


@Spotware