thinkScript Invalid statement input error in scanner

hanna007

New member
Guys, please help! What is wrong in this script? Task is to write simple indicator in ThinkorSwim to scan for last price is greater than 5 USD.

Code:

Code:
input priceType = PriceType.LAST;
def value = 5;
plot see = priceType is greater than value;

Will be appreciate for help.
 

XeoNoX

Well-known member
VIP
Last market price is typically the closing market price unless the Market Maker decides to fill a special order. Its a rare occurrence if you happen to try to capitalize off the occurrence, but you can take into example TSLA when it got added to the SP500 the closing vs the last, most retail didnt even catch it unless they had option contracts they were going to exercise due to the $30 diff in intrinsic value. Anyone that held on to exercise same week expiration made alot of money.

Here is the example:

873Yp35.png


Is that what you are trying to scan for?

if you want close greater than 5 here is the code
Code:
close > 5;
 
Last edited:

XeoNoX

Well-known member
VIP
I gave you partial code, here is the full code, erase what you have and use this:

Code:
plot scan = close >5;

or
if you want to write with wizard
Code:
close is greater than 5
 

Similar threads

Top