Hi all,
First time poster and trying to learn the programming side of TOS. I have a quick question about get the Underlying Ask price to display for each strike price. Below is the code im using and for some reason im getting N/A returned.
def test = close(getunderlyingSymbol(), pricetype = Pricetype.ASK);
AddLabel(yes, AsPrice(test), color.White);
I can use Pricetype.LAST without issue but for some reason its not likely the Pricetype.ASK.
I poked around trying to find other posts with code but nothing has been fruitful.
Any help would be greatly appreciated.
Thanks
First time poster and trying to learn the programming side of TOS. I have a quick question about get the Underlying Ask price to display for each strike price. Below is the code im using and for some reason im getting N/A returned.
def test = close(getunderlyingSymbol(), pricetype = Pricetype.ASK);
AddLabel(yes, AsPrice(test), color.White);
I can use Pricetype.LAST without issue but for some reason its not likely the Pricetype.ASK.
I poked around trying to find other posts with code but nothing has been fruitful.
Any help would be greatly appreciated.
Thanks