Scanner Issue...

netarchitech

Well-known member
I have an issue with the TOS Scanner...Essentially, no matter what I do, the Scanner returns the same result set...and none of the returned results meet the criteria specified...

Given the following setup below:

202301152348-TOS-SCAN-Issue.jpg


Here is a sample of the result set:

202301152348-TOS-SCAN-Issue2.jpg


Here is the custom script I am scanning with:

Code:
def length = 2;
def price = close;
def averageType = AverageType.WILDERS;

def NetChgAvg2 = MovingAverage(averageType, price - price[1], length);
def TotChgAvg2 = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio2 = if TotChgAvg2 != 0 then NetChgAvg2 / TotChgAvg2 else 0;

def RSI = 50 * (ChgRatio2 + 1);

plot scan = RSI < 10;

Am I missing something, is the Scanner broken? Any help would be greatly appreciated...Thanks in advance...
 
I have an issue with the TOS Scanner...Essentially, no matter what I do, the Scanner returns the same result set...and none of the returned results meet the criteria specified...
There is a disconnect between the script that you posted in your thread and the script that you have stuffed into the scanner.
They are not the same.

And FYI, the script in the scanner references an aggregation period which generally upsets the Scan Hacker.
 
Hi @MerryDay : Thanks for your reply and pointing out the coding discrepancy...The screenshot of the scan settings reflects an earlier iteration of code that I corrected after receiving the "Secondary Aggregation not allowed" error...The script posted above ran fine...Unfortunately, it just is not returning the correct results...I must say I'm at a loss to understand what appears to me a rather simple scan...

In any event, I am going to run it again, for the umpteenth time and see what happens...I'll continue to update the thread as the events unfold...

Thanks again for the support...I really appreciate it!

Have a great day :cool:
 
Hi @MerryDay : Thanks for your reply and pointing out the coding discrepancy...The screenshot of the scan settings reflects an earlier iteration of code that I corrected after receiving the "Secondary Aggregation not allowed" error...The script posted above ran fine...Unfortunately, it just is not returning the correct results...I must say I'm at a loss to understand what appears to me a rather simple scan...

In any event, I am going to run it again, for the umpteenth time and see what happens...I'll continue to update the thread as the events unfold...

Thanks again for the support...I really appreciate it!

Have a great day

have you changed the aggregation time , from month, to something else, to see if the output is different?

if you are running this scan many times, i hope you are changing settings, and seeing changes in the output.

if you aren't seeing any changes in the output, then maybe something isn't set right. that is the time to remove your scan script and replace it with something simple., like close < 20, and see if the output changes.

the next thing to try is enabling scripts in the scanner.
in your image , 'none of the following' is displayed in the header, meaning scripts will be ignored.
 
@MerryDay @halcyonguy :

Thank you for your responses and the support you've provided...I did finally stumble across the solution...Unfortunately, I did not see your post, @halcyonguy, regarding the "None of the following" condition grouping until after a lot of trial and error and frustration...

So it turns out that the study was somehow placed in the wrong "None of the following" Condition Grouping...see below...

202301161607-TOS-SCAN-Error.jpg


TOS was scoping out the results I was looking for in order to satisfy the condition! As a result, all I had to do was to move the RSI script to the "All of the following" Condition Grouping and all is well now...My father gets the scan results he was looking for and I got to learn something new :D

202301161612-TOS-SCAN-Corrected.jpg


Thanks again for your time, support and attention to this issue...It is greatly appreciated!

Good Luck and Good Trading :cool:
 

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

Thread starter Similar threads Forum Replies Date
TickTockTony B4 Scanner V3 Questions 1
W small stock gains scanner Questions 0
T Scanner for Less than 6% Gain from Open to Close Questions 2
H Pre market scanner Questions 1
N Mobius scanner Questions 2

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
331 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