Is PositionProfit(0) = OpenPositionProfit ?  [SOLVED]

Questions about MultiCharts and user contributed studies.
Francis
Posts: 4
Joined: 25 Aug 2014
Has thanked: 2 times

Is PositionProfit(0) = OpenPositionProfit ?

Postby Francis » 10 Sep 2014

I tested on MultiCharts64 Version 8.8 Release (Build 9189).
It seems that PositionProfit(0) always returns 0.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Is PositionProfit(0) = OpenPositionProfit ?

Postby Henry MultiСharts » 10 Sep 2014

Hello Francis,

PositionProfit is not the same as OpenPositionProfit.
PositionProfit - Returns a numerical value, indicating the total realized profit or loss for the specified closed position.
OpenPositionProfit - Returns a numerical value, indicating the current unrealized profit or loss for the open position.

Francis
Posts: 4
Joined: 25 Aug 2014
Has thanked: 2 times

Re: Is PositionProfit(0) = OpenPositionProfit ?

Postby Francis » 10 Sep 2014

Then, has the following changed now?
Now, PositionProfit(0) has no meaning and always return 0 ?

1. Forum

viewtopic.php?f=1&t=7594&hilit=positionprofit#p34658

There is no difference between OpenPositionProfit and PositionProfit(0). They return the same values.

2. Multicharts 5.5 User Guide

PositionProfit (0) will return a value of 5 if the value of the open position has increased by $5
since it was entered

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Is PositionProfit(0) = OpenPositionProfit ?  [SOLVED]

Postby Henry MultiСharts » 10 Sep 2014

The behavior of PositionProfit has been changed in MultiCharts 8.7 Beta 1. Since that version (available since 04/31/2013) PositionProfit returns the value for the closed trades only.

I have also updated the Wiki and prebuilt chm file. The updated chm will be included into MultiCharts 9.0 Release.


Return to “MultiCharts”