Want cursor always pointed at last bar

want cursor always pointed at last bar,
how can i do that?

You didn’t write about the reason of such request, but:

  1. If you click on the last bar, the cursor (or selector line) stays there even if you switch to another Symbol(s). Just don’t click on other bars.
  2. If you click on the right hand area of the chart beyond the last bar, or below the chart - on the x-axis area, the selector line disappears, but you still get the last bar’s readings.
1 Like

the reason the set cursor to last bar is because, for example,
lastvalue(ema(c,5));
it calculate the cursor last 5 bars, instead of the real last 5 bars.

What version do you use ???

LastValue returns real LAST value, except when you are using some ancient version like 4.0.

http://www.amibroker.com/guide/afl/lastvalue.html

1 Like