Reply To: using LAST() for extended hours

Optuma Forums Optuma Scripting using LAST() for extended hours Reply To: using LAST() for extended hours

  • Topics: 5
  • Replies: 625
  • Posts: 630


I’d setup a 15min watchlist and use a variation of the script i referenced earlier to find the price when the out of market hours ends to compare with the main sessions close.

To do this you’d use the PriceatSignal() function, but for that to work you need to set a Boolean trigger to mark when the out of session zone starts and ends.  That will give us the price points which we can then use to calculate the % difference between.

The final script would look like this:

The final result would look like this:


You can see how the Show View displays the % change each day, comparing the close of the main session with the close of the out of session activity. The values line up with a manual measurement of the same ranges.

I’ve attached an example workbook (which uses live USA Equities data) for you to review.  It may not be exactly what you are after but should give you a foundation to build on.

1 user thanked author for this post.

Pin It on Pinterest