Yes. Obviously, Open Interest should be present in your data named accordingly.
CODE:
Please log in to see this code.
Consider taking a look in WealthScript Programming Guide,
The Bars Object chapter. And QuickRef for the Bars object properties.
CODE:
Please log in to see this code.