I_MarketPosition_at_Broker and I_AvgEntryPrice_at_Broker give very useful information; however, if I want to implement a strategy based on the net profit for the day (for example stop trading for the day if I loose 500$ and stop also if I made 800$) I need the broker net P/L for the day info.
Is there a way to get it from Interactivebrokers?
exitprice, equity or net P/L at broker
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: exitprice, equity or net P/L at broker
Not that I know. But you can calculate this yourself in a variable that you reset each morning.Is there a way to get it from Interactivebrokers?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: exitprice, equity or net P/L at broker
Starting with MC 9.0 we added another column with PnL on the account tab in order and Position Tracker. I cannot tell you for sure if it is a daily PnL or simply last realized PnL, but it is possible to receive this information from code. There is function called "GetRTAccountNetWorth" that returns Net Liquidation. You can use it as example to create the analogue function for getting that PnL value.