Scan High Low Range not working

Mike12

New member
i'm traing to define a range.

def HH = Highest(High,300);
def LL = lowest(low,300);
 
Last edited:
i'm traing to define a range.

def HH = Highest(High,300);
def LL = lowest(low,300);
Input highest = 8;
Input lowest = -8;
plot Scan = betwin (highest, lowest);

i don't understand what you are trying to do. you will have to elaborate,
try to describe what you want to see happen in tos.

what are the highest and lowest numbers ?
how are they to be used?
why 8 , -8 ?

how do you want to use hh and ll ?


when i'm stuck i make a chart study , that shows lines or values, so i can see what is going on.

i don't think this is what you want, but it is valid and plots a line, and may be a starting point.
this is a lower chart study, that checks if a stock price is between -8 and 8.

Code:
declare lower;

Input highest = 8;
Input lowest = -8;
input length = 300;

def HH = Highest(High, length);
def LL = lowest(low, length);

plot Scan = between(close, lowest, highest);

4PcTPIc.jpg
 

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

try to describe what you want to see happen in tos.

what are the highest and lowest numbers ?
how are they to be used?
why 8 , -8 ?

how do you want to use hh and ll ?


when i'm stuck i make a chart study , that shows lines or values, so i can see what is going on.

i don't think this is what you want, but it is valid and plots a line, and may be a starting point.
this is a lower chart study, that checks if a stock price is between -8 and 8.

It runs without errors,
but the returned symbols is way far out of range (8-8).
I interested in a range of 300 days (close) without a day in it that range that exceeded the limit of (8, -8) If the reference point is the closing of the 301st day back.
meaning - with no any move that exceeds PC 8, -8 throughout that range from the reference point (301)
 
Last edited:
It runs without errors,
but the returned symbols is way far out of range (8-8). ( not a channel)
I interested in a range of 300 days (close) without a day in it that range that exceeded the limit of (8, -8) If the reference point is the closing of the 301st day back.
meaning - with no any move that exceeds PC 8, -8 throughout that range from the reference point (301)

In addition, I would also like to add a degree that can be defined (e.g - 10 degree up slope) for the average slop of the entire range so i can defind it for - personal - channel up (if there is such a argument in TOS)

sorry, i'm still confused.

don't know what this range is ,
range (8-8)

don't know what this is
limit of (8, -8) .
no price will be negative, so don't understand why you want to compare a price to a negative number.

this is new info,
. the reference point is the closing of the 301st day back.
this will find the close 301 bars back.
def x = close[301];

no idea what this means, what is pc
exceeds PC 8, -8 throughout that range from the reference point (301)
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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