Three Weeks Tight Scan for ThinkorSwim

TheRaptor22

New member
Looking for a scan for a three week tight scan , each weekly closing price within about 1% of prior weeks (3) close. Thanks in advance
 

Trotter2019

New member
I'm not good at scanning was wondering is there away to scan for consolidation at the high and low of the day or the previous day or the week not sure how to setup parameters any help would be thankful.
 

tomsk

Well-known member
VIP
Since I have a bit more free time today, I looked further into @TheRaptor22 request for a 3 week consolidation scan. I used Mobius consolidation scan and set it to a weekly aggregation and ran scans on the C&P 500, NASDAQ and Russell 2000. No results were obtained.

Next I dropped the aggregation down to a daily timeframe, and only found 1 result on the Russell 2000. Hence this suggests that only 1 out of the universe of stocks out there are in consolidation mode.
 

tomsk

Well-known member
VIP
@Trotter2019 No secondary aggregations are accepted in the scanner. The best that you can do is to define separate scan filters, each with its own aggregation.
 

Oleron

New member
I'm still pretty new at trading, but I've already come across the following pattern enough to stick out in my mind:








Seems to occur often, though certainly not exclusively, in biotech stocks, though that may be my personal bias.

Anyway, I want to build a scan for stocks that run flat like this then go parabolic. The trouble is, they often stay flat like this for months before that initial period of agitation. I want to build a scan that flags them after the flatline when they start to flare up, but I'm not sure how to go about it, and would appreciate any assistance to that end. Thanks.
 

Oleron

New member
My request was moved to this thread, which seems to have rather effectively buried it. Please read and consider the previous post.
 

KUMAR999

New member
Hi All,

I'm fairly new to TOS and looking for a script to Scan for stocks in consolidation phase for a specific duration (1 week,2 weeks,3 days) before the actual break out happens.

Kindly help or suggest if there are any scripts available for this.

Thanks in advance.
 

Optionsguy

New member
Has anyone been able to formulate a scan for this? Or does anyone know how to? I was also looking for something similar where I can search the weekly closing pricing being within 1% of last week's closing price?
 

XeoNoX

Active member
VIP
@Optionsguy set aggregation to weekly and it will scan weekly candles.

Code:
#Price is within X% max of the Previous Close
#### Change percentvalue to % in decimal format
###  Example .02 is 2%  and .025 is 2.5%
def percentvalue = .01;
#Price is with X of Previous Close
def Prev_close = (close[1]);
def precent_val = Prev_close*percentvalue;
plot scan3 = absvalue(close - Prev_close) is less than or equal to precent_val;
 
Last edited:

Similar threads

Top