Hello. Stuck on an options scan and hoping someone more familiar with ThinkScript than I would be able to assist.
I'm looking to build a scan that returns options contract results for when:
From the TOS documentation here: https://tlc.thinkorswim.com/center/...Appendix-D---Using-NaN-and-Infinity-Constants
I found this:
"In order to check that close is NaN, the isNan() function can be used:
plot Data = if isNaN(close) then 1 else 0;"
I've tried this (scan > study > custom > thinkscript editor> aggregation is daily): IsNaN("value" = close) is true within 2 bars
However, when I run the scan on both stock and option hacker, for 'all optionable' there are no results. But new contracts are added daily so that can't be accurate.
Any idea on how to fix? Or is there something besides 'close' that I could check against? Any help would be much appreciated. Thanks.
I'm looking to build a scan that returns options contract results for when:
- new strike prices for existing expirations and/or
- new expirations are added to the chain.
From the TOS documentation here: https://tlc.thinkorswim.com/center/...Appendix-D---Using-NaN-and-Infinity-Constants
I found this:
"In order to check that close is NaN, the isNan() function can be used:
plot Data = if isNaN(close) then 1 else 0;"
I've tried this (scan > study > custom > thinkscript editor> aggregation is daily): IsNaN("value" = close) is true within 2 bars
However, when I run the scan on both stock and option hacker, for 'all optionable' there are no results. But new contracts are added daily so that can't be accurate.
Any idea on how to fix? Or is there something besides 'close' that I could check against? Any help would be much appreciated. Thanks.