racerwho
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: November 26th, 2020
Contact: TradingView Profile

Can you access the fixed range volume data in Pine?

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.

User avatar
Matthew
Site Admin
Site Admin
Posts: 92
Joined: July 1st, 2020
Location: Australia
Contact: Website Facebook Twitter TradingView Profile

Re: Can you access the fixed range volume data in Pine?

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

racerwho
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: November 26th, 2020
Contact: TradingView Profile

Re: Can you access the fixed range volume data in Pine?

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.

User avatar
Matthew
Site Admin
Site Admin
Posts: 92
Joined: July 1st, 2020
Location: Australia
Contact: Website Facebook Twitter TradingView Profile

Re: Can you access the fixed range volume data in Pine?

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

Return to “Pine Script Q&A”