My position is as below:
1YM future, P/L : -50
100 IBM, P/L: +100
As my understanding, Positionprofit is to calculate specific position, for example,
my positionprofit for 1YM is -50, my positionprofit for 100IBM is +100, my openpositionprofit
is -50+100=+50.
May I know how to use i_OpenEquity? Is i_openEquity the same as Positionprofit? Or the same as OpenPositionProfit?
Thanks!
Positionprofit, OpenPositionProfit and i_OpenEquity
Re: Positionprofit, OpenPositionProfit and i_OpenEquity
Thanks for your reply. I have seen the dictionary, but I still can't get it. Could you please give me an example? Thanks in advance for help!
-------------------------------------------------------
i_OpenEquity
Returns the current equity (netprofit + openpositionprofit)
Usage
i_OpenEquity
Notes
This function can only be used in studies.
Example
i_OpenEquity will return 100 if the current equity is 100.
i_OpenEquity will return -100 if the current equity is -100.
-------------------------------------------------------
i_OpenEquity
Returns the current equity (netprofit + openpositionprofit)
Usage
i_OpenEquity
Notes
This function can only be used in studies.
Example
i_OpenEquity will return 100 if the current equity is 100.
i_OpenEquity will return -100 if the current equity is -100.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Positionprofit, OpenPositionProfit and i_OpenEquity
Hello ctu1121,My position is as below:
1YM future, P/L : -50
100 IBM, P/L: +100
As my understanding, Positionprofit is to calculate specific position, for example,
my positionprofit for 1YM is -50, my positionprofit for 100IBM is +100, my openpositionprofit
is -50+100=+50.
May I know how to use i_OpenEquity? Is i_openEquity the same as Positionprofit? Or the same as OpenPositionProfit?
Thanks!
Openpositionprofit returns a numerical value, indicating the current profit or loss for the open position.
Positionprofit(0)=Openpositionprofit.
Positionprofit can aslo look back into previous positions:
1 - one position back (the last position closed);
2 - two positions back, etc.
i_OpenEquity returns the current equity (netprofit + openpositionprofit).
Netprofit Returns a numerical value, indicating the total currency value of all completed trades.