script for close of yesterday and close of today

I am trying to write script for:

close of yesterday < 7 day MA

close of today > 7 day MA and

close of today > high of yesterday (ignoring inside days)

Thanks

 

Hi Gareth,

The first two criteria can be handled with a single line of script:

Close() CrossesAbove MA()

This script uses the default Moving Average which is a 5SMA.

The second criteria would use:

Close() > High(1)

You would then combine them into a single script:

Close() CrossesAbove MA()
and
Close() > High(1)