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.
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.
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.
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.