Is there any reason the following ThinkScript code ends up returning NaN in the options chain custom column I'm working on?
As far as I can tell, this should just be giving me the current GOOG ask price in the column row. If I remember correctly, I've used this exact code before, and it returned the right price in some column rows, and it returned an outdated ask price in others.
Am I making a mistake, or is this just too much to be doing with ThinkScript in the options chain columns? Please note, I'm not looking for the current option's ask price, I'm trying to bring data from another source into this custom chain that is specifically in the options trading tab.
The code I'm using:
def gooClose = close(("GOOG"), AggregationPeriod.DAY,PriceType.ASK);
plot goog = gooClose;