Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 01:11:52 +0000



Post From: Can't find expected way to calculate average price for position

[2019-01-23 23:11:47]
User972768 - Posts: 166
Hello,

Thanks for building this great charting/trading environment. I really enjoy using it.

Could you please help with correct settings to get average price of my trading position? I checked all available options in the Chart >> Advanced Settings 3 >> Open Position Average Price, but can’t find method that I prefer. Here is quick example of trading up to 2-lot position in and out few times to improve average price of the position ('+' - opening long entry, '-' - closing long entry:


Fill Price Position size Current Average
+51.0 1 51.00
+50.0 2 50.50
-51.0 1 50.00
+50.5 2 50.25
-52.0 1 48.50
-54.0 0 0.0 (Profit +5.50)

Formula is very simple: SUM of all fills divided by current number of lots
Example above was for long position. For short position, all fills are entered the same way (negative numbers for opening short position and positive numbers for closing them.

My goal is to see average price of my position in the Trade Window / Trade DOM in the "Pos Qty@Price" field. Trading Information Windows: How Average Price for Positions Is Calculated and Used

It would be very helpful if similar examples would be present on web page describing different ways of average price calculation.

Thanks and best regards.
Date Time Of Last Edit: 2019-01-23 23:34:59