Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm pretty new to the thinkscript and have been trying without avail to program a script to do what I want. I am hoping some of the experts here can help to start me off
I'm trying to do a study filter in the stock hacker which will screen for the stocks that will meet the following criteria:
1. Closing price of previous trading day crossed below 22 SMA (SMA based on closing prices of past 22 trading days)
2. Current price still below 22 SMA
Can anyone help?
Thank you!
Can you help answer these questions from other members on NexusFi?
close from 1 bars ago is less than Average("data" = close, "length" = 22) and close is less than Average("data" = close, "length" = 22)
What I'm trying to do is to scan for stock whose price is under the 22 SMA the previous trading day and current price is still under the 22 SMA. I hit "scan" and the scan results doesn't seem to be what I want. Some of the stocks have their current price above the 22 SMA. What am I missing here?
Hockster, the formula, you created is right one. Sometimes the scanner of ToS returns bad results...no one still know why. Check the timeframe setting on which your scan query is working on.
also you can try this query: (the same as yours)
plot scan = close[1] < average (close,22) && close < average (close,22);
Thanks for the reply. I got it to work somehow. Do you happen to know how I can get the average implied volatility? I'm trying to scan for stocks that has an avg imp vol within a certain range..