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
positionprofit question
- Smoky
- Posts: 526
- Joined: Dec 03 2010
- Location: Thailand
- Has thanked: 99 times
- Been thanked: 125 times
hi,
take a look about ContractProfit
or entryprice(0) 0 = open position
ex:
we have also OpenPositionProfit ....
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 ....