DannyDotes
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: April 28th, 2022

Script to find amount of Ticks between Open and Close of a bar

I'm working on a script and I want to plot columns on an indicator that tells how many ticks are between the open and close of a bar. Not the entire bar though. I can't find this anywhere.

OneHanded
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: June 25th, 2022
Contact: TradingView Profile

Re: Script to find amount of Ticks between Open and Close of a bar

Do you mean something like plot (high-low)?

This would give you the difference between high and low, but seems to obvious an answer to your question.

Return to “Pine Script Q&A”