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...
This marker-only indicator traces highest and lowest bars using 5 different periods (the first 3 in aggregation and the rest as is) for a total of 10 support and resistance signals of varying strength. Use Cosmic Markers Lite on its own or add on top of existing chart patterns or other line indicators.
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...
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 ...
Auto detect highest/lowest price within a range of bars (user defined). The range slides forward in time as new bars appear in the chart.
Optionally add Fibonnaci Lines (retracement or extension).
See the comments at the beginning of the script for a complete description.
While there are several versions of this indicator in...
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.
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...
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...
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,...
Midpoint - MG indicator is an indicator available in Netdania application. I wanted to contribute of moving it to this environment for Tradingview users. The basic logic is the value obtained by adding the highest and lowest levels in the specified periods and dividing them into two. The specified range is left to user preference. The...
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)...