PRT PositionPerf
Forums › ProRealTime English forum › ProOrder support › PRT PositionPerf
- This topic has 7 replies, 4 voices, and was last updated 5 years ago by solar.
Tagged: positionperf
-
-
06/29/2019 at 7:07 AM #101636
Hi everyone, I refer to the instruction “PositionPerf(n)” in PRT.
Here is what I found in PRT documentation:
“The instruction POSITIONPERF(n) returns: The performance (ratio gain/cost of the position) of the n-th last position closed if n>0 (not including brokerage fees) The performance (ratio gains/cost of the position) of the currently open position if n=0 (not including brokerage fees)”
The problem lies in the description “not including brokerage fees”. Let’s say I open a position and close it immediately at the exactly same median price level, the trade is actually a loss due to presence of spread. (I am trading on IG CFD FYI) As brokerage fees/ spread is not taken into account, am I correct that PositionPerf (1) would return 0? (idk if spread is counted as brokerage fees, please correct me if i am wrong).
The reason why i am asking this question is I want to increase my bet size only after a loss resulting from net negative difference of the median price level i opened and closed my position. (i.e. spreads/brokerage not taken into account).
Cheers
06/29/2019 at 9:42 AM #10164606/29/2019 at 10:22 AM #10165006/29/2019 at 10:32 AM #101651POSITIONPERF will be calculated using the POSITIONPRICE so based on the opening price of your trade that you received from the broker. What it cannot put in the calculation is the price that you could close the trade at as you cannot know what the closing price is with spread and slippage at any moment in time until you have actually closed the trade and found out what price the broker gave you. So it is POSITIONPRICE compared to current mid spread price.
The above is an assumption rather than a proven theory!
1 user thanked author for this post.
06/30/2019 at 3:48 AM #101661Thanks Vonasio
- Logically thinking, after a position is closed, PRT is able to obtain the close and open price of a position from the broker. (With spread taken into account ) theoretically, POSITIONPRRF(1) will return a negative value if I open and close the contract at 10000 mid spread price .
06/30/2019 at 12:48 PM #10169306/30/2019 at 12:53 PM #10169406/30/2019 at 1:11 PM #101697 -
AuthorPosts
Find exclusive trading pro-tools on