Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 05:57:14 +0000



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

[2019-06-17 02:58:20]
Sierra Chart Engineering - Posts: 104368
Adjust this setting to make sure it is far enough back in time to load all of the order fills which make up the current position:
Chart Settings: Order Fills Start Date-Time (Chart >> Chart Settings >> Trading menu)


The reason adding a study can affect this is because that will cause chart data to be loaded and this affects the Order Fills Start Date-Time when it is automatically set, which will be the case when the setting is blank.

More information:
Trading Information Windows: How Average Price for Positions Is Calculated and Used



Also side note is there either an acsil function or struct to get the Theoretical Position Average, or does that have to be calculated from my side. I would like to add it to my custom stop loss study.
Yes you can, refer to this particular structure member:
Automated Trading From an Advanced Custom Study: [Type: double] AveragePrice
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-06-17 03:11:27