Swing Highs/Lows & Candle Patterns [LuxAlgo]This script labels swing highs and swing lows as well as the candle pattern that occurred at that precise point. The script can detect the following 6 candle patterns: hammer, inverse hammer, bullish engulfing, hanging man, shooting star, and bearish engulfing.
This indicator by its very nature backpaints by default, meaning that the displayed components are offset in the past.
🔶 USAGE
It can be interesting to see if a top or bottom is associated with a specific candle pattern, this allows us to study the potential of such a pattern to indicate a reversal. You can hover on a label with a specific pattern to see more details about it.
The notations HH, HL, LH, and LL you can see on the labels are defined as follows:
HH : Higher high
HL : Higher low
LH : Lower high
LL : Lower low
🔶 SETTING
Length: Sensitivity of the swing high/low detection, with lower values returning the maximum/minimum of shorter-term price variations.
LUX
Percentile Nearest Rank Using Arrays [LuxAlgo]The new array feature is extremely powerful, as it will allow pinescript users to do more complex things, or compute existing calculations more efficiently, it will also be possible to shine some light to some already existing functions, one of them being percentile_nearest_rank .
We have been working on this new feature with our pal alexgrover, and made this script which computes a rolling percentile using the nearest rank method.
Settings
Length: Window of the rolling percentile, determine the number of past data to be used.
Percentage: Return the current value if Percentage % of the data fall below that value, the setting is in a range (0,100).
Src: Input source of the indicator.
Usage
A rolling percentile can have many usages when it comes to technical analysis, this is due to its ability to return the value of three common rolling statistics, the rolling median, which can be obtained using a percentage equal to 50, the rolling maximum, obtained with a percentage equal to 100, and the rolling minimum, obtained with a percentage equal to 0.
When we use our rolling percentile as a rolling median, we can obtain a robust estimation of the underlying trend in the price, while using it as a rolling maximum/minimum can allow us to determine if the market is trending, and at which direction. The rolling maximum/minimum is a rolling statistic used to calculate the well known stochastic oscillator and Donchian channel indicator.
We can also compute rolling quartiles, which can be obtained using a percentage of 25 or 75, with one of 25 returning the lower quartile and 75 the upper quartile.
In blue the upper rolling quartile (%75), in orange the lower rolling quartile (%25), both using a window size of 100.
Details
In order to compute a rolling percentile nearest rank, we must first take the most recent length closing prices, then order them in ascending order, we then return the value of the ordered observations at index (percentage/100*length) - 1 (we use - 1 because our array index starts at 0).
LuxAlgo® - Oscillator Matrix™Oscillator Matrix™ is an all-in-one indicator that incorporates 6+ unique components designed for interoperability & confluence with one another to provide a powerful trend following & reversal detection experience.
Users can create various ways to utilize the indicator's features together such as looking for excess money flowing into the market alongside strong reversal signals appearing or getting real-time divergence signals alongside a lack of money flowing into the market to predict upcoming trends.
This indicator is described as an 'Oscillator Matrix' as it's made up of many different components that can create a systematic approach to analyzing markets alone, however, the indicator also can serve as a great secondary piece to a user's primary analysis with or without our other LuxAlgo Premium indicators.
🔶 FEATURES
Below we describe each component of Oscillator Matrix™ in order of each's significance for the most confluent analysis possible.
Money Flow - Easily see the amount of buying or selling liquidity entering the market by analyzing the green & red waves and how they react with their thresholds to achieve further insight. Best to analyze first before considering any signals the indicator can generate.
Thresholds - Dynamic levels that align above/below the Money Flow to show at which level significant buying or selling is actually taking place.
Overflow - Small lighter waves that occur within the Money Flow's display when excess buying or selling activity is occurring to accurately predict upcoming reversals.
Hyper Wave - An oscillator ribbon in green/grey that provides highly reactive trend following signals & powerful divergence detection.
Real-Time Divergences - Real-time divergence labels that appear on the Hyper Wave oscillator's adaptive ribbon. A highly effective approach to a concept that's not typically done for oscillators. Users can also increase the sensitivity of divergences within the settings.
Reversal Signals - Small dots on the upper or lower boundaries represent high frequency points that indicate possible reversals or a warning signal to upcoming larger reversal signals which are indicated separately by the large triangular arrows on the top & bottom of the indicator's panel.
Confluence Zones - Allows the Money Flow & Hyper Wave oscillator to be used together to display easily interpretable shades of bullish & bearish activity. Brighter, more vibrant colors indicate strong bullish or bearish confluence between these 2 features.
Confluence Meter - An optional display at the current bar to easily find the current level of confluence between all features within Oscillator Matrix™ indicated by the arrow pointing to bullish or bearish levels. (Disabled by default)
Generally, we recommend using these features in order from first to last, whereas analyzing components of the Smart Money Flow category prior to considering other features in your analysis is most productive to ensure you find proper confluence alongside any signal that is generated.
🔶 USAGE
In the image below, we can see 5 points of interest to a user analyzing Oscillator Matrix™ based on various different behaviors.
Point 1 : Here we can see a large reversal signal arrow at the bottom of the panel. These signals, like all signals in LuxAlgo Premium & any indicator in general are not meant to be used as buy/sell signals themselves.
What makes this signal particularly more of interest opposed to other reversal signals that may not play out right away is the Money Flow that corresponding as weak. We can tell the Money Flow is weak because it is not near the red threshold level.
This indicates to us that there is not real selling pressure occurring and that the market could easily reverse in these conditions.
Point 2 : In this specific area we can notice the Money Flow in green is moving upwards alongside the green threshold level. This combination indicates a high probability there is a lot of real buying volume coming into the market, opposed to the previous example (point 1) where the Money Flow was not near the threshold level.
We can also notice the Hyper Wave Oscillator is printing a green dot while above the 50 value on Oscillator Matrix™ panel, further indicating a likely bullish impulse to come.
Point 3 : There are multiple indications here showing us the market may potentially be reversing. The most notable being the larger red reversal arrow, however, as we mentioned previously these cannot be used by themselves.
A further indication is that on the Money Flow we can see Overflow has occurred by the lighter small wave that has appeared & is now turning downwards. This indicates that an excess of buyers have come into the market & are likely to be washed out with a move to the downside.
We can see this happen once again about 8 candles later paired with a high frequency reversal signal (red dot) which marked a local high before the larger impulse down.
Point 4 : You can notice during the recent 25 or so candles the high frequency reversal points (green & red dots) have been highly effective for indicating potential local highs & lows in real-time.
There was a previous real-time bullish divergence detected while Money Flow was strongly in the red and this did indicate a small move upwards, however, with the Money Flow still holding in the red, another high frequency reversal dot, and then as the Money Flow begins to decrease further, we see a clean local top detected here at point 4.
Point 5 : As the lower Confluence Zone moved into the bright red, we saw a large move to the downside and a large bullish reversal signal printed in real-time as well.
Just like point 1, we have a very clear indication the selling has stopped as we further analyze the Money Flow is nowhere near it's true Activity Line.
This analysis combined gave us a further indication of a larger reversal which played out with no lag at all as all reversal signals are fully predictive separate from the Hyper Wave oscillator itself, which can be used as a further trend following approach alongside signals & money flow.
🔶 NAVIGATING MARKET CONDITIONS
In the image above we can see another example with 6 new points of interest marked in green & red shaded areas, all accompanied by a list of possible interpretations of the indicator.
The importance of this usage example is to demonstrate the ability to focus on certain components of the indicator during specific market conditions. For any indicator attempting to catch reversals, trending market conditions will be a detriment to its usability.
The same amount of the components within Oscillator Matrix™ will support trending market conditions as there are components to support ranging market conditions. The indicator further aims to provide clear abilities to detect when the market is likely trending or ranging.
With an understanding of the components within the Smart Money Flow section particularly such as the Overflow & Thresholds, it's possible to develop a more significant understanding of when to consider the market is trending vs when to consider the market may be ranging.
By doing this, we can potentially determine at certain points when to 'filter out' reversal signals or to just consider them merely indications of local tops/bottoms opposed to significant tops/bottoms.
Analyzing a significant Overflow particularly is useful to consider a trend potentially coming to an end. For example, at point 5 in the image above we had a clear downtrend only until there was a very considerable amount of Overflow that begun a real reversal.
We recommend studying the outlined chart above & the list of indications at each shaded area to develop a deep understanding of how to navigate varying market conditions & spot various points of confluence during reversals.
🔶 CONCLUSION & ACCESS
This indicator is an extremely comprehensive approach to an oscillator that allows users to further develop a systematic approach to trading and can be paired great alongside other forms of technical analysis such as our LuxAlgo Signals & Overlays indicator.
Although we believe this indicator to be useful, it's critical to understand that past performance is not necessarily indicative of future results and there are many more factors that go into being a profitable trader.
You can see the Author's instructions below to get instant access to Oscillator Matrix™ & our LuxAlgo Premium suite.
LuxAlgo® - Signals & Overlays™Signals & Overlays™ is an all-in-one toolkit made up of more than 20+ features primarily focused on generating useful signals & overlays to fulfill any trader's technical analysis needs with relevant data.
Created directly with TradingView Pine Script Wizard, alexgrover - this is a first of its kind comprehensive script made fully from the ground-up to provide an all-in-one solution for traders.
Signals & Overlays™ can be used alongside other forms of technical analysis, however, it was also designed to be used as a stand-alone toolkit that can fit any trading style. Every feature included considers how not all technical indicators fit every market condition.
The ideal way to utilize this indicator is to explore through all of the features over time, pick & choose 2-3 features best suit your style of trading, and stick with those to create your own unique LuxAlgo trading strategy.
Providing Endless Possibilities Catering To All Trading Styles
Signals & Overlays™ works in any market for discretionary analysis & includes many features:
Beginner-friendly Presets to enable multiple features at once within one-click (locks other settings when enabled).
Confirmation Signals: Normal & Strong signals to help traders confirm trends (not to be followed blindly).
Contrarian Signals: Normal & Strong to help traders spot reversals (also not to be followed blindly).
Exit Signals: "x" marks that apply for both Confirmation Signals & Contrarian Signals to suggest potential take-profit areas during signals.
Signal Optimization Methods: Sensitivity / Agility, optimal sensitvity parameter displayed on dashboard, and Autopilot (dynamic setting).
Candle Coloring: Purple/Green/Red to visualize trends developing between 'normal' & 'strong'.
6+ Indicator Overlays that helps traders visualize trends, find reversal points, and get dynamic areas of support & resistance.
Filters within "Presets / Filters" to allow users to filter Confirmation Signals with Indicator Overlays & other metrics within LuxAlgo Premium.
A complete dashboard with highly actionable metrics such as Trend Strength, current volatility, volume analysis, etc.
Advanced Settings to display customizable TP/SL points, further enhance signal optimizations, & customize dashboard size/location.
Full Any Alert() Function Call Conditions included
Highly useful Filtered Alert Creator section to generate custom filtered signal alerts with Indicator Overlays & other metrics.
+ more. (Check the changelog below for current features)
🔶 USAGE
Basic Signals & Candle Coloring Demonstration
In the image below we can see a basic example of how these 2 core components function within Signals & Overlays™.
As explained earlier, the Confirmation Signals can generate normal labels as well as strong labels marked by the "+" symbol. These signals are directly correlated to the candle coloring in order to see the development of trends & navigate through different market conditions as best as possible.
The candle coloring comes especially in handy when using signals, whereas a positive sign for an uptrend to occur rather than a fake-out is to see candles consistently hold as green. This indicates the market is strong & is likely to continue an uptrend. Vice versa for sell signals & the candles holding as red.
Normal Confirmation Signals often occur with smaller trends, retracements within larger trends, or just as signals a user may not want to trust as much directly. In order to enhance your ability to trust signals more & find more actionable use cases out of LuxAlgo Premium, we recommend going to the settings menu of the indicator & activating some indicator overlays. These are covered in the next section.
🔶 INDICATOR OVERLAYS W/ SIGNALS
In the image below we have enabled the "Smart Trail" & "Reversal Zones" indicator overlays from within the settings of Signals & Overlays™. By using these overlays alongside the signals & candle coloring, users can find more confluence to create trading strategies or plans.
The Smart Trail provides an excellent area of dynamic support/resistance for traders, as well as an additional confluence for general trend following purposes alongside the Confirmation Signals.
The Reversal Zones are particularly useful for areas to immediately take profit on trades, however, during strong trends price may continue rising or falling through the Reversal Zones which makes a good use case of waiting for price to first exit the Reversal Zones before considering the next move in the market.
In the next image below we can see the market is generally ranging, making it more complicated for the standard Confirmation signals to perform greatly as they are meant to excel for finding developing trends. This image displays the Contrarian Signal Mode, Contrarian Gradient candle coloring, as well as the Trend Catcher Indicator Overlay to help us trade these market conditions specifically.
Paired with the Contrarian based candle coloring, these signals can be helpful to a trader looking to find confluent reversals. You can also see the Trend Catcher indicator overlay gives a hybrid approach to analyzing the underlying trend within this price action.
Some traders naturally are Contrarian in nature, so this signal mode may be of primary interest to them, however, most of the use cases will come from the standard Confirmation sigals paired with other overlays or regular technical analysis.
🔶 SIGNALS WITH AI CLASSIFICATION
Our toolkit is able to classify generated signals using a simple machine learning algorithm into four levels. These levels indicate if a signal will most likely indicate a trend continuation (level 3/4) or a reversal/retracement (1/2).
Users are able to filter out certain signals depending on their classification, only keeping signals of interest and potential filtering out false signals.
🔶 FILTERS
In the next image below we can see after resetting the Signals & Overlays™ indicator to it's defaults, we have simply enabled the "Smart Trail Filter" from within the Presets / Filters section at the top of the settings.
By doing this, we can filter out signals that are not aligned with the Smart Trail indicator overlay, which gives direct confluence in every signal that generates on the chart.
Applying filters to signals do not necessarily make them instantly "better" than using the indicator without them. Between every technical indicator, there are trade-offs. So while we can now use Confirmation signals & retests of the Smart Trail as great optimal entry points, at times the indicator may miss signals or retests of the Smart Trail.
The same is seen below with another one of the Filters within Signals & Overlays™; Trend Strength Filter.
We can see the indicator is using the Trend Strength metric to only generate Confirmation Signals that align with a trending market which can clean up a lot of noise during retracements as well as ranging markets.
However, the trade-off present now with this filter enabled is that at times the indicator will miss trends, in which we'd still need to be aware of the price action, candle coloring, or other forms of analysis to give us indications the market may start a new trend opposed to just relying on signals directly.
🔶 CONCLUSION
We believe that success lies in the association of the user with the indicator, opposed to many traders who have the perspective that the indicator itself can make them become profitable. The reality is much more complicated than that.
The aim is to provide an indicator comprehensive, customizable, and intuitive enough that any trader can be led to understand this truth and develop an actionable perspective of technical indicators as support tools for decision making.
You can see the Author's instructions below to get instant access to this indicator & our LuxAlgo Premium indicator suite.
🔶 RISK DISCLAIMER
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by LuxAlgo are purely for informational & educational purposes only. Past performance does not guarantee future results.