Topics
Replies

MongolTrader
22 Jun 2022, 12:21

RE:

firemyst said:

If you close each position synchronously, it waits until one position is closed before it closes the next... so on and so forth.

So try closing all positions asynchronously. This way, you send all the close commands, and it's just up to the server to process them as fast as it can.

Example:

foreach (Position p in Positions)
                            {
                                ClosePositionAsync(p, (TradeResult r) =>
                                {
                                    if (r.IsSuccessful)
                                    {
                                        //... do what you have to
                                    }
                                    else if (!r.IsSuccessful)
                                    {
					//... do what you have to
                                    }
                                });
                            }

 

Its almost same as regular please any other way to close much fast all position by one command like perform as close all button from windows


@MongolTrader

MongolTrader
28 Feb 2022, 06:30

RE:

amusleh said:

Hi,

Do you need a tick counter on chart per minute? or per bar?

Can you make your request more clear please

Tick per minute please ?


@MongolTrader

MongolTrader
25 Feb 2022, 10:47

RE:

amusleh said:

Hi,

Do you need a tick counter on chart per minute? or per bar?

Can you make your request more clear please.

Im using tick chart and i want see tick count per minute. Thank you very much.


@MongolTrader

MongolTrader
23 Feb 2022, 08:42

RE:

amusleh said:

Hi,

Please check the Automate API multi timeframe guide: https://help.ctrader.com/ctrader-automate/guides/indicators#multiple-timeframes

You can also post a job request or contact one of our consultants to help you develop the indicator.

Please check your Telegram


@MongolTrader