Positionprofit, OpenPositionProfit and i_OpenEquity

Questions about MultiCharts and user contributed studies.
ctu1121
Posts: 128
Joined: 05 Jul 2012
Has thanked: 9 times
Been thanked: 4 times

Positionprofit, OpenPositionProfit and i_OpenEquity

Postby ctu1121 » 14 Sep 2012

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!

justmake
Posts: 42
Joined: 21 Dec 2010
Has thanked: 15 times
Been thanked: 1 time

Re: Positionprofit, OpenPositionProfit and i_OpenEquity

Postby justmake » 16 Sep 2012

Hello,

You can check the dictionary in Power Language Editor, there are very detailed explanation about those different reserved words.:)
These users thanked the author justmake for the post:
TJ

ctu1121
Posts: 128
Joined: 05 Jul 2012
Has thanked: 9 times
Been thanked: 4 times

Re: Positionprofit, OpenPositionProfit and i_OpenEquity

Postby ctu1121 » 16 Sep 2012

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.

User avatar
Henry MultiСharts
Posts: 8503
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2731 times

Re: Positionprofit, OpenPositionProfit and i_OpenEquity

Postby Henry MultiСharts » 17 Sep 2012

ctu1121 wrote: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!

Hello ctu1121,

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.


Return to “MultiCharts”