Replies

jumpycalm
09 Sep 2019, 17:39

RE:

Panagiotis Charalampous said:

Hi jumpycalm,

See below

            var buyTotalVolume = Positions.Where(x => x.TradeType == TradeType.Buy).Sum(x => x.VolumeInUnits);
            var sellTotalVolume = Positions.Where(x => x.TradeType == TradeType.Sell).Sum(x => x.VolumeInUnits);

Best Regards,

Panagiotis

Very helpful, thank you for the quick response!


@jumpycalm

jumpycalm
08 May 2019, 17:28

RE:

Panagiotis Charalampous said:

Hi,

At the moment the formula to retrieve previous bars is the following

Backtesting start date - 100 * minutes in timeframe - 3 days

If your indicator needs more data than that, then you will have this issue. However we are looking into changing this behavior in the future.

Best Regards,

Panagiotis

Thank you Panagiotis for your prompt reply. I will just select earlier dates as a workaround for now.


@jumpycalm

jumpycalm
02 May 2019, 04:38

Seriouely nobody from cTrader team takes a look at this issue?


@jumpycalm

jumpycalm
23 Apr 2019, 16:43

For you guys who is planing to develop on Visual Studio 2019. I tried the workaround the first day Visual Studio 2019 came out but no success. Looks like we have to wait for cTrader's official support on Visual Studio 2019.


@jumpycalm

jumpycalm
23 Apr 2019, 16:39

RE:

Panagiotis Charalampous said:

Hi touch.mjb,

Trailing stop losses in cTrader are executed on the server side. Just check the Trailing Stop check box in the Create Order form and set your stop loss as usual.

Best Regards,

Panagiotis

Hi Panagiotis, I think touch.mjb was asking about the cAlgo API, not how to open a server side trailing stop from cTrader manually. From my understanding. Currently cAlgo API does not support server side trailing stop. The only way to implement trailing stop in cAlgo is to write your own logic for trailing stop. Am I correct?


@jumpycalm

jumpycalm
29 Mar 2019, 00:00

RE:

+1 "You forgot the color picker, date time picker, and time picker parameters."

afhacker said:

You forgot the color picker, date time picker, and time picker parameters.

If you allow us to iterate over all open charts and each chart attached indicators, objects, and cBots, that will be a really huge thing and it will open the door for lots of new exciting stuff.

We should be able to remove an indicator/cBot from a chart or start/stop the indicator both via an indicator and cBot (this feature must be available for all chart objects inside "Charts" collection, not just the indicator/cBot current chart).

The other cool feature will be adding a new section to indicator/cBot parameters window that allows the user to change the indicator/cBot time zone, so the programmer will be able to set a default time zone via the Robot/Indicator attributes TimeZone property but the user must be able to change that default time zone on indicator/cBot parameters window, you can add a new section like "Outputs" in indicator parameters window for that.

The Chart object must have a "Close" public method, so whenever you call the method it will close the chart.

 


@jumpycalm

jumpycalm
28 Mar 2019, 23:14

[Output("Sell", LineColor = "#FF0000")]//red

Can be replaced with:

[Output("Sell", LineColor = "Red")]


@jumpycalm