'Finding previous day open and close without security function

I want to find previous day open and close without using security function. How do I do that?



Sources

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

Source: Stack Overflow

Solution Source