lib_trackingLibrary "lib_tracking"
tracking highest and lowest with anchor point to track over dynamic periods, e.g. to track a Session HH/LL live and get the bar/time of the LTF wick that matches the HTF HH/LL
// DESIGN DECISION
// why anchored replacements for ta.highest / ta.highestbars / ta.lowest / ta.lowestbars:
// 1. they require a fixed length/lookback which makes it easier to calculate, but
// 2. this prevents us from tracking the HH/LL of a changing timeframe, e.g. live tracking the HH/LL of a running session or unfinished higher timeframe
// 3. tracking with anchor/start/reset flag allows to persist values until the next start/reset, so no other external storage is required
track_highest(value, reset, track_this_bar)
Parameters:
value (float)
reset (bool) : boolean flag to restart tracking from this point (a.k.a anchor)
track_this_bar (bool) : allows enabling and disabling of tracking, e.g. before a session starts or after it ends, values can be kept until next reset.
track_lowest(value, reset, track_this_bar)
Parameters:
value (float)
reset (bool) : boolean flag to restart tracking from this point (a.k.a anchor)
track_this_bar (bool) : allows enabling and disabling of tracking, e.g. before a session starts or after it ends, values can be kept until next reset.
track_hl_htf(htf, value_high, value_low)
Parameters:
htf (string) : the higher timeframe in pinescript string notation
value_high (float)
value_low (float)
Returns:
HL
Pivots For IndicatorsThis is an overlay indicator that finds and identifies pivots. It is very sensitive so works best on smoother oscillators such as Stoch RSI. Make sure you set the source to your indicator after you overlay it. You will need to adjust the rev high and low inputs in the settings. For example Stoch RSI would have a revhigh = 80 and revlow = 20. This script is not designed to work on the chart.
Yellow = First Higher low or First Lower High
Orange = Reversal (Indicator low and high levels can be adjusted in settings.
Teal = Higher Low
Red = Lower High
Gray = Higher high or Lower Low
Simple Zigzag UDT█ OVERVIEW
This indicator displays zigzag based on high and low, which is using user-defined types (UDT) or objects .
█ CREDITS
LonesomeTheBlue
█ FEATURES
1. Label can be resized.
2. Label can be display either short (Eg : HH, LL, H, L, etc) and long (Eg : Higher Low, etc)
3. Color can be customized either contrast color of chart background, trend color or customized color.
█ EXAMPLES / USAGES
HL-D Close Fraction Oscillator | AdulariDescription:
This indicator calculates the difference between price high's and low's, and fractions it by the close price. If it calculates the difference between a high and low or low and high is defined by whether the current close is higher than the previous close. It is then also rescaled to ensure the value is always appropriate compared to the last set amount of bars.
This indicator can be used to determine whether a market is trending or ranging, and if so in which direction it is trending.
How do I use it?
Never use this indicator as standalone trading signal, it should be used as confluence.
When the value is above the middle line this shows the bullish trend is strong.
When the value is below the middle line this shows the bearish trend is strong.
When the value crosses above the upper line this indicates the trend may reverse downwards.
When the value crosses below the lower line this indicates the trend may reverse upwards.
When the value crosses above the signal this indicates the current bearish trend is getting weak and may reverse upwards.
When the value crosses below the signal this indicates the current bullish trend is getting weak and may reverse downwards.
Features:
Oscillator value indicating the difference between highs and lows fractioned by the close price.
Signal indicating a clear trend and base line value.
Horizontal lines such as oversold, overbought and middle lines, indicating possible interest zones.
How does it work?
1 — Define trend by checking if current close is above or below previous close.
2 — If the current close is above the previous close, calculate the oscillator's value using this formula:
(high - low) / close
2 — If the current close is below the previous close, calculate the oscillator's value using this formula:
(low - high) / close
3 — Smooth the original value using a specified moving average.
4 — Rescale the value using this formula:
newMin + (newMax - newMin) * (value - oldMin) / math.max(oldMax - oldMin, 10e-10)
5 — Calculate signal value by applying smoothing to the oscillator's value.
Price Clouds Oscillator (PCO)This is the oscillator version of Price Clouds (PS). Use this with (PS) for best results.
This indicator shows you over bought and over sold regions similarly to to rsi or stochastic. This indicator centers a moving average around the hl2 of the price. This is calculated as the difference of four moving averages. The signal line shows you how much momentum in any given direction you have. You can also see how much volatility there is by the band width. Just like the Bollinger band high volatility comes before low volatility and visa versa. You can also see what the market is doing based on the signal crosses. If the fast line is above the slow line you are going up and visa versa. This indicator works in most markets, especially crypto. There is a tool tip for every aspect of this indicator explaining how everything works.
Key Feature:
>See where the price is relative to a mean price
>Measure volatility
>Clean global settings
>Normalization feature lets you scale the band from 0 to 1. You loose some information but its easier to use if you aren't measuring volatility.
I hope you are very profitable with this one!
If you find this indicator is useful to you, Star it, Follow, Donate, Like and Share.
Your support is a highly motivation for me.
PCO
----------------------/\-----
-------------/\----/----\---
\----------/----\/--------\-
--\------/------------------
----\_/---------------------
Pivot Points High Low MTF [Anan]█ OVERVIEW
Pivot Points High Low with Multi Time Frames support and bull/bear signal depends on pivot average
█ FEATURES
- Fully control of pivot (Source / Length Left / Length Right)
- Show HH, LL, LH, HL price on candles
- Show Avg Pivot High Low.
- Show Bull/Bear Labels.
- Control of signal accuracy (default: 0.5%)
- Show Pivot High Low Levels as a Fractal Chaos Channel.
- Multi-timeframe Table with support of Pivot High Low and pivot Average.
- BreakOut and BreakDown Labels in the table.
- Full control of displaying any row or any column.
- Full control of Table position and Size and Colors.
Pivot Points [CB]Automatically label pivots as HH/LH and HL/LL.
The criteria for determining pivot points can be configured.
N.White_ScalpM5TESTThis test version of the strategy is designed for scalping on the timeframe M5. It includes drawing support and resistance lines, a bollinger band.
Pivot Points High Low (HH/HL/LH/LL) [Anan]Hello Friends,
This is my own version of ( Pivot Hilo Support n Resistance Levels R3-3 by JustUncleL )
- V4 Pinescript
- Removed MA dependency filters
- Add some arrows
Combo Backtest 123 Reversal & (H-L)/C Histogram This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
This histogram displays (high-low)/close
Can be applied to any time frame.
WARNING:
- For purpose educate only
- This script to change bars colors.
Combo Strategy 123 Reversal & (H-L)/C Histogram This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
This histogram displays (high-low)/close
Can be applied to any time frame.
WARNING:
- For purpose educate only
- This script to change bars colors.
PP High/Low TSLPlots a higher-TF (selectable) PP H/L on the current chart, and plots the last of each H/L as a potential TSL. This is a module of a future private strategy.
V27: Initial release.
(H-L)/C Histogram Backtest This histogram displays (high-low)/close
Can be applied to any time frame.
WARNING:
- For purpose educate only
- This script to change bars colors.
G_MA-HL Multi-TFThe chart generate a channel of high-low moving average from 2 different period length.
Candle painted in blue/red when bullish/bearish confirm in both period length or otherwise painted in white.
HL MovingAvg2Line Cross Abbas V1.1Implemented the idea provided by user dhananjay.d.joshi . Please check the link below about how to use it
Update includes
Double EMA Input , defaults values are 189 for long period ema and 9 for short period ema
Double EMA Conditions for long and short
Ability to plot emas on chart