RSI Xray + VolumeRSI Analysis:
The indicator calculates the Relative Strength Index (RSI) using a user-defined length (default: 14).
It colors the bars based on RSI levels to identify potential overbought and oversold conditions.
Bars exceeding the overbought level (default: 70) are colored, while bars below the oversold level (default: 30) are colored too.
This helps traders identify potential trend reversals or market exhaustion points.
Midpoint Analysis:
The indicator calculates the midpoint of each bar, which is the average of the high and low prices.
It colors the bars based on their relation to the midpoint.
Bars above the midpoint are colored, indicating potential bullish momentum.
Bars below the midpoint are colored, suggesting potential bearish momentum.
Volume Analysis:
The indicator offers the ability to analyze volume changes and identify high volume bars.
It colors the bars when the volume exceeds a user-defined threshold.
This feature helps traders identify potential areas of market interest and increased participation.
Moving Average (SMA):
The indicator plots a Simple Moving Average (SMA) line of the closing price over a user-defined period (default: 9).
This moving average line helps traders identify potential trends and spot areas of support or resistance.
RSI Extreme Conditions:
The indicator identifies extreme RSI conditions by comparing the current RSI value with the highest and lowest RSI values calculated from a user-defined number of previous bars (default: 10).
When the RSI exceeds the overbought level but is lower than the highest RSI value within the specified range, the bar color changes to a customizable color (default: blue).
Conversely, when the RSI falls below the oversold level but is higher than the lowest RSI value within the specified range, the bar color changes to the same customizable color.
This feature helps traders identify potential RSI-based trading opportunities and market turning points.
Customization:
The indicator offers customizable settings for colors, RSI levels, SMA length, volume thresholds, RSI extreme levels, and RSI label color.
Traders can modify these settings based on their preferences and trading strategies.
Overall, the 'RSI Xray + Volume' indicator provides a comprehensive view of RSI levels, market momentum, volume changes, and RSI extreme conditions. Traders can use this information to identify potential trade setups, validate market trends, and make more informed trading decisions. It can be applied to various timeframes and instruments, making it a valuable tool for both short-term and long-term traders.
Midpoint
TurntLibraryLibrary "TurntLibrary"
Collection of functions created for simplification/easy referencing. Includes variations of moving averages, length value oscillators, and a few other simple functions based upon HH/LL values.
ma(source, length, type)
Apply a moving average to a float value
Parameters:
source : Value to be used
length : Number of bars to include in calculation
type : Moving average type to use ("SMA","EMA","RMA","WMA","VWAP","SWMA","LRC")
Returns: Smoothed value of initial float value
curve(src, len, lb1, lb2)
Exaggerates curves of a float value designed for use as an exit signal.
Parameters:
src : Initial value to curve
len : Number of bars to include in calculation
lb1 : (Default = 1) First lookback length
lb2 : (Default = 2) Second lookback length
Returns: Curved Average
fragma(src, len, space, str)
Average of a moving average and the previous value of the moving average
Parameters:
src : Initial float value to use
len : Number of bars to include in calculation
space : Lookback integer for second half of average
str : Moving average type to use ("SMA","EMA","RMA","WMA","VWAP","SWMA","LRC")
Returns: Fragmented Average
maxmin(x, y)
Difference of 2 float values, subtracting the lowest from the highest
Parameters:
x : Value 1
y : Value 2
Returns: The +Difference between 2 float values
oscLen(val, type)
Variable Length using a oscillator value and a corresponding slope shape ("Incline",Decline","Peak","Trough")
Parameters:
val : Oscillator Value to use
type : Slope of length curve ("Incline",Decline","Peak","Trough")
Returns: Variable Length Integer
hlAverage(val, smooth, max, min, type, include)
Average of HH,LL with variable lengths based on the slope shape ("Incline","Decline","Trough") value relative to highest and lowest
Parameters:
val : Source Value to use
smooth
max
min
type
include : Add "val" to the averaging process, instead of more weight to highest or lowest value
Returns: Variable Length Average of Highest Lowest "val"
pct(val)
Convert a positive float / price to a percentage of it's highest value on record
Parameters:
val : Value To convert to a percentage of it's highest value ever
Returns: Percentage
hlrange(x, len)
Difference between Highest High and Lowest Low of float value
Parameters:
x : Value to use in calculation
len : Number of bars to include in calculation
Returns: Difference
midpoint(x, len, smooth)
The average value of the float's Highest High and Lowest Low in a number of bars
Parameters:
x : Value to use in calculation
len
smooth : (Default=na) Optional smoothing type to use ("SMA","EMA","RMA","WMA","VWAP","SWMA","LRC")
Returns: Midpoint
rth vwap and midMidpoint and VWAP are often important inflection points in daytrading. I managed to find a script providing me with a 24 hour session midline by NorthStarDayTrading and a RTH VWAP script by LDBC. So I decided to merge those two to get a RTH mid and vwap.
Half BackA dynamic intraday midpoint for Day Timeframe trader reference.
Midpoint is halfway between the day's highest high and lowest low.
Midpoint resets daily.
Intraday Mid PointA moving indicator that is overlaid main chart. Identifies the start of the day, and then applies this formula:
( Current High of Day + Current Low of Day ) / 2, to get the mid point. It is a useful tool to identify buy side or sell side control, along with vwap.
NSDT MidlineSimple script to plot the Midpoint between the High and Low of day for intraday trading. This is a key level that is respected quite often. Very easy to trade bounces or breakthroughs.
Rolling midpointsThe script made for research purposes which plots these statistics of a given window: Mid-range (max + min)/2, Lower midpoint (mid-range + min)/2, and Higher midpoint (mid-range + max)/2.
This could be interesting when checking periods with sample size <= 0, or checking distros with srs kurtosis values.
Mean & median are also there.
Midpoint OscillatorThe Midpoint Oscillator was created by Tushar Chande Ph.D. (Stocks & Commodities V. 9:11 (431-434)) and it does a great job of tracking extreme changes in the price. Buy when the line is green and sell when it turns red.
Let me know if you would like me to write more scripts!
True ATH/ATL w/ labelsPlots the All Time High and All Time Low, with optional labels when a new ATH/ATL is created. Reaches all the way back in history for the true high/low, not limited to the most recent 5000 candles like most scripts. Works on all time frames.
Relative Price OscillatorHere is a new experimental indicator we've been working on. The idea was to compare two EMA's of period midpoints to the actual closing price. The steps that were taken are listed below:
1.Calculate an EMA based on each period's midpoint ((High * Low) /2) for the last 9 periods.
2.Calculate an EMA based on each period's midpoint for the last 100 periods.
3. Divide the difference of the two EMA's by the closing price. ((EMA1 - EMA2) / Close).
4. Smooth the value from step #3 with an 18 period EMA. Multiply by 1000 for better scaling/visibility.
Using:
Bullish when line is green, bearish when line is red. Buy on first green, then sell on first red.
There is also an option to color the candles based on the RPO line.