exitprice, equity or net P/L at broker

Questions about MultiCharts and user contributed studies.
florianp3
Posts: 20
Joined: 10 Jun 2014
Has thanked: 4 times

exitprice, equity or net P/L at broker

Postby florianp3 » 11 Jun 2014

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?

User avatar
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

Postby JoshM » 13 Jun 2014

Is there a way to get it from Interactivebrokers?
Not that I know. But you can calculate this yourself in a variable that you reset each morning.

User avatar
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

Postby Andrew MultiCharts » 13 Jun 2014

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.


Return to “MultiCharts”