Simple SessionsThis is a simple sessions indicator that allows you to highlight up to 3 different sessions on your chart. This is intended for charts in any timeframe lower than the Daily timeframe. Really simple, clean, and minimalistic on purpose, intended to help and not clutter the chart.
Options/parameters:
Sessions: Check and setup beginning and end of the sessions. Up to 3 sessions at the same time.
Enable specific timezone: You can specify your exact timezone so that the sessions stay consistent even when you’re viewing different assets from different brokers that might be providing the price data in different timezones.
Show next day: Check to allow for your sessions to be viewed in advance for the following day so that you can expect your trading session in the chart (something simple, but quite useful).
Show next day input also accepts an integer value (default at 0). This numeric value is useful only for a few different assets that don’t have price data (aren’t tradable) 24 hours of each week-day. When that’s the case the calculation to show the session in the future day is not precise so with this number you can adjust it. For example, on OANDA:SPX500USD in the 30m time-frame, between 5pm and 6pm NY time there’s no price data. If you check that chart on any day at 4:30pm NY time, the next bar should be at 5pm, however since there’s no data it jumps to 6pm NY time. For that example you can set the input number to -2 and it will move the sessions to the correct time window you specified in the Sessions input.
Optional comment: This is a comment that will be shown in the status line. There’s no other use for this. It’s only helpful when you have multiple instances of the indicator for different assets for example. In that case with this comment you would be able to instantly detect which indicator is for which chart.
Chart patterns
Prometheus Volatility StopThe Prometheus Volatility Stop is an indicator designed to give you a moving risk metric along with a custom Moving Average cross. After a calculation of the annualized volatility for the specified lookback period we determine bullish or bearish from the moving averages and plot the Volatility Stop accordingly.
User Input:
A user can select from Hull Moving Average, Exponential Moving average, Simple Moving Average, the Moving Average used in RSI, and Weighted Moving Average. The default is Hull Moving Average and Exponential Moving average.
A user can also specify the lookback period. The default is 30.
A user may also turn off the plots for the Moving Averages.
The reason for this approach is to be more original from the traditional Volatility Stop.
Calculation:
The Historical Volatility is calculated by taking the standard deviation of the log returns for the specified period and then annualizing it.
hv = ta.stdev(math.log(close / close ), lkb) * math.sqrt(252/5)
Then the Volatility Stop is calculated as follows:
recent_max = ta.highest(close, lkb)
recent_min = ta.lowest(close, lkb)
hv_stop = ma_2 > ma_1 ? recent_max + hv : recent_min - hv
When the second selected moving average is greater than the first, which signals bearishness, the historical volatility gets added to the high of that period. When the moving averages signal bullish the historical volatility gets subtracted from the low of that period.
Here is an example on NASDAQ:ARM :
After the first crossover, bullish signal, price runs for some time. As we get higher and higher so does the Volatility Stop. At the highs before a bearish crossover the price hits and closes at the Volatility Stop. Providing what could be an exit from a strong run up.
Intra-day example on NASDAQ:QQQ :
We see that in the early bearish move price goes on to hit the Volatility Stop before the trend switches.
We also see that in the failed long. The price action throughout the rest of the day, while not providing in profit stop outs, do provide fine directional alerts.
All those examples have been done with the default settings. Upon changing Moving Average One to a WMA and Moving Average Two to an SMA, as well as the lookback to 75. We see this quickly can become a simple trend follower.
This is the perspective we aim to provide. We encourage traders to not follow indicators blindly. No indicator is 100% accurate. This one can give you a different perspective of price strength with volatility. We encourage any comments about desired updates or criticism!
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
VS (Vegas Fractal System)VS is a trading system based on the identification of fractal reaction zones within a larger, carefully identified movement. It is internally made up of 4 sub-systems.
The indicator is composed of the following parameters: Max and Min, are the largest area identified and will act as the STOPLOSS point. L1, is the price reaction level. Entry, is where to place a pending market entry order. TP, is the place to place a 100% sell order.
A valid area must be identified through the Fibonacci levels that join Highs and Lows or vice versa depending on the bullish or bearish movement. To be usable, this movement must not have a sub-movement that has already hit the 0.618 level.
Always manage Risk and Money Management in an adequate, technical and sustainable manner in relation to your capital. A fair exposure per transaction is between 1% and 2% of the capital.
Key Times & Opening Prices [Olitrades]This indicator plots key time's (opening prices) with the possibility of vertical separators. It was initially created to utilize on the indices futures market, utilizing ICT logic.
These opening prices are often utilized to determine if price is currently at a premium or a discounted value.
The default times include:
Daily Open (18:00 PM)
Midnight (00:00 AM)
Settlement (15:00 PM)
7:30 AM
8:30 AM
9:30 AM (Equities Open)
10:00 AM (Morning 4h Candle Open)
14:00 PM (Afternoon 4h Candle Open)
Along with up to three custom time slots.
All times used in the indicator are Eastern Standard time (New York local time) and will automatically adjust no matter your time zone.
Historical
When in historical mode, the indicator will keep the previous levels so you can easily visualize them and their relation to price.
You can also choose how many past levels you want to see. This allows you to back test only specific days/weeks.
Other Inputs
The indicator contains an adjustable offset, to modify how far the line extends depending on the current timeframe.
Each one of the above-mentioned levels can be turned on and off, including the custom times. You can also choose between plotting just the opening price, a vertical line separator, or both! All of these lines have adjustable styles (dotted, dashed or solid) and width.
They also have custom cut offs. You may choose specific cut off times for custom time slots (when to stop extending the lines), as well as for AM (before noon) default levels and PM (after noon) default levels.
The indicator also allows to show text labels next to these lines, which is set by default but can be turned off. Custom times also include custom text options.
Atlantean Bitcoin Weekly Market Condition - Top/Bottom BTC Overview:
The "Atlantean Bitcoin Weekly Market Condition Detector - Top/Bottom BTC" is a specialized TradingView indicator designed to identify significant turning points in the Bitcoin market on a weekly basis. By analyzing long-term and short-term moving averages across two distinct resolutions, this indicator provides traders with valuable insights into potential market bottoms and tops, as well as the initiation of bull markets.
Key Features:
Market Bottom Detection: The script uses a combination of a simple moving average (SMA) and an exponential moving average (EMA) calculated over long and short periods to identify potential market bottoms. When these conditions are met, the script signals a "Market Bottom" label on the chart, indicating a possible buying opportunity.
Bull Market Start Indicator: When the short-term EMA crosses above the long-term SMA, it signals the beginning of a bull market. This is marked by a "Bull Market Start" label on the chart, helping traders to prepare for potential market upswings.
Market Top Detection: The script identifies potential market tops by analyzing the crossunder of long and short-term moving averages. A "Market Top" label is plotted, suggesting a potential selling point.
Customizable Moving Averages Display: Users can choose to display the moving averages used for detecting market tops and bottoms, providing additional insights into market conditions.
How It Works: The indicator operates by monitoring the interactions between the specified moving averages:
Market Bottom: Detected when the long-term SMA (adjusted by a factor of 0.745) crosses over the short-term EMA.
Bull Market Start: Detected when the short-term EMA crosses above the long-term SMA.
Market Top: Detected when the long-term SMA (adjusted by a factor of 2) crosses under the short-term SMA.
These conditions are highlighted on the chart, allowing traders to visualize significant market events and make informed decisions.
Intended Use: This indicator is best used on weekly Bitcoin charts. It’s designed to provide long-term market insights rather than short-term trading signals. Traders can use this tool to identify strategic entry and exit points during major market cycles. The optional display of moving averages can further enhance understanding of market dynamics.
Originality and Utility: Unlike many other indicators, this script not only highlights traditional market tops and bottoms but also identifies the aggressive start of bull markets, offering a comprehensive view of market conditions. The unique combination of adjusted moving averages makes this script a valuable tool for long-term Bitcoin traders.
Disclaimer: The signals provided by this indicator are based on historical data and mathematical calculations. They do not guarantee future market performance. Traders should use this tool as part of a broader trading strategy and consider other factors before making trading decisions. Not financial advice.
Happy Trading!
By Atlantean
Decline and Rise Detective [CHE]Decline and Rise Detective
TradingView Indicator (Best Timeframe: 1H or Higher)
1. Introduction
The "Decline and Rise Detective " is a TradingView indicator designed to identify the hours within a trading day that experience the largest price declines and rises. This indicator provides a visual representation of this data, offering traders valuable insights into the most frequent hours for significant price movements. It is most effective when used with a timeframe of 1 hour or greater.
2. Key Features of the Indicator
2.1. Display Options
Display Option: Users can choose between two display options:
Label: Displays the information as a text label directly on the chart.
Table: Displays the information in a table format in the top right corner of the chart.
2.2. Time Zone Settings
Time Zone: The indicator allows the user to manually set the time zone or use the exchange's time zone.
Time Zone Offset: Adjust the time zone via a UTC offset.
2.3. Day Change Detection
The indicator automatically detects the change between trading days to ensure data is correctly assigned.
3. Analysis of Price Declines and Rises
3.1. Calculation of Largest Declines and Rises
The indicator compares the high and low of each hour to determine the largest decline and rise within a trading day.
3.2. Frequency Counting
For each hour of the day, the number of times the largest declines and rises occur is counted to identify the hours with the most significant price movements.
3.3. Data Sorting
The hours are sorted by the number of occurrences of declines and rises to highlight the most frequent hours. This sorting was implemented using the MA Sorter function, inspired by Duyck's Array Sorter. Special thanks to Duyck for providing the Array Sorter on TradingView, which greatly influenced this feature
4. Interpretation and Trading Applications
4.1. Identifying High Volatility Periods
The hours identified by the indicator as having the most frequent and significant price movements are typically periods of high volatility. These periods are crucial for traders who seek to capitalize on market fluctuations.
4.2. Determining Optimal Trade Entries
Long Trades: The hours with the most significant price rises can be used to identify optimal times to enter long positions.
Short Trades: Conversely, the hours with the most significant price declines can indicate good opportunities for short trades.
4.3. Display of Top 5 Hours
The indicator shows the five hours with the most declines and rises.
Depending on the selected display option, this information is shown either as a text label or as a table in the chart.
4.4. Background Color
The background color of the chart changes at day change to clearly mark it.
5. Application of the Indicator
5.1. Trading Use
Traders can use the indicator to identify time windows with high volatility and adjust their trading strategies accordingly. This allows for more informed decisions on when to go long or short, depending on the market conditions during those hours.
5.2. Customization Options
Various input options allow the user to customize the indicator to fit personal needs and trading hours.
6. Summary
The "Decline and Rise Detective " indicator is a powerful tool for analyzing hourly price movements in the markets. By providing detailed information on the most frequent hours for significant price declines and rises, this indicator offers valuable insights into periods of high volatility. Traders can use this data to make more informed decisions on entering long or short trades. It is particularly effective when used with timeframes of 1 hour or greater.
Best regards and happy trading
Chervolino
Buy Signal Only with Multiple Indicators and Stop LossDescription: This custom Pine Script indicator is designed to help traders identify optimal buy signals using a combination of multiple technical indicators. It provides visual markers for entry points, take profit levels, and stop loss, offering a comprehensive tool for decision-making.
Features:
Buy Signal: Generates a buy signal based on a combination of EMA Cloud, SuperTrend, Zero Lag MACD, QQE, Volume Oscillator, and ATR Bands.
Entry Point: Displays a horizontal line at the entry price with a price label, extended to the right for visibility.
Take Profit Levels:
1% Take Profit: A dashed red line with a price label for the first take profit level.
2% Take Profit: A dashed orange line with a price label for the second take profit level.
Stop Loss: A dotted purple line with a price label to indicate the stop loss level set at 3%.
Parameters:
EMA Short Length: Adjust the period for the short EMA.
EMA Long Length: Adjust the period for the long EMA.
ATR Length: Set the length for ATR calculation.
Multiplier: Define the factor for the SuperTrend calculation.
MACD Length and Signal Length: Configure lengths for MACD and its signal line.
RSI Length and Smooth Length: Set parameters for RSI and its smoothing.
Volume Lengths: Customize lengths for the volume oscillator.
ATR Band Length and Multiplier: Set parameters for ATR Bands.
Delay Bars: Specify the number of bars to wait before showing another buy signal.
Take Profit Percentages: Adjust percentages for the 1% and 2% take profit levels.
Stop Loss Percentage: Set the stop loss percentage.
Line Extension Length: Define the number of bars to extend lines.
Right Offset Bars: Configure how many bars to offset labels and lines to the right.
Usage:
Identify Buy Opportunities: The indicator helps identify potential buy signals using multiple indicators.
Manage Trades: Visualize entry points, take profit targets, and stop loss levels to manage trades effectively.
Customization: Tailor the indicator to fit your trading strategy by adjusting the parameters.
Notes:
This is what we call version 1.
Ensure that the indicator's settings align with your trading strategy and market conditions.Use in conjunction with other analysis tools for a comprehensive trading approach.
Day, Week, or Hour Coloring
This is a simple Script that dynamically colors the chart bars based on the day of the week, week of the month, or hour of the day. Users can toggle between these three modes using the Color Mode input, allowing for flexible visual representation of time periods directly on the chart.
Key Features:
Color Modes:
Day Mode: Colors the bars according to the day of the week, with each day assigned a unique color.
Week Mode: Colors the bars based on the week of the month, providing a different color for each week.
Hour Mode: Colors the bars according to the hour of the day, with distinct colors assigned to each hour.
How It Works:
Day Mode:
The script assigns a unique color to each day of the week (e.g., Monday is red, Tuesday is green).
Week Mode:
The script calculates the week of the month by considering the first day of the month and adjusts the day count to determine the correct week.
Each week is assigned a specific color (e.g., Week 1 is red, Week 2 is green).
Hour Mode:
The script assigns a unique color to each hour of the day (e.g., 0:00 is blue, 1:00 is green).
Selected Color Application:
The script evaluates the selected Color Mode and applies the corresponding color to the bars on the chart using the barcolor() function.
This indicator is useful for traders who want to visually distinguish time periods on their charts, aiding in pattern recognition and time-based analysis.
5-9-20-100 Day EMAIndicator Name: "5-9-20-100 Day EMA"
Purpose: This indicator plots four key EMAs (5, 9, 20, and 100-day) on a daily chart, providing a clear visualization of both short-term and long-term trends. The EMAs serve as critical triggers for identifying potential entry and exit points based on price interactions with these moving averages.
Technical Details:
Version: Pine Script v5
EMAs Used:
5-Day EMA (Lime): Captures the most recent price trends, useful for identifying short-term momentum.
9-Day EMA (Yellow): Offers a slightly broader view, often used to confirm the short-term trend.
20-Day EMA (Orange): Represents a medium-term trend, commonly used as a signal for trend reversals.
100-Day EMA (Red): Indicates the long-term trend, often serving as strong support or resistance levels.
Trigger Points:
Crossovers: Price crossing above or below these EMAs can trigger potential buy or sell signals.
Convergence/Divergence: The interaction between the EMAs, such as a faster EMA crossing a slower one, can signal trend reversals or continuations.
Utility: This indicator is ideal for traders who rely on EMA crossovers and the relationship between different EMAs to make informed trading decisions.
Prometheus Volatility EMAThe Prometheus Volatility EMA is an indicator that calculates an Exponential Moving Average with the historical volatility as how we decide how sensitive to make the indicator to the most recent data.
A traditional EMA is calculated like this:
EMA = alpha * source + (1 - alpha) * EMA , where alpha = 2 / (length + 1)
Sourced from TradingView’s ta.ema built in function.
We see that the alpha value is used to determine how sensitive the EMA will be to the most recent prices, and it is derived from how many bars back are used in the calculation.
Prometheus is using the annualized historical volatility, for a specified period as the “alpha” value. The reason for this is that on more volatile assets, the EMA will follow price more closely to give you a better idea of when price may change direction.
Historical Volatility calculation:
hv = ta.stdev(math.log(close / close ), lkb) * math.sqrt(252/5)
EMA calculation:
float hv_EMA = na
hv_EMA := na(hv_EMA ) ? ta.sma(close, lkb) : hv * close + (1 - hv) * hv_EMA
Let's explain some charts to better understand this tool!
We see on a 1 year NASDAQ:SHY chart, the moving average is far from the price. This makes sense as NASDAQ:SHY has a range of 2.85% from the low to the high for this period in the photo above. It is not very volatile.
In this chart of BITSTAMP:BTCUSD we see that the EMA follows price very closely, way closer than it does on $SHY. This is because BITSTAMP:BTCUSD is much more volatile. BITSTAMP:BTCUSD has a range of 196% from the low to the high in this photo. Way more than $SHY.
We see it change on the same asset here looking at $QQQ. In the small period with the drop we see the EMA follow more closely as volatility picks up, then it quickly allows price to get far as volatility leaves.
This is the perspective we aim to provide. We encourage traders to not follow indicators blindly. No indicator is 100% accurate. This one can give you a different perspective of price strength with volatility. We encourage any comments about desired updates or criticism!
ABCD Projection [Trendoscope®]Over the years, we have extensively explored and published numerous scripts centered around various chart patterns, including Harmonic Patterns, Reversal Patterns, Elliott Waves, and more. Our expertise in these areas has led to frequent requests for an indicator based on the ABCD pattern. Although we didn't include it as part of our Harmonic Patterns collection, the development of a dedicated ABCD Projection Indicator has always been a priority for us.
🎲 Overview of the ABCD Projection Indicator
The ABCD Projection Indicator is designed to identify and project ABCD patterns using a Zigzag-based approach. This pattern, characterized by alternating pivot highs and lows labeled as A, B, C, and D, is particularly significant in trending markets where it signifies trend continuation following deep pullbacks.
The indicator works by confirming the ABC pivots and projecting the D pivot based on the established price swings. Since ABCD patterns are most effective in trending environments, the indicator focuses on filtering patterns where the retracement from the C pivot has not compromised the trade's potential. Specifically, it ensures that the starting point (S)—where the pattern is detected—has not retraced beyond a defined threshold, preserving the opportunity to execute a trade with the goal of reaching the projected D pivot.
Additionally, the ABCD Projection Indicator considers the retracement ratio from the C pivot, which plays a crucial role in risk management. A higher retracement ratio reduces the stop distance (from pivot A to the entry point S) while increasing the distance to the target (pivot D), thereby enhancing the reward/risk ratio for trades.
🎲 Components of the ABCD Projection Indicator
The ABCD Projection Indicator comprises several key components:
A, B, C Pivots and Zigzag Wave : These elements form the foundational structure of the ABCD pattern.
S Point : This is the location where the pattern is identified, positioned a few bars away from the confirmed C pivot.
Estimated D Pivot : The D pivot is projected based on the A, B, and C price levels. The time or distance to the D pivot is influenced by the starting point S.
Mini Stats Table : Located in the top right corner, this table displays win/loss ratios and risk/reward data for both bullish and bearish scenarios.
Fibonacci Levels : Calculated from the C to D pivots, these levels are provided as a reference for additional analysis.
🎲 Indicator Settings
The settings for the ABCD Projection Indicator are minimal and intuitive, with tooltips provided to guide users through the configuration process.
Inside Candle - Multi TimeframesIndicator looks for inside candle on 3 timeframes. Chart's default timeframe and 2 higher timeframes to spot Inside candle on any of these timeframes.
Main purpose was to look at multiple inside candle at multiple timeframes to identify consolidation within consolidation and implement intraday, hence for 15min chart timeframe.
However, code works for all timeframes from 5 min to quarterly and higher timeframes will be picked automatically.
Reference and credits
This indicator is inspired by and uses code from:
- Author Name - // © Fab_Coin_
-
Uptrend & SMAThe "Uptrend and Close to SMA" indicator is designed to help traders identify when the price of a stock is in an uptrend and is trading near its Simple Moving Average (SMA) over a user-defined period. The indicator uses multi-timeframe analysis, allowing the user to select different timeframes for calculating the SMA.
Key Features:
SMA Calculation: The indicator calculates the SMA for a selected timeframe (e.g., daily, weekly, monthly) based on a user-specified period (default is 150 periods).
Multi-Timeframe Options: Users can choose between multiple timeframes (1 day, 1 week, 1 month, 3 months, 6 months, 12 months) to calculate the SMA, providing flexibility in trend analysis.
Proximity Threshold: The indicator includes a proximity threshold in percentage terms, allowing users to define how close the real-time price needs to be to the SMA to trigger a visual alert.
Uptrend Identification: The indicator identifies an uptrend when the real-time price is above the selected SMA.
Visual Alerts: If the price is above the SMA and within the defined proximity threshold, the background color of the chart will change to green, signaling that the stock is in an uptrend and close to the SMA.
Alert Condition: The indicator includes an alert condition that triggers when the price is in an uptrend and within the proximity threshold, allowing traders to be notified when their criteria are met.
Percentage Difference Display: A table displays the percentage difference between the real-time price and the SMA, providing a quick reference to see how far the price is from the SMA in percentage terms.
This indicator is especially useful for traders looking for potential buying opportunities when a stock is trending upwards but still near its moving average, indicating potential continuation or momentum.
Daily High and Low Levels IndicatorThis Pine Script indicator displays horizontal lines representing the high and low levels of the previous trading day, extending them to the right side of the chart for better visibility. It updates automatically at the start of each new trading day.
Features:
Daily High and Low Levels: Marks the high and low levels of the previous day with horizontal lines.
Customization:
Adjust the color, style, and thickness of the lines to fit your preferences.
High Level Line Color: Customize to your preferred color (default: gray).
Low Level Line Color: Customize to your preferred color (default: white).
Line Style Options: Choose between solid, dashed, or dotted lines.
Line Thickness: Adjust the width of the lines.
Extended Lines: Extend the lines to the right side of the chart for enhanced visibility.
Labeling: Shows clear labels "Previous High" and "Previous Low" next to the lines for easy reference.
Usage :
Add this indicator to your chart to visualize the previous day's high and low levels.
Customize the appearance of the lines and labels using the input options.
The indicator will automatically update these levels at the beginning of each trading day.
This indicator is designed to help traders quickly identify significant price levels from the previous day and make informed trading decisions.
License: This script is provided under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License. For more information, visit Creative Commons License.
Next Candle Price Prediction FAJnext candle price prediction
Previous Day Data:
prevHigh, prevLow, and prevClose are calculated to capture the high, low, and close of the previous day. This is used to understand the previous day's price range and sentiment.
ATR Calculation:
The Average True Range (ATR) is a measure of volatility. We use it to estimate how much the price might move up or down from the previous close.
Predicted High and Low:
Using the previous close plus and minus the ATR value gives a range where the price might reach.
Predicted Target Price:
The script calculates a simple midpoint of the previous day's range to predict the target price for the next candle. This midpoint serves as a basic prediction, assuming price might oscillate within the previous day's range.
Plotting:
The script plots the predicted high, low, and target price as well as the previous day's high, low, and close for context.
Prometheus NFP LevelsThis script is a tool to mark the high and low of the most recent first Friday of the month. The significance of that day is that’s when the Bureau of Labor Statistics reports the Non Farm Payrolls (NFP) for the month prior. This number includes how many jobs were added that month, the unemployment rate, and labor force participation rate to name a few.
It is always on the first Friday of the new month, and markets tend to care about it quite a bit.
This script also allows a user to get the high and low of a specific date, the default date is the last Federal Open Market Committee day (FOMC). On this day the Federal Reserve announces the Federal Funds Interest Rate, as well as giving guidance on things like bond buying programs, to name a few.
Markets care about these days a lot, that is why we decided to make this script. Prometheus plans to update the default custom date with the most recent FOMC date as they come around.
Here we see the FOMC level high in blue, and low in yellow as well as the NFP high and low in green and red. The white boxes highlight areas where the market reacted to the levels.
On this chart we see a different asset still has interactions with the levels.
We chose to have the user input the date the way we did, not as a timestamp, for this code:
ts_start = timestamp(event_year, event_month, event_day, 9, 30)
ts_end = timestamp(event_year, event_month, event_day+1, 0, 0)
Adding one to the inputted date gives us a simple way to define the time range.
Prometheus encourages users to use indicators as tools along with their own discretion. No indicator is 100% accurate. We encourage comments about requested features and criticism.
Smoothed SuperTrend with VWAP Confirmation [CHE] Smoothed SuperTrend with Automated Optimization and VWAP Confirmation
Overview
The "Smoothed SuperTrend with VWAP Confirmation" is an advanced technical analysis indicator designed for precise trend identification and trading signal generation. This script integrates a smoothed version of the popular SuperTrend indicator with an additional layer of confirmation using the Volume-Weighted Average Price (VWAP). The combination of these two elements offers traders a powerful tool for identifying optimal entry and exit points in the market.
Key Features
1. Smoothed SuperTrend
- Super Smoother Algorithm: The SuperTrend in this script is not just a regular one; it is enhanced by the Super Smoother filter, which reduces market noise and provides more reliable trend signals.
- Customizable Parameters: Traders can adjust three different sets of SuperTrend parameters (factor and ATR length), allowing them to tailor the indicator to their specific trading strategies.
- Automatic Optimization: The script automatically evaluates the performance of each SuperTrend parameter set and selects the one with the best cumulative performance. This selection process can be set to pick either the best or the worst performing parameter set, depending on the trader's preference.
2. VWAP Confirmation
- Precise Trend Confirmation: Once the best-performing SuperTrend is identified, the script further refines the signals by using VWAP as a confirmation tool. VWAP is a highly respected indicator in the trading community, often used to assess the true average price of an asset.
- Long and Short Signal Generation: The script generates Long and Short signals only when the price action is confirmed by both the SuperTrend and VWAP. For a Long signal, the price must be above the VWAP, and for a Short signal, it must be below the VWAP. This dual confirmation ensures higher accuracy and reduces the likelihood of false signals.
3. Visual and Informative Labels
- Signal Labels: Upon confirmation of a trend reversal by both the SuperTrend and VWAP, the script plots clear labels on the chart, indicating confirmed Long or Short signals. These labels are customizable in terms of color, text, and size, ensuring they fit seamlessly into any chart setup.
- Best Parameters Display: At the close of the most recent bar, the script displays a label that provides detailed information about the best-performing SuperTrend parameters and their cumulative performance. This feature keeps traders informed about which settings are currently most effective.
Input Customization Options
1. Super Smoother Length
- Traders can define the length of the Super Smoother filter, which is used to smooth both price data and ATR (Average True Range) values. This input allows traders to control the sensitivity of the indicator, with shorter lengths providing faster responses and longer lengths offering smoother trends.
2. SuperTrend Parameters
- Factor: For each of the three SuperTrends, traders can set a unique factor that determines the distance of the SuperTrend bands from the average price. A higher factor results in wider bands and fewer signals, while a lower factor results in narrower bands and more signals.
- ATR Length: Traders can also specify the length of the ATR used in each SuperTrend calculation. A longer ATR period captures broader market volatility, while a shorter period focuses on more immediate price movements.
3. Label Settings
- Label Colors: The script allows full customization of label colors for Long and Short signals, ensuring that they match the trader’s chart aesthetics.
- Label Text Colors and Sizes: Traders can adjust the text color and size of the labels for Long, Short, and information labels, allowing them to prioritize visibility and readability on their charts.
4. Performance Selection Mode
- Best or Worst Performer: This input allows traders to select whether the script should optimize for the best or worst performing SuperTrend parameter set. This flexibility is useful in different market conditions, where a trader might want to analyze either the strongest trend or focus on a contrarian strategy.
5. VWAP Calculation
- The script automatically recalculates the VWAP based on trend changes, ensuring that the confirmation signals are as accurate and relevant as possible to the current market context.
Important Note
This script is designed to provide more accurate trend signals and confirmations, but like all technical indicators, it should not be used in isolation. It is recommended to use this tool as part of a broader trading strategy, including proper risk management and consideration of fundamental market conditions.
Conclusion
The "Smoothed SuperTrend with VWAP Confirmation" script is an innovative trading tool that combines the strengths of the SuperTrend and VWAP indicators. By integrating smoothing techniques and automatic parameter optimization, this indicator provides traders with more accurate and reliable trend signals. The added confirmation by VWAP further enhances the precision of the entry and exit points, making it an excellent choice for traders looking to improve their technical analysis and trading outcomes. This tool is especially valuable for those who prefer customizable inputs and a systematic approach to trading, ensuring that the indicator adapts to various market conditions and individual trading styles.
Best regards
Chervolino
Price & Volume Breakout Fibonacci Probability [TradeDots]📝 OVERVIEW
The "Price & Volume Breakout Fibonacci Probability" indicator is designed to detect the probability of the maximum run-up and drawdown of each breakout trade on an asset, assisting traders in optimizing their take profit and stop loss strategies.
🧮 CALCULATIONS
The algorithm detects price and volume breakouts to activate the Fibonacci levels displayed on the chart. It calculates these levels using the period pivot high and low, with the close price of the breakout bar as the reference price.
The indicator then forward-tests within an user-selected number of bars, detecting the maximum run-up and drawdown during that period. Consequently, it calculates the probability of the price hitting either side of the Fibonacci levels, showing the likelihood of reaching take profit and stop loss targets for each breakout trade.
📊 EXAMPLE
The above example shows two breakout trades, circled within the yellow rectangle zone.
The first trade has a maximum run-up above the +0.382 Fibonacci level zone and a maximum drawdown below the -0.618 Fibonacci level zone.
When the price reaches the maximum run-up, it only has a ~45% probability of moving further upward into the last two zones (25% + 19.44%). This indicates that setting a take profit at a higher level may have less than a 50% chance of success.
Conversely, when the price reaches its maximum drawdown, there is only an ~8% probability of moving further downward into the last drawdown zone. This could indicate a potential reversal.
⚙️ SETTINGS
Breakout Condition: Determines the type of breakout condition to track: "Price", "Volume", "Price & Volume".
Backtest Period: The maximum run-up and drawdown are detected within this bar period.
Price Breakout Period: Specifies the number of bars the price needs to break out from.
Volume Breakout Period: Specifies the number of bars the volume needs to break out from.
Trendline Confirmation: Confirms that the close price needs to be above the trendline.
📈 HOW TO USE
By understanding the probabilities of price movements to both the upside and downside, traders can set take profit and stop loss targets with greater accuracy.
For instance, placing a stop loss order below the zone with the highest probability minimizes the chances of being stopped out of a profitable trade. Conversely, setting a take profit target at the zone with the highest probability increases the win rate.
Additionally, if the price breaches multiple Fibonacci levels during the breakout period, it may indicate an abnormal state, signaling a potential reversal or pullback. This can help traders exit trades in a timely manner.
Traders can adjust their take profit and stop loss levels based on their individual risk tolerance.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
FVG Price & Volume Graph [LuxAlgo]The FVG Price & Volume Graph tool plot recently detected fair value gaps relative to the volume traded within their area during their formation. This allows us to effectively visualize significant fair value gaps caused by high liquidity.
The indicator also returns levels from the fair value gaps areas average with the highest associated volume.
Do note that the indicator can consider the chart's visible range when being computed, which will recalculate the indicator when the chart's visible range changes.
🔶 USAGE
Fair Value Gaps (FVG) are core price action concepts occurring when the disparity between supply and demand is significant. Price has a tendency to come back to those areas and mitigating them, that is filling them.
The provided tools allow for effective visualization of both FVG's area's height as well as the volume originating from their creation, which is defined by the total traded volume located within the FVG during its creation. FVG's with more associated volume are displayed to the rightmost of the chart.
Users can determine the amount of most recent FVG's to display from the "Display Amount" setting. Disabling the "Consider Mitigation" setting will return mitigated FVGs in the plot, which can be useful to know where most FVGs were located.
We can use the area average of the FVGs with the most associated volume as potential support/resistance levels. Users can extend more FVG's averages by increasing the "Highest Volume Averages" setting.
🔹 Visualizing Volume/Price Relationships of FVG's
A linear regression is fit between FVG's areas average and their associated volume, with this linear regression helping us see where FVG's with specific volume might be located in the future based on existing FVG's.
Note that FVG's do not tend to exhibit linear relationships with their associated volume, the provided linear regression can give a general sense of tendency, but nothing necessarily accurate.
🔶 DETAILS
🔹 Intrabar Data TF
Given a formation of three candles causing an FVG, the volume traded within that FVG area is obtained by looking at the lower timeframe intrabar candles located within the intermediary candle of the formation. The volume of the intrabar candles located within the FVG areas is added up to obtain the associated volume of the FVG.
Using a lower "Intrabar Data TF" allows obtaining more precise volume results, at the cost of computation time and data availability (if there is a high difference between the "Intrabar Data TF" and the chart TF then less FVG can have their associated volume calculated due to Tradingview limitations).
🔹 Display
Users have access to multiple graphical settings affecting how the indicator is displayed.
The "Graph Resolution" setting determines the length of the X axis, with higher values returning more precise results on the location of FVGs over the X axis. Users can also control the number of labels displayed on the X-axis using the numerical input to the right of "Show X-Axis Labels".
Additionally, users can color FVG areas using a gradient relative to the size of the area, or the volume associated with the FVG.
🔶 SETTINGS
Display Amount: Amount of most recent FVGs to display.
Highest Volume Averages: Amount of FVG averages levels with the highest volume to display and extend.
Consider Mitigation: Only display unmitigated FVGs.
Filter FVGs Outside Visible Range: Only display FVGs areas that are located within the user chart visible range.
Intrabar Data TF: Timeframe used to obtain intrabar data. Should be lower than the user chart timeframe.
Entropy Indicator [CHE]Entropy in Technical Analysis Using TradingView
Slide 1: Title
Entropy in Technical Analysis Using TradingView
Introduction to the concept of entropy
Application in technical analysis
Understanding the use of entropy as a market indicator
Slide 2: What is Entropy?
Definition and Origins:
Entropy originates from thermodynamics and information theory.
In thermodynamics, entropy describes the degree of disorder or randomness in a system.
In information theory, entropy quantifies the uncertainty or unpredictability of information content.
Mathematical Definition:
Entropy measures the unpredictability of a system.
The basic idea: Higher entropy means more randomness; lower entropy indicates more predictability.
Formula: Entropy is calculated using the probabilities of different outcomes, based on how frequently certain price levels are reached.
Slide 3: Entropy in Financial Markets
Why Entropy Matters:
Market Uncertainty: Entropy can measure the level of uncertainty or randomness in financial markets.
Volatility Indicator: High entropy may indicate a volatile, unpredictable market, while low entropy suggests a stable, predictable market.
Applications in Trading:
Trend Analysis: Identifying periods of high entropy can help detect potential trend reversals or periods of market consolidation.
Risk Management: Using entropy to adjust trading strategies based on the perceived level of market uncertainty.
Slide 4: How Entropy is Calculated in Trading
Step-by-Step Process:
Data Collection:
The first step is to gather the relevant price data over a specific period, such as 200 closing prices. This data forms the basis of the entropy calculation, representing the market's recent behavior.
Defining Bins:
The price range within the collected data is divided into a fixed number of bins or intervals. These bins represent different price levels. For instance, if you choose 5 bins, the price range will be split into 5 equal segments.
Assigning Data to Bins:
The next step is to assign each price within the data to one of these bins. This step helps in understanding how frequently the price falls within specific ranges, indicating the distribution of prices over the period.
Calculating Probabilities:
After assigning the data to bins, calculate the probability for each bin by dividing the number of data points in each bin by the total number of data points. These probabilities reflect how often prices fall into each range.
Computing Entropy:
Entropy is then calculated based on the distribution of these probabilities. The formula involves summing the products of each probability and the logarithm of that probability. This calculation tells us how evenly the prices are distributed across the bins.
Interpretation for Traders:
High entropy indicates that the prices are spread evenly across the bins, suggesting a highly random and uncertain market. Low entropy, on the other hand, shows that prices are concentrated in fewer bins, indicating more predictable and stable market conditions.
Slide 5: Implementing and Using Entropy in TradingView
How It Works in TradingView:
Data Period: Typically, entropy is calculated over a specific number of bars (e.g., 200), representing recent market activity. The longer the period, the broader the market behavior considered.
Bin Division: The price range during this period is divided into a set number of bins. These bins help to categorize price levels and assess how spread out the market’s activity is.
Entropy Calculation: The indicator evaluates the spread of prices across these bins to determine the level of market disorder. This is visualized on the chart as an entropy line, helping traders to see fluctuations in market uncertainty.
Practical Application:
As a trader, you can use the entropy indicator to gauge when the market is in a state of high uncertainty (high entropy) or low uncertainty (low entropy). This insight can inform decisions on when to take riskier trades or when to stay conservative.
Slide 6: Interpreting the Entropy Indicator
High Entropy:
Characteristics:
Indicates a high level of market disorder, where price movements are more random and less predictable.
Suggests volatile or unpredictable market conditions.
Implications for Traders:
During periods of high entropy, traders might need to exercise greater caution, reduce position sizes, or employ more defensive trading strategies.
High entropy could signal potential trend reversals or significant market movements, making it a critical period to watch closely.
Low Entropy:
Characteristics:
Suggests that the market is more predictable, with prices showing less variation and more consistent trends.
Typically associated with trending markets where price movement is more orderly.
Implications for Traders:
In a low entropy environment, traders might favor trend-following strategies, as the market shows clearer directional movement.
Low entropy can also suggest more reliable trading opportunities, where the risk of sudden, unpredictable price swings is reduced.
Slide 7: Use Cases and Strategy Integration
Practical Use Cases:
Trend Reversals: Use entropy to identify potential points where a market may shift from trending to consolidating, or vice versa. A sudden increase in entropy might indicate the end of a stable trend and the start of a more volatile period.
Volatility Detection: Detect periods of increased market volatility by observing spikes in entropy. These periods can be critical for adjusting your trading strategy, either by scaling back or by taking advantage of the increased movement.
Strategy Integration:
Risk Management: Incorporate entropy into your risk management strategy by adjusting position sizes, leverage, or stop-loss levels based on the current entropy reading. In high entropy conditions, it might be wise to take smaller, more conservative positions.
Combining Indicators: Entropy can be effectively combined with other indicators, such as moving averages or RSI, to provide a more comprehensive view of market conditions. For example, using entropy alongside a trend indicator can help confirm whether a trend is strong and likely to continue, or if it's weakening and at risk of reversal.
Slide 8: Advantages and Limitations of Entropy
Advantages:
Unique Perspective: Entropy offers a unique way to measure market uncertainty that complements traditional volatility measures. It provides traders with insights into the randomness and predictability of price movements, which can be crucial for strategic decision-making.
Dynamic Analysis: Entropy adapts to changes in market conditions, offering real-time insights into the level of market disorder. This makes it a valuable tool for traders who need to stay responsive to the market's evolving dynamics.
Limitations:
Complex Interpretation: Unlike more straightforward indicators, entropy requires a deeper understanding to interpret correctly. Traders need to be familiar with how entropy levels relate to market behavior and what actions to take in response.
Sensitivity to Parameters: The results can vary significantly depending on the number of bins and the data period chosen, requiring careful parameter selection. Traders may need to experiment with different settings to find the most informative configuration for their specific market or trading style.
Slide 9: Conclusion
Key Takeaways:
Entropy as a Tool: Provides a unique perspective on market dynamics by measuring unpredictability. This can help traders better understand the nature of market conditions and tailor their strategies accordingly.
Practical Application: Can enhance trading strategies, particularly in volatile markets, by helping to identify periods of high uncertainty and adjusting risk management practices.
Further Exploration: Experimenting with different bin sizes and periods can help fine-tune the entropy indicator for specific markets and trading strategies. Traders are encouraged to combine entropy with other indicators to build a more robust trading framework.
Final Thoughts:
Entropy is a powerful concept that, when applied correctly, can offer valuable insights into market behavior. It should be used in conjunction with other tools and indicators to make informed trading decisions, particularly in markets where unpredictability plays a significant role.
This presentation provides a comprehensive overview of entropy, its significance in financial markets, and how it can be practically applied as an indicator in TradingView. The focus is on how traders can use entropy to enhance their trading strategies and improve their understanding of market conditions.
Best regards
Chervolino
ICT Watermark | FluxxDescription:
The watermark indicator is designed to enhance the visual presentation of your trading charts by adding customizable watermarks. This tool allows you to overlay essential information, such as ticker symbols, timeframes, dates, and custom text, directly onto your charts. While providing larger text options then all other watermarks currently available.
Key Features:
Customizable Watermarks: Users can enable up to two watermarks with adjustable text content, color, size, and position.
Dynamic Information Display: Option to display real-time symbol and timeframe details, as well as the current date.
Flexible Placement: Watermarks can be positioned at the top, middle, or bottom of the chart, and aligned to the left, center, or right.
Multiple Size Options: Includes a variety of text sizes, making the text larger than any other watermark out there!
Use Cases:
Branding: Add your name or brand to your charts for a personalized touch.
Clarity: Overlay important chart details without obstructing the main content, helping in presentations or shared analysis.
This indicator is original and valuable for traders who seek to enhance the clarity and professionalism of their charts. It is particularly useful for those who create educational content or wish to maintain consistent chart branding.