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 wrote a simple ShowMe. Intended for daily intervals, it shows when a stock is at a 2 month high and its range is higher than the previous 9 days' ranges.
Criteria( Range >= Highest(Range,9) and
HighD(0) >= HighestFC(High,39)
It works as expected but when I create a scanner to find all such stocks that meet the criteria today, I only get stocks that met the criteria yesterday. For example...
Here's my scan criteria. Any help would be greatly appreciated, thanks!
Can you help answer these questions from other members on NexusFi?
Radarscreen and Scanner will only load the minimum amount of data by default. Therefore, you have to specifically increase the amount of data to be loaded. According to your screenshot you set the number of additional bars to load to 0, but your code requires at least 38 bars before the current bar. Consequently you will not get any results with your settings and increasing the additional data to load should fix this.
I would suggest starting with just the ShowMe without additional conditions to narrow things down.
Additionally you can give it a few more additional bars to test if that makes a difference.
You could also create your own indicator for the scanner, where you set the plot to 0 in case the condition is not present and otherwise use the Close. Then you can scan for the plot being <> 0 in the Scanner.
Alternatively I would suggest trying to scan for the alert to be true instead of using CustomSM.
Also keep in mind that the Scanner will only use closed bars which can explain why you get yesterday's results during the session, but this should change some time after the close.
I tried everything except writing an indicator version of the ShowMe. Your comment about about the Scanner only using closed bars helped me focus on the goal of the experiment. It's not an intraday strategy so I don''t need results right away.
The idea is:
Day 1: stock trades at a two-month high and does so with a range that's bigger than the previous nine daily ranges
Day 2: if stock trades above Day 1's high, then buy with a stop at Day 1's low.
I ran the scanner this morning before the open and got results for Day 1 (6/8/21)
It would be nice to have them yesterday after the close but that's ok. Now I'm going to try creating a Strategy for this.