positionprofit question

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

positionprofit question

Postby ctu1121 » 13 Aug 2014

Hi,
If my order is triggered by Multicharts signal, then I could use "positionprofit" to calculate my P/L. If my order is NOT triggered by myself on InteractiveBrokers TWS or Multicharts Chart trading. It seems that I can not use "positionprofit" to calculate my P/L. May I know is there any
alternative solution to calculate P/L? Thanks for your help.

Charles

User avatar
Smoky
Posts: 517
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 99 times
Been thanked: 121 times

Re: positionprofit question

Postby Smoky » 13 Aug 2014

hi,

take a look about ContractProfit

or entryprice(0) 0 = open position

ex:

Code: Select all

if MarketPosition_at_Broker > 0 then PnL = close - entryprice(0)
else PnL = entryprice(0) - close ;

we have also OpenPositionProfit ....


Return to “MultiCharts”