Replies

stoko
30 Aug 2013, 11:31

RE: RE:

tradermatrix said:

stoko said:

How can I get all closed orders?

I guess Positions will only give me open positions?

Is there some class that I can use?

        foreach (var openedPosition in Account.Positions)
       
        {

        Trade.Close(openedPosition);

        }

        foreach (var pendingOrder in Account.PendingOrders)
       
        {

        Trade.DeletePendingOrder(pendingOrder);

        }

I do not want to close orders. I want to read/get all closed orders.


@stoko

stoko
29 Aug 2013, 18:53

RE:

cAlgo_Fanatic said:

You can use a try...catch block to catch the exception.

of course!!! thank you!! was sleeping...


@stoko

stoko
21 Aug 2013, 13:05

RE:

cAlgo_Development said:

You can remove accounts directly from your account drop-down list - there is an "x" button next to every account.

Alternatively, you can delete the file, congaing these accounts:

C:\Users\[your user name]\AppData\Roaming\[your broker]-cTraderUsers\settings.xtr

nice!

thanks!


@stoko

stoko
05 Jul 2013, 18:09

RE:

impressive fast reply!!

I was just going to see if I can close my post becasue I used your Martingale Sample to figure out how to do it.

Your code is super helpful!

 

Thanks!


@stoko