'Access to premarket data without displaying it

I was trying to create an indicator to draw pre-market low/high levels automatically, which is an integral part of many charting titles, but it seems that I've got stuck.

I wondered if PineScript can access pre-market data for an instrument without displaying pre-market data itself, i.e., without setting the "Extended Trading Hours" option, which breaks all trendlines and defeats the purpose?

I've tried to see the source code for indicators like "HL levels" in hopes of resolving my issue, but they don't seem to work while displaying Regular Trading Hours charts.

As a Premium membership holder, I was also trying to reach out the customer service, hoping for a premium answer. Alas, they referred me to the StackOverflow community.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source