Scan AccDist above (or below) zero line

ARL

Member
Plus
Greetings. Trying to scan for AccDist results that are above zero line or for results that are below zero line(20 min chart). I keep getting incorrect results when I try to build the script in the wizard.

AccDist()."AccDist" is greater than AccDist()."ZeroLine" is what I am using, but many of the results are below the ZeroLine, so I'm not doing this right.

Please advise on how I can get this working correctly. Thank you!

(Similarly, I'm trying a scan that produces results above the SRatio line for Relative Strength (not RSI).
 
Last edited:
Solution
Greetings. Trying to scan for AccDist results that are above zero line or for results that are below zero line(20 min chart). I keep getting incorrect results when I try to build the script in the wizard.

AccDist()."AccDist" is greater than AccDist()."ZeroLine" is what I am using, but many of the results are below the ZeroLine, so I'm not doing this right.

Please advise on how I can get this working correctly. Thank you!

(Similarly, I'm trying a scan that produces results above the SRatio line for Relative Strength (not RSI).
The ToS AccDist() function utilizes the TotalSum function.
The TotalSum function analyzes all the bars on your chart.
Given that the scanner has no idea how many bars, that you have chosen to...
Are you checking with extended hours enabled? Make sure your chart settings are the same as your scanner's settings.
 

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

Greetings. Trying to scan for AccDist results that are above zero line or for results that are below zero line(20 min chart). I keep getting incorrect results when I try to build the script in the wizard.

AccDist()."AccDist" is greater than AccDist()."ZeroLine" is what I am using, but many of the results are below the ZeroLine, so I'm not doing this right.

Please advise on how I can get this working correctly. Thank you!

(Similarly, I'm trying a scan that produces results above the SRatio line for Relative Strength (not RSI).
The ToS AccDist() function utilizes the TotalSum function.
The TotalSum function analyzes all the bars on your chart.
Given that the scanner has no idea how many bars, that you have chosen to include on your chart; it is not possible to replicate your chart results in a scanner.
 
Solution
The ToS AccDist() function utilizes the TotalSum function.
The TotalSum function analyzes all the bars on your chart.
Given that the scanner has no idea how many bars, that you have chosen to include on your chart; it is not possible to replicate your chart results in a scanner.
Is this still true if the scanner knows I'm viewing a 20 minute chart over 10 days? Extended hours not included.
 
Is this still true if the scanner knows I'm viewing a 20 minute chart over 10 days? Extended hours not included.
The ToS AccDist indicator analyzes all the bars on your chart.
The ToS platform provides us no capacity to tell the Scan Hacker how many bars are on our charts.
Therefore, you will never see the results from your charts in the scanner.

You could attempt to write a new indicator where you can provide input as to the number of bars that are on your chart.
THIS CANNOT BE USED AS IS!
Before attempting to use the following; you need to count all the bars that are on your chart
and then replace the "xxxx" in the below script with the total number of bars on your chart.

Ruby:
# @ARL's attempt to define bars to analyze in Scan Hacker
input = TotalNumberOfBars = xxx ;
def AccDist = Sum(volume * CloseLocationValue(), TotalNumberOfBars);
plot scan = AccDist > 0 ;
 
Last edited:
  • Like
Reactions: ARL
Thread starter Similar threads Forum Replies Date
H Scan for RSI>60 and MACD crossover +more Questions 0
S scan help for relative volume Questions 0
A Engulfing Candle Scan Questions 0
D Power X Scan Questions 0
A Bull/Bear 180 Scan Questions 0

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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