Volume relative to current candle


Category:
0
0

Hey everyone and hello Hahn!

I was looking to implement a chart study that does the following but was unable to optain a specific candle’s volume (e.g. the candle from 9:30 am to 9:35 from two days ago (is this even possible??)).

What I would like to have is a study that calculates the average volume for a given candlestick (e.g. again, from 9:30 am to 9:35 am, the previous 10 candles in that time period had a volume average of 100).

  • I would like the study to be represented like the “VolumeAvg” study (see image). These “Relative volume” bars should be orange if they are bigger than % (input) of that candles average and cyan otherwise.

If anyone can help me I will be very happy and glad to make a contribution to the website 🙂

Thank you for the help and time, have a nice day.

Tom

 

PS: image link in case anyone can’t see it: https://prnt.sc/sita5i

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on May 18, 2020 12:58 am
160 views
0
Also here I am talking about Thinscript!
( at May 18, 2020 1:09 am)
0
Private answer

Many requests and many attempts have been made for this. Did you take the time to search this forum before submitting this post? I know we have a ton of stuff in here but it should not be too difficult to find one of the many posts on this topic.

Here are your search results for the term "relative volume":

https://www.hahn-tech.com/ans/cat/studies/?question_type=all&search=relative%20volume

However I will save you some time. Thinkorswim lacks the data objects that make something like this easy to implement. In Thinkorswim it is darn near impossible. The best solution I have found so far will only work for a single time frame and the code is an absolute nightmare.

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on May 18, 2020 10:39 am
0
Yes I have searched in the forum but found nothing. I'm happy you could give me a direction telling me this is a nightmare, thank you for you help!
( at May 19, 2020 12:19 am)