Login Page - Create Account

Support Board


Date/Time: Sat, 19 Jan 2019 21:48:30 +0000



Trading: Position - How do I get my current Average Price?

Support Request:
[2018-08-18 21:03:42]
CRX - Posts: 7
I have looked everywhere endlessly to try to obtain information on how to get my position data to utilize by referencing in alert conditions. The closest I have gotten is the study "Trading: Position," which contains the "Pos Qty" information, but does not contain the "@Price" data, or otherwise known as the Average Position Price.

I would like to be able to use this in an alert condition as I can with the position quantity.

I have 2 days left on my trial before deciding upon this software and this appears to be my last hurdle. Thanks guys!
[2018-08-20 01:06:52]
CRX - Posts: 7
I have since signed up for a subscription. This would be very helpful to know. Thank you.
[2018-08-20 01:25:04]
Sierra Chart Engineering - Posts: 68081
You can only access this data by using the Spreadsheet System for Trading study:
https://www.sierrachart.com/index.php?page=doc/SpreadsheetSystemsAlertsAndAutomatedTrading.php

There is a cell where this value is outputted to on the Sheet.

Or by using ACSIL:
https://www.sierrachart.com/index.php?page=doc/ACSILTrading.html

You cannot do this with simple alerts.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-08-20 16:12:49]
CRX - Posts: 7
Thank you, I do not want to use the Spreadsheet System.

Could you kindly point me in the direction of the source code for the study "Trading: Position" (image of what I am referring to attached)?

I have searched through the files and have only been able to come up with the source for the other studies, but can't seem to find this one. When I can finally locate this one, I should be able to have everything I need.

Thanks so much for your help in advance.
image2018-08-20_11-43-49.jpg / V - Attached On 2018-08-20 16:12:06 UTC - Size: 62.05 KB - 32 views
Attachment Deleted.
[2018-08-20 19:39:26]
Sierra Chart Engineering - Posts: 68081
The source code for it is not available:
https://www.sierrachart.com/index.php?page=doc/HowToBuildAnAdvancedCustomStudyFromSourceCode.html#SourceCodeForSomeBuiltInStudiesNotAvailable

If you want to use ACSIL to access this data, then use this function:
https://www.sierrachart.com/index.php?page=doc/ACSILTrading.html#GettingPositionInformation
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2018-08-20 19:39:59
[2018-08-20 19:56:07]
CRX - Posts: 7
Yeah, I don't know how to do that. I was going to replicate the study by using the source as a template.

Can anyone help me out?
[2018-08-20 20:18:48]
Sierra Chart Engineering - Posts: 68081
We will add a study to do what you want. This will be out in a few days.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-08-20 20:32:56]
CRX - Posts: 7
Ah excellent! Thank you so much!
[2019-01-11 15:22:35]
User993113 - Posts: 18
We will add a study to do what you want. This will be out in a few days.
I was looking for the same study
I only need the TEXT showing me what is my average price.

How is called this study?
[2019-01-11 22:39:15]
Sierra Chart Engineering - Posts: 68081
The study is called "Trading: Position Average Price" but we can see that it was never listed. This will be in the next release.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

To post a message in this thread, you need to login with your Sierra Chart account:

Login


Login Page - Create Account