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
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: