How to display a value over a bar?

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

How to display a value over a bar?

Postby arjfca » 25 Nov 2010

Hello

I have done a little indicator that show all Spike High & Spike Low. A spike High as a lower high on each side. Each time a spike is detected, i increase is variable by 1

Now, I would like to display that variable over the Spike position .

What is the syntax to display text over a define position. I know how to plot a cross, a point or a line, but did not succeeded yet to include a text

Code: Select all

If SL then plot2[1] (Low[1] - .0001 , "SL");


Line to display Spike Low Position.

MT

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: How to display a value over a bar?

Postby Dave Masalov » 26 Nov 2010

If the value that you need is saved in spike_variable, script could be as follows:

If SL then begin
plot2[1] (Low[1] - .0001 , "SL");
text_new(date, time, Low[1] - .0001, text(spike_variable));
end;

You can find the description of all text functions in the Help.


Return to “MultiCharts”