How to take an EMA of the result of a custom study?

pkerrant

New member
VIP
ETA: pls ignore this for now (I don't think I can delete); my indicator actually wasn't working in the first place, and I've made a post here: https://usethinkscript.com/threads/trouble-adapting-a-time-relative-volume-indicator.20284/

From searching these forums it seems it's not currently possible to pass the result of a custom study as an argument to something like ExpAverage (although please tell me if I'm wrong!).

Is there a way to implement the study as a script within another study, calculate that for the previous X bars, and then hard code the EMA for those X bars?

To be more specific: I have a custom study that takes the time-segmented SMA of volume. For example, if I'm looking at the 10:15 15 minute bar, it can tell me the volume average of all 10:15 bars (and only those bars) going back however many days. I would really, really, really like to be able to take the EMA of this data. Is there a simple way to do this?

I have tried implementing it as a script within a new custom study and that is...not working, for now, and I can't figure out if it's actually possible. I can post the study itself if that will help, and my attempts to implement it as a script, but it is LONG and very messy, because the only way I could figure out how to do this was to define each 15m segment in terms of time boundaries, and because I don't really know what I'm doing with thinkscript. (I so wish we could just use python.)

ETA: uuuuh actually this study is not working at all. I wrote it 2 years ago and tested it then, so I'm not sure what happened, but these numbers aren't right. I'll post about the actual study later
 
Last edited:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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