Support Board
Date/Time: Tue, 26 Nov 2024 06:34:36 +0000
Line Label Alignment...
View Count: 1647
[2014-04-10 13:38:25] |
Graham - Posts: 44 |
Using the Daily OHLC study you can set the line label to align to the right edge. I'm developing my own study and would like to align the text to the right edge, however the study documentation makes no reference to right edge alignment, only left edge alignment: http://www.sierrachart.com/index.php?l=doc/doc_ACSIL_Members_scSubgraph.html#scSubgraphLineLabel When I try to compile with LL_NAME_ALIGN_RIGHT_EDGE it fails. Can this option be added to the Line label functionality from a coding perspective? Thanks |
[2014-04-10 18:01:26] |
Sierra Chart Engineering - Posts: 104368 |
You need to use: LL_VALUE_ALIGN_FAR_RIGHT 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-10 18:38:58] |
Graham - Posts: 44 |
tried that and the result is the text gets moved literally right over, see image. However if I change the setting manually (as the image in the previous post it reverts to the right edge. I realise i can change the setting manually but I'm trying to code as much of the settings I require as possible. |
Screen Shot 2014-04-10 at 19.35.14.png / V - Attached On 2014-04-10 18:37:39 UTC - Size: 23.02 KB - 424 views |
[2014-04-10 18:47:24] |
Sierra Chart Engineering - Posts: 104368 |
We have tested this and do not see a problem, and we are 100% convinced the code must not be correct. Show us the actual code you are using to set the label alignment.
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-10 18:49:29] |
Graham - Posts: 44 |
sc.Subgraph[SC_HIGH].Name = "Yesterday High"; sc.Subgraph[SC_HIGH].DrawStyle = DRAWSTYLE_POINT; sc.Subgraph[SC_HIGH].PrimaryColor = RGB(255,128,64); sc.Subgraph[SC_HIGH].LineWidth = 1; sc.Subgraph[SC_HIGH].DrawZeros = false; sc.Subgraph[SC_HIGH].LineLabel = LL_DISPLAY_NAME | LL_NAME_ALIGN_FAR_RIGHT | LL_NAME_ALIGN_CENTER; sc.Subgraph[SC_LOW].Name = "Yesterday Low"; sc.Subgraph[SC_LOW].DrawStyle = DRAWSTYLE_POINT; sc.Subgraph[SC_LOW].PrimaryColor = RGB(255,0,0); sc.Subgraph[SC_LOW].LineWidth = 1; sc.Subgraph[SC_LOW].DrawZeros = false; sc.Subgraph[SC_LOW].LineLabel = LL_DISPLAY_NAME | LL_NAME_ALIGN_FAR_RIGHT | LL_NAME_ALIGN_CENTER; |
[2014-04-10 18:53:42] |
Sierra Chart Engineering - Posts: 104368 |
Where in the code are you using: LL_VALUE_ALIGN_FAR_RIGHT 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-10 18:55:11] |
Graham - Posts: 44 |
I'm not using it. I only wish to display the line name on the far right. Should I be using LL_VALUE?
|
[2014-04-10 19:05:34] |
Sierra Chart Engineering - Posts: 104368 |
We misread the first post. We thought you were asking about the Value label. We still do not see a problem. We tested using LL_DISPLAY_NAME | LL_NAME_ALIGN_FAR_RIGHT | LL_NAME_ALIGN_CENTER; : http://www.sierrachart.com/image.php?l=1397156676260.png There is no problem. Make sure the code compiles properly and make sure you are using the updated DLL file and adding the correct study to the chart. 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-10 21:27:24
|
[2014-04-10 20:54:22] |
Graham - Posts: 44 |
I deleted all references to the alignment and recompiled. Then re-added them, recompiled and now it's working fine. Thanks for your help. |
To post a message in this thread, you need to log in with your Sierra Chart account: