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

Spotware
07 Sep 2017, 09:27 ( Updated at: 21 Dec 2023, 09:20 )

Hi ACCM,

You can get a separate window with the information of each symbol, including market depth, by right clicking on in Symbol inside the MarketWatch and selecting "Information". See image below

Best Regards,

cTrader Team


@Spotware

Spotware
07 Sep 2017, 09:22

Dear chris.wandel00,

Thanks for posting in our forum. Can you please share with us screenshots or even a short video so that we can see what is happening and advise further?

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 16:19 ( Updated at: 21 Dec 2023, 09:20 )

Hi tradingpaonly,

You can use the Horizontal Line from the Line Studies. See image below

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 16:11

Hi hungtonydang,

No this would not work since the problem is that you execute your code considering all open Positions each time. What you need to do is to consider the positions that have the same Symbol as the chart on which the Symbol is running on. Try adding the following condition before modifying your position

if (Symbol.Code == position.SymbolCode)

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 12:45

Dear hungtonydang,

In order to solve this please use the following code instead to get the order's expity time.

var datetime = Time.AddMinutes(45);

This way you will always get an expiry related to the server's time instead of your local system's time

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 12:23

Hi hungtonydang,

If you are running multiple instances of the cBot on different symbols, then you should reconsider your logic, since in the OnBar() function you are altering not only the positions related to the symbol that the cBot is running but all open positions for all symbols. Probably this is the reason of the weird stop losses. You seem to be changing the stop loss of a position based on a Bollinger Band of another symbol.

Can you please check it and let us know?

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 11:35

Hi yoannes,

It seems that this is the easiest way to do it. If you need to display curly braces in C# then you need to use double curly braces.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 11:19

Dear Trader,

Thanks for posting this request in our forum. You can also consider posting this request as a Job or contact a professional cAlgo Consultant.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 11:14

Dear Trader,

Can you please check your Backtesting settings and verify that you backtest your algo using tick data? If you are using bar data then the algo is backtested using open prices and something like this might occur.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 11:07

Dear yoannes,

Can you please provide us with the code you use to print this string so that we can advise accordingly?

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 11:03

Dear hungtonydang,

Thanks for the cBot. Can you please also verify that with "multiple instances" you mean that you run the cBot on different charts at the same time? If this is the case, is it running on charts of the same symbol? Is it possible to provide us with charts that you run the instances as well as exact cBot parameters? We need you to provide us as much information as possible so that we can reproduce you problem.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 10:21

Dear tradingpaonly,

See the answers to your questions below.

1) Dragging the trendline's start and end points near the top or bottom of a candle, the points will automatically snap to them.

2) The numbers are Distance in time / Distance in pips/ Angle (Degrees)

3) Yes they can. You can do this by right clicking on the line and unchecking Show Angle.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 10:05 ( Updated at: 21 Dec 2023, 09:20 )

Dear ACCM,

By dragging the bottom border of the DoM area, you can enlarge it in such a way that occupies the entire left column. See screenshot below.

Let us know if this is helpful for you.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 09:55

Dear davidp13,

This is not possible. A solution to this would be to initialize the parameter in the OnStart() method as shown below

        protected override void OnStart()
        {
            SignalFilename = "C:\\Usersxxx\\Signals\\" + Account.Number + ".csv";
        }

Let us know if the above solves your problem.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 09:49

Dear hfdias.trader,

Thanks for posting your suggestion in the forum. We will forward it to the product team for consideration.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 09:45

Dear irmscher9,

Thanks for reporting this behavior in our forum. We will inform the Quality Assurance team to have a look at this.

Best Regards,

cTrader Team


@Spotware

Spotware
06 Sep 2017, 09:37

Hi hungtonydang,

Please let us know your timezone and your cBot's time zone. This might explain the time difference you get. You can find the cBot's timezone in the cBots attributes. See the example below

    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class HedgingandScalpingAlgo : Robot
    {

Best Regards,

cTrader Team


@Spotware

Spotware
05 Sep 2017, 15:22

Dear Trader,

Thanks for your post. cBots currently do not support parameters of type long. This will be added in a future release of cAlgo. Please use int.

Best Regards,

cTrader Team


@Spotware

Spotware
05 Sep 2017, 14:27

Dear Trader,

Thanks for reporting this issue to us. We will investigate with cMirror team. We will also pass them your suggestions for consideration.

Best Regards,

cTrader Team


@Spotware

Spotware
05 Sep 2017, 09:26

Dear hungtonydang,

Thanks for sending us the cBot. Unfortunately we cannot build it since CD and _lastExecutedOrder are not defined. Can you please send us a cBot that builds successfully so that we do not need to make any assumptions?

Best Regards,

cTrader Team


@Spotware