ziksfx Structure - LiteInspired by the 'mentfx Structure' indicator created by Anton (mentfx) on TradingView, I have developed my own unique version of the market structure indicator, enhancing it with features that resonate with my personal trading style and offer additional insights into market behaviour.
In the spirit of Anton's original concept, my indicator incorporates the fundamental idea of "sells before buys" for bullish ranges and "buys before sells" for bearish ranges. This methodological approach is designed to mirror the activities of large market participants who typically offload positions before accumulating again in a bullish context, and accumulate before offloading in a bearish context.
The "ranges" displayed on the chart represent historical and updated highs and lows, reflecting the structural delivery of price across any timeframe. This approach assumes that in a bullish range, the market is likely to sustain upward momentum until it reaches a new high or experiences a significant "sell before buy" scenario, and conversely in a bearish range.
Key Enhancements and Features:
Immediate Break of Structure (BOS) Recognition: This feature promptly updates the high/low to the candle that triggers a BOS, providing a more agile response compared to the original mentfx Structure's approach of waiting for a swing high/low to set the range. This adaptation allows me for quicker adaptation to the market's unfolding narrative.
Market Stage Visualization: By seamlessly integrating with the structure tracking, my indicator presents the current 'Market Stage,' offering a clear stage of the current market's phase, which is crucial for informed trading decisions. The core methodology for determining market stages is derived from the foundational concepts established by mentfx.
Moving Average Integration: The inclusion of a Moving Average (MA) within the indicator adds a layer of trend confirmation, reinforcing decisions based on market structure with established trend analysis techniques. You can use EMA or SMA.
Customizable Session Settings: Tailor the indicator to focus on specific market hours, enhancing its utility for session-based trading strategies and backtesting efficiency.
Triple M: The Triple-M feature is also included in this indicator, which provides a visual representation of the market's momentum and potential reverse.
ATR: Utilizes the Average True Range (ATR) to estimate stop loss levels, providing a data-driven method to manage risk in accordance with current market volatility.
Watermark: Displays the name of the ticker and the current timeframe directly on the chart for easy reference, ensuring clarity and orientation when analyzing multiple instruments or timeframes.
How It Works:
When a range is assigned as being bullish, it will continue updating the high until a new high is created after the bos (= the new high of the range) and will not update or change until a candle's body, open's or close's above it - which will re-update the high and update the low. The low will be updated based on the last time price had a candle (open or closure) below a previous candle low, and then will find the lowest low after the rule was met to assign a low (the idea here is to locate the last major "sell before buy" and showcase that range. And this will occur vice versa, where: when a range is assigned as bearish, it will continue updating the low until a true low is created (=low of the range) and will not update or change until a candle's body, open's or close's below it - which will reupdate the low and update the high. The high will be updated based on the last time price had a candle (open or closure) above a previous candle high, and then will find the highest high after the rule was met to assign a high (once again, the idea being to locate the last major "buy before sell" and showcase price as existing in that range.)
A high is considered as a high that has a lower high to its left and to its right. And a low is considered as a low that has a higher low to its left and to its right. These high and low are used to determine the final high or low of a Bullish or Bearish range (respectively).
Range Determination: The indicator assesses the market momentum and assigns a Bullish or Bearish state based on the most recent directional break.
High/Low Rules Adaptation: In a Bullish range, indicator updates the high if a candle's body, not just the wick, exceeds the current high. This subtle yet significant change allows for a more conservative and potentially more accurate portrayal of bullish sentiment.
Dynamic Updating: As the market evolves, the indicator recalibrates the high and low lines based on the latest price movements, ensuring that you always have the most current and relevant data.
The indicator is not merely a trend-following or scalping tool. It leverages a distinct interpretation of market behavior, focusing on the last major "sell before buy" in Bullish ranges and "buy before sell" in Bearish ranges. By doing so, it aims to pinpoint the true sentiment behind price movements, offering traders a more grounded basis for anticipating market trends.
Of course, a special acknowledgment is due to Anton for his foundational work and the insightful knowledge he's giving day-by-day. The principles of his structure tracking method and market approach have significantly influenced the creation of this indicator, which now carries those insights forward, adapted through the lens of my personal trading philosophy.
移动平均线
DEMA Adjusted Average True Range [BackQuant]The use of the Double Exponential Moving Average (DEMA) within your Adjusted Average True Range (ATR) calculation serves as a cornerstone for enhancing the indicator's responsiveness to market changes. To delve deeper into why DEMA is employed specifically in the context of your ATR calculation, let's explore the inherent qualities of DEMA and its impact on the ATR's performance.
DEMA and Its Advantages
As previously mentioned, DEMA was designed to offer a more responsive alternative to the traditional Exponential Moving Average (EMA). By giving more weight to recent price data, DEMA reduces the lag typically associated with moving averages. This reduction in lag is especially beneficial for short-term traders looking to capitalize on trend reversals and other market movements as swiftly as possible.
The calculation of DEMA involves the following steps:
Calculate EMA1: This is the Exponential Moving Average of the price.
Calculate EMA2: This is the Exponential Moving Average of EMA1, thus it is a smoothing of a smoothing, leading to a greater lag.
Formulate DEMA: The formula
EMA1 = EMA of price
EMA2 = EMA of EMA1
DEMA = (2 x EMA1) - EMA2
effectively doubles the weighting of the most recent data points by subtracting the lagged, double-smoothed EMA2 from twice the single-smoothed EMA1.
This process enhances the moving average's sensitivity to recent price movements, allowing the DEMA to adhere more closely to the price bars than either EMA1 or EMA2 alone.
Integration with ATR
In the context of your ATR calculation, the integration of DEMA plays a crucial role in defining the indicator's core functionality. Here's a detailed explanation of how DEMA affects the ATR calculation:
Initial Determination of DEMA : By applying the DEMA formula to the chosen source data (which can be adjusted to use Heikin Ashi candle close prices for an even smoother analysis), you set a foundation for a more reactive trend-following mechanism within the ATR framework.
Application to ATR Bands : The calculated DEMA serves as the central line from which the ATR bands are derived. The ATR value, multiplied by a user-defined factor, is added to and subtracted from the DEMA to form the upper and lower bands, respectively. This dynamic adjustment not only reflects the volatility based on the ATR but does so in a way that is closely aligned with the most recent price action, thanks to the utilization of DEMA.
Enhanced Signal Quality : The responsiveness of DEMA ensures that the ATR bands adjust more promptly to changes in market conditions. This quality is vital for traders who rely on the ATR bands to identify potential entry and exit points, trend reversals, or to assess market volatility.
By employing DEMA as the core component in calculating the Adjusted Average True Range, your indicator leverages DEMA's reduced lag and increased weight on recent data to provide a more timely and accurate measure of market volatility. This innovative approach enhances the utility of the ATR by making it not only a tool for assessing volatility but also a more reactive indicator for trend analysis and trading signal generation.
The main concept of combining these is to reduce lag, get a more robust signal and still capture clear trends over medium time horizons.
For me, this is best used in confluence with other indicators, it can be made faster in order to get fasters response time, or slower. This is all depending on the needs of you as a trader.
User Inputs:
The script offers several user-configurable inputs, such as the period lengths for DEMA and ATR calculations, the multiplication factor for the ATR, and options to use Heikin Ashi candles or standard price data. Additionally, it allows for the toggling of visual features, like the plotting of the DEMA ATR and its moving average, and the application of color-coded trends on price bars.
Additional Features:
Moving Average Confluence: Traders can opt to display a moving average of the DEMA ATR, choosing from various types (e.g., SMA, EMA, HMA). This feature provides a layer of confluence, aiding in the identification of trend direction and strength.
Trend Identification :
The script employs logical conditions to ascertain the trend direction based on the movement of the DEMA ATR. It assigns colors to represent bullish or bearish trends, which are reflected in the plotted lines and the coloring of price bars.
Alerts :
Customizable alert conditions for trend reversals enhance the utility of the indicator for active trading, notifying users of significant changes in trend direction.
1D Backtests
We include these backtests as a general proxy for how they work.
Please do your own calibrating to suit it to your own needs and backtest.
Past results don't = future results but they can help you understand how it functions.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD
Volume Based S/R with EMA Crossover SignalsThis Pine Script indicator, titled "Volume Based S/R with EMA Crossover Signals," is designed for use on the TradingView platform and overlays on price charts to help traders identify potential buy and sell opportunities based on volume changes and EMA (Exponential Moving Average) crossovers. Let's break down its components for a detailed understanding:
Inputs
length: The number of bars used to calculate the standard deviation of the volume change. This parameter helps in identifying significant changes in volume over a specified period.
threshold: A multiplier applied to the standard deviation of volume change to determine significant spikes in volume, which are then used to identify support and resistance levels.
smoothLength: The length of the EMA used to smooth the price data, providing a clearer view of the overall price trend and helping to confirm trade signals.
fastEMALength and slowEMALength: The lengths of the fast and slow EMAs, respectively. These are used to generate crossover signals, where the crossing of the fast EMA over the slow EMA may indicate a potential entry or exit point.
Calculations
Volume Change and Standard Deviation: The script calculates the percentage change in volume from one bar to the next and then computes the standard deviation of these changes over the specified length. This process helps identify unusual volume activity, which can precede significant price movements.
Signal Generation Based on Volume: When the absolute value of the volume change divided by its standard deviation exceeds the threshold, it signals significant volume activity, potentially indicating strong support or resistance levels at previous highs or lows.
Smoothed Price: An EMA applied to the closing prices over smoothLength bars helps to confirm the trend direction and filter out noise.
EMA Crossover Signals: The script calculates two EMAs based on the fastEMALength and slowEMALength inputs. A crossover of these two averages generates potential buy or sell signals.
Logic for Buy/Sell Signals
Buy Signal: Generated when the price is above the identified support level (determined by significant volume activity), the fast EMA crosses above the slow EMA, and the price is also above the smoothed price. This confluence of conditions suggests upward momentum and potential buying opportunity.
Sell Signal: The opposite conditions generate a sell signal — when the price is below the identified resistance level, the fast EMA crosses below the slow EMA, and the price is below the smoothed price, indicating downward momentum and a potential selling opportunity.
Plotting
Support and Resistance Levels: Plotted as circles on the chart, with resistance levels in red and support levels in green, based on significant volume activity.
Smoothed Price and EMAs: The smoothed price line and both EMAs are plotted on the chart to help visually assess the trend and the crossover signals.
Buy and Sell Signals: Represented by shapes plotted on the chart, indicating the recommended trading action (buy or sell) based on the combined indicator logic.
Filling Between Support and Resistance: For visual clarity, the area between the identified support and resistance levels is filled, highlighting the range within which the price is expected to fluctuate.
This indicator offers a multi-faceted approach to trading, combining volume analysis with trend following via EMA crossovers. By identifying significant volume-based support and resistance levels and confirming trend direction with EMA crossovers and smoothed price trends, traders can make more informed decisions regarding entry and exit points. However, it's important to use this indicator as part of a comprehensive trading strategy, considering other factors such as market conditions, news, and technical analysis from other indicators.
Hull Trend and CompareThis Pine Script is a TradingView indicator called "Hull Trend and Compare." Its main purpose is to provide a visual representation of price trends and a comparative analysis between the selected symbol and another symbol chosen for comparison.
The key components and functionalities:
Price Trend Visualization:
1.Mode Selection:
Offers three modes: "Normal," "Linear," and "Heikin-Ashi."
Allows users to choose between a standard chart, linear regression, or Heikin-Ashi candlesticks.
2.Hull Moving Average (HullMA):
Calculates the HullMA for the selected mode and length.
Plots the HullMA on the chart.
Colors the background based on the relationship between HullMA and the closing price.
Generates buy and sell signals when the price crosses over or under the HullMA.
Symbol Comparison:
1.Comparison with Another Symbol:
Allows users to compare the selected symbol with another symbol (specified in the sym input).
Provides options to choose the method of calculation for the compared symbol (open, high, low, close).
Users can choose whether to use a different method of calculation (usem), adjust the length (len), and enable or disable comparison (usecmp).
Table Display:
1.Table for Technical Indicators:
Optionally displays a table showing technical indicators for both symbols.
Includes Stochastic Momentum, RSI (Relative Strength Index), and MACD (Moving Average Convergence Divergence).
Colors the table cells based on the direction of the indicators.
Users can customize the table's position, text size, and visibility (shwtbl).
Technical Indicators:
1.Stochastic Momentum (StochMoM):
Calculates %K and %D using the Stochastic formula.
Displays StochMoM values and colors cells based on bullish or bearish conditions.
2.Relative Strength Index (RSI):
Computes the RSI values and colors cells based on the direction of the trend.
3.MACD (Moving Average Convergence Divergence):
Calculates MACD and Signal line values.
Displays MACD values and colors cells based on bullish or bearish conditions.
Summary:
This script provides traders with a versatile tool for analyzing price trends, comparing symbols, and viewing key technical indicators. The combination of visual elements on the chart and a detailed table enhances the ability to make informed trading decisions.
This script is provided for educational purposes and does not constitute financial advice. Traders and investors should conduct their research and analysis before making any trading decisions.
F2X IndexThis script is designed to analyze financial market data, particularly focusing on trends and volatility. It allows users to input parameters such as index length and signal length. The script calculates moving averages and differences between the source data and the moving averages. It also optionally adjusts for volatility using the Average True Range (ATR) and can color the signal based on trend direction. The output includes plots for the index and signal, with customizable colors based on trend and volatility. The script provides a visual representation of market dynamics to aid in decision-making for traders and investors.
Multi Time Frame Exponential Moving Average and dasboardThis Pine script, titled "Multi Time Frame Exponential Moving Average (MTF EMA)," provides an innovative approach for traders who wish to track trends across multiple timeframes without having to switch between different charts. It combines two main features: an indicator displaying exponential moving averages (EMA) on five different time periods, as well as a compact dashboard that synthesizes this information on a single chart window.
The originality of this script lies in its ability to provide a comprehensive analysis of EMA trends across different time intervals, allowing traders to quickly and clearly understand the market dynamics without having to navigate between multiple charts. Rather than switching from one chart to another to observe trends on different time scales, traders can now consult a single dashboard to obtain all the necessary information.
The script uses exponential moving averages (EMA) to identify trends over five time periods: 5 minutes, 15 minutes, 1 hour, 4 hours, and 1 day. The values of the EMAs are calculated based on the closing prices of candles. Bullish or bearish trends are indicated by upward or downward arrows respectively, making it easy to interpret the information on the dashboard.
To use this script, traders can simply add it to their chart on the TradingView platform. They can customize the parameters of the exponential moving averages according to their preferences and choose between a dark or light theme for the dashboard. Then, they can observe trends on different time scales directly on the dashboard, enabling them to make informed trading decisions.
In summary, this script offers a practical and innovative solution for tracking trends across multiple timeframes, combining the efficiency of exponential moving averages with the convenience of a dashboard centralized on a single chart. This allows traders to save time and stay informed about market movements effectively and efficiently.
Swing Trading Indicators (Improved)This "Swing Trading Indicators" script is a sophisticated trading tool designed for traders who wants to use technical analysis for identifying optimal entry points, safeguarding profits, and protect their capital. With foundations loosely based on the momentum burst strategy by Pradeep Bonde, Kristjan Kullamaggie's trading methodologies, and incorporating automatic stop-losses based on Average Daily Range (ADR) and Average True Range (ATR), this script offers a comprehensive solution if you want to capitalize on short-term market movements.
Key Features:
Indicators and Moving Averages: Includes EMA (5, 10, 20, 50 days), SMA (200 days), and the highest and lowest prices over 200 days to provide a multifaceted view of market trends and momentum.
Thrust Indicator: Central to the script, the thrust indicator signals a buy point when a candlestick bar closes above the highs of the last two days, indicating a momentum burst. This feature is particularly inspired by Pradeep Bonde's 4% breakout strategy, highlighting the script's capability to identify range expansion and upward thrusts as key entry moments.
Automatic Stop-Levels: Utilizes ADR and ATR to set dynamic stop-losses, helping traders to manage risk effectively by adapting to market volatility.
Comprehensive Market Analysis : Through volume analysis, RSI, closing range, and other parameters, the script offers a deep dive into market dynamics, aiding in decision-making.
Who Should Use It:
This tool is ideal for swing traders and momentum traders focused on short to medium-term gains. Its robust set of features makes it suitable for those who prefer a data-driven approach to identify buying opportunities and manage risk.
Trading Style Compatibility:
The thrust indicator shines in momentum trading strategies, providing clear signals for entering trades ahead of potential price jumps. The integration of moving averages and volume analysis supports a variety of trading styles, including day trading and swing trading, by offering insights into trend strength and potential reversals.
How the Thrust Indicator Works:
When you see a thrust indicator (green upwards arrow below a candle) when the price is moving out of a consolidation or low volatility price-range , that's the buy point.
The thrust indicator is NOT indended as an indicator for long term positions or trend reversals, but for entries at a good price while capturing the first day of a potential 5-20% move in the coming 3-5 days.
The thrust indicator pinpoints moments when a stock shows a strong upward momentum, characterized by a candlestick closing above the highs of the preceding two days. This identifies a momentum burst, signaling an optimal entry point for traders looking to profit from a short-term price movement, typically ranging from 5-20% over the following 3-5 days. Such precision in identifying entry points is invaluable for traders focusing on capturing quick gains from market volatility.
"Top / Watch out" Indicator:
In addition to the script's core functionality, the "WatchOut" indicator plays a crucial role in identifying potential reversals after significant price movements. By analyzing conditions such as recent price increases compared to the average daily range, RSI levels, and the opening price distance from the EMA, the "WatchOut" indicator alerts traders to exercise caution. This feature is pivotal for those looking to avoid entering trades that might be on the verge of a pullback or reversal, enhancing the script's utility in managing risk.
Adjustable SMA with Comparative AnalysisInputs for Customization:
SMA Period (smaPeriod): Defines the period over which the SMA is calculated. The default is set to 252 days, typically representing a trading year.
Comparison Symbol (comparisonSymbol): Specifies the ticker symbol of another instrument (e.g., SPY for the S&P 500 ETF) to compare against the current stock. This allows for a relative performance analysis.
Days Ago for Price Difference (daysAgo): Determines the number of days in the past from which to calculate the price difference, allowing for a historical comparison.
The label, displayed at the end of the chart, contains several pieces of information:
Symbol vs. SMA: Shows the percentage difference between the current stock's close price and its SMA, indicating whether the stock is currently trading above or below its average price over the specified period.
Symbol vs. Days Ago: Displays the percentage difference between the current close price and the stock's open price from the specified daysAgo, offering insight into the stock's performance over that period.
Open Price X Days Ago: Presents the stock's open price from the specified number of days ago, providing a reference point for historical price analysis.
Minimum Price: Calculates a theoretical minimum price based on the stock's open price a specified number of days ago, adjusted by the percentage difference observed in the comparison symbol over the same period. This offers a unique insight into how the stock's price could have moved in parallel to the comparison symbol.
Comparison Symbol vs. SMA & Days Ago: Similar to the stock's analysis, these lines show the comparison symbol's performance relative to its SMA and its percentage difference from the specified days ago, aiding in a relative performance analysis.
Volatility Adjusted EMA - by CrunchsterApplies recent volatility adjustment to the exponential moving average, where the smoothing factor is 2/(N + 1) - N being the lookback period or span
Volatility of recent 30 days returns is calculated using standard deviation with a thirty day lookback.
Increased smoothing compared to a standard EMA, which also adjusts to market conditions, as first described by Chande in 1991.
Composite Trend Oscillator [ChartPrime]CODE DUELLO:
Have you ever stopped to wonder what the underlying filters contained within complex algorithms are actually providing for you? Wouldn't it be nice to actually visually inspect for that? Those would require some kind of wild west styled quick draw duel or some comparison method as a proper 'code duello'. Then it can be determined which filter can 'draw' the quickest from it's computational holster with the least amount of lag and smoothness.
In Pine we can do so, discovering how beneficial that would be. This can be accomplished by quickly switching from one filter to another by input() back and forth, requiring visual memory. A better way could be done by placing two indicators added to the chart and then eventually placed into one indicator pane on top of each other.
By adding a filter() helper function that calls other moving average functions chosen for comparison, it can put to the test which moving average is the best drawing filter suited to our expected needs. PhiSmoother was formerly debuted and now it is utilized in a more complex environment in a multitude of ways along side other commonly utilized filters. Now, you the reader, get to judge for yourself...
FILTER VERSATILITY:
Having the capability to adjust between various smoothing methods such as PhiSmoother, TEMA, DEMA, WMA, EMA, and SMA on historical market data within the code provides an advantage. Each of these filter methods offers distinct advantages and hinderances. PhiSmoother stands out often by having superb noise rejection, while also being able to manipulate the fine-tuning of the phase or lag of the indicator, enhancing responsiveness to price movements.
The following are more well-known classic filters. TEMA (Triple Exponential Moving Average) and DEMA (Double Exponential Moving Average) offer reduced transient response times to price changes fluctuations. WMA (Weighted Moving Average) assigns more weight to recent data points, making it particularly useful for reduced lag. EMA (Exponential Moving Average) strikes a balance between responsiveness and computational efficiency, making it a popular choice. SMA (Simple Moving Average) provides a straightforward calculation based on the arithmetic mean of the data. VWMA and RMA have both been excluded for varying reasons, both being unworthy of having explanation here.
By allowing for adjustment refinements between these filter methods, traders may garner the flexibility to adapt their analysis to different market dynamics, optimizing their algorithms for improved decision-making and performance on demand.
INDICATOR INTRODUCTION:
ChartPrime's Composite Trend Oscillator operates as an oscillator based on the concept of a moving average ribbon. It utilizes up to 32 filters with progressively longer periods to assess trend direction and strength. Embedded within this indicator is an alternative view that utilizes the separation of the ribbon filaments to assess volatility. Both versions are excellent candidates for trend and momentum, both offering visualization of polarity, directional coloring, and filter crossings. Anyone who has former experience using RSI or stochastics may have ease of understanding applying this to their chart.
COMPOSITE CLUSTER MODES EXPLAINED:
In Trend Strength mode, the oscillator behavior signifies market direction and movement strength. When the oscillator is rising and above zero, the market is within a bullish phase, and visa versa. If the signal filter crosses the composite trend, this indicates a potential dynamic shift signaling a possible reversal. When the oscillator is teetering on its extremities, the market is more inclined to reverse later.
With Volatility mode, the oscillator undergoes a transformation, displaying an unbounded oscillator driven by market volatility. While it still employs the same scoring mechanism, it is now scaled according to the strength of the market move. This can aid with identification of ranging scenarios. However, one side effect is that the oscillator no longer has minimum or maximum boundaries. This can still be advantageous when considering divergences.
NOTEWORTHY SETTINGS FEATURES:
The following input settings described offer comprehensive control over the indicator's behavior and visualization.
Common Controls:
Price Source Selection - The indicator offers flexibility in choosing the price source for analysis. Traders can select from multiple options.
Composite Cluster Mode - Choose between "Trend Strength" and "Volatility" modes, providing insights into trend directionality or volatility weighting.
Cluster Filter and Length - Selects a filter for the cluster composition. This includes a length parameter adjustment.
Cluster Options:
Cluster Dispersion - Users can adjust the separation between moving averages in the cluster, influencing the sensitivity of the analysis.
Cluster Trimming - By modifying upper and lower trim parameters, traders can adjust the sensitivity of the moving averages within the cluster, enhancing its adaptability.
PostSmooth Filter and Length - Choose a filter to refine the composite cluster's post-smoothing with a length parameter adjustment.
Signal Filter and Length - Users can select a filter for the lagging signal plot, also having a length parameter adjustment.
Transition Easing - Sensitivity adjustment to influence the transition between bullish and bearish colors.
Enjoy
Exponentially Weighted Moving Average Oscillator [BackQuant]Exponentially Weighted Moving Average (EWMA)
The Exponentially Weighted Moving Average (EWMA) is a quantitative or statistical measure used to model or describe a time series. The EWMA is widely used in finance, the main applications being technical analysis and volatility modeling.
The moving average is designed as such that older observations are given lower weights. The weights fall exponentially as the data point gets older – hence the name exponentially weighted.
Applications of the EWMA
The EWMA is widely used in technical analysis. It may not be used directly, but it is used in conjunction with other indicators to generate trading signals. A well-known example is the Negative Volume Index (NVI), which is used in conjunction with its EWMA.
Why is it different from the In-Built TradingView EWMA
Adaptive Algorithms: If your strategy requires the alpha parameter to change adaptively based on certain conditions (for example, based on market volatility), a for loop can be used to adjust the weights dynamically within the loop as opposed to the fixed decay rate in the standard EWMA.
Customization: A for loop allows for more complex and nuanced calculations that may not be directly supported by built-in functions. For example, you might want to adjust the weights in a non-standard way that the typical EWMA calculation doesn't allow for.
Use of the Oscillator
This mainly comes from 3 main premises, this is something I like to do personally since it is easier to work with them in the context of my system. E.g. Using them to spot clear trends without noise on longer timeframes.
Clarity: Plotting the EWMA as an oscillator provides a clear visual representation of the momentum or trend strength. It allows traders to see overbought or oversold conditions relative to a normalized range.
Comparison: An oscillator can make it easier to compare different securities or timeframes on a similar scale, especially when normalized. This is because the oscillator values are typically bounded within a range (like -1 to 1 or 0 to 100), whereas the actual price series can vary significantly.
Focus on Change: When plotted as an oscillator, the focus is on the rate of change or the relative movement of the EWMA, not on the absolute price levels. This can help traders spot divergences or convergences that may not be as apparent when the EWMA is plotted directly on the price chart. This is also one reason there is a conditional plotting on the chart.
Trend Strength: When normalized, the distance of the oscillator from its midpoint can be interpreted as the strength of the trend, providing a quantitative measure that can be used to make systematic trading decisions.
Here are the backtests on the 1D Timeframe for
BITSTAMP:BTCUSD
BITSTAMP:ETHUSD
COINBASE:SOLUSD
When using this script the user is able to define a source and period, which by extension calculates the alpha. An option to colour the bars accord to trend.
This makes it super easy to use in a system.
I recommend using this as above the midline (0) for a positive trend and below the midline for negative trend.
Hence why I put a label on the last bar to ensure it is easier for traders to read.
Lastly, The decreasing colour relative to RoC, this also helps traders to understand the strength of the indicator and gain insight into when to potentially reduce position size.
This indicator is best used in the medium timeframe.
INFINITY ALGO🆕Meet the updated version of our flagship indicator, now it's INFINITY ALGO!
🏃🏻 QUICK START
In very simple terms, our indicator generates complex trading signals on your chart (buy/sell), including Entry Point, Take Profit levels, Stop Loss level
To start, you need to add our indicator to your chart , choose a timeframe (we recommend 13min,15min and 4h but you can try any, these only have the best results) and set up notifications (how to do it told below) and that's it, you can work with it even without changing the settings!
Of course, to improve the accuracy of signals you will have to choose the optimal settings of the script for each trading pair and timeframe (you can find a guide below)
📊 SIGNALS
This script will generate complex trading recommendations, both Long and Short (signals); signals include:
- Entry Point:
Calculated based on pivot levels with confirmation by EMA/SMA (you can select this in the settings); also bullish/bearish cup is checked to confirm the entry.
Additionally, in the settings you can enable Heiken Ashi calculation mode (it shows much better on some trading pairs).
Why do we mashup these components and how they work together?
- The main indicator in our script is pivot levels, it is enabled by default and cannot be disabled. Auxiliary indicators (which you can switch on and off in the script settings) are EMA/SMA and Heiken Ashi. We have used pivot levels, which mark potential support and resistance zones based on previous price action. We have also used EMA/SMA that smooth out price fluctuations and show the direction of the trend. We have added an option to use Heiken Ashi that filters out noise and highlights the trend. We have also checked for bullish/bearish cup patterns, which are reversal patterns that indicate a change in momentum. By combining these indicators, we have created a more robust entry point that considers multiple factors such as price levels, trend, noise, and momentum.
- 6 Take Profit levels:
It is also possible to change in the settings (It is also possible to change the values for Short or Long positions separately), it will be fixed values in % (The default Take Profits for Long&Short are as follows: TP1-0.3%; TP2-1%; TP3-2%; TP4-3%; TP5-7.5%; TP6-16.5%)
- Stop Loss Level:
As with Take Profits, this is a fixed % value that you can customise to suit your risk management needs (It is also possible to change the values for Short or Long positions separately, by default is 4.5% for Long&Short positions)
*When trading on these signals, we strongly recommend that you exit the position in parts at each take profit or close your entire position at one particular take profit. Our script was designed specifically for exiting a position on take profits
⚙️ SETTINGS
Now let's talk about the settings of this script, which allow you to customise the signals quite a lot. In general, we recommend selecting the settings for each trading pair and timeframe separately, this will allow you to achieve better targets accuracy (the default settings are universal, you can trade with them without changing them if you want)
-> IMAGE <-
1. Period - minimum value of 2. Increasing this parameter will increase the accuracy of signals, but will reduce their number (accordingly, lowering the parameter will do the opposite). For the majority of trading pairs and timeframes the optimal period will be between 5 and 10 (the default value is 5).
2. Maximum Breakout length (in bars) - for most trading pairs you can set the value from 200 to 300 and it will be optimal. Below 200 is not recommended
3. T hreshold Rate % - this value also affects the accuracy and the number of signals - the higher this value is, the more often signals will be generated, but it can negatively affect the accuracy. The minimum value is 3, and the maximum value is 10. We recommend to try values in the range from 4 to 7 for most tickers
4. Minimum Number of tests - the number of level checks is required, we recommend to try 2, and only for some timeframes increase to 3
5. MA type & MA filter - The shorter the length of moving averages, the faster they react to trend changes, and show more local trends than global ones. If the length of MAs is longer, more global trends are shown. By default, the most optimal values are set.
By the way, you can ask us for a ready-made preset for any pair and we will be happy to help you!
📄 BACKTESTING
Now let's talk about how to properly test the settings and evaluate their effectiveness. Our script has a c ustom built-in backtester that shows statistics on the current trading pair and allows you to calculate the accuracy of each take profit target, as well as calculate values such as Gross profit/loss, net profit, and the ratio of initial deposit to profit. (you can enable/disable backtester "statistics" label in main settings)
In the main settings you can change the values for: initial deposit (Deposit $), trade size $ and leverage (by the way, it also affects the display of the label "Peak profit", which is calculated with this leverage)
-> IMAGE <-
Now let's look at the backtester - it shows detailed statistics for each Take Profit level, including: accuracy in % and number of trades; gross profit & loss; net profit in % and $ (based on selected settings); deposit to profit ratio in % and $.
Why did we choose such properties in the backtest for publication?
- Well, as the initial capital we took 5000$ and deposit 3% (150$) of the initial capital in each trade. For the fee was taken the value from the exchange Binance, which is 0.06% per trade (Taker + Maker, for a user without VIP on Binance and without taking into account additional fees such as funding, leverage fees, etc).
- Please also take a look at our inbuilt backtester ( IMAGE ) which counts the accuracy to each Take Profit. Also note that our inbuilt backtester does not take any fees into account. Pay attention to the last field "Deposit with Profit" it shows the value if you would close all positions at a certain target. For example, we can see that the most optimal is TP3 at these settings for this trading pair and timeframe, as the deposit to profit ratio will be +61.2%
- Also the script is more designed for swing and long term trading, so on most trading pairs you will be able to see statistics for 60-90 trades dataset
*disclaimer: please note that past results does not guarantee future performance! The accuracy of take profit targets in our backtester is calculated on past results, keep this in mind please
📥 NOTIFICATIONS
We have provided notifications that will deliver the latest signals to you in a convenient format in TradingView. The notification looks like this: It contains the entry point, Take Profits, Stop Loss, and a bit of advice on risk management. -> IMAGE <-
To set up notifications:
1. Select the script settings, trading pair and timeframe
2. Click "add alert on InfinityAlgo", then select "alert () function calls only" in the settings
-> IMAGE <-
3. That's it, now all that's left is to wait for a fresh alert
🔑 HOW TO GET ACCESS
We hope you will like this script :) We are always ready to help you with customisation, just let us know! To learn more about our scripts & get access - check out the “Author’s instructions” below 👇🏼
Trend Deviation strategy - BTC [IkkeOmar]Intro:
This is an example if anyone needs a push to get started with making strategies in pine script. This is an example on BTC, obviously it isn't a good strategy, and I wouldn't share my own good strategies because of alpha decay.
This strategy integrates several technical indicators to determine market trends and potential trade setups. These indicators include:
Directional Movement Index (DMI)
Bollinger Bands (BB)
Schaff Trend Cycle (STC)
Moving Average Convergence Divergence (MACD)
Momentum Indicator
Aroon Indicator
Supertrend Indicator
Relative Strength Index (RSI)
Exponential Moving Average (EMA)
Volume Weighted Average Price (VWAP)
It's crucial for you guys to understand the strengths and weaknesses of each indicator and identify synergies between them to improve the strategy's effectiveness.
Indicator Settings:
DMI (Directional Movement Index):
Length: This parameter determines the number of bars used in calculating the DMI. A higher length may provide smoother results but might lag behind the actual price action.
Bollinger Bands:
Length: This parameter specifies the number of bars used to calculate the moving average for the Bollinger Bands. A longer length results in a smoother average but might lag behind the price action.
Multiplier: The multiplier determines the width of the Bollinger Bands. It scales the standard deviation of the price data. A higher multiplier leads to wider bands, indicating increased volatility, while a lower multiplier results in narrower bands, suggesting decreased volatility.
Schaff Trend Cycle (STC):
Length: This parameter defines the length of the STC calculation. A longer length may result in smoother but slower-moving signals.
Fast Length: Specifies the length of the fast moving average component in the STC calculation.
Slow Length: Specifies the length of the slow moving average component in the STC calculation.
MACD (Moving Average Convergence Divergence):
Fast Length: Determines the number of bars used to calculate the fast EMA (Exponential Moving Average) in the MACD.
Slow Length: Specifies the number of bars used to calculate the slow EMA in the MACD.
Signal Length: Defines the number of bars used to calculate the signal line, which is typically an EMA of the MACD line.
Momentum Indicator:
Length: This parameter sets the number of bars over which momentum is calculated. A longer length may provide smoother momentum readings but might lag behind significant price changes.
Aroon Indicator:
Length: Specifies the number of bars over which the Aroon indicator calculates its values. A longer length may result in smoother Aroon readings but might lag behind significant market movements.
Supertrend Indicator:
Trendline Length: Determines the length of the period used in the Supertrend calculation. A longer length results in a smoother trendline but might lag behind recent price changes.
Trendline Factor: Specifies the multiplier used in calculating the trendline. It affects the sensitivity of the indicator to price changes.
RSI (Relative Strength Index):
Length: This parameter sets the number of bars over which RSI calculates its values. A longer length may result in smoother RSI readings but might lag behind significant price changes.
EMA (Exponential Moving Average):
Fast EMA: Specifies the number of bars used to calculate the fast EMA. A shorter period results in a more responsive EMA to recent price changes.
Slow EMA: Determines the number of bars used to calculate the slow EMA. A longer period results in a smoother EMA but might lag behind recent price changes.
VWAP (Volume Weighted Average Price):
Default settings are typically used for VWAP calculations, which consider the volume traded at each price level over a specific period. This indicator provides insights into the average price weighted by trading volume.
backtest range and rules:
You can specify the start date for backtesting purposes.
You can can select the desired trade direction: Long, Short, or Both.
Entry and Exit Conditions:
LONG:
DMI Cross Up: The Directional Movement Index (DMI) indicates a bullish trend when the positive directional movement (+DI) crosses above the negative directional movement (-DI).
Bollinger Bands (BB): The price is below the upper Bollinger Band, indicating a potential reversal from the upper band.
Momentum Indicator: Momentum is positive, suggesting increasing buying pressure.
MACD (Moving Average Convergence Divergence): The MACD line is above the signal line, indicating bullish momentum.
Supertrend Indicator: The Supertrend indicator signals an uptrend.
Schaff Trend Cycle (STC): The STC indicates a bullish trend.
Aroon Indicator: The Aroon indicator signals a bullish trend or crossover.
When all these conditions are met simultaneously, the strategy considers it a favorable opportunity to enter a long trade.
SHORT:
DMI Cross Down: The Directional Movement Index (DMI) indicates a bearish trend when the negative directional movement (-DI) crosses above the positive directional movement (+DI).
Bollinger Bands (BB): The price is above the lower Bollinger Band, suggesting a potential reversal from the lower band.
Momentum Indicator: Momentum is negative, indicating increasing selling pressure.
MACD (Moving Average Convergence Divergence): The MACD line is below the signal line, signaling bearish momentum.
Supertrend Indicator: The Supertrend indicator signals a downtrend.
Schaff Trend Cycle (STC): The STC indicates a bearish trend.
Aroon Indicator: The Aroon indicator signals a bearish trend or crossover.
When all these conditions align, the strategy considers it an opportune moment to enter a short trade.
Disclaimer:
THIS ISN'T AN OPTIMAL STRATEGY AT ALL! It was just an old project from when I started learning pine script!
The backtest doesn't promise the same results in the future, always do both in-sample and out-of-sample testing when backtesting a strategy. And make sure you forward test it as well before implementing it!
Furthermore this strategy uses both trend and mean-reversion systems, that is usually a no-go if you want to build robust trend systems .
Don't hesitate to comment if you have any questions or if you have some good notes for a beginner.
Dynamic Gradient Filter
Sigmoid Functions:
History and Mathematical Basis:
Sigmoid functions have a rich history in mathematics and are widely used in various fields, including statistics, machine learning, and signal processing.
The term "sigmoid" originates from the Greek words "sigma" (meaning "S-shaped") and "eidos" (meaning "form" or "type").
The sigmoid curve is characterized by its smooth S-shaped appearance, which allows it to map any real-valued input to a bounded output range, typically between 0 and 1.
The most common form of the sigmoid function is the logistic function:
Logistic Function (σ):
Defined as σ(x) = 1 / (1 + e^(-x)), where:
'x' is the input value,
'e' is Euler's number (approximately 2.71828).
This function was first introduced by Belgian mathematician Pierre François Verhulst in the 1830s to model population growth with limiting factors.
It gained popularity in the early 20th century when statisticians like Ronald Fisher began using it in regression analysis.
Specific Sigmoid Functions Used in the Indicator:
sig(val):
The 'sig' function in this indicator is a modified version of the logistic function, clamping a value between 0 and 1 on the sigmoid curve.
siga(val):
The 'siga' function adjusts values between -1 and 1 on the sigmoid curve, offering a centered variation of the sigmoid effect.
sigmoid(val):
The 'sigmoid' function provides a standard implementation of the logistic function, calculating the sigmoid value of the input data.
Adaptive Smoothing Factor:
The ' adaptiveSmoothingFactor(gradient, k)' function computes a dynamic smoothing factor for the filter based on the gradient of the price data and the user-defined sensitivity parameter 'k' .
Gradient:
The gradient represents the rate of change in price, calculated as the absolute difference between the current and previous close prices.
Sensitivity (k):
The 'k' parameter adjusts how quickly the filter reacts to changes in the gradient. Higher values of 'k' lead to a more responsive filter, while lower values result in smoother outputs.
Usage in the Indicator:
The "close" value refers to the closing price of each period in the chart's time frame
The indicator calculates the gradient by measuring the absolute difference between the current "close" price and the previous "close" price.
This gradient represents the strength or magnitude of the price movement within the chosen time frame.
The "close" value plays a pivotal role in determining the dynamic behavior of the "Dynamic Gradient Filter," as it directly influences the smoothing factor.
What Makes This Special:
The "Dynamic Gradient Filter" indicator stands out due to its adaptive nature and responsiveness to changing market conditions.
Dynamic Smoothing Factor:
The indicator's dynamic smoothing factor adjusts in real-time based on the rate of change in price (gradient) and the user-defined sensitivity '(k)' parameter.
This adaptability allows the filter to respond promptly to both minor fluctuations and significant price movements.
Smoothed Price Action:
The final output of the filter is a smoothed representation of the price action, aiding traders in identifying trends and potential reversals.
Customizable Sensitivity:
Traders can adjust the 'Sensitivity' parameter '(k)' to suit their preferred trading style, making the indicator versatile for various strategies.
Visual Clarity:
The plotted "Dynamic Gradient Filter" line on the chart provides a clear visual guide, enhancing the understanding of market dynamics.
Usage:
Traders and analysts can utilize the "Dynamic Gradient Filter" to:
Identify trends and reversals in price movements.
Filter out noise and highlight significant price changes.
Fine-tune trading strategies by adjusting the sensitivity parameter.
Enhance visual analysis with a dynamically adjusting filter line on the chart.
Literature:
en.wikipedia.org
medium.com
en.wikipedia.org
LMACD - Logarithmic MACD Weekly BTC Index [Logue]Logarithmic Moving Average Convergence Divergence (LMACD) Weekly Indicator - The LMACD is a momentum indicator that measures the strength of a trend using 12-period and 26-period moving averages. The weekly LMACD for this indicator is calculated by determining the difference between the log (base 10) of the 12-week and 26-week exponential moving averages. Larger positive numbers indicate a larger positive momentum.
For tops: The default setting for tops is based on decreasing "strength" of BTC tops. A decreasing linear function (trigger = slope * time + intercept) was fit to past cycle tops for this indicator and is used as the default to signal macro tops. The user can change the slope and intercept of the line by changing the slope and/or intercept factor. The user also has the option to indicate tops based on a horizontal line via a settings selection. This line default value is 0.125. This indicator is triggered for a top when the LMACD is above the trigger value.
For bottoms: Bottoms are displayed based on a horizontal line with a default setting of -0.07. The indicator is triggered for a bottom when the LMACD is below the bottom trigger value.
MA / Connectable [Azullian]Streamline trend analysis with the Moving Average indicator. Filter out market noise, aiding in the clear identification of market directions for dynamic strategy development.
This connectable moving average indicator is part of an indicator system designed to help test, visualize and build strategy configurations without coding. Like all connectable indicators , it interacts through the TradingView input source, which serves as a signal connector to link indicators to each other. All connectable indicators send signal weight to the next node in the system until it reaches either a connectable signal monitor, signal filter and/or strategy.
█ UNIFORM SETTINGS AND A WAY OF WORK
Although connectable indicators may have specific weight scoring conditions, they all aim to follow a standardized general approach to weight scoring settings, as outlined below.
■ Connectable indicators - Settings
• 🗲 Energy: Energy applies an ATR multiplier to the plotted shapes on the chart. A higher value plots shapes farther away from the candle, enhancing visibility.
• ☼ Brightness: Brightness determines the opacity of the shape plotted on the chart, aiding visibility. Indicator weight also influences opacity.
• → Input: Use the input setting to specify a data source for the indicator. Here you can connect the indicator to other indicators.
• ⌥ Flow: Determine where you want to receive signals from:
○ Both: Weights from this indicator and the connected indicator will apply
○ Indicator only: Only weights from this indicator will apply
○ Input only: Only weights from the connected indicator will apply
• ⥅ Weight multiplier: Multiply all weights in the entire indicator by a given factor, useful for quickly testing different indicators in a granular setup.
• ⥇ Threshold: Set a threshold to indicate the minimum amount of weight it should receive to pass it through to the next indicator.
• ⥱ Limiter: Set a hard limit to the maximum amount of weight that can be fed through the indicator.
■ Connectable indicators - Weight scoring settings
▢ Weight scoring conditions
• SM – Signal mode: Enable specific conditions for weight scoring
○ Start: A new trend starting will score
○ End: A trend ending will score
○ Zone: Continuous scoring for each candle between the start and the end.
• SP – Signal period: Defines a range of candles within which a signal can score.
• SC - Signal count: Specifies the number of bars to retrospectively examine and score.
○ Single: Score for a single occurrence
○ All occurrences: Score for all occurrences
○ Single + Threshold: Score for single occurrences within the signal period (SP)
○ Every + Threshold: Score for all occurrences within the signal period (SP)
▢ Weight scoring direction
• ES: Enter Short weight
• XL: Exit long weight
• EL: Enter Long weight
• XS: Exit Short weight
▢ Weight scoring values
• Weights can hold either positive or negative scores. Positive weights enhance a particular trading direction, while negative weights diminish it.
█ MA - INDICATOR SETTINGS
■ Main settings
• Enable/Disable Indicator: Toggle the entire indicator on or off.
• T - Type: Choose a type of moving average. (ALMA, EMA, HMA, RMA, SMA, SWMA, VWMA, WMA)
• L - Length: Set a period on which the moving average is calculated.
• F - Filter: Set a conditional filter for scoring:
○ Line direction: Score bullish when the trend line is going up, score bearish when the trendline is going down.
○ Line candle position: Score bullish when the candles are above the current trendline, score bearish when the candles are below the current trendline
○ Any: Score if any of the previously mentioned conditions are true
○ All: Score if all of the previously mentioned conditions are true
• S - Source: Choose an alternative data source for the Moving average calculation.
• T - Timeframe: Select an alternative timeframe for the Moving average calculation.
• C - Candletype: Choose a candletype for the alternative source.
■ Scoring functionality
• For each moving average you'll be able to score Bullish, Bearish or Neutral for each of the conditions as mentioned in the filter above.
█ PLOTTING
• Standard: Symbols (EL, XS, ES, XL) Moving average lines are plotted with bearish, bullish and neutral zones, in the visuals section you can enable plotting by weight which will only show the parts of the moving average line to which weight is addressed.
• Conditional Settings: A larger icon appears if global conditions are met. For instance, with a Threshold(⥇) of 12, Signal Period (SP) of 3, and Scoring Condition (SC) set to "EVERY", a moving average signaling over two times in 3 candles (scoring 6 each) triggers a larger icon.
█ USAGE OF CONNECTABLE INDICATORS
■ Connectable chaining mechanism
Connectable indicators can be connected directly to the signal monitor, signal filter or strategy , or they can be daisy chained to each other while the last indicator in the chain connects to the signal monitor, signal filter or strategy. When using a signal filter you can chain the filter to the strategy input to make your chain complete.
• Direct chaining: Connect an indicator directly to the signal monitor, signal filter or strategy through the provided inputs (→).
• Daisy chaining: Connect indicators using the indicator input (→). The first in a daisy chain should have a flow (⌥) set to 'Indicator only'. Subsequent indicators use 'Both' to pass the previous weight. The final indicator connects to the signal monitor, signal filter, or strategy.
■ Set up this indicator with a signal filter and strategy
The indicator provides visual cues based on signal conditions. However, its weight system is best utilized when paired with a connectable signal filter, signal monitor, or strategy .
Let's connect the MA to a connectable signal filter and a strategy :
1. Load all relevant indicators
• Load MA / Connectable
• Load Signal filter / Connectable
• Load Strategy / Connectable
2. Signal Filter: Connect the MA to the Signal Filter
• Open the signal filter settings
• Choose one of the three input dropdowns (1→, 2→, 3→) and choose : MA / Connectable: Signal Connector
• Toggle the enable box before the connected input to enable the incoming signal
3. Signal Filter: Update the filter signals settings if needed
• The default settings of the filter enable EL (Enter Long), XL (Exit Long), ES (Enter Short) and XS (Exit Short).
4. Signal Filter: Update the weight threshold settings if needed
• All connectable indicators load by default with a score of 6 for each direction (EL, XL, ES, XS)
• By default, weight threshold (TH) is set at 5. This allows each occurrence to score, as the default score in each connectable indicator is 1 point above the threshold. Adjust to your liking.
5. Strategy: Connect the strategy to the signal filter in the strategy settings
• Select a strategy input → and select the Signal filter: Signal connector
6. Strategy: Enable filter compatible directions
• Set the signal mode of the strategy to a compatible direction with the signal filter.
Now that everything is connected, you'll notice green spikes in the signal filter representing long signals, and red spikes indicating short signals. Trades will also appear on the chart, complemented by a performance overview. Your journey is just beginning: delve into different scoring mechanisms, merge diverse connectable indicators, and craft unique chains. Instantly test your results and discover the potential of your configurations. Dive deep and enjoy the process!
█ BENEFITS
• Adaptable Modular Design: Arrange indicators in diverse structures via direct or daisy chaining, allowing tailored configurations to align with your analysis approach.
• Streamlined Backtesting: Simplify the iterative process of testing and adjusting combinations, facilitating a smoother exploration of potential setups.
• Intuitive Interface: Navigate TradingView with added ease. Integrate desired indicators, adjust settings, and establish alerts without delving into complex code.
• Signal Weight Precision: Leverage granular weight allocation among signals, offering a deeper layer of customization in strategy formulation.
• Advanced Signal Filtering: Define entry and exit conditions with more clarity, granting an added layer of strategy precision.
• Clear Visual Feedback: Distinct visual signals and cues enhance the readability of charts, promoting informed decision-making.
• Standardized Defaults: Indicators are equipped with universally recognized preset settings, ensuring consistency in initial setups across different types like momentum or volatility.
• Reliability: Our indicators are meticulously developed to prevent repainting. We strictly adhere to TradingView's coding conventions, ensuring our code is both performant and clean.
█ COMPATIBLE INDICATORS
Each indicator that incorporates our open-source 'azLibConnector' library and adheres to our conventions can be effortlessly integrated and used as detailed above.
For clarity and recognition within the TradingView platform, we append the suffix ' / Connectable' to every compatible indicator.
█ COMMON MISTAKES, CLARIFICATIONS AND TIPS
• Removing an indicator from a chain: Deleting a linked indicator and confirming the "remove study tree" alert will also remove all underlying indicators in the object tree. Before removing one, disconnect the adjacent indicators and move it to the object stack's bottom.
• Point systems: The azLibConnector provides 500 points for each direction (EL: Enter long, XL: Exit long, ES: Enter short, XS: Exit short) Remember this cap when devising a point structure.
• Flow misconfiguration: In daisy chains the first indicator should always have a flow (⌥) setting of 'indicator only' while other indicator should have a flow (⌥) setting of 'both'.
• Hide attributes: As connectable indicators send through quite some information you'll notice all the arguments are taking up some screenwidth and cause some visual clutter. You can disable arguments in Chart Settings / Status line.
• Layout and abbreviations: To maintain a consistent structure, we use abbreviations for each input. While this may initially seem complex, you'll quickly become familiar with them. Each abbreviation is also explained in the inline tooltips.
• Inputs: Connecting a connectable indicator directly to the strategy delivers the raw signal without a weight threshold, meaning every signal will trigger a trade.
█ A NOTE OF GRATITUDE
Through years of exploring TradingView and Pine Script, we've drawn immense inspiration from the community's knowledge and innovation. Thank you for being a constant source of motivation and insight.
█ RISK DISCLAIMER
Azullian's content, tools, scripts, articles, and educational offerings are presented purely for educational and informational uses. Please be aware that past performance should not be considered a predictor of future results.
The OG Outback [TTF]The Outback indicator
After a major overhaul of our Outback strategy, we decided that we would make our original version available for anyone to use.
The fundamental element of this indicator is based on price action relative to a slow moving average. That said, given that price will always tend towards a moving average, we have also implemented a method for helping filter out false signals leveraging a "consolidation cloud" and fast moving average. This, coupled with references to a customized version of the Relative Strength Index (RSI), has enabled us to provide significantly higher quality signals relating to price crossing a moving average.
Note: For this version, we have only prepared a single set of conditions and alerts (as noted by the 🦘 symbols). However it's worth noting there are several variations that can be done with some fundamental technical analysis and referencing additional indicators that can take this foundation and build upon it for a substantial increase in risk/reward and profit targets.
PUELL - PUELL Top and Bottom Indicator for BTC [Logue]Puell Multiple Indicator (PUELL) - The Puell multiple is the ratio between the daily coin issuance in USD and its 365-day moving average. This multiple helps to measure miner profitability. The PUELL indicator smooths the Puell multiple using a 14-day simple moving average. When the PUELL goes to high values relative to historical values, it indicates the profitability of the miners is high and a top may be near. When the PUELL is low relative to historical values, it indicates the profitability of the minors is low and a bottom may be near. The default trigger values are PUELL values above 3.0 for a "top" and below 0.5 for a "bottom".
[KG] FCPO Spread*** Released Version 79 ***
------ INTRODUCTION ------
Spread trading where a trader buys one futures contract and sells another contract simultaneously.
Spread trading is popular because it is less risky when compared to outright futures trading. And since it is less risky, spread trading tends to have lower margin requirements.
------ DESCRIPTION ------
This indicator, FCPO Spread, is calculating the spread value of 2 FUTURE CONTRACTS and construct new candles based on Open, Close, High and Low of 2 contracts.
Moving Average were drawn based on spread value.
There's Spread Information at BOTTOM right of the chart which contain the following info.
Spread Contract Timeframe
Future Contracts Symbols for Spread calculation
Close = Spread/Difference of the 2 contracts.
Long Risk = Differences of Current level to SUPPORT
Short Risk = Differences of Current level to RESISTANT
------ ICONS ------
🚀 triggered when Bullish MA lineup, i.e Fast MA is above Slow MA (Default MA period 5,9,13,20).
L ONG is TURTLE Buy signal when spread closes above Turtle Resistant.
💥triggers when Bearish MA lineup i.e Fast MA is below Slow MA (Default MA period 20,13,9,5)..
S HORT is TURTLE Sell signal when spread closes below Turtle Support
Note : Closing price varies depend on chooses timeframe
------ USAGE ------
LONG when L signal appear.
L signal will appear when the spread breaks and closing above Turtle Resistant .
Turtle Resistant is calculated based on previous N candles high where N value (Default 5) is configurable in the setting.
It is better to LONG during uptrend i.e Bullish MA Lineup (represented by 🚀 icon)
SHORT when S signal appear.
S signal will appear when the spread breaks and closing below Turtle Support .
Turtle Support is calculated based on previous N candles low where N value (Default 5) is configurable in the setting.
It is better to SHORT during downtrend i.e BEARISH MA Lineup (represented by 💥 icon)
Chop Zone 2X [EPS]This indicator, like the one shared previously Chop Zone
The Chop Zone script transforms traditional market trend analysis by leveraging the power of Exponential Moving Averages (EMAs) and their angles. Designed to identify market trends with a higher degree of accuracy, this script offers traders an innovative approach to detect uptrends, downtrends, and neutral market phases.
🔶 USAGE
Snapshot:
The indicator's core functionality revolves around the calculation of the EMA angle, providing a visual representation of market trends through color-coded columns:
Green Columns: Indicate an uptrend, suggesting bullish market conditions.
Red Columns: Signal a downtrend, highlighting bearish market conditions.
Transparent Columns: Represent neutral market conditions, indicating no significant trend.
The angle of the EMA is calculated over a user-defined period, adapting to different trading strategies and timeframes for a customized analysis.
🔶 DETAILS
At the heart of the Chop Zone is its unique angle calculation method. By assessing the slope of the EMA, the script quantifies the strength and direction of the market trend. This calculation is further refined by considering the highest highs and lowest lows over a specified period, making the indicator adaptable to varying market volatilities.
EMA Angle Limits:
Uptrend Threshold: User-defined angle for identifying uptrends.
Downtrend Threshold: User-defined angle for recognizing downtrends.
The script also allows for extensive customization, including the selection of the source data for EMA calculations and the length of the EMA, thereby catering to diverse trading preferences.
🔶 SETTINGS
Source: Choose between close, open, high, low, etc., for the EMA calculation.
EMA Length: Define the length of the EMA for trend analysis.
EMA Angle Thresholds: Set the upper and lower angle limits to categorize market trends.
Color Settings: Customize the colors for uptrend, downtrend, and neutral trends for easy visualization.
🔹 Note
The Chop Zone indicator is not just a tool for trend identification; it's a comprehensive system for understanding market dynamics. The unique angle calculation offers a fresh perspective on EMA analysis, making it a valuable addition to any trader's toolkit. However, users should integrate this indicator into their broader trading strategy, considering other market factors and indicators for optimal decision-making.
Chop Zone [EPS]The Chop Zone script transforms traditional market trend analysis by leveraging the power of Exponential Moving Averages (EMAs) and their angles. Designed to identify market trends with a higher degree of accuracy, this script offers traders an innovative approach to detect uptrends, downtrends, and neutral market phases.
🔶 USAGE
The indicator's core functionality revolves around the calculation of the EMA angle, providing a visual representation of market trends through color-coded columns:
Green Columns: Indicate an uptrend, suggesting bullish market conditions.
Red Columns: Signal a downtrend, highlighting bearish market conditions.
Transparent Columns: Represent neutral market conditions, indicating no significant trend.
The angle of the EMA is calculated over a user-defined period, adapting to different trading strategies and timeframes for a customized analysis.
🔶 DETAILS
At the heart of the Chop Zone is its unique angle calculation method. By assessing the slope of the EMA, the script quantifies the strength and direction of the market trend. This calculation is further refined by considering the highest highs and lowest lows over a specified period, making the indicator adaptable to varying market volatilities.
EMA Angle Limits:
Uptrend Threshold: User-defined angle for identifying uptrends.
Downtrend Threshold: User-defined angle for recognizing downtrends.
The script also allows for extensive customization, including the selection of the source data for EMA calculations and the length of the EMA, thereby catering to diverse trading preferences.
🔶 SETTINGS
Source: Choose between close, open, high, low, etc., for the EMA calculation.
EMA Length: Define the length of the EMA for trend analysis.
EMA Angle Thresholds: Set the upper and lower angle limits to categorize market trends.
Color Settings: Customize the colors for uptrend, downtrend, and neutral trends for easy visualization.
🔹 Note
The Chop Zone indicator is not just a tool for trend identification; it's a comprehensive system for understanding market dynamics. The unique angle calculation offers a fresh perspective on EMA analysis, making it a valuable addition to any trader's toolkit. However, users should integrate this indicator into their broader trading strategy, considering other market factors and indicators for optimal decision-making.
Urika Trend StrengthThe Urika Directional Strength (UDS) indicator calculates and visualizes the strength of the directional trend in the price data. It helps traders see the strength and direction of the trend and allows them to make informed trading decisions based on trend changes.
Calculation:
The Simple Moving Average is used to determine the upper and lower directional bands by adding and subtracting the product of the standard deviation of the price data and the multiplier of the moving average.
Direction: The upward directional trend and downward directional trend are calculated by taking the absolute value of the difference between the price data and the upper and lower directional bands, divided by the product of the standard deviation and the multiplier.
Strength: It is calculated by taking the absolute value of the difference between the price data and the moving average, divided by the product of the standard deviation and the multiplier.
Interpretation:
Direction: The position of the long and short lines at the top indicates the direction of the ticker. Long line for long position and Short line for short position.
Strength: When the Strength line is below the directional lines, it is a weak trend or consolidating. If it stays in between the two directional lines, it is a strong trend.
Divergence Signal [TradingFinder] RSI & MACD Reversal On Swing🔵 Introduction
Sometimes in analyzing price charts using indicators, you may observe a discrepancy. For instance, while the price of stocks, currencies, or commodities is increasing, the indicator shows a decrease. Such a phenomenon in technical analysis is termed "divergence." Divergences are categorized into three types based on their formation and the prediction they make about the continuation of the price trend: "Regular Divergence," "Hidden Divergence," and "Time Divergence."
🟣 Important :
• This indicator exclusively identifies regular divergences since its primary function is to detect reversal points.
• This indicator identifies divergences using three indicators: "Moving Average Convergence Divergence" (MACD), "Relative Strength Index" (RSI), and "Awesome Oscillator" (AO). The user can choose each of these indicators in the settings using the "Divergence Detection Method" dropdown menu for identifying divergences. These settings are by default set to the MACD mode.
🔵Types of Divergence
Divergences, as mentioned, offer different predictions about the continuation of price trends. Hence, they have various types. We will focus on explaining regular divergences based on this indicator.
🟣 Regular Divergence(RD) :
Regular divergence is a situation arising from contradictory behavior between the indicator and the price chart at the end of a trend. By identifying regular divergences, we anticipate a change in trend direction resembling a reversal pattern.
Regular divergence has two types based on the trend and prediction:
Negative Regular Divergence (RD-) :
This type occurs between two price peaks at the end of an uptrend. Despite forming a new high, the indicator fails to recognize it, indicating a negative regular divergence. The likelihood of a subsequent downtrend is high. Negative divergence suggests strong selling pressure and weak buying power, portraying an unfavorable future for the stock.
Positive Regular Divergence (RD+) :
In contrast, positive regular divergence happens at the end of a downtrend and between two price troughs. As depicted in the chart, although the price forms a new low, the indicator doesn't acknowledge it. Positive regular divergence indicates robust buying pressure and weak selling power. Upon identifying positive divergence in the chart, we expect a price increase for the stock under review
🔵 How to Use
Information from the indicator is displayed in two ways: Table and Label.
🟣 Table : The table displays information about the latest divergence. This includes the type of divergence, existence or absence of divergence, consecutive divergences, divergence quality, and change in indicator phase.
Type Divergence : Indicates the type of divergence, which can be either "Bullish Divergence" or "Bearish Divergence."
Exist : Indicates the presence of divergence with a "+" sign and absence with a "-" sign. A green color is used for bullish divergence and red for bearish divergence.
Consecutive : Shows the number of consecutive divergences. For example, if there are 3 consecutive divergences, the number 3 is displayed.
Divergence Quality : Displays the quality of the divergence based on the number of consecutive divergences. If there is 1 divergence, the quality is "Normal"; for 2 divergences, it's "Good"; and for 3 or more divergences, it's "Strong."
Change Phase Indicator : Indicates whether a phase change in the indicator has occurred with "+" for yes and "-" for no.
🟣 Label : Unlike the table, which only shows information about the latest divergence, labels display information about each divergence at the point where it occurs. The information includes the type of divergence, detection method, divergence quality, consecutive divergences, and change in phase indicator. The selected method of detection is also displayed. For example, if the chosen method is the "AO" indicator, the label will show "Method: AO."
🔵 Settings
Fractal Period : Determines the period of swings. The minimum and default value is 2.
Divergence Detect Method : Selects the indicator (MACD, RSI, or AO) used for detecting divergences. The default indicator is MACD.
Show Fractal : Chooses whether to display fractals or not. The default is "No."
Show Table : Determines whether to display the table or not. The default is "Yes."
Show Label : Chooses whether to display labels or not. The default is "Yes."
Label Size : Adjusts the size of the labels from "Tiny" to "Large."