How to retrieve the history of closed positions

breakermind's avatar

breakermind since: 17 Jul 2013;

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

Hi,

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

bye

cTrader/cAlgo position copier with multiply position volume: https://github.com/fxstar/Copex-FxStar
breakermind's avatar

breakermind since: 17 Jul 2013;

  09 Apr 2014, 13:34
RE: Label

How change label manualy from calgo when I set position?

cTrader/cAlgo position copier with multiply position volume: https://github.com/fxstar/Copex-FxStar
breakermind's avatar

breakermind since: 17 Jul 2013;

  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

cTrader/cAlgo position copier with multiply position volume: https://github.com/fxstar/Copex-FxStar
Spotware's avatar

Spotware since: 23 Sep 2013;

  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

TRADERS FIRST™ Vote for your favorite features: https://ctrader.com/forum/suggestions
Spotware's avatar

Spotware since: 23 Sep 2013;

  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

TRADERS FIRST™ Vote for your favorite features: https://ctrader.com/forum/suggestions
breakermind's avatar

breakermind since: 17 Jul 2013;

  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 ...

cTrader/cAlgo position copier with multiply position volume: https://github.com/fxstar/Copex-FxStar
breakermind's avatar

breakermind since: 17 Jul 2013;

  09 Apr 2014, 20:39
PID ?

and why in history in html file

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

cTrader/cAlgo position copier with multiply position volume: https://github.com/fxstar/Copex-FxStar
Spotware's avatar

Spotware since: 23 Sep 2013;

  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);
}
TRADERS FIRST™ Vote for your favorite features: https://ctrader.com/forum/suggestions

mpaggini since: 05 Sep 2022;

  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