Topics
13 Jan 2014, 14:45
 2262
 2
22 Oct 2013, 11:05
 2777
 2
Replies

dlr0
22 Jan 2014, 14:49

I think NetProfit isn't properly calculated.

For example, opening and closing same position:

PositionsOnOpened event: GrossProfit = -0.92, NetProfit = -3.4, Commissions = -1.24
It's OK - NetProfit already includes both commissions.

PositionsOnClosed event: GrossProfit = 6.45, NetProfit = 1.49, Commissions = -2.48
Closing NetProfit includes quadrupled (instead of doubled) one way comission.
So, NetProfit should be 3.97 - and it is confirmed by History tab which shows Net = 3.97.

 


 


@dlr0

dlr0
23 Sep 2013, 16:51

Looks like same problem with pending orders:
created last Thursday and triggered today have no labels.

And indeed, labels come back after restarting cAlgo.


@dlr0