Prometheus Trend LinesPrometheus Trend lines is a tool that automatically plots support and resistance trend lines on your chart. These lines generally come out looking like triangles or wedges.
There are two ways that we do it, the first way we’ll cover is lookback period generated trend lines.
The two points for the lines are generated as follows, for a resistance line that is blue by default, the point furthest in the past is the highest high in the specified lookback period. 50 is the default, the point closest to the present is the current bar’s high. The opposite is true for support lines, the point furthest in the past is the lowest low, and the most present point is the current bar’s low.
The interval is created by ensuring after the lookback period is met to plot the lines, that period needs to pass again. That is so we can let the potential results of price breaking above or below the levels play out.
Lines will be plotted on the newest lookback period bar, after a period with no plot. What I mean is right after lines are plotted, users will have to wait for double the lookback period to get newer lines. So if you select 50 for your lookback value, after new lines are plotted, on the 100th bar after the new lines will be there. This is to avoid having a line on your chart change, we’d rather plot a line once, than plot it and keep changing it.
Each line is 50 bars long and all the distance in between them is 50 bars. The line is drawn simply with the shortest path from the back point to the more present one, this allows us to see breaks in the line and get a better idea of how strong the next move may be.
We see in this wedge on NASDAQ:TSLA that there were two false breaks before the price re-entered the wedge and continued falling. It could be interpreted as buyers did not have enough strength to get NASDAQ:TSLA out of a downtrend there.
We also offer an intra day line.
In this image captured with the bar replay feature we see the lines being generated with the high and low of the day, that is the method we use. Furthermore, a user may notice that the ends of the line are not at the newest bar. That is on purpose, we use the
barstate.islastconfirmedhistory
to ensure that we don’t change and plot too many lines at a given point. These two lines will reset every day as time changes and will auto use the current day high and low.
Users have the option to select a custom lookback period, as well as turn on or off the plots for either method of generating lines.
We encourage traders to not follow indicators blindly, none are 100% accurate. The lines generated are not guaranteed to be perfect support and resistance levels. We encourage the use of discretion. Please comment on any desired updates, all criticism is welcome!
רצועות וערוצים
LRS-Strategy: 200-EMA Buffer & Long/Short Signals LRS-Strategy: 200-EMA Buffer & Long/Short Signals
This indicator is designed to help traders implement the Leveraged Return Strategy (LRS) using the 200-day Exponential Moving Average (EMA) as a key trend-following signal. The indicator offers clear long and short signals by analyzing the price movements relative to the 200-day EMA, enhanced by customizable buffer zones for increased precision.
Key Features:
200-Day EMA: The main trend indicator. When the price is above the 200-day EMA, the market is considered in an uptrend, and when it is below, it indicates a downtrend.
Customizable Buffer Zones: Users can define a percentage buffer around the 200-day EMA (default is 3%). The upper and lower buffer zones help filter out noise and prevent premature signals.
Precise Long/Short Signals:
Long Signal: Triggered when the price moves from below the lower buffer zone, crosses the 200-day EMA, and then breaks above the upper buffer zone.
Short Signal: Triggered when the price moves from above the upper buffer zone, crosses the 200-day EMA, and then breaks below the lower buffer zone.
Alternating Signals: Ensures that a new signal (long or short) is only generated after the opposite signal has been triggered, preventing multiple signals of the same type without a reversal.
Clear Visual Aids: The indicator displays the 200-day EMA and buffer zones on the chart, along with buy (long) and sell (short) signals. This makes it easy to track trends and time entries/exits.
How to Use:
Long Entry: Look for the price to move below the lower buffer, cross the 200-day EMA from below, and then break out of the upper buffer to confirm a long signal.
Short Entry: Look for the price to move above the upper buffer, cross below the 200-day EMA, and then break below the lower buffer to confirm a short signal.
This indicator is perfect for traders who prefer a structured, trend-following approach, using clear rules to minimize noise and identify meaningful long or short opportunities.
Larry Connors %b Strategy (Bollinger Band)Larry Connors’ %b Strategy is a mean-reversion trading approach that uses Bollinger Bands to identify buy and sell signals based on the %b indicator. This strategy was developed by Larry Connors, a renowned trader and author known for his systematic, data-driven trading methods, particularly those focusing on short-term mean reversion.
The %b indicator measures the position of the current price relative to the Bollinger Bands, which are volatility bands placed above and below a moving average. The strategy specifically targets times when prices are oversold within a long-term uptrend and aims to capture rebounds by buying at relatively low points and selling at relatively high points.
Strategy Rules
The basic rules of the %b Strategy are:
1. Trend Confirmation: The closing price must be above the 200-day moving average. This filter ensures that trades are made in alignment with a longer-term uptrend, thereby avoiding trades against the primary market trend.
2. Oversold Conditions: The %b indicator must be below 0.2 for three consecutive days. The %b value below 0.2 indicates that the price is near the lower Bollinger Band, suggesting an oversold condition.
3. Entry Signal: Enter a long position at the close when conditions 1 and 2 are met.
4. Exit Signal: Exit the position when the %b value closes above 0.8, signaling an overbought condition where the price is near the upper Bollinger Band.
How the Strategy Works
This strategy operates on the premise of mean reversion, which suggests that extreme price movements will revert to the mean over time. By entering positions when the %b value indicates an oversold condition (below 0.2) in a confirmed uptrend, the strategy attempts to capture short-term price rebounds. The exit rule (when %b is above 0.8) aims to lock in profits once the price reaches an overbought condition, often near the upper Bollinger Band.
Who Was Larry Connors?
Larry Connors is a well-known figure in the world of financial markets and trading. He co-authored several influential trading books, including “Short-Term Trading Strategies That Work” and “High Probability ETF Trading.” Connors is recognized for his quantitative approach, focusing on systematic, rules-based strategies that leverage historical data to validate trading edges.
His work primarily revolves around short-term trading strategies, often using technical indicators like RSI (Relative Strength Index), Bollinger Bands, and moving averages. Connors’ methodologies have been widely adopted by traders seeking structured approaches to exploit short-term inefficiencies in the market.
Risks of the Strategy
While the %b Strategy can be effective, particularly in mean-reverting markets, it is not without risks:
1. Mean Reversion Assumption: The strategy is based on the assumption that prices will revert to the mean. In trending or sharply falling markets, this reversion may not occur, leading to sustained losses.
2. False Signals in Choppy Markets: In volatile or sideways markets, the strategy may generate multiple false signals, resulting in whipsaw trades that can erode capital through frequent small losses.
3. No Stop Loss: The basic implementation of the strategy does not include a stop loss, which increases the risk of holding losing trades longer than intended, especially if the market continues to move against the position.
4. Performance During Market Crashes: During major market downturns, the strategy’s buy signals could be triggered frequently as prices decline, compounding losses without the presence of a risk management mechanism.
Scientific References and Theoretical Basis
The %b Strategy relies on the concept of mean reversion, which has been extensively studied in finance literature. Studies by Avellaneda and Lee (2010) and Bouchaud et al. (2018) have demonstrated that mean-reverting strategies can be profitable in specific market environments, particularly when combined with volatility filters like Bollinger Bands. However, the same studies caution that such strategies are highly sensitive to market conditions and often perform poorly during periods of prolonged trends.
Bollinger Bands themselves were popularized by John Bollinger and are widely used to assess price volatility and detect potential overbought and oversold conditions. The %b value is a critical part of this analysis, as it standardizes the position of price relative to the bands, making it easier to compare conditions across different securities and time frames.
Conclusion
Larry Connors’ %b Strategy is a well-known mean-reversion technique that leverages Bollinger Bands to identify buying opportunities in uptrending markets when prices are temporarily oversold. While the strategy can be effective under the right conditions, traders should be aware of its limitations and risks, particularly in trending or highly volatile markets. Incorporating risk management techniques, such as stop losses, could help mitigate some of these risks, making the strategy more robust against adverse market conditions.
ORB - Alerts, VWAP and MACD Checks, Extended Fib Levels
ORB Range Alerter with Shading, VWAP Check, MACD Check, and Extended Fibonacci Levels for TP – Fully Customizable
This indicator is designed to give you a comprehensive analysis of the Opening Range Breakout (ORB) combined with advanced conditions based on VWAP and MACD indicators, along with Extended Fibonacci Levels for both long and short TP positions.
Key Features:
Opening Range Breakout (ORB):
Defines the opening range at the market open (9:30 AM by default) based on your chart timeframe and shades it for visibility.
The high and low of the first candle after the open are plotted on the chart, creating a breakout range that traders can use to identify potential long or short positions.
VWAP Condition (Optional):
This indicator includes the option to enforce the VWAP (Volume-Weighted Average Price) as a condition for entering trades.
- Longs will only trigger if the price is above VWAP (when enabled).
- Shorts will only trigger if the price is below VWAP (when enabled).
Customizable : You can enable or disable the VWAP condition through a simple checkbox in the indicator’s settings.
MACD Condition (Optional):
Includes an optional MACD (Moving Average Convergence Divergence) condition.
- Longs will only trigger if the MACD line is above 0 and the signal line, providing confirmation of bullish momentum.
- Shorts will only trigger if the MACD line is below 0 and the signal line, indicating bearish momentum.
Customizable : You can enable or disable the MACD condition through a checkbox in the indicator’s settings, allowing you to trade with or without the MACD confirmation.
Fibonacci Extensions for Profit Targets:
Automatically calculates Fibonacci extension levels based on the ORB range for TP levels.
These levels provide key areas for potential profit-taking or reversal points.
Fibonacci extensions are plotted only after a confirmed breakout, either long or short.
The extensions include 127.2%, 161.8%, 200%, 261.8%, 423.6%, and 685.4%, offering a comprehensive set of targets for different trading strategies.
Shading of ORB Range:
The ORB high and low are visually emphasized on the chart with a shaded area for easy identification.
The shading is semi-transparent to help keep your chart clean and easy to read.
Customizable Timeframe:
The ORB range is defined based on the time of day (default is 9:30 AM to 4:00 PM), but you can adjust the timeframe to suit different trading sessions or markets.
Alerts for Breakouts:
Built-in alerts notify you when price crosses above or below the ORB high or low, along with the optional VWAP and MACD conditions.
Alerts can be used to create automated notifications or even execute automated trades based on your chosen settings.
How to Use:
Long Trade Example: When the price crosses above the ORB high, VWAP is above the price, and MACD shows bullish momentum (if these conditions are enabled), a potential long entry is triggered. You can use the Fibonacci extensions for profit targets.
Short Trade Example: When the price crosses below the ORB low, VWAP is below the price, and MACD confirms bearish momentum (if these conditions are enabled), a short entry is triggered. Fibonacci levels for the short position can guide your exit strategy.
Flexibility: You can enable or disable both VWAP and MACD conditions based on your trading style. This flexibility allows the indicator to adapt to different market conditions and strategies.
Customization Options:
Enable/Disable VWAP Condition: Decide if you want to include VWAP as a trade filter.
Enable/Disable MACD Condition: Choose whether to require MACD as confirmation for trade entries.
Adjust ORB Timeframe: Customize the time range for defining the ORB based on the market you're trading.
Fibonacci Extensions: Visualize key profit targets using Fibonacci extensions, which are automatically calculated and displayed after a breakout.
Grid Bot Parabolic [xxattaxx]🟩 The Grid Bot Parabolic, a continuation of the Grid Bot Simulator Series , enhances traditional gridbot theory by employing a dynamic parabolic curve to visualize potential support and resistance levels. This adaptability is particularly useful in volatile or trending markets, enabling traders to explore grid-based strategies and gain deeper market insights. The grids are divided into customizable trade zones that trigger signals as prices move into new zones, empowering traders to gain deeper insights into market dynamics and potential turning points.
While traditional grid bots excel in ranging markets, the Grid Bot Parabolic’s introduction of acceleration and curvature adds new dimensions, enabling its use in trending markets as well. It can function as a traditional grid bot with horizontal lines, a tilted grid bot with linear slopes, or a fully parabolic grid with curves. This dynamic nature allows the indicator to adapt to various market conditions, providing traders with a versatile tool for visualizing dynamic support and resistance levels.
🔑 KEY FEATURES 🔑
Adaptable Grid Structures (Horizontal, Linear, Curved)
Buy and Sell Signals with Multiple Trigger/Confirmation Conditions
Secondary Buy and Secondary Sell Signals
Projected Grid Lines
Customizable Grid Spacing and Zones
Acceleration and Curvature Control
Sensitivity Adjustments
📐 GRID STRUCTURES 📐
Beyond its core parabolic functionality, the Parabolic Grid Bot offers a range of grid configurations to suit different market conditions and trading preferences. By adjusting the "Acceleration" and "Curvature" parameters, you can transform the grid's structure:
Parabolic Grids
Setting both acceleration and curvature to non-zero values results in a parabolic grid.This configuration can be particularly useful for visualizing potential turning points and trend reversals. Example: Accel = 10, Curve = -10)
Linear Grids
With a non-zero acceleration and zero curvature, the grid tilts to represent a linear trend, aiding in identifying potential support and resistance levels during trending phases. Example: Accel =1.75, Curve = 0
Horizontal Grids
When both acceleration and curvature are set to zero, the indicator reverts to a traditional grid bot with horizontal lines, suitable for ranging markets. Example: Accel=0, Curve=0
⚙️ INITIAL SETUP ⚙️
1.Adding the Indicator to Your Chart
Locate a Starting Point: To begin, visually identify a price point on your chart where you want the grid to start.This point will anchor your grid.
2. Setting Up the Grid
Add the Grid Bot Parabolic Indicator to your chart. A “Start Time/Price” dialog will appear
CLICK on the chart at your chosen start point. This will anchor the start point and open a "Confirm Inputs" dialog box.
3. Configure Settings. In the dialog box, you can set the following:
Acceleration: Adjust how quickly the grid reacts to price changes.
Curve: Define the shape of the parabola.
Intervals: Determine the distance between grid levels.
If you choose to keep the default settings, with acceleration set to 0 and curve set to 0, the grid will display as traditional horizontal lines. The grid will align with your selected price point, and you can adjust the settings at any time through the indicator’s settings panel.
⚙️ CONFIGURATION AND SETTINGS ⚙️
Grid Settings
Accel (Acceleration): Controls how quickly the price reacts to changes over time.
Curve (Curvature): Defines the overall shape of the parabola.
Intervals (Grid Spacing): Determines the vertical spacing between the grid lines.
Sensitivity: Fine tunes the magnitude of Acceleration and Curve.
Buy Zones & Sell Zones: Define the number of grid levels used for potential buy and sell signals.
* Each zone is represented on the chart with different colors:
* Green: Buy Zones
* Red: Sell Zones
* Yellow: Overlap (Buy and Sell Zones intersect)
* Gray: Neutral areas
Trigger: Chooses which part of the candlestick is used to trigger a signal.
* `Wick`: Uses the high or low of the candlestick
* `Close`: Uses the closing price of the candlestick
* `Midpoint`: Uses the middle point between the high and low of the candlestick
* `SWMA`: Uses the Symmetrical Weighted Moving Average
Confirm: Specifies how a signal is confirmed.
* `Reverse`: The signal is confirmed if the price moves in the opposite direction of the initial trigger
* `Touch`: The signal is confirmed when the price touches the specified level or zone
Sentiment: Determines the market sentiment, which can influence signal generation.
* `Slope`: Sentiment is based on the direction of the curve, reflecting the current trend
* `Long`: Sentiment is bullish, favoring buy signals
* `Short`: Sentiment is bearish, favoring sell signals
* `Neutral`: Sentiment is neutral. No secondary signals will be generated
Show Signals: Toggles the display of buy and sell signals on the chart
Chart Settings
Grid Colors: These colors define the visual appearance of the grid lines
Projected: These colors define the visual appearance of the projected lines
Parabola/SWMA: Adjust colors as needed. These are disabled by default.
Time/Price
Start Time & Start Price: These set the starting point for the parabolic curve.
* These fields are automatically populated when you add the indicator to the chart and click on an initial location
* These can be adjusted manually in the settings panel, but he easiest way to change these is by directly interacting with the start point on the chart
Please note: Time and Price must be adjusted for each chart when switching assets. For example, a Start Price on BTCUSD of $60,000 will not work on an ETHUSD chart.
🤖 ALGORITHM AND CALCULATION 🤖
The Parabolic Function
At the core of the Parabolic Grid Bot lies the parabolic function, which calculates a dynamic curve that adapts to price action over time. This curve serves as the foundation for visualizing potential support and resistance levels.
The shape and behavior of the parabola are influenced by three key user-defined parameters:
Acceleration: This parameter controls the rate of change of the curve's slope, influencing its tilt or steepness. A higher acceleration value results in a more pronounced tilt, while a lower value leads to a gentler slope. This applies to both curved and linear grid configurations.
Curvature: This parameter introduces and controls the curvature or bend of the grid. A higher curvature value results in a more pronounced parabolic shape, while a lower value leads to a flatter curve or even a straight line (when set to zero).
Sensitivity: This setting fine-tunes the overall responsiveness of the grid, influencing how strongly the Acceleration and Curvature parameters affect its shape. Increasing sensitivity amplifies the impact of these parameters, making the grid more adaptable to price changes but potentially leading to more frequent adjustments. Decreasing sensitivity reduces their impact, resulting in a more stable grid structure with fewer adjustments. It may be necessary to adjust Sensitivity when switching between different assets or timeframes to ensure optimal scaling and responsiveness.
The parabolic function combines these parameters to generate a curve that visually represents the potential path of price movement. By understanding how these inputs influence the parabola's shape and behavior, traders can gain valuable insights into potential support and resistance areas, aiding in their decision-making process.
Sentiment
The Parabolic Grid Bot incorporates sentiment to enhance signal generation. The "Sentiment" input allows you to either:
Manually specify the market sentiment: Choose between 'Long' (bullish), 'Short' (bearish), or 'Neutral'.
Let the script determine sentiment based on the slope of the parabolic curve: If 'Slope' is selected, the sentiment will be considered 'Long' when the curve is sloping upwards, 'Short' when it's sloping downwards, and 'Neutral' when it's flat.
Buy and Sell Signals
The Parabolic Grid Bot generates buy and sell signals based on the interaction between the price and the grid levels.
Trigger: The "Trigger" input determines which part of the candlestick is used to trigger a signal (wick, close, midpoint, or SWMA).
Confirmation: The "Confirm" input specifies how a signal is confirmed ('Reverse' or 'Touch').
Zones: The number of "Buy Zones" and "Sell Zones" determines the areas on the grid where buy and sell signals can be generated.
When the trigger condition is met within a buy zone and the confirmation criteria are satisfied, a buy signal is generated. Similarly, a sell signal is generated when the trigger and confirmation occur within a sell zone.
Secondary Signals
Secondary signals are generated when a regular buy or sell signal contradicts the prevailing sentiment. For example:
A buy signal in a bearish market (Sentiment = 'Short') would be considered a "secondary buy" signal.
A sell signal in a bullish market (Sentiment = 'Long') would be considered a "secondary sell" signal.
These secondary signals are visually represented on the chart using hollow triangles, differentiating them from regular signals (filled triangles).
While they can be interpreted as potential contrarian trade opportunities, secondary signals can also serve other purposes within a grid trading strategy:
Exit Signals: A secondary signal can suggest a potential shift in market sentiment or a weakening trend. This could be a cue to consider exiting an existing position, even if it's currently profitable, to lock in gains before a potential reversal
Risk Management: In a strong trend, secondary signals might offer opportunities for cautious counter-trend trades with controlled risk. These trades could utilize smaller position sizes or tighter stop-losses to manage potential downside if the main trend continues
Dollar-Cost Averaging (DCA): During a prolonged trend, the parabolic curve might generate multiple secondary signals in the opposite direction. These signals could be used to implement a DCA strategy, gradually accumulating a position at potentially favorable prices as the market retraces or consolidates within the larger trend
Secondary signals should be interpreted with caution and considered in conjunction with other technical indicators and market context. They provide additional insights into potential market reversals or consolidation phases within a broader trend, aiding in adapting your grid trading strategy to the evolving market dynamics.
Examples
Trigger=Wick, Confirm=Touch. Signals are generated when the wick touches the next gridline.
Trigger=Close, Confirm=Touch. Signals require the close to touch the next gridline.
Trigger=SWMA, Confirm=Reverse. Signals are triggered when the Symmetrically Weighted Moving Average reverse crosses the next gridline.
🧠THEORY AND RATIONALE 🧠
The innovative approach of the Parabolic Grid Bot can be better understood by first examining the limitations of traditional grid trading strategies and exploring how this indicator addresses them by incorporating principles of market cycles and dynamic price behavior
Traditional Grid Bots: One-Dimensional and Static
Traditional grid bots operate on a simple premise: they divide the price chart into a series of equally spaced horizontal lines, creating a grid of trading zones. These bots excel in ranging markets where prices oscillate within a defined range. Buy and sell orders are placed at these grid levels, aiming to profit from mean reversion as prices bounce between the support and resistance zones.
However, traditional grid bots face challenges in trending markets. As the market moves in one direction, the bot continues to place orders in that direction, leading to a stacking of positions. If the market eventually reverses, these stacked trades can be profitable, amplifying gains. But the risk lies in the potential for the market to continue trending, leaving the trader with a series of losing trades on the wrong side of the market
The Parabolic Grid Bot: Adding Dimensions
The Parabolic Grid Bot addresses the limitations of traditional grid bots by introducing two additional dimensions:
Acceleration (Second Dimension): This parameter introduces a second dimension to the grid, allowing it to tilt upwards or downwards to align with the prevailing market trend. A positive acceleration creates an upward-sloping grid, suitable for uptrends, while a negative acceleration results in a downward-sloping grid, ideal for downtrends. The magnitude of acceleration controls the steepness of the tilt, enabling you to fine-tune the grid's responsiveness to the trend's strength
Curvature (Third Dimension): This parameter adds a third dimension to the grid by introducing a parabolic curve. The curve's shape, ranging from gentle bends to sharp turns, is controlled by the curvature value. This flexibility allows the grid to closely mirror the market's evolving structure, potentially identifying turning points and trend reversals.
Mean Reversion in Trending Markets
Even in trending markets, the Parabolic Grid Bot can help identify opportunities for mean reversion strategies. While the grid may be tilted to reflect the trend, the buy and sell zones can capture short-term price oscillations or consolidations within the broader trend. This allows traders to potentially pinpoint entry and exit points based on temporary pullbacks or reversals.
Visualize and Adapt
The Parabolic Grid Bot acts as a visual aid, enhancing your understanding of market dynamics. It allows you to "see the curve" by adapting the grid to the market's patterns. If the market shows a parabolic shape, like an upward curve followed by a peak and a downward turn (similar to a head and shoulders pattern), adjust the Accel and Curve to match. This highlights potential areas of interest for further analysis.
Beyond Straight Lines: Visualizing Market Cycle
Traditional technical analysis often employs straight lines, such as trend lines and support/resistance levels, to interpret market movements. However, many analysts, including Brian Millard, contend that these lines can be misleading. They propose that what might appear as a straight line could represent just a small part of a larger curve or cycle that's not fully visible on the chart.
Markets are inherently cyclical, marked by phases of expansion, contraction, and reversal. The Parabolic Grid Bot acknowledges this cyclical behavior by offering a dynamic, curved grid that adapts to these shifts. This approach helps traders move beyond the limitations of straight lines and visualize potential support and resistance levels in a way that better reflects the market's true nature
By capturing these cyclical patterns, whether subtle or pronounced, the Parabolic Grid Bot offers a nuanced understanding of market dynamics, potentially leading to more accurate interpretations of price action and informed trading decisions.
⚠️ DISCLAIMER⚠️
This indicator utilizes a parabolic curve fitting approach to visualize potential support and resistance levels. The mathematical formulas employed have been designed with adaptability and scalability in mind, aiming to accommodate various assets and price ranges. While the resulting curves may visually resemble parabolas, it's important to note that they might not strictly adhere to the precise mathematical definition of a parabola.
The indicator's calculations have been tested and generally produce reliable results. However, no guarantees are made regarding their absolute mathematical accuracy. Traders are encouraged to use this tool as part of their broader analysis and decision-making process, combining it with other technical indicators and market context.
Please remember that trading involves inherent risks, and past performance is not indicative of future results. It is always advisable to conduct your own research and exercise prudent risk management before making any trading decisions.
🧠 BEYOND THE CODE 🧠
The Parabolic Grid Bot, like the other grid bots in this series, is designed with education and community collaboration in mind. Its open-source nature encourages exploration, experimentation, and the development of new grid trading strategies. We hope this indicator serves as a framework and a starting point for future innovations in the field of grid trading.
Your comments, suggestions, and discussions are invaluable in shaping the future of this project. We welcome your feedback and look forward to seeing how you utilize and enhance the Parabolic Grid Bot.
COMBINED EMA & SMA + DOUBLE DEMA, $TOTAL 1W / 5D -- Ruslan CRYPTOCAP:TOTAL
This Pine Script indicator, **"EMAS"**, provides an enhanced visualization of multiple types of moving averages, including both **Exponential Moving Averages (EMA)**, **Simple Moving Averages (SMA)**, and **Double Exponential Moving Averages (DEMA)**. It allows the user to observe the relationship between these different types of moving averages and apply regime-based coloring to price bars based on the comparison between the EMAs and DEMAs.
#### Key Features:
1. **EMA & SMA:**
- **EMA (Exponential Moving Average):** Calculated using a customizable lookback period (default 17), the EMA places greater weight on more recent prices, making it react faster to price changes.
- **SMA (Simple Moving Average):** Uses an equal-weighted average over a customizable lookback period (default 14), providing a slower-moving average compared to the EMA.
2. **DEMA (Double Exponential Moving Average):**
- Two separate DEMA lines are plotted using different lookback periods (default 2 and 14). The DEMA is a smoother and faster-responding version of the EMA, intended to reduce lag while retaining trend-following characteristics.
3. **Combined Signals:**
- The script calculates ratios between EMA/SMA (`comb`) and DEMA1/DEMA2 (`combd`) to generate a **regime-based bar coloring system**:
- If `combd > comb`: The bars are colored **green**, indicating that DEMAs are outperforming the EMAs, potentially signaling a stronger trend or momentum.
- If `comb > combd`: The bars are colored **red**, suggesting that the EMAs are dominant, which may indicate a different phase of the market.
4. **Signal SMA:**
- A 21-period **SMA** is plotted as a general trend-following signal. It provides a broader perspective on the current price trend, helping to smooth out short-term fluctuations.
5. **Customizable Options:**
- **"Show MAs?"**: The user has the option to toggle the display of the EMA, SMA, and DEMA lines on or off.
- **Custom Period Inputs**: Each type of moving average can have its period length customized via the input settings for better adaptability to different market conditions.
#### How to Use the Indicator:
- **Trend Following**:
The **EMA, SMA, and DEMA** values can help you determine the direction of the trend. When the EMA is above the SMA, it could indicate a stronger, more recent upward momentum. Similarly, DEMA comparisons provide smoother and faster trend signals.
- **Bar Coloring Regime**:
The **bar color** gives a quick visual cue of the regime:
- **Green bars** suggest that DEMAs are indicating stronger bullish or bearish signals compared to the EMAs.
- **Red bars** imply the opposite, where EMAs may be showing stronger signals, but possibly with more noise or lag.
- **Signal SMA**:
The **21-period SMA** line can be used as a simple trend indicator. When the price is above this line, it could signify an uptrend, while price movement below the line might indicate a downtrend.
#### Custom Inputs:
- **EMA Length**: Default is 17, but can be adjusted to fit your trading style.
- **SMA Length**: Default is 14.
- **DEMA Lengths**: Two customizable inputs for DEMA (default 2 and 14).
- **Source Selection**: You can choose which price source (close, open, high, low, etc.) to use for each calculation (default is the closing price).
#### Conclusion:
This indicator is useful for traders who wish to blend **trend-following strategies** (using EMA, SMA, and DEMA) with **visual regime indicators** (bar coloring). It is highly customizable, allowing traders to adjust settings based on their market approach. The combination of EMAs and DEMAs provides a nuanced view of price dynamics, potentially leading to better-informed trading decisions.
VWAP and MA Crossover SignalsDescription: The VWAP and 20 MA Crossover Indicator is a powerful trading tool designed to capitalize on trend reversals and momentum shifts. This indicator overlays two key technical analysis tools on the price chart: the Volume Weighted Average Price (VWAP) and the 20-period Moving Average (MA).
Functionality:
VWAP: Represents the average price a security has traded at throughout the day, based on volume and price. It is a measure of the market's trend and trading volume.
20 MA: Offers a smoothed average of the closing prices over the last 20 periods, providing a glimpse of the underlying trend.
Signals:
Buy Signal: Generated when the VWAP crosses above the 20-period MA, suggesting an upward momentum and a potential bullish trend reversal.
Sell Signal: This occurs when the VWAP crosses below the 20-period MA, indicating a downward momentum and a potential bearish trend reversal.
Usage: This indicator is ideal for traders focusing on intraday and swing trading strategies, providing clear visual cues for entry and exit points based on the interaction between VWAP and the 20 MA. By identifying key crossover points, traders can make informed decisions about potential bullish or bearish movements in the market.
Application: To use this indicator, simply add it to your TradingView chart setup. The buy and sell signals will be displayed directly on the chart, allowing for easy interpretation and quick action. Adjust the settings to fit your specific trading strategy or market conditions.
Prometheus StochasticThe Stochastic indicator is a popular indicator developed in the 1950s. It is designed to identify overbought and oversold scenarios on different assets. A value above 80 is considered overbought and a value below 20 is considered oversold.
The formula is as follows:
%k = ((Close - Low_i) / (High_i / Low_i)) * 100
Low_i and High_i represent the lowest low and highest high of the selected period.
The Prometheus version takes a slightly different approach:
%k = ((High - Lowest_Close_i) / (High_i / Low_i)) * 100
Using the Current High minus the Lowest Close provides us with a more robust range that can be slightly more sensitive to moves and provide a different perspective.
Code:
stoch_func(src_close, src_high, src_low, length) =>
100 * (src_high - ta.lowest(src_close, length)) / (ta.highest(src_high, length) - ta.lowest(src_low, length))
This is the function that returns our Stochastic indicator.
What period do we use for the calculation? Let Prometheus handle that, we utilize a Sum of Squared Error calculation to find what lookback values can be most useful for a trader. How we do it is we calculate a Simple Moving Average or SMA and the indicator using a lot of different bars back values. Then if there is an event, characterized by the indicator crossing above 80 or below 20, we subtract the close by the SMA and square it. If there is no event we return a big value, we want the error to be as small as possible. Because we loop over every value for bars back, we get the value with the smallest error. We also do this for the smoothing values.
// Function to calculate SSE for a given combination of N, K, and D
sse_calc(_N, _K, _D) =>
SMA = ta.sma(close, _N)
sf = stoch_func(close, high, low, _N)
k = ta.sma(sf, _K)
d = ta.sma(k, _D)
var float error = na
if ta.crossover(d, 80) or ta.crossunder(d, 20)
error := math.pow(close - SMA, 2)
else
error := 999999999999999999999999999999999999999
error
var int best_N = na
var int best_K = na
var int best_D = na
var float min_SSE = na
// Loop through all combinations of N, K, and D
for N in N_range
for K in K_range
for D in D_range
sse = sse_calc(N, K, D)
if (na(min_SSE) or sse < min_SSE)
min_SSE := sse
best_N := N
best_K := K
best_D := D
int N_opt = na
int K_opt = na
int D_opt = na
if c_lkb_bool == false
N_opt := best_N
K_opt := best_K
D_opt := best_D
This is the section where the best lookback values are calculated.
We provide the option to use this self optimizer or to use your own lookback values.
Here is an example on the daily AMEX:SPY chart. The top Stochastic is the value with the SSE calculation, the bottom is with a fixed 14, 1, 3 input values. We see in the candles with boxes where some potential differences and trades may be.
This is another comparison of the SSE functionality and the fixed lookbacks on the NYSE:PLTR 1 day chart.
Differences may be more apparent on lower time frame charts.
We encourage traders to not follow indicators blindly, none are 100% accurate. SSE does not guarantee that the values generated will be the best for a given moment in time. Please comment on any desired updates, all criticism is welcome!
High-Low Cloud Trend [ChartPrime]The High-Low Cloud Trend - ChartPrime indicator, combines the concepts of trend following and mean reversion into a dynamic cloud representation. This indicator constructs high and low bands based on lookback periods, which adjust dynamically to reflect market conditions. By highlighting the upper and lower extremes, it provides a visual gauge for potential reversals and continuation points.
◆ KEY FEATURES
Dynamic Cloud Bands : Uses high and low derived from user-defined lookback periods to create reactive bands that illustrate trend strength and potential reversal zones.
Color-coded Visualization : Applies distinct colors to the bands based on the trend direction, improving readability and decision-making speed.
Mean Reversion Detection : Identifies points where price extremes may revert to a mean, signaling potential entry or exit opportunities based on deviation from expected values.
Flexible Visualization : Offers options to display volume or price-based metrics within labels, enhancing analytical depth.
◆ FUNCTIONALITY DETAILS
Band Formation : Calculates two sets of bands; one based on a primary lookback period and another for a shorter period to capture mean reversion points.
◆ USAGE
Trend Confirmation : Use the main bands to confirm the prevailing market trend, with the cloud filling acting as a visual guide.
Breakout Identification : Monitor for price breaks through the cloud to identify strong momentum that may suggest a viable breakout.
Risk Management : Adjust positions based on the proximity of price to either band, using these as potential support or resistance areas.
Mean Reversion Strategies : Apply mean reversion techniques when price touches or crosses the bands, indicating a possible return to a central value.
⯁ USER INPUTS
Lookback Period : Sets the primary period for calculating high and low bands.
Mean Reversion Points : Toggles the identification of mean reversion opportunities within the bands.
Volume/Price Display : Chooses between displaying volume or price information in the indicator's labels for enhanced detail.
The High-Low Cloud Trend indicator is a versatile and powerful tool for traders who engage in both trend following and mean reversion strategies. It provides a clear visual representation of market dynamics, helping traders to make informed decisions based on established and emerging patterns. This indicator's dual approach ensures that it is suitable for various trading styles and market conditions.
Volume on levels @gauranshgVolume on Levels @gauranshg is a powerful Pine Script designed to visualize trading volume across price levels directly on the chart. This script allows users to observe volume intensity, offering a clearer perspective on price action and potential support/resistance areas. By utilizing a dynamic, customizable multiplier, the volume is normalized and displayed in proportion, ensuring better scalability across various timeframes and assets.
Usage:
Normalization of Volume: Users can input a multiplier to adjust the normalization of volume. This is useful when analyzing assets with differing price and volume ranges.
Input of 1 means 1 Million volume will be marked with green color of opacity 1 and 2 Million as 2 and so on. In case you are looking at chart with very high volume, you might want to increase the multiplies
Default multiplier is set to 1, and can be customized for different scales.
Volume Visualization: The volume is displayed on the chart as background boxes behind price levels, with the opacity of the boxes changing based on the normalized volume. This helps to quickly visualize areas of high and low trading activity.
This script is ideal for investors who wish to enhance their volume analysis by visualizing it directly on price levels in a clear, normalized format.
Horizontal Lines 0.5, BY ROSHAN SINGHThis indicator identify support and resistance to trade in 1min time frame, based of fib 0.5 level, on 15 min time frame find major high and low means major swing, low will be our start level and high will be our end level input in setting, substract high and end level and now divide answer with 2 till the daily volatility of a index or stock, if saying about nifty suppose nifty daily travel minimum for 65 pts then interval will be 65 input in settings, now all horizontals lines means support and level will be plotted on chart, buy on support, sell on resistance
Uptrick: Logarithmic Crypto Bands
Description :
Introduction
The `Uptrick: Logarithmic Crypto Bands` indicator introduces an innovative approach to technical analysis tailored specifically for the cryptocurrency markets. By leveraging logarithmic transformations combined with dynamic exponential bands, this indicator offers a sophisticated method for identifying critical support and resistance levels, assessing market trends, and evaluating volatility. Its unique approach stands out from traditional indicators by addressing the specific challenges of high volatility and erratic price movements inherent in cryptocurrency trading.
Originality and Usefulness
** 1. Unique Logarithmic Transformation: **
- Innovation : Unlike traditional indicators that often use raw price data, the Uptrick: Logarithmic Crypto Bands applies a logarithmic transformation to the closing prices: logPrice = math.log(close). This approach is original because it reduces the impact of extreme price fluctuations, providing a smoother and more stable price series. This transformation addresses a common issue in cryptocurrency markets where large price swings can obscure true market trends.
- Advantage : The logarithmic transformation compresses the price range, which allows traders to better identify long-term trends and reduce the noise caused by outlier price movements. This results in a more reliable basis for analysis and enhances the ability to detect meaningful market patterns.
**2. Dynamic Exponential Bands :**
- Innovation : The indicator employs exponential calculations to derive dynamic support and resistance levels based on a central base line : baseLine * math.pow(multiplier, n). Unlike static bands that remain fixed regardless of market conditions, these bands adjust dynamically according to market volatility.
- Advantage : The dynamic nature of the bands provides a more responsive and adaptive tool for traders. As market volatility changes, the bands widen or narrow accordingly, offering a more accurate reflection of potential support and resistance levels. This adaptability improves the tool's effectiveness in varying market conditions compared to static or traditional bands.
Detailed Description and Substantiation
**1. Logarithmic Price Calculation :**
- Code : ` logPrice = math.log(close)
- Description : This calculation converts the closing price into its logarithmic value. By compressing the price range, it minimizes the distortion caused by extreme price movements, which can be particularly pronounced in the volatile cryptocurrency markets.
- Purpose : To provide a stabilized price series that facilitates more accurate trend analysis and reduces the influence of erratic price fluctuations.
**2. Moving Averages of Logarithmic Prices :**
- ** Long-Term Moving Average :**
- Code : maLongLogPrice = ta.sma(logPrice, longLength)
longLength = 2000
- ** Description : A simple moving average of the logarithmic price over a long period. This average helps filter out short-term noise and provides insight into the long-term market trend.
- Purpose : To offer a perspective on the overall market direction, making it easier to identify enduring trends and distinguish them from short-term price movements.
- Short-Term Moving Average :
- Code : maShortLogPrice = ta.sma(logPrice, shortLength) shortLength = 900
- Description : A simple moving average of the logarithmic price over a shorter period. This component captures more immediate price trends and potential reversal points.
- Purpose : To detect short-term trends and changes in market direction, allowing traders to make timely trading decisions based on recent price action.
**3. Base Line Calculation :**
- Code : baseLine = math.exp(maShortLogPrice)
- Description : Converts the short-term moving average of the logarithmic price back to the original price scale. This base line serves as the central reference point for calculating the surrounding bands.
- Purpose : To establish a benchmark level from which the exponential bands are calculated, providing a central reference for assessing potential support and resistance levels.
**4. Band Calculation and Plotting :**
- ** Code :**
- Band 1: plot(baseLine * math.pow(multiplier, 1), color=color.new(color.yellow, 20), linewidth=1, title="Band 1")
- Band 2: plot(baseLine * math.pow(multiplier, 2), color=color.new(color.yellow, 20), linewidth=1, title="Band 2")
- Band 3: plot(baseLine * math.pow(multiplier, 3), color=color.new(color.yellow, 20), linewidth=1, title="Band 3")
- Band 4: plot(baseLine * math.pow(multiplier, 4), color=color.new(color.yellow, 20), linewidth=1, title="Band 4")
- Band 5: plot(baseLine * math.pow(multiplier, 5), color=color.new(color.yellow, 10), linewidth=1, title="Band 5")
- Band 6: plot(baseLine * math.pow(multiplier, 6), color=color.new(color.yellow, 0), linewidth=1, title="Band 6")
- * Multiplier : Set at 1.3, adjusts the spacing between bands to accommodate varying levels of market volatility.
- Description : Bands are plotted at exponential intervals from the base line. Each band represents a potential support or resistance level, with the spacing between them increasing exponentially. The color opacity of each band indicates its level of significance, with closer bands being more relevant for immediate trading decisions.
** How to Use the Indicator :**
**1. Identifying Support and Resistance Levels :**
- Support Levels : The lower bands, closer to the base line, can act as potential support levels. When the price approaches these bands from above, they may indicate areas where the price could stabilize or reverse direction.
- Resistance Levels : The upper bands, further from the base line, serve as resistance levels. When the price nears these bands from below, they can act as barriers to price movement, potentially leading to reversals or stalls.
**2. Confirming Trends :**
- Uptrend Confirmation : When the price consistently remains above the base line and moves towards higher bands, it signals a strong bullish trend. This confirmation helps traders capitalize on upward price movements.
- Downtrend Confirmation : When the price stays below the base line and approaches lower bands, it indicates a bearish trend. This confirmation assists traders in acting on downward price movements.
3. Analyzing Volatility :
- Wide Bands : Wider spacing between bands reflects higher market volatility. This indicates a more turbulent trading environment, where price movements are less predictable. Traders may need to adjust their strategies to handle increased volatility.
- Narrow Bands : Narrower bands suggest lower volatility and a more stable market environment. This can result in more predictable price movements and clearer trading signals.
**4. Entry and Exit Points :**
- Entry Points : Consider buying when the price bounces off the base line or a band, which could signal support in an uptrend.
- Exit Points : Evaluate selling or taking profits when the price nears upper bands or shows signs of reversal at these levels. This approach helps in locking in gains or minimizing losses during a downtrend.
**Chart Example:**
Here you can see how the price reacted getting closer to this level. All green circles show a bounce-off. So just from looking at the chart we can see a potential bounce again pretty soon.
** Disclosure :**
- ** Performance Claims :** The `Uptrick: Logarithmic Crypto Bands` indicator is designed to assist traders in analyzing price levels and trends. It is important to understand that this tool provides historical data analysis and does not guarantee future performance. The features and benefits described are based on historical market behavior and should not be seen as a prediction of future results. Traders should use this indicator as part of a broader trading strategy and consider other factors before making trading decisions.
Volatility with Power VariationVolatility Analysis using Power Variation
The "Volatility with Power Variation" indicator is designed to measure market volatility. It focuses on providing traders with a clear understanding of how much the market is moving and how this movement changes over time.. This indicator helps in identifying potential periods of market expansion or contraction, based on volatility.
What the indicator does:
This indicator analyzes volatility which refers to the degree of variation in the returns of a financial instrument over time. It's an important measure to understand how much the price and returns of a asset fluctuates. High volatility means large price swings, meanwhile low volatility indicates smaller and consolidating movements. Realized (Historical) Volatility refers to volatility based on past price data.
Power Variation
Power Variation is an extension of the traditional methods used to calculate realized volatility. Instead of simply summing up squared returns (as done in calculating variance), Power Variation raises the magnitude of returns to a power p . This allows the indicator to capture different types of market behavior depending on the chosen value of p .
When P = 2, the Power variation behaves like a traditional variance measure. Lower values of p (e.g., p=1) make the indicator more sensitive to smaller price changes, meanwhile higher values make it more responsive to large jumps, but smaller price moves wont affect the measure that much or won't most likely.
Bipower Variation
Bipower variation is another method used to analyze the changes in price. It specifically isolates the continuous part of price movements from the jumps, which can help by understanding whether volatility is coming from regular market activity or from sharp, sudden moves.
How to Use the Indicator.
Understand Realized and Historical Volatility. Volatility after periods of low volatility you can eventually expect a expansion or an increase in volatility. Conversely, after periods of high volatility, the market often contracts and volatility decreases. If the variation plot is really low and you start seeing it increasing, shown by the standard deviation channels and moving average and you see it trending and increasing then that means you can expect for volatility to increase which means more price moves and expansions. Also if the scaling seems messed up, then use the logarithmic chart scale.
Uptrick: Price Exaggerator
## Uptrick: Price Exaggerator
** Purpose and Overview **:
The "Uptrick: Price Exaggerator" is an innovative Pine Script™ indicator that provides traders with a unique way to visualize potential price extremes. Unlike traditional indicators that focus on historical price data or statistical patterns, this script applies dynamic multipliers to the asset’s closing price to project exaggerated price levels. This approach offers fresh insights into potential market extremes and can be particularly useful for identifying possible overbought or oversold conditions.
** Functionality **:
- ** Dynamic Price Exaggeration **: This script applies a range of multipliers to the closing price to generate several projected price levels. These levels are plotted as lines on the chart, helping traders visualize potential future price extremes beyond typical market ranges.
- ** Highly Customizable **: Users can adjust multipliers, select different source prices (like open, high, low), and choose colors to match their trading strategies and preferences.
- ** Real-Time Updates **: The plotted levels update in real-time, reflecting the latest market conditions and providing an ongoing perspective on potential price extremes.
** Detailed Inputs and Configuration **:
1. ** Multiplier Settings **:
- ** Purpose **: Adjusts the degree of price exaggeration to visualize potential extreme price levels.
- ** Inputs **:
- **Multiplier 1**: Default 0.9 (90% of the source price)
- **Multiplier 2**: Default 0.8 (80% of the source price)
- **Multiplier 3**: Default 1.1 (110% of the source price)
- **Multiplier 4**: Default 1.2 (120% of the source price)
- **Multiplier 5**: Default 1.5 (150% of the source price)
- ** Impact **: Higher multipliers show more distant potential levels, indicating possible resistance or support at extreme levels. Lower multipliers highlight nearer levels, suggesting smaller potential movements.
2. ** Source Price Selection **:
- ** Purpose **: Determines the base data for calculating exaggerated price levels.
- **Inputs**:
- **Source 1**: Default is closing price (can be customized)
- **Source 2**: Default is closing price
- **Source 3**: Default is closing price
- **Source 4**: Default is closing price
- **Source 5**: Default is closing price
- ** Customization **: Users can select various sources (e.g., open, high, low) for each multiplier, tailoring the tool to their analytical needs.
3. ** Color Customization **:
- ** Purpose **: Enhances visual clarity by distinguishing between different exaggerated levels.
- **Inputs**:
- **Color 1**: Default red
- **Color 2**: Default blue
- **Color 3**: Default green
- **Color 4**: Default orange
- **Color 5**: Default purple
- ** Customization **: Colors can be adjusted to fit user preferences and chart color schemes.
4. ** Plotting the Lines **:
- ** Purpose **: Provides a visual representation of potential future price extremes on the chart.
- ** Implementation **: Lines are plotted based on the selected multipliers and source prices, offering a clear view of potential price scenarios.
** Using the Script for Market Analysis **:
1. ** Identifying Overbought Conditions **:
- ** Method **: Observe exaggerated price levels above the current market price. Approaching or exceeding higher multiplier levels may indicate overbought conditions.
- ** Analysis **: These levels can act as potential resistance zones where price reversals or consolidations might occur.
2. ** Spotting Oversold Conditions **:
- ** Method **: Observe exaggerated price levels below the current market price. If the price approaches or falls below lower multiplier levels, it may suggest oversold conditions.
- ** Analysis **: These levels might serve as support zones where price bounces or stabilization could happen.
3. ** Detecting Smaller Movements **:
- **Detailed Examination**: Lower multiplier levels can highlight minor support and resistance levels, useful for traders focusing on smaller price fluctuations.
- ** Fine-Tuning **: Adjust multipliers to zoom in on specific price ranges and better detect small market movements.
** How to Use the Script **:
1. ** Add the Script to Your Chart **:
- Scroll to the bottom of this description and right where there is the source code, click ' Add to Favourites ' - Now you can go to a chart, go to your ' favorites ', and you will find it there.
2. ** Configure Inputs **:
- Click the gear icon next to the script in the indicators panel to open settings.
- Adjust multipliers, source prices, and colors according to your analysis needs.
3. ** Interpret the Levels **:
- Analyze the plotted levels to assess potential overbought or oversold conditions and identify possible price extremes.
- Combine insights with other indicators and patterns for more informed trading decisions.
** Conceptual Framework **:
The "Uptrick: Price Exaggerator" offers a novel approach to market analysis by exaggerating price levels through dynamic multipliers. This unique method extends beyond conventional indicators, providing traders with a different perspective on potential price movements and market extremes. By customizing inputs and visualizing potential price scenarios, this script enhances market analysis and supports diverse trading strategies.
** Originality and Uniqueness **:
This script stands out by applying dynamic multipliers to the source price, offering a fresh way to anticipate potential market extremes. Unlike standard indicators, which often rely on historical data or statistical methods, the "Uptrick: Price Exaggerator" provides a distinctive view of future price levels. Its customizable features and real-time updates offer traders a flexible tool that can adapt to various market conditions and personal trading styles.
Harmonic Moving Average Confluence with Cross SignalsHarmonic Moving Average Confluence with Cross Signals
Overview:
The "Harmonic Moving Average Confluence with Cross Signals" is a custom indicator designed to analyze harmonic moving averages and identify confluence zones on a chart. It provides insights into potential trading opportunities through cross signals and confluence detection.
Features:
Harmonic Moving Averages (HMAs):
38.2% HMA
50% HMA
61.8% HMA
These HMAs are calculated based on a base period and plotted on the chart to identify key support and resistance levels.
Cross Detection:
Buy Signal: Triggered when the 38.2% HMA crosses above the 50% HMA.
Sell Signal: Triggered when the 38.2% HMA crosses below the 50% HMA.
Buy signals are marked with green triangles below the candles.
Sell signals are marked with red triangles above the candles.
Confluence Detection:
Confluence zones are identified where two or more HMAs are within a specified percentage difference from each other.
Confluence Strength: Default minimum strength is set to 3.
Threshold Percentage: Default is set to 0.0002%.
Confluence zones are marked with blue circles on the chart, with 80% opacity.
Default Settings:
Base Period: 50
Minimum Confluence Strength: 3
Confluence Threshold: 0.0002%
Confluence Circles Opacity: 80%
How to Use It:
Setup:
Add the indicator to your trading chart.
The indicator will automatically calculate and plot the harmonic moving averages and detect cross signals and confluence zones based on the default settings.
Interpreting Signals:
Buy Signal: Look for green triangles below the candles indicating a potential buying opportunity when the 38.2% HMA crosses above the 50% HMA.
Sell Signal: Look for red triangles above the candles indicating a potential selling opportunity when the 38.2% HMA crosses below the 50% HMA.
Confluence Zones: Blue circles represent areas where two or more HMAs are within the specified threshold percentage, indicating potential trading zones.
Adjusting Parameters:
Base Period: Adjust to change the period of the moving averages if needed.
Minimum Confluence Strength: Set to control how many confluence zones need to be present to display a circle.
Threshold Percentage: Set to adjust the sensitivity of confluence detection.
Usage Tips:
Use the signals in conjunction with other technical analysis tools to enhance your trading strategy.
Monitor confluence zones for possible high-interest trading opportunities.
I hope this version aligns better with your needs. If there's anything specific you'd like to adjust or add, just let me know!
TrendFusion [CrypTolqa]This code colors the SMA line red when the RSI is below 50 and the CCI is below 0, and green when the RSI is above 50 and the CCI is above 0. For cases that do not meet the specified details, the line is displayed in gray.
Helacator Ai ThetaHelacator Ai Theta is a state-of-the-art advanced script. It helps the trader find the possibility of a trend reversal in the market. By finding that point at which the three black crows pattern combines with the three white soldiers pattern, it is the most cherished pattern in technical analysis for its signal of strong bullish or bearish momentum. Therefore, it is a very strong predictive tool in the ability of shifting markets.
Key Highlights: Three White Soldiers and Three Black Crows Patterns
The script identifies these candlestick formations that consist of three consecutive candles, either bullish (Three White Soldiers) or bearish (Three Black Crows). These patterns help the trader identify possible trend reversal points as they provide an early signal of a change in the market direction. It is with great care that the script is written to evaluate the position and relationship between the candlesticks for maintaining the accuracy of pattern recognition. Moving Averages for Trend Filtering:
Two important ones used are moving averages for filtering any signals not in accordance with the general trend. The length of these MAs is variable, allowing the traders to be in a position to adapt the script for use under different market conditions. The moving averages ensure that signals are only taken in the direction that supports the general market flow, so it leads to more reliability within the signals. The MAs are not plotted on the chart for the sake of clarity, but they still perform a crucial function in signal filtering and can be displayed optionally for a more detailed investigation. Cooldown filter to reduce over-trading
This is part of what is implemented in the script to prevent generation of consecutive signals too quickly. All this helps to reduce market noise and not overtrade—only when market conditions are at their best. The cooldown period can be set to be adjusted according to the trader's preference, making the script more versatile in its use. Practical Considerations: Educational Purpose: This script is for educational purposes only and should be part of a comprehensive trading approach. Proper risk management techniques should be observed while at the same time taking into consideration prevailing market conditions before making any trading decision.
No Guaranteed Results: The script is aimed at bringing signal accuracy into improvement to align with the broader market trend and reducing noise, but past performance cannot guarantee future success. Traders should use this script within their broad trading approach. Clean and Simple Chart Display: The primary goal of this script is to have a clear and simple display on the chart. The signals are prominently marked with "BUY" and "SELL," and the color of the bars has changed according to the last signal, thus traders can easily read the output. Community and Open Source Open Source Contribution: This script is open for contribution by the TradingView community. Any suggestions regarding improvements are highly welcomed. Candlestick patterns, moving averages, and the combination of the cooldown filter are presented in such a way as to give traders something special, and any modifications or extra touch by the community is appreciated. Attribution and Transparency: The script is based on standard technical analysis principles and for all parts inspired by or derivated from other available open-source scripts, credit is given where it is due. In this way, transparency ensures that the script adheres to TradingView's standards and promotes a collaborative community environment.
D-Shape Breakout Signals [LuxAlgo]The D-Shape Breakout Signals indicator uses a unique and novel technique to provide support/resistance curves, a trailing stop loss line, and visual breakout signals from semi-circular shapes.
🔶 USAGE
D-shape is a new concept where the distance between two Swing points is used to create a semi-circle/arc, where the width is expressed as a user-defined percentage of the radius. The resulting arc can be used as a potential support/resistance as well as a source of breakouts.
Users can adjust this percentage (width of the D-shape) in the settings ( "D-Width" ), which will influence breakouts and the Stop-Loss line.
🔹 Breakouts of D-Shape
The arc of this D-shape is used for detecting breakout signals between the price and the curve. Only one breakout per D-shape can occur.
A breakout is highlighted with a colored dot, signifying its location, with a green dot being used when the top part of the arc is exceeded, and red when the bottom part of the arc is surpassed.
When the price reaches the right side of the arc without breaking the arc top/bottom, a blue-colored dot is highlighted, signaling a "Neutral Breakout".
🔹 Trailing Stop-Loss Line
The script includes a Trailing Stop-Loss line (TSL), which is only updated when a breakout of the D-Shape occurs. The TSL will return the midline of the D-Shape subject to a breakout.
The TSL can be used as a stop-loss or entry-level but can also act as a potential support/resistance level or trend visualization.
🔶 DETAILS
A D-shape will initially be colored green when a Swing Low is followed by a Swing High, and red when a Swing Low is followed by a Swing High.
A breakout of the upper side of the D-shape will always update the color to green or to red when the breakout occurs in the lower part. A Neutral Breakout will result in a blue-colored D-shape. The transparency is lowered in the event of a breakout.
In the event of a D-shape breakout, the shape will be removed when the total number of visible D-Shapes exceeds the user set "Minimum Patterns" setting. Any D-shape whose boundaries have not been exceeded (and therefore still active) will remain visible.
🔹 Trailing Stop-Loss Line
Only when a breakout occurs will the midline of the D-shape closest to the closing price potentially become the new Trailing Stop value.
The script will only consider middle lines below the closing price on an upward breakout or middle lines above the closing price when it concerns a downward breakout.
In an uptrend, with an already available green TSL, the potential new Stop-Loss value must be higher than the previous TSL value; while in a downtrend, the new TSL value must be lower.
The Stop-Loss line won't be updated when a "Neutral Breakout" occurs.
🔶 SETTINGS
Swing Length: Period used for the swing detection, with higher values returning longer-term Swing Levels.
🔹 D-Patterns
Minimum Patterns: Minimum amount of visible D-Shape patterns.
D-Width: Width of the D-Shape as a percentage of the distance between both Swing Points.
Included Swings: Include "Swing High" (followed by a Swing Low), "Swing Low" (followed by a Swing High), or "Both"
Style Historical Patterns: Show the "Arc", "Midline" or "Both" of historical patterns.
🔹 Style
Label Size/Colors
Connecting Swing Level: Shows a line connecting the first Swing Point.
Color Fill: colorfill of Trailing Stop-Loss
Curved Price Channels (Zeiierman)█ Overview
The Curved Price Channels (Zeiierman) is designed to plot dynamic channels around price movements, much like the traditional Donchian Channels, but with a key difference: the channels are curved instead of straight. This curvature allows the channels to adapt more fluidly to price action, providing a smoother representation of the highest high and lowest low levels.
Just like Donchian Channels, the Curved Price Channels help identify potential breakout points and areas of trend reversal. However, the curvature offers a more refined approach to visualizing price boundaries, making it potentially more effective in capturing price trends and reversals in markets that exhibit significant volatility or price swings.
The included trend strength calculation further enhances the indicator by offering insight into the strength of the current trend.
█ How It Works
The Curved Price Channels are calculated based on the asset's average true range (ATR), scaled by the chosen length and multiplier settings. This adaptive size allows the channels to expand and contract based on recent market volatility. The central trendline is calculated as the average of the upper and lower curved bands, providing a smoothed representation of the overall price trend.
Key Calculations:
Adaptive Size: The ATR is used to dynamically adjust the width of the channels, making them responsive to changes in market volatility.
Upper and Lower Bands: The upper band is calculated by taking the maximum close value and adjusting it downward by a factor proportional to the ATR and the multiplier. Similarly, the lower band is calculated by adjusting the minimum close value upward.
Trendline: The trendline is the average of the upper and lower bands, representing the central tendency of the price action.
Trend Strength
The Trend Strength feature in the Curved Price Channels is a powerful feature designed to help traders gauge the strength of the current trend. It calculates the strength of a trend by analyzing the relationship between the price's position within the curved channels and the overall range of the channels themselves.
Range Calculation:
The indicator first determines the distance between the upper and lower curved channels, known as the range. This range represents the overall volatility of the price within the given period.
Range = Upper Band - Lower Band
Relative Position:
The next step involves calculating the relative position of the closing price within this range. This value indicates where the current price sits in relation to the overall range.
RelativePosition = (Close - Trendline) / Range
Normalization:
To assess the trend strength over time, the current range is normalized against the maximum and minimum ranges observed over a specified look-back period.
NormalizedRange = (Range - Min Range) / (Max Range - Min Range)
Trend Strength Calculation:
The final Trend Strength is calculated by multiplying the relative position by the normalized range and then scaling it to a percentage.
TrendStrength = Relative Position * Normalized Range * 100
This approach ensures that the Trend Strength not only reflects the direction of the trend but also its intensity, providing a more comprehensive view of market conditions.
█ Comparison with Donchian Channels
Curved Price Channels offer several advantages over Donchian Channels, particularly in their ability to adapt to changing market conditions.
⚪ Adaptability vs. Fixed Structure
Donchian Channels: Use a fixed period to plot straight lines based on the highest high and lowest low. This can be limiting because the channels do not adjust to volatility; they remain the same width regardless of how much or how little the price is moving.
Curved Price Channels: Adapt dynamically to market conditions using the Average True Range (ATR) as a measure of volatility. The channels expand and contract based on recent price movements, providing a more accurate reflection of the market's current state. This adaptability allows traders to capture both large trends and smaller fluctuations more effectively.
⚪ Sensitivity to Market Movements
Donchian Channels: Are less sensitive to recent price action because they rely on a fixed look-back period. This can result in late signals during fast-moving markets, as the channels may not adjust quickly enough to capture new trends.
Curved Price Channels: Respond more quickly to changes in market volatility, making them more sensitive to recent price action. The multiplier setting further allows traders to adjust the channel's sensitivity, making it possible to capture smaller price movements during periods of low volatility or filter out noise during high volatility.
⚪ Enhanced Trend Strength Analysis
Donchian Channels: Do not provide direct insight into the strength of a trend. Traders must rely on additional indicators or their judgment to gauge whether a trend is strong or weak.
Curved Price Channels: Includes a built-in trend strength calculation that takes into account the distance between the upper and lower channels relative to the trendline. A broader range between the channels typically indicates a stronger trend, while a narrower range suggests a weaker trend. This feature helps traders not only identify the direction of the trend but also assess its potential longevity and strength.
⚪ Dynamic Support and Resistance
Donchian Channels: Offer static support and resistance levels that may not accurately reflect changing market dynamics. These levels can quickly become outdated in volatile markets.
Curved Price Channels: Offer dynamic support and resistance levels that adjust in real-time, providing more relevant and actionable trading signals. As the channels curve to reflect price movements, they can help identify areas where the price is likely to encounter support or resistance, making them more useful in volatile or trending markets.
█ How to Use
Traders can use the Curved Price Channels in similar ways to Donchian Channels but with the added benefits of the adaptive, curved structure:
Breakout Identification:
Just like Donchian Channels, when the price breaks above the upper curved band, it may signal the start of a bullish trend, while a break below the lower curved band could indicate a bearish trend. The curved nature of the channels helps in capturing these breakouts more precisely by adjusting to recent volatility.
Volatility:
The width of the price channels in the Curved Price Channels indicator serves as a clear indicator of current market volatility. A wider channel indicates that the market is experiencing higher volatility, as prices are fluctuating more dramatically within the period. Conversely, a narrower channel suggests that the market is in a lower volatility state, with price movements being more subdued.
Typically, higher volatility is observed during negative trends, where market uncertainty or fear drives larger price swings. In contrast, lower volatility is often associated with positive trends, where prices tend to move more steadily and predictably. The adaptive nature of the Curved Price Channels reflects these volatility conditions in real time, allowing traders to assess the market environment quickly and adjust their strategies accordingly.
Support and Resistance:
The trend line act as dynamic support and resistance levels. Due to it's adaptive nature, this level is more reflective of the current market environment than the fixed level of Donchian Channels.
Trend Direction and Strength:
The trend direction and strength are highlighted by the trendline and the directional candle within the Curved Price Channels indicator. If the price is above the trendline, it indicates a positive trend, while a price below the trendline signals a negative trend. This directional bias is visually represented by the color of the directional candle, making it easy for traders to quickly identify the current market trend.
In addition to the trendline, the indicator also displays Max and Min values. These represent the highest and lowest trend strength values within the lookback period, providing a reference point for understanding the current trend strength relative to historical levels.
Max Value: Indicates the highest recorded trend strength during the lookback period. If the Max value is greater than the Min value, it suggests that the market has generally experienced more positive (bullish) conditions during this time frame.
Min Value: Represents the lowest recorded trend strength within the same period. If the Min value is greater than the Max value, it indicates that the market has been predominantly negative (bearish) over the lookback period.
By assessing these Max and Min values, traders gain an immediate understanding of the underlying trend. If the current trend strength is close to the Max value, it indicates a strong bullish trend. Conversely, if the trend strength is near the Min value, it suggests a strong bearish trend.
█ Settings
Trend Length: Defines the number of bars used to calculate the core trendline and adaptive size. A length of 200 will create a smooth, long-term trendline that reacts slowly to price changes, while a length of 20 will create a more responsive trendline that tracks short-term movements.
Multiplier: Adjusts the width of the curved price channels. A higher value tightens the channels, making them more sensitive to price movements, while a lower value widens the channels. A multiplier of 10 will create tighter channels that are more sensitive to minor price fluctuations, which is useful in low-volatility markets. A multiplier of 2 will create wider channels that capture larger trends and are better suited for high-volatility markets.
Trend Strength Length: Defines the period over which the maximum and minimum ranges are calculated to normalize the trend strength. A length of 200 will smooth out the trend strength readings, providing a stable indication of trend health, whereas a length of 50 will make the readings more reactive to recent price changes.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Magic Linear Regression Channel [MW]Introduction
The Magic Linear Regression Channel indicator provides users with a way to quickly include a linear regression channel ANYWHERE on their chart, in order to find channel breakouts and bounces within any time period. It uses a novel method that allows users to adjust the start and end period of the regression channel in order to quickly make adjustments faster, with fewer steps, and with more precision than with any other linear regression channel tool. It includes Fibonacci bands AND a horizontal mode in order for users to quickly define significant price levels based on the high, low, open, and close prices defined by the start period.
Settings
Start Time: This is initially MANUALLY SELECTED ON THE CHART when the indicator is first loaded.
End time: This is also initially MANUALLY SELECTED ON THE CHART when the indicator is first loaded.
Horizontal Line: This forces the baseline to be horizontal. The band distance is defined by the maximum price distance from the band.
Horizontal Line Type: This snaps the horizontal line to the close, high, low, or open price. Or, it can also use a regression calculation for the selected time period to define the y-position of the line.
Extend Line N Bars: How many bars to the left in which to extend the baseline and bands.
Show Baseline ONLY!!: Removes all lines except the baseline and it’s extension.
Add Half Band: Includes a band that is half the distance between the baseline and the top and bottom bands
Add Outer Fibonacci Band: Includes a band that is 1.618 (phi) times the default band distance
Add Inner Fibonacci Band - Upper: Includes a band that is 0.618 (1/phi) times the default band distance
Add Inner Fibonacci Band - Lower: Includes a band that is 0.382 (1 - 1/phi) times the default band distance
Calculations
This indicator uses the least squares approach for generating a straight regression line, which can be reviewed at Wikipedia’s “Simple Linear Regression” page. It sums all of the x-values, and y-values, as well as the sum of the product of corresponding x and y values, and the sum of the squares of the x-values. These values are used to calculate the slope and intercept using the following equations:
slope = (n * sum_xy - sum_x * sum_y) / (n * sum_xx - sum_x * sum_x)
And
intercept = (sum_y - slope * sum_x) / n
The slope and intercept are then used to generate the baseline and the corresponding bands using the user-selected offsets.
How to Use
When the Magic Linear Regression Channel indicator is first added to the chart, there will be a blue prompt behind the “Indicators, Metrics & Strategies” window. Close the window, then select a START POINT by clicking at a desired location on the chart. Next, you will be prompted to select an END POINT. The end point MUST be placed after the START POINT. At this time a channel will be generated. Once you’ve selected the START POINT and END POINT, you can adjust them by dragging them anywhere on the chart. Each adjustment will generate a new channel making it easier for you to quickly visualize and recognize any channel exits and bounces.
The Magic Linear Regression Channel indicator works great at identifying wave patterns. Place the start line at a top or bottom pivot point. Place the end line at the next respective top or bottom pivot. This will give you a complete wave form to work with. When price reaches a band and rejects, it can be a strong indication that price may move back to one of the bands in the channel. If price exits the channel with volume that supports the exit, it may be an indication of a breakout.
You can also use the horizontal mode to identify key levels, then add Fibonacci bands based on regression calculations for the given time period to provide more meaningful areas of support and resistance.
Other Usage Notes and Limitations
Occasionally, off-by-1 errors appear which makes the extended lines protrude at a slightly incorrect angle. This is a known bug and will be addressed in the next release.
It's important for traders to be aware of the limitations of any indicator and to use them as part of a broader, well-rounded trading strategy that includes risk management, fundamental analysis, and other tools that can help with reducing false signals, determining trend direction, and providing additional confirmation for a trade decision. Diversifying strategies and not relying solely on one type of indicator or analysis can help mitigate some of these risks.
Double Donchian Channels [CrossTrade]Dual Channel System
The indicator incorporates two Donchian Channels - the Inner Channel and the Outer Channel. These channels are adjustable, allowing users to define their lengths according to their trading strategy.
Inner Channel: With a default length of 100 periods, the Inner Channel provides a closer view of market trends and potential support and resistance areas. It includes an upper, lower, and middle line (average of the upper and lower), offering detailed insights into shorter-term price movements.
Outer Channel: Set with a default length of 300 periods, the Outer Channel offers a broader perspective, ideal for identifying long-term trends and stronger levels of support and resistance.
Dynamic Color Coding: The middle lines of both channels change color based on the relationship between the previous close and the channel's basis. This feature provides an immediate visual cue regarding market sentiment.
Touching Bars Highlighting: The indicator highlights bars that touch the upper or lower bands of either channel. This is particularly useful for identifying potential reversals or continuation patterns.
Pullback Identification: By differentiating between bars that touch the Inner Channel only and those that touch the Outer Channel, the indicator helps in identifying pullbacks within a broader trend.
Customizable Alert System: Users can set up alerts for specific conditions - a bar touching the bottom band of the Inner Channel (green), the bottom band of the Outer Channel (blue), the upper band of the Inner Channel (red), and the upper band of the Outer Channel (orange). These alerts assist in timely decision-making and can be tailored to individual trading styles.
The indicator is a versatile tool designed to adapt to various trading styles and timeframes. Its features make it suitable for trend analysis, identifying potential reversal points, and understanding market volatility.
KASPA Slope OscillatorKASPA Slope Oscillator for analyzing KASPA on the 1D (daily) chart.
The indicator is plotted in a separate pane below the price chart and uses a mathematical approach to calculate and visualize the momentum or "slope" of KASPA's price movements.
Input Parameters:
Slope Window (days):
Defines the period (66 days by default) over which the slope is calculated.
Normalization Window (days):
The window size (85 days) for normalizing the slope values between 0 and 100.
Smoothing Period:
The number of days (15 days) over which the slope values are smoothed to reduce noise.
Overbought and Oversold Levels:
Threshold levels set at 80 (overbought) and 20 (oversold), respectively.
Calculation of the Slope:
Logarithmic Price Calculation:
Converts the close price of KASPA into a logarithmic scale to account for exponential growth or decay.
Rolling Slope:
Computes the rate of change in logarithmic prices over the defined slope window.
Normalization:
The slope is normalized between 0 and 100, allowing easier identification of extreme values.
Smoothing and Visualization:
Smoothing the Slope:
A Simple Moving Average (SMA) is applied to the normalized slope for the specified smoothing period.
Plotting the Oscillator:
The smoothed slope is plotted on the oscillator chart. Horizontal lines indicate overbought (80), oversold (20), and the mid-level (50).
Background Color Indications:
Background colors (red or green) indicate when the slope crosses above the overbought or below the oversold levels, respectively, signaling potential buy or sell conditions.
Detection of Local Maxima and Minima:
The code identifies local peaks (maxima) above the overbought level and troughs (minima) below the oversold level.
Vertical background lines are highlighted in red or green at these points, signaling potential reversals.
Short Summary:
The oscillator line fluctuates between 0 and 100, representing the normalized momentum of the price.
Red background areas indicate periods when the oscillator is above the overbought level (80), suggesting a potential overbought condition or a sell signal.
Green background areas indicate periods when the oscillator is below the oversold level (20), suggesting a potential oversold condition or a buy signal.
The vertical lines on the background mark local maxima and minima where price reversals may occur.
(I also want to thank @ForgoWork for optimizing visuality and cleaning up the source code)
HMA Z-Score Probability Indicator by Erika BarkerThis indicator is a modified version of SteverSteves's original work, enhanced by Erika Barker. It visually represents asset price movements in terms of standard deviations from a Hull Moving Average (HMA), commonly known as a Z-Score.
Key Features:
Z-Score Calculation: Measures how many standard deviations the current price is from its HMA.
Hull Moving Average (HMA): This moving average provides a more responsive baseline for Z-Score calculations.
Flexible Display: Offers both area and candlestick visualization options for the Z-Score.
Probability Zones: Color-coded areas showing the statistical likelihood of prices based on their Z-Score.
Dynamic Price Level Labels: Displays actual price levels corresponding to Z-Score values.
Z-Table: An optional table showing the probability of occurrence for different Z-Score ranges.
Standard Deviation Lines: Horizontal lines at each standard deviation level for easy reference.
How It Works:
The indicator calculates the Z-Score by comparing the current price to its HMA and dividing by the standard deviation. This Z-Score is then plotted on a separate pane below the main chart.
Green areas/candles: Indicate prices above the HMA (positive Z-Score)
Red areas/candles: Indicate prices below the HMA (negative Z-Score)
Color-coded zones:
Green: Within 1 standard deviation (high probability)
Yellow: Between 1 and 2 standard deviations (medium probability)
Red: Beyond 2 standard deviations (low probability)
The HMA line (white) shows the trend of the Z-Score itself, offering insight into whether the asset is becoming more or less volatile over time.
Customization Options:
Adjust lookback periods for Z-Score and HMA calculations
Toggle between area and candlestick display
Show/hide probability fills, Z-Table, HMA line, and standard deviation bands
Customize text color and decimal rounding for price levels
Interpretation:
This indicator helps traders identify potential overbought or oversold conditions based on statistical probabilities. Extreme Z-Score values (beyond ±2 or ±3) often suggest a higher likelihood of mean reversion, while consistent Z-Scores in one direction may indicate a strong trend.
By combining the Z-Score with the HMA and probability zones, traders can gain a nuanced understanding of price movements relative to recent trends and their statistical significance.