Reply To: using LAST() for extended hours

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

#62402
MatthewMatthew
  • Topics: 5
  • Replies: 332
  • Posts: 337

Hi,

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:

Ex1

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.

Attachments:
1 user thanked author for this post.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close