This indicator calculates relative volume, which is the ratio of present volume over an average of past volume.
It offers two calculation modes, both using a time reference as an anchor.
The simplest way to calculate relative volume is by using the ratio of a bar's volume...
Calculating time-based offsets is necessary when coders need to draw lines or labels into the future because using `xloc = xloc.bar_time` in `label.new()` or `line.new()` is then mandatory.
This script provides a function to help with those calculations:
f_timeFrom(_from, _qty, _units)
The function calculates a negative (into the past) or...
A basic functionality addition to alarms
Now you will be able to fire an alarm at a desired time
It needs to be added in a timeframe small enough for the alarms to show. So if you want to fire at a specific hour an alarm you need to add it minimum at the 1h timeframe
A truly time based indicator to check the strength of the asset based on "Time". The main idea came to my mind about 2 years ago, When i was counting the candles in an impulse move and comparing it to number of retracement candles .
So i got a period (13 for example) and checked the price change between the 13 candles, Then the space between those two...
• Zig Zag indicator plots points on the chart whenever prices reverse
by a percentage greater than a pre-chosen variable.
• Forecasts area based on zigzag statistics.
• Displays labels with detected patterns.
• Displays slope information rate of price, time diferentials and angle(experimental)
This script visualizes the different time sessions during the day.
The time ranges are set to the default Frankfurt, London, NY, Sydney and Tokyo, but can be
freely modified and turned off (I personally use to display only Tokyo and NY).
If you are a day trader, e.g. you trade with the Market Makers, this tool is a "must have".
It also displays the day of the...
Example how to set the time range window to be backtested for both entries and exits. Additional examples are also included showing how to set the date range and toggle plot visibility.
By incorporating this code with your own strategy's logic, it will allow you to backtest various time windows.
Much gratitude to @LucF and @a.tesla2018 for help with including...
This indicator is basically just a back-testing tool. All it does is highlight the background of your charts with the specified color within the specified timezone.
This is useful particularly for back-testing purposes, such as testing a day-trading strategy within a particular period of the day or ignoring signals that fall within the given timeframe (which is...
Hello Pine Scripters,
Sometimes we need to run some processes in the scripts on last N bar but currently we don't know bar_index value of realtime bar or number of remaining bars before we reached it. So most of us use "start date" as input and run some processes after "start date".
This experimental script finds last Nth bar approximately. As you can see in...
This script colours the background of any time range you specify, including weekend periods.
It can be useful for spotting patterns on Bitcoin (recurring times of buying or selling).
Checkboxes to switch on and off. Inputs to specify time and day of week.
Monday = 2
Tuesday = 3
Wednesday = 4
Thursday = 5
Friday = 6
Saturday = 7
Sunday = 1
This is an experimental study that takes a moving average of price, then offsets the average by up to 11 consecutive Fibonacci numbers from 1 to 144.
Choose between Kaufman's Adaptive Moving Average, Hull Moving Average, Fractal Adaptive Moving Average, Geometric Moving Average, or Exponential Moving Average.
CM Time Based Lines
Requested by codetrader to Visually Show Day Change on Intra-Day Charts.
Custom Indicator: Ability To Plot Recurring Time Lines On Chart!
Example of Uses:
Plot Lines at Midnight to Show Daily Change.
Plot Lines at Opening of Different Sessions.
Plot Lines at Opening and Closing of Sessions.
Plot Lines Every 4 Hours (Forex) To See 4-Hour...
Here is an example of a script showing a multi-time frame of TSI.
Chart below compares FX EURUSD Daily TSI to 1H TSI
Here is an updated version
study("True Strength Indicator MTF", shorttitle="TSI MTF")
resCustom = input(title="Timeframe", type=resolution, defval="60" )
long = input(title="Long Length", type=integer, defval=25)
short = input(title="Short...
This indicator in designed to be used with Renko and other price only bars (ie Kagi, LineBreak, Point&Figure) and shows the number of minutes a bar was open before it was confirmed and printed.
NOTE: It will only work on currencies and symbols that are in the 24/5 market, it does account for weekend market close time but does not account for any Forex market...