Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
average daily price movement- important but didn't found anywhere
hello fellow traders,
I'm newbie in this site, but will probably stick around and hopefully contribute a lot,
I'm trading 11 years, everything mostly the futures and stocks.
I'm completely new at thinkscript, and wanted to ask for an easy thinkscript I hope you savy programmers could help with:
If we want for example find out what is the average daily price movement for the last 300 days so we can tell what we might expect this way , and I think this way is better than SMA or ATR, because what if price doubled . or in case we checks on last 14 days instead of 300 days, what if this stock been calm and chilled this last 14 days but in the past it had it's 20-30% change on a day, and you guess this stock isn't vol based on the SMA/ATR of last 14 days - then it goes volatile out of the blue.
Actually I'm amazed I didn't found this code in the platform already - I really hope you could help me with it pls.
THANKS FOR ANY HELP!!!!
Can you help answer these questions from other members on NexusFi?
An easy way to do this is to use the average(data, length) function. So, for example if you want the average ATR(10) for the past 20 days...you would use average(ATR(10), 20).
Feel free to use the average function for any type of data, not just price.