I would like to add text to the right margin of a chart through an indicator so I can add daily levels with appropriate labels
Text_new doesn't seem to be appropriate for this, is there a function that will achieve this.
Basic question on text command [SOLVED]
- TJ
- Posts: 7745
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Basic question on text command
What do you mean by "doesn't seem to be appropriate for this"?I would like to add text to the right margin of a chart through an indicator so I can add daily levels with appropriate labels
Text_new doesn't seem to be appropriate for this, is there a function that will achieve this.
Please describe the problem you are encountering,
and what "behavior" you are expecting?
Re: Basic question on text command
TJ
What I am trying to do is to create an indicator that i can use to add text markers to in the margin
input;yestvalhigh(100),
yestvallow(100),
single1(100),
tail1(100);etc
I would like to enter the levels for various levels every morning and have the them annotated in the margin rather than manually typing in text for a black horizontal line every day.
Positioning of the text to the margin seems to be a problem when i have tried to use Text_new
What I am trying to do is to create an indicator that i can use to add text markers to in the margin
input;yestvalhigh(100),
yestvallow(100),
single1(100),
tail1(100);etc
I would like to enter the levels for various levels every morning and have the them annotated in the margin rather than manually typing in text for a black horizontal line every day.
Positioning of the text to the margin seems to be a problem when i have tried to use Text_new
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Basic question on text command
You can use GetAppInfo to get information about the right side of the chart needed for text placement (aiRightDispTime, aiSpaceToRight). And then use Text_SetStyle to align the text on that rightmost bar.Positioning of the text to the margin seems to be a problem when i have tried to use Text_new
Re: Basic question on text command
Code: Select all
Last edited by escamillo on 17 Nov 2014, edited 1 time in total.
Re: Basic question on text command [SOLVED]
Escamillo and JoshM thanks for your assistance using the above code I have managed to enter the labels as required