Page 1 of 1
Can you access the fixed range volume data in Pine?
Posted: Thu Nov 26, 2020 2:11 am
by racerwho
I am trying to get info from the data the is used in the Volume profile fixed range indicator. Is this possible? From what I read in the documentation I couldn't find any reference to this. I did see someone else using a calculation to determine some volume but I would need to see it in a different format.
My goal is to find were price either gaps or price points were skipped in a candle.
Thanks.
Re: Can you access the fixed range volume data in Pine?
Posted: Thu Dec 10, 2020 4:15 am
by Matthew
Hi racerwho! Unfortunately no, not yet. You can't access fixed range volume data from the inbuilt indicator, but you might be able to code your own equivalent using time functionality to check volume within a range. Identifying price gaps between two candles is a lot easier, all you need to do is something like this:
Code: Select all
gapDistanceInPoints = abs(open - close[1])
I don't think you can detect prices that were skipped within a single bar, but I'd love to be wrong about that so please let me know if you do find a way :)
Re: Can you access the fixed range volume data in Pine?
Posted: Thu Dec 31, 2020 2:00 am
by racerwho
Thanks Matt, I really enjoyed your videos on YT. finding gaps is nice but I would like to find the imbalances in price better.... I suppose I could find that our potentially by comparing the wick of the the previous and post candle with and find some imbalance there too...
Thanks for the repsonse. If I figure out how to make this work I will let you know.
Re: Can you access the fixed range volume data in Pine?
Posted: Fri Jan 15, 2021 1:17 am
by Matthew
That's great racerwho, definitely do let us know if you figure out a solution. I'd love to play around with this sort of thing myself. Also don't be shy about suggesting this to the TradingView team, quite often they will add features like this if more than one person requests it and I personally would love to be able to access volume profile data in my scripts.
Good luck with your project :)