Topics

Forum Topics not found

Replies

cAlgo_Fanatic
05 Aug 2013, 12:55

RE:
tilo10 said:

Hi all  can someone tell me if cTrader Platform can work on Androids phone ?

Now we support our application on mobile devices for:
1) Safari 6+
2) Chrome

 


@cAlgo_Fanatic

cAlgo_Fanatic
05 Aug 2013, 12:49

The parameter would be a type double property:

[Parameter]
public double Price { get; set; }

Then use this parameter in the methods that create the limit order requests instead of the calculation of the price based on the TakeProfitPips.

var request = new LimitOrderRequest(tradeType, Volume, Price)


It is recomended that you validate this input.


@cAlgo_Fanatic

cAlgo_Fanatic
05 Aug 2013, 11:18

It is not possible to drag the lines produced by an indicator.  You can only drag lines added manually on the chart.

For drawing straight lines you should use ChartObjects.DrawLine.


@cAlgo_Fanatic

cAlgo_Fanatic
02 Aug 2013, 17:52

You can use any of the cAlgo.API.Indicators in Robots by declaring, initializing and then accessing them by the given name.

An example with AverageTrueRange is such as this:

        // Declare
        private AverageTrueRange atrIndicator;

        [Parameter(DefaultValue = 20)]
        public int Period { get; set; }

        [Parameter("MA Type", DefaultValue = MovingAverageType.Simple)]
        public MovingAverageType MAType { get; set; }

        [Parameter(DefaultValue = 0.002)]
        public double ATRValue { get; set; }

        protected override void OnStart()
        {
            // Initialize
            atrIndicator = Indicators.AverageTrueRange(Period, MAType);            
        }

        protected override void OnTick()
        {            
            //If atrIndicator last value is greater than the ATRValue input
            if (atrIndicator.Result.LastValue > ATRValue)
            {
                //Do something
                Print("LastValue {0}", atrIndicator.Result.LastValue);
            }
            //...
        }




@cAlgo_Fanatic

cAlgo_Fanatic
01 Aug 2013, 11:38

The current validation of protection levels is not an error. It is intended to protect from scenarios where a position is live for a fraction of a second, generating an immediate loss. It is currently the standard way as well as it being the most logical implementation for protection defined in absolute values.

Changing protection to relative values will allow us to remove such validation. 

@cAlgo_Fanatic

cAlgo_Fanatic
31 Jul 2013, 17:53

RE: Update
GSFX said:

Any news regarding this feature implementation?

We are working very hard in order to release cMulti as soon as possible. 


@cAlgo_Fanatic

cAlgo_Fanatic
31 Jul 2013, 16:36

The option to export the backtesting resutls as well as live history data to excel has been released.


@cAlgo_Fanatic

cAlgo_Fanatic
31 Jul 2013, 16:28

 It will be implemented most probably this year, but not in the next few months.


@cAlgo_Fanatic

cAlgo_Fanatic
31 Jul 2013, 16:03

Please see /forum/suggestions/1225


@cAlgo_Fanatic

cAlgo_Fanatic
31 Jul 2013, 15:27

Only trade signals are sent to the server. cAlgo is installed on your local machine and everything is executed locally.


@cAlgo_Fanatic

cAlgo_Fanatic
30 Jul 2013, 16:07

Thank you for the kind words!
About the indicator it may be possible to create a custom indicator using the DrawLines method.
About adding volume to an existing position, it has been implemented and you will see it soon in one of the next releases.


@cAlgo_Fanatic

cAlgo_Fanatic
30 Jul 2013, 11:00

It is currently working properly from what we see so we need some more information from you 

in order to expedite this investigation.


You can send us the following information to engage@spotware.com

1. Account #

2. Time of occurence

3. Position Id's (if available)

Please include a link to this thread or the subject of the thread in your email.


@cAlgo_Fanatic

cAlgo_Fanatic
29 Jul 2013, 10:54

You can only add an indicator manually for the time being. We will add functionality for robots to draw indicators in the future.


@cAlgo_Fanatic

cAlgo_Fanatic
29 Jul 2013, 09:46

This error means that there is not enough memory for backtesting.
Try to free some memory by shuttiing down unnecessary applications from running simultaneously during backtesting.
We apologize for this inconvenience, in the next versions you will see the appropriate error message descriptions. 


@cAlgo_Fanatic

cAlgo_Fanatic
26 Jul 2013, 11:55

When the position is opened you can set the stop loss in pips. 

var request = new MarketOrderRequest(tradeType, volume)
                    {
                        Label = LabelName,
                        StopLossPips = StopLoss // This is a fixed value when the position is opened.
                        TakeProfitPips = TakeProfit
                    };

 

1. Create a method for trailing stop

2. Add a condition that checks if the position is profitable. You may check this in the OnBar or the OnTick events.

If the position is profitable call the method that implements trailing stop


@cAlgo_Fanatic

cAlgo_Fanatic
26 Jul 2013, 11:41

Correct syntax includes:

1. Print("Function#1: Width of Bands {0}", width); // no need to convert to string in order to print

 

2. Print("Function#1: Width of Bands " + width.ToString("0.00000")); // Convert to string and concatenate strings. Format the output string to have 5 decimals

 

/api/internals/algo/print-75f5

 

@cAlgo_Fanatic

cAlgo_Fanatic
25 Jul 2013, 16:52

It is not possible at the moment but we plan to support this in the future.


@cAlgo_Fanatic

cAlgo_Fanatic
25 Jul 2013, 15:55

We cannot provide a release date yet. It will appear in the what's new section, once it is released.


@cAlgo_Fanatic

cAlgo_Fanatic
25 Jul 2013, 12:06 ( Updated at: 21 Dec 2023, 09:20 )

The indicator is producing the correct results on cTrader Web.


Please reload the indicator and if the problem persists send us an email to engage@spotware.com.

 

 


@cAlgo_Fanatic

cAlgo_Fanatic
25 Jul 2013, 11:46

You do not need to resend it. We will look into this. Thank you.


@cAlgo_Fanatic