Support Board
Date/Time: Tue, 26 Nov 2024 02:31:24 +0000
Using the percent version of Y value for the drawing tool
View Count: 1187
[2014-03-30 10:29:46] |
Israel Gottlieb - Posts: 14 |
Given a price value, is there a straightforward way to determine its relative position on the chart, i.e. percent distance from the bottom? IG |
[2014-03-30 20:49:51] |
Sierra Chart Engineering - Posts: 104368 |
Have a look at the Tools >> Chart Calculator tool.
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 |
[2014-03-31 17:33:05] |
Israel Gottlieb - Posts: 14 |
Thanks for your reply. It seems I did not clarify my question properly. I'm developing for Sierra. I need to obtain the percent position for a given price -- programmatically, i.e. in code, so I can use it to determine where to draw a nearby drawing, using s_UseTool with UseRelativeValue. As far as I can tell, the reference you gave applies to the Drawing Tool available to a user of Sierra Chart, but not to the api. Much Obliged for any help, IG |
[2014-03-31 17:49:05] |
Sierra Chart Engineering - Posts: 104368 |
Percent position relative to what?
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 |
[2014-03-31 18:05:52] |
Israel Gottlieb - Posts: 14 |
One way to set the Tool.BeginValue/EndValue of the UseTool drawing tool, is as a percent of the total screen height. I want to find this relative position on the screen, for a given price, in code. For example, say I have an ES mini-S&P chart, with a bar that has a LOW at 1740. I want to draw a mark 2% of the screen below that LOW price. I need a function that, given a price, returns its relative position on the screen. Say it returns 37% for the price 1740. Then I draw my mark at 35%. If there's another way to do go about this, please advise. IG |
[2014-04-01 09:28:05] |
Sierra Chart Engineering - Posts: 104368 |
We are not sure how this would be accomplished.
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 |
[2014-04-02 00:30:12] |
Sierra Chart Engineering - Posts: 104368 |
There are various ACSIL variables that give coordinate information in both pixels and prices. Refer to: https://www.sierrachart.com/index.php?l=doc/doc_ACSIL_Members_Variables_And_Arrays.html You should be able to accomplish what you want using those. 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: 2014-04-02 00:31:01
|
To post a message in this thread, you need to log in with your Sierra Chart account: