Wanted: % Price change in last X seconds

farawayz

New member
Hello,
I did search around so apologies if I missed it.

I am looking to get into a watchlist column(s) a running percentage change, so like current price - price 10 in ago.

Then I can configure the 10 min to whatever time frame.

Any help would be appreciated!
Thanks!
 
Solution
Hi MerryDay, Sorry I may have explained it poorly:

I'm not looking to jump timeframes on a chart, I want to write ThinkScript code that would logically do this below and operate strictly intraday (so don't need to compare today to 5 days ago)

x = Get Price (now)
y = Get Price (from 34 seconds ago)

z = x-y

What I would do is display that in a watchlist column, not dissimilar to the "ChangeFromOpen" column but I'm looking to have a running value (meaning its constantly updating). I can do something similar with ChangeFromOpen changing the time frequency, but then if I put say every 10 minutes, the value resets as its just taking that as a bound 10 min period, not a running 10 min (again for example, 10:13am to 10:23am)

Thank...
Hello,
I did search around so apologies if I missed it.

I am looking to get into a watchlist column(s) a running percentage change, so like current price - price 10 in ago.

Then I can configure the 10 min to whatever time frame.

Any help would be appreciated!
Thanks!
No that wouldn't be possible. Higher timeframe data is available on lower timeframes
But lower timeframes data is not available on higher timeframes. So a minute can only be defined on a minute chart.
 
No that wouldn't be possible. Higher timeframe data is available on lower timeframes
But lower timeframes data is not available on higher timeframes. So a minute can only be defined on a minute chart.
Hi MerryDay, Sorry I may have explained it poorly:

I'm not looking to jump timeframes on a chart, I want to write ThinkScript code that would logically do this below and operate strictly intraday (so don't need to compare today to 5 days ago)

x = Get Price (now)
y = Get Price (from 34 seconds ago)

z = x-y

What I would do is display that in a watchlist column, not dissimilar to the "ChangeFromOpen" column but I'm looking to have a running value (meaning its constantly updating). I can do something similar with ChangeFromOpen changing the time frequency, but then if I put say every 10 minutes, the value resets as its just taking that as a bound 10 min period, not a running 10 min (again for example, 10:13am to 10:23am)

Thank you for quick response!
 
Hi MerryDay, Sorry I may have explained it poorly:

I'm not looking to jump timeframes on a chart, I want to write ThinkScript code that would logically do this below and operate strictly intraday (so don't need to compare today to 5 days ago)

x = Get Price (now)
y = Get Price (from 34 seconds ago)

z = x-y

What I would do is display that in a watchlist column, not dissimilar to the "ChangeFromOpen" column but I'm looking to have a running value (meaning its constantly updating). I can do something similar with ChangeFromOpen changing the time frequency, but then if I put say every 10 minutes, the value resets as its just taking that as a bound 10 min period, not a running 10 min (again for example, 10:13am to 10:23am)

Thank you for quick response!
Seconds are not available either. The measurement of time is related to the timeframe of the chart.
A 5min chart only has data in 5min chunks. The data you want is not available.
 
Solution

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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