Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 15:06:03 +0000



Post From: Potential Error with Position avg - specific to when you add volume profile to trading dom

[2019-06-17 06:05:55]
enemyspy - Posts: 304
Thank you, adding the start date time resolved it.

With regards to using the s_SCPostionData::AveragePrice member. It does not appear to use the dom calculation setting (theoretical Position avg). It is using the standard FIFO position avg.

Attached below is A screenshot of s_SCPositionData struct displayed in the Visual Studio debug watch. Below that is the Dom that the study being debugged is attached to. The dom is using the theoretical avg, and working properly. If you compare the highlighted dom value to the highlighted watch value, they are different. The Avg price in the Position data is not being calculated by the same method as associated chart/dom. Not sure if that is what is supposed to happen or not.
imageRisk Management Tools(Release) (Debugging) - Microsoft Visua.png / V - Attached On 2019-06-17 06:00:47 UTC - Size: 160.82 KB - 249 views