[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text on chart question



PureBytes Links

Trading Reference Links

> Is there a way in EL to reference the range of the visible chart (the
> high and low that is currently on the screen) so that you can plot
> text where it is visible rather than choosing a set price level?  

Unfortunately, no.  TS scales the chart automatically based on the 
price range and any indicators you plot.  EL does not provide any 
way to determine the date/time and price ranges that are visible on 
the chart.

> For example, if you wanted to write something at the top of the chart
> so that no matter what the high and low price values were (based on
> the amount of price data that is visible) it would always be at the
> top of the chart.  

You can kludge around this to some extent.  TS always scales the 
chart so all indicators are on the screen.  You can write a simple 
indicator that draws a line near the top of where you think the 
chart should be (based on recent highs, for example), then write 
your text just below where that line is drawn.  Set the line's color 
the same as your chart background so you don't see it.

It's messy, but it works.
Gary