i try to find how to have Realized P/L from the broker , MC already have the information, i would like to find in PL.
auto-trading + manual trades in same chart.
Realized P/L [SOLVED]
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: Realized P/L [SOLVED]
Smoky,
In PowerLanguage one can access the information from Accounts tab of the Order and Position Tracker only.
Unfortunately, Realized P/L per position is not accessible from code.
In PowerLanguage one can access the information from Accounts tab of the Order and Position Tracker only.
Unfortunately, Realized P/L per position is not accessible from code.
- Smoky
- Posts: 517
- Joined: 03 Dec 2010
- Location: Thailand
- Has thanked: 99 times
- Been thanked: 121 times
Re: Realized P/L
Svetlana? not difficult to find
I only need to know P/L account realized,
then after every close trades i can know the difference before and after the last trade who should be last realized P/L ....
2 secondes thinking
today we only have account P/L unrealized from broker ...
I only need to know P/L account realized,
then after every close trades i can know the difference before and after the last trade who should be last realized P/L ....
2 secondes thinking
today we only have account P/L unrealized from broker ...
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: Realized P/L
Smoky,
Realized P/L per account is not supplied for any broker profile, except CQG (calculated locally).
You can use the following formula to calculate Realized P/L per position:
(exit price - entry price)*contracts*Big Point Value - for long
(entry price - exit price)*contracts*Big Point Value - for short
But the result of this calculation may vary from the value at the broker, because it doesn’t include commission.
Realized P/L per account can be calculated as a difference of Account Balance after and before the trade.
However, this method is not very accurate when there are multiple trades on various instruments.
Realized P/L per account is not supplied for any broker profile, except CQG (calculated locally).
You can use the following formula to calculate Realized P/L per position:
(exit price - entry price)*contracts*Big Point Value - for long
(entry price - exit price)*contracts*Big Point Value - for short
But the result of this calculation may vary from the value at the broker, because it doesn’t include commission.
Realized P/L per account can be calculated as a difference of Account Balance after and before the trade.
However, this method is not very accurate when there are multiple trades on various instruments.