How to retrieve the history of closed positions

Created at 09 Apr 2014, 12:54
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BR

breakermind

Joined 17.07.2013

How to retrieve the history of closed positions
09 Apr 2014, 12:54


Hi,

how to retrieve the history of closed positions from calgo robot?

bye


@breakermind
Replies

breakermind
09 Apr 2014, 13:34

RE: Label

How change label manualy from calgo when I set position?


@breakermind

breakermind
09 Apr 2014, 14:09

Limiting negative slippage

It is possible set slippage in cAlgo Robots ?

Slippage can be either positive or negative. Positive slippage means that the execution price is better than the reference price (never seen on *Moderated*), and negative slippage means that the execution price is worse than the reference price (Allways seen on *Moderated*).

Regards


@breakermind

Spotware
09 Apr 2014, 14:33

RE: Limiting negative slippage

breakermind said:

It is possible set slippage in cAlgo Robots ?

Slippage can be either positive or negative. Positive slippage means that the execution price is better than the reference price (never seen on *Moderated*), and negative slippage means that the execution price is worse than the reference price (Allways seen on *Moderated*).

Regards

You can use market range parameter of ExecuteMarketOrder function


@Spotware

Spotware
09 Apr 2014, 14:33

RE:

breakermind said:

Hi,

how to retrieve the history of closed positions from calgo robot?

bye

you can use History collection


@Spotware

breakermind
09 Apr 2014, 20:02

Statement

Spotware said:

breakermind said:

Hi,

how to retrieve the history of closed positions from calgo robot?

bye

you can use History collection

Hi,

HOW ?

and what the label?

can I generate Statement from robot?

really could not read the history of the position from the robot (it is a joke unless)?

 

PS.

If I see again "We will add this in the future."

I walk out of here and never come back ...

 


@breakermind

breakermind
09 Apr 2014, 20:39

PID ?

and why in history in html file

I don't see position PID like this in opened positions?


@breakermind

Spotware
10 Apr 2014, 09:12

RE: Statement

breakermind said:

Spotware said:

breakermind said:

Hi,

how to retrieve the history of closed positions from calgo robot?

bye

you can use History collection

Hi,

HOW ?

and what the label?

can I generate Statement from robot?

really could not read the history of the position from the robot (it is a joke unless)?

 

PS.

If I see again "We will add this in the future."

I walk out of here and never come back ...

You can iterate through History collection:

foreach (HistoricalTrade trade in History)
{
    Print("EntryTime: {0}, ClosingTime: {1}, Profit: {2}", trade.EntryTime, trade.ClosingTime, trade.NetProfit);
}

 


@Spotware

mpaggini
14 Sep 2022, 11:25

RE: RE: Statement

Spotware said:

breakermind said:

Spotware said:

breakermind said:

Hi,

how to retrieve the history of closed positions from calgo robot?

bye

you can use History collection

Hi,

HOW ?

and what the label?

can I generate Statement from robot?

really could not read the history of the position from the robot (it is a joke unless)?

 

PS.

If I see again "We will add this in the future."

I walk out of here and never come back ...

You can iterate through History collection:

foreach (HistoricalTrade trade in History)
{
    Print("EntryTime: {0}, ClosingTime: {1}, Profit: {2}", trade.EntryTime, trade.ClosingTime, trade.NetProfit);
}

 

if I use History collection the collection is empty

I have a loto of closed positions but I can't find any position

 


@mpaggini