First all of Thanks to Pine Team for adding Arrays to Pine!
In this script I tried to make example for
1. Finding S/R lines using highest/lowest function
2. Using 1D array as 2D (we keep S/R levels and age)
3. "Age" usage for S/R levels, getting older on each candle and changing colors by their age (maximum age is 127 then it disappears)
You can use...
The VIX Fix measures how close the current market price is to the lowest price of the last X candles. When prices are in uptrends, the close is usually near the high. But prices close near the low in downtrends.
It works because it’s based on how traders behave. The calculation fixes some of the problems with the VIX.
This indicator is based on ...
Highest / Highest High Highest (Data) - HHV (Data, Period)
Lowest / Lowest Low Lowest (Data) LLV (Data, Period)
These functions calculate the highest / lowest value of a selected data.
Highest High and Lowest Low options are mostly used.
The Highest function calculates the highest value of the selected data in the past.
The Lowest function calculates the lowest...
Artharjan Highest High and Lowest Low (HH-LL) Indicator allows users to plot Highest High and Lowest Low levels of the selected resolution and period on the chart along with previous day VWAP
Happy Trading :-)
A way to see if market is trending or not trending based on highest and lowest closing price. Market is considered to be trending when the indicator is above 0 (in blue) and ranging when under 0 (in red)
Quite simple but its a way to calculate the trend force since trend can be measured thanks to highest/lowest.
Similar to one of my previous scripts 'Ranged Volume', but instead of using volume, this script uses candle length mirrored. It creates a range using highest and lowest of a given period. When the range gets larger, it means the current candle is bigger than the largest candle of your given period (break-out).
Yellow = Bullish break out
Red = Bearish break...
The oscillator version of the stationary extrapolated levels indicator. The methodology behind the extrapolated levels where to minimize the risk of making a decision based only on a forecast, therefore the indicator plotted levels in order to determine possible reversal points, signals where generated when the detrended series crossed over/under...
A very simple, almost naive strategy, in which you buy on the lowest of the two previous candles and sell at the highest of the two previous candles. You can configure these highest and lowest lenght, in some assets two is too small of a number to make profit. You can also configure to exit the position after X, and I found that 7 (which is a week of working days)...
A SuperTrend like indicator based on highest and lowest candle close from a few bars back. It looks almost the same as Donchian Channels but with a dominant trend direction inside (Black line).
Uptrend: Candle closed higher than highest close
Downtrend: Candle closed lower than lowest close
This works best on higher time frames since a daily close is more...
A simple script that shows mirrored regular volume bars with the purpose to show break-outs and low volume ranges, using highest and lowest of a few bars back.
Use Heikin Ashi function to smooth the colors with the trend.
No matter how much I like PineScript, there are still things missing in the language. One of the most annoying issues is that you cannot set dynamic length value for highest/lowest functions. This length must be fixed integer. But it doesn't make sense in a lot of cases, when you'd like to know what was the highest/lowest value of a series SINCE EVENT in the past,...
Auto detect highest/lowest price within a range of bars. The range is user defined by selecting a fixed date (timestamp) for the left and right endpoints. As new bars appear in the chart, the endpoints do not move (thus "fixed" in time).
Optionally add Fibonnaci Lines (retracement or extension).
See the comments at the beginning of the script for a complete...