# Percent form daily open

#### DavidG

##### New member
Hi,
maybe someone can help me since i am not ut in writing scruipt. I would like to know how far the current price is from the DailyOpen in percent. Similar to my picture where I see how far the short is from the EMA.

Solution
Hi,
maybe someone can help me since i am not ut in writing scruipt. I would like to know how far the current price is from the DailyOpen in percent. Similar to my picture where I see how far the short is from the EMA.

try this code in a watchlist.

Code:
``````def o = if SecondsFromTime(0930) == 0 and SecondsTillTime(0930) == 0 then open else o[1];
plot PercentChg = round(100 * (close / o - 1),1);``````

i changed this,
to display a % number.

#### halcyonguy

##### Well-known member
VIP
Hi,
maybe someone can help me since i am not ut in writing scruipt. I would like to know how far the current price is from the DailyOpen in percent. Similar to my picture where I see how far the short is from the EMA.

try this code in a watchlist.

Code:
``````def o = if SecondsFromTime(0930) == 0 and SecondsTillTime(0930) == 0 then open else o[1];
plot PercentChg = round(100 * (close / o - 1),1);``````

i changed this,
to display a % number.

#### DavidG

##### New member
Thanks ! Works great

## 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
• 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?