Write Text @ a given space over the high

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1263
Joined: 23 Nov 2010
Has thanked: 717 times
Been thanked: 221 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: 6521
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Re: Write Text @ a given space over the high

Postby TJ » 28 Feb 2012

arjfca wrote: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
These users thanked the author TJ for the post (total 2):
arjfcaJoshM

NW27
Posts: 177
Joined: 25 Dec 2010
Has thanked: 40 times
Been thanked: 83 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/viewtopic.php?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.
These users thanked the author NW27 for the post (total 2):
arjfcakiasom


Return to “MultiCharts”