# Compare symbols overlay in the same chart

#### mini

##### Member
Need helps with this script :

declare upper;
plot Data = high("/ES");
plot Data1 = low("/ES");

how to make this script to plot the high just above a little bit the comparing stock's high? how to make this script to plot the low just below a little bit the comparing stock's low? Thank you!

Solution
Need helps with this script :

declare upper;
plot Data = high("/ES");
plot Data1 = low("/ES");

how to make this script to plot the high just above a little bit the comparing stock's high? how to make this script to plot the low just below a little bit the comparing stock's low? Thank you!

not quite sure what you are asking for. if a plot is set to be x distance away from another, on 1 bar, on every other bar the prices will move and the distance will be different.

if you want to adjust these line plots, use a factor. you could add a number or multiply. i prefer multiply, as it scales with prices.

Code:
``````declare upper;

input sym1 = "/ES";
def sym1_hi = high("/ES");
def sym1_lo = low("/ES");

input ht_factor = 0.01;
plot z1hi...``````
Need helps with this script :

declare upper;
plot Data = high("/ES");
plot Data1 = low("/ES");

how to make this script to plot the high just above a little bit the comparing stock's high? how to make this script to plot the low just below a little bit the comparing stock's low? Thank you!

not quite sure what you are asking for. if a plot is set to be x distance away from another, on 1 bar, on every other bar the prices will move and the distance will be different.

if you want to adjust these line plots, use a factor. you could add a number or multiply. i prefer multiply, as it scales with prices.

Code:
``````declare upper;

input sym1 = "/ES";
def sym1_hi = high("/ES");
def sym1_lo = low("/ES");

input ht_factor = 0.01;
plot z1hi = sym1_hi * ( 1 + ht_factor);
plot z1lo = sym1_lo * ( 1 - ht_factor);
#``````

not quite sure what you are asking for. if a plot is set to be x distance away from another, on 1 bar, on every other bar the prices will move and the distance will be different.

if you want to adjust these line plots, use a factor. you could add a number or multiply. i prefer multiply, as it scales with prices.

Code:
``````declare upper;

input sym1 = "/ES";
def sym1_hi = high("/ES");
def sym1_lo = low("/ES");

input ht_factor = 0.01;
plot z1hi = sym1_hi * ( 1 + ht_factor);
plot z1lo = sym1_lo * ( 1 - ht_factor);
#``````
thank you so much! it is what i want.

87k+ Posts
125 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

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?