Page 1 of 1

positionprofit question

Posted: Aug 13 2014
by ctu1121
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

Re: positionprofit question

Posted: Aug 13 2014
by Smoky
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 ....