Topics
16 Nov 2023, 07:42
 1170
 1
15 Nov 2023, 10:36
 2069
 16
Replies

Spotware
11 Sep 2017, 14:33

Dear forexrecon,

Thanks for posting in our forum. This is currently not available in cTrader. We will forward this as a suggestion to the relevant product team.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 14:20

Dear jaredthirsk,

Thanks for the information. We will investigate this and let you know.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 12:19

Dear tradingu,

Unfortunately we do not have any ETA yet.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 10:50

Dear jaredthirsk,

Could you please let us know the broker so that we can check the historical data and fix any issue if exists?

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 10:25

Dear Trader,

See an example below on how to draw a vertical line on a specific date e.g. 3 days ago

ChartObjects.DrawVerticalLine("cross.T&k", Server.Time.AddDays(-3), Colors.Red, 2, LineStyle.Solid);

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 10:08

Dear jaredthirsk,

Thanks for sharing the issues you experience with us. We will forward your suggestions to the cAlgo product team for consideration.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 10:03

Dear trend_meanreversion,

Thanks for posting this question. There is no inherent limitation in cTrader that disallows placing/changing pending orders when markets are closed. However, during weekends maintenance is taking place and some times services might become unavailable. You could also discuss this with your broker as it could be a broker setting. Could you please provide some more information on the issue your experienced e.g. a screenshot, so we can investigate further? 

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 09:46

Dear hungtonydang,

"does the last executed order interpret the code as being the last order to enter the market or does that include pending orders as well"

In order to provide an accurate answer, we will need to see your cBot's code. But most probably the answer is no since up to now you were working with Positions and not with orders.

" I would like to know if this last executed order would carry through to all instances of the code or would they be independent"

Yes it will. If you need to separate positions between different instances, you are advised to use the label parameter when executing an order.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 09:26

Dear jayson.batbatan,

Thanks for your post. This feature is in our backlog but not implemented yet.

Best Regards, 

cTrader Team


@Spotware

Spotware
11 Sep 2017, 09:19

Dear Trader,

Custom indicators are not available on mobile platforms.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Sep 2017, 09:08

Dear ablouwrens,

Thanks for posting in our forum. Please see the code sample below and let us know if this is what you need

            var sma = Indicators.SimpleMovingAverage(MarketSeries.Median, 14);
            if (sma.Result.LastValue > Positions.Find("first trade label").EntryPrice)
            {
                ExecuteMarketOrder(TradeType.Buy, Symbol, 1000, "2ndTrade");
            }

Best Regards,

cTrader Team


@Spotware

Spotware
08 Sep 2017, 09:07

Dear Trader,

Can you please provide the full cBot or Indicator that does not build so that we can advise what the problem is?

Best Regards,

cTrader Team


@Spotware

Spotware
08 Sep 2017, 09:03

Dear j.tarno,

Stop limit orders are still not available in FIX API. They will be added in a future update.

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 16:29

Hi hingtonydang,

It should be placed inside the foreach loop. See below

            foreach (var position in Positions)
            {
                if (Symbol.Code == position.SymbolCode)
                {
                    ModifyPositionAsync(position, StopLoss, position.TakeProfit);
                    Print("New Position SL price is {0}", position.StopLoss);
                }
            }

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 16:25

Hi MagicTurtle,

Suppose the below scenario

EURUSD Ask Price: 1.20290 EURUSD Bid Price: 1.20270. 

If you place a Buy Order with a SL of 1 pip it means that the SL is at 1.20280 which is already higher than the Bid Price. In this case the SL cannot be placed. When placing Buy orders SL should always be lower than the Bid price and placing Sell orders SL should always be higher than the Ask price.

Best Regards,

cTrader Team

 


@Spotware

Spotware
07 Sep 2017, 16:12

Dear Trader,

Is it possible to have a cBot and the back testing parameters so that our team can reproduce the issue?

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 15:58

Dear Trader,

You can find here all available classes and functions in cAlgo. Also, you can list what functions you need and we can advise if they are available or not.

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 15:29

Dear Trader,

Thanks for posting your question, You should pass null as a Stop Loss. Please see example below

ExecuteMarketOrder(TradeType.Buy, Symbol, 10000, "No Stop Loss", null, 10);

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 14:10

Dear Trader,

In principle this is true, since FIX API is the leanest way of trading with a cTrader account. However, you should not expect significant performance improvements since cTrader is already a performance optimized trading platform. On the contrary, if you are not familiar with code optimization techniques, your FIX API program might end up being slower than cTrader.

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 14:04

RE:

Dear MagicTurtle,

Our team ran your algorithm for several days but we could not reproduce the message. We have explained in this discussion the reason that this message occurs, therefore this should help you troubleshoot your algorithm. If there is no easy way to reproduce the problem, there is no easy way to assist further. You are probably requesting a Stop Loss for a position that falls within the margin. You need to carefully log all the related information and check if this happens when you receive the TRADING_BAD_STOPS message.

Best Regards,

cTrader Team


@Spotware