Basic question on text command  [SOLVED]

Questions about MultiCharts and user contributed studies.
jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Basic question on text command

Postby jl12 » 07 Nov 2014

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.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Basic question on text command

Postby TJ » 07 Nov 2014

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.
What do you mean by "doesn't seem to be appropriate for this"?

Please describe the problem you are encountering,
and what "behavior" you are expecting?

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Re: Basic question on text command

Postby jl12 » 08 Nov 2014

TJ

What I am trying to do is to create an indicator that i can use to add text markers to in the margin
08-11-2014 08-27-03.png
(12.57 KiB) Downloaded 592 times
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

User avatar
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

Postby JoshM » 08 Nov 2014

Positioning of the text to the margin seems to be a problem when i have tried to use Text_new
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.

escamillo
Posts: 203
Joined: 25 Mar 2011
Has thanked: 23 times
Been thanked: 56 times

Re: Basic question on text command

Postby escamillo » 08 Nov 2014

Code: Select all

Last edited by escamillo on 17 Nov 2014, edited 1 time in total.

jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Re: Basic question on text command  [SOLVED]

Postby jl12 » 13 Nov 2014

Escamillo and JoshM thanks for your assistance using the above code I have managed to enter the labels as required


Return to “MultiCharts”