Let's say I have a ESU6 chart displayed in Multichart and I'm long X contracts ESU6 using an Interactive Brokers account.
Is there any way I can have an indicator showing the number of open contracts in real time ? (meaning that, if I close the position total or partially, the indicator would update accordingly.
I saw several position keywords here but this is just for signals, as far as I understand.
Can we have the open position as an indicator ? [SOLVED]
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Can we have the open position as an indicator ?
Let's say I have a ESU6 chart displayed in Multichart and I'm long X contracts ESU6 using an Interactive Brokers account.
Is there any way I can have an indicator showing the number of open contracts in real time ? (meaning that, if I close the position total or partially, the indicator would update accordingly.
I saw several position keywords here but this is just for signals, as far as I understand.
You can use the keywords and compile it into a signal.
There are no requirements for a signal to have BUY or SELL instructions.
Re: Can we have the open position as an indicator ?
According to user 'ABC' in this thread :
viewtopic.php?f=1&t=50078
it must be 'i_MarketPosition_at_Broker'.
Kind Regards
Ben
viewtopic.php?f=1&t=50078
it must be 'i_MarketPosition_at_Broker'.
Kind Regards
Ben
Re: Can we have the open position as an indicator ? [SOLVED]
Unfortunately this didn't work. I created an indicator like this:According to user 'ABC' in this thread :
viewtopic.php?f=1&t=50078
it must be 'i_MarketPosition_at_Broker'.
Kind Regards
Ben
Code: Select all
variables:
Position(0);
Position=i_MarketPosition_at_Broker;
// I also tested Position=i_MarketPosition_at_Broker_for_The_Strategy;
Plot1(Position);
I'm going to try the suggestion of TJ.