How can I create a watchlist that shows me stocks that went up 150% within 6 months?

murkr

Member
VIP
I'm trying to follow stocks that are moving straight up in a not-so-sustainable way. Stocks that are up 150%+ within 6 months.

What criteria do I select when creating this type of watchlist?

I'm not trying to buy in at the top of course. But these huge moving stocks end up having a lot of eyes watch them so when the stock significantly retraces I'd buy the dip and shoot for a 10-20% profit.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Something like the following...

Ruby:
def agg = AggregationPeriod.MONTH;

def price = close(period = agg);

plot trend = if price > price[6] + (price[6] * 1.5) then 1 else Double.NaN;
Here's my contribution, didn't know that @rad14733 already posted after I started. I had created it as a scan for the monthly timeframe -
Ruby:
# Check results before using
# uses the 6 month low, scans for a 150% increase from that point
# scan on a monthly timeframe
plot scan = close >= (2.5 * low[6]);

I noticed an odd thing when first coding this. I had originally coded the multiplier as 1.5, but when testing the results, it was showing signals at 50% and greater, not 150% and greater! After a good bit of testing, I multiplied it by 2.5, and it finally starting showing at 150% gain. Then I realized . . .

10 * 1.5 = 15 or a 50% increase over the original amount, but a 150% increase above 0
10 * 2.5 = 25 or a 150% increase over the original amount

My initial math calculation to get "150% above the 6-month low" was wrong, as I need to treat the low price as "0". Multiplying by 1.5 gets 150% above 0, not the 6-month low. Unless my mind is completely befuddled. I'd appreciate someone (@rad14733, @mashume, @SleepyZ, @XeoNoX) to check if my math conclusion is correct.

Here's the code I used on the chart to check percentage values -
Ruby:
def l = low(period = aggregationperiod.MONTH)[6];
plot c = if close >= (2.5 * l) then l else double.nan;
c.setpaintingstrategy(paintingstrategy.line);
c.setdefaultcolor(color.red);
Note: I did my measuring of percentages using the line drawing tool. Wondering if the tool is somehow inaccurate.

Edit: posted wrong test code, changed it for the code in question.
 
Last edited:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
371 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top