show yesterday Daily high and low ,close(today's open).
You can save It yourself for change show last value.
Pine script limit change the length from configure.
use as usually EMA.
However you can shift from price line.
ex:
if you calcaulte Ema Line by length 5. and shift 2/3 , and you'll get a more better ema.