Write Text @ a given space over the high

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Write Text @ a given space over the high

Postby arjfca » 28 Feb 2012

Hello

I want to write text 4 pip above the high of a bar

Code: Select all

Var:
Pipvalue = .0001;

If gapup then begin
ID = text_new(date,time,high , "v" );
value1= text_setlocation(ID, date,time, (h + pipvalue *4));
The text is always at the high of the bar, not at a given distance from it

Any help appreciated

Martin

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

Re: Write Text @ a given space over the high

Postby TJ » 28 Feb 2012

Hello

I want to write text 4 pip above the high of a bar

Code: Select all

Var:
Pipvalue = .0001;

If gapup then begin
ID = text_new(date,time,high , "v" );
value1= text_setlocation(ID, date,time, (h + pipvalue *4));
The text is always at the high of the bar, not at a given distance from it

Any help appreciated

Martin
look up

TEXT_SETSTYLE

NW27
Posts: 177
Joined: 25 Dec 2010
Has thanked: 40 times
Been thanked: 85 times

Re: Write Text @ a given space over the high

Postby NW27 » 28 Feb 2012

Or,

You could just simply use the function I have created - http://www.multicharts.com/discussion/v ... f=5&t=9785

Usage -
PrintText_S(date,time_s,High+PipValue*4,1,2,black,15,True,"SHORT",False); // "Short" is written Vertically above the price.

NOTE : In the above example the text is written vertically.

Ensure you look at the graphics symbols as well. Heaps of arrows etc.

Neil.


Return to “MultiCharts”