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 futures io?
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.