Changes

Jump to navigation Jump to search

4.6.3 Strategy Performance

43 bytes removed, 14:38, 8 May 2015
no edit summary
* {{color|blue|CurrentPosition.Side}} – EMarketPositionSide.Flat – there is no open position, EMarketPositionSide.Long – long position is opened,
* {{color|blue|EMarketPositionSide.Short}} – short position is opened.
* {{color|blue|CurrentPosition.Profit}} = }}- always 0 (open position has no realized profit/loss). * {{color|blue|CurrentPosition.OpenProfit'' }} – current ''OpenPL'' upon for the open position or , returns 0, if the position is closed.
* {{color|blue|CurrentPosition.ProfitPerContract}} – current OpenPL upon the open position per contract or 0, if the position is closed.
* {{color|blue|CurrentPosition.OpenLots}} – the amount of not closed contracts in the position.
Now our position is the following:
<syntaxhighlight>
CurrentPosition.Value = 5090
CurrentPosition.Side = EMarketPositionSide.Long
CurrentPosition.OpenLots = 5090
CurrentPosition.ClosedTrades[] – one element (EntryOrder = Buy for 10, ExitOrder =Sell for 10)
CurrentPosition.OpenTrades[] – one element (EntryOrder = Buy for 90, ExitOrder = null)
</syntaxhighlight>
The strategy has generated and executed aSellShort order for 50 contracts.
Now our position is the following:
The strategy has generated and executed aSellShort order for 50 contracts.
Now our position is the following:

Navigation menu