Prior HTF Range Levels [promuckaj]Prior HTF Range Levels - Indicator developed with idea to mark you prior HTF range levels, including high, low, EQ, 25% and 75% of the range.
There is option to choose desired HTF, by default it is 1H.
Every time when price breach high or low of the prior range there is option to mark the respective bar for you.
It will mark only the first break of the range. There is also option to activate separately alerts for breach of the high or low of the range.
There is option to set % time of HTF range, how many % of time could pass before the breach. For example, 30% of HTF range(1H) means that if you are on 1m chart there must be breach in the first 20 candles on 1m chart because 1H HTF range contain 60x 1m candles, while first 20 is 30% of HTF candle. This could be really useful due to some statistical facts that a lot of traders is using first 30% of a new formed range to break high or low.
There is also countdown that will allow you at real time to see how much bars on your LTF is left until end of a forming new HTF range. There is option to set two colors for this label (red/green by default) which will allow you quickly to see where you are at the moment.
In example below green color means that we are still < 30% of a new forming range, since we set 30% as our threshold, while number is showing us how much bars need to be printed for a new range.
After some time color will change to red since we are now > 30% of a new forming range, and red could means that we are not interesting anymore in prior range.
For all lines, high/low, EQ, 25% and 75% there is option to customize it separately, which means you can set different color, width of line, style of line and size of labels.
Everyone enjoy !
Cerca negli script per "range"
BTIC Range MidpointsThis code analyzes and displays price ranges from 15:15-15:44 ET, the Basis Trade at Index Close session.
It draws horizontal lines showing:
The high of each session
The low of each session
The midpoint (50%) of each session
Connections between different session ranges (50% points between highs and lows)
Key features include:
Works only on 15-minute timeframes or lower
Stores up to 20 days of historical sessions (configurable)
Filters out ranges too far from current price
Color-codes different session ranges
Provides customizable line styles and colors
Labels each range with identifiers
The indicator essentially helps traders identify important price levels from BTIC sessions, which could serve as potential support/resistance areas for future price action.
ICT Balance Price Range [UAlgo]The "ICT Balance Price Range " indicator identifies and visualizes potential balance price ranges (BPRs) on a price chart. These ranges are indicative of periods where the market exhibits balance between bullish and bearish forces, often preceding significant price movements.
🔶 What is Balanced Price Range (BPR) ?
Balanced Price Range is a concept based on Fair Value Gap. Balanced price range (BPR) is the area on price chart where two opposite fair value gaps overlap.
When price approaches the Balanced Price Range (BPR), we assume that the price will react quickly and strongly here. This is because its the combination of two fair value gaps and being a good point of interest for smart money traders.
🔶 Key Features:
Bars to Consider: Determines the number of bars to evaluate for BPR conditions.
Threshold for BPR: Sets the minimum range required for a valid BPR to be identified.
Remove Old BPR: Option to automatically remove invalidated BPRs from the chart.
Bearish/Bullish Box Color: Customizable colors for visual representation of bearish and bullish BPRs.
🔶 Disclaimer
This indicator is provided for educational and informational purposes only.
It should not be considered as financial advice or a recommendation to buy or sell any financial instrument.
The use of this indicator involves inherent risks, and users should employ their own judgment and conduct their own research before making any trading decisions. Past performance is not indicative of future results.
🔷 Related Scripts
Fair Value Gaps (FVG)
Average Range Levels [Pro+]Description:
The Average Range Levels builds on the concepts of ADR projections showcased in its lite version.
Average Daily Range (ADR) is a common metric used to measure volatility in an asset. It calculates the average difference between the highest and lowest price over a time interval – normally five days.
The Inner Circle Trader teaches the importance of this metric from an algorithmic point of view; in particular the 1/3ADR price level is deemed to be a threshold used to determine the area at which a Judas Swing – false move to trick market participants, protraction, manipulation – might exhaust.
Another key difference in the ICT-use of this metric compared to the classic approach is that the average range is calculated from New York midnight Time, rather than the daily candle's open.
This exact concept was upscaled to higher Timeframe fractals obtaining the Average Weekly Range (AWR) and the Average Monthly Range (AMR). The latter two metrics are anchored at the first Monday’s midnight (New York Time) of the respective interval – however they also have the option to be anchored at the True Week Open (Tuesday’s Daily Open) and True Month Open (Second Week Open).
It is crucial to remember that the elements of Time are key when it comes to interpreting how price action will, or won't, react to these levels: what Time of the day is it? what day of the week? what week of the month?
If one thinks about the Power of Three of a candle (Accumulation, Manipulation Distribution), it is highly unlikely that a Manipulation event will happen later in the candle’s development – seeing the 1/3ADR hold in London session or New York open, seeing the 1/3AWR hold on Tuesday or Wednesday, or seeing price race to the 1/3AMR early on in the month gives undeniable edge to an Analyst.
Apart from the 1/3 level seen from a Judas perspective, the opposing 1/3 level, and the full AR projections, are excellent algorithmic levels at which we will see orderflow or reactions worth studying. These can be take profit targets, reversal opportunities, pyramid entries, …
Last but not least, the tool is equipped with a Data Table. You have a clear narrative but you are unsure of when price will expand? Track the previous 5 ARs and the current Range for Daily, Weekly, and Monthly – the smaller the AR the higher the chance for an expansion, the larger the AR the higher the chance for a consolidation.
Tool Features:
Auto Color the drawings based on your chart’s background or choose your own
Decide whether to consider daily candles, or New York (00:00 to 00:00 NY Time) for the basis of the calculation
Show the last 10 Historical Levels
– See the AR Range, the AR price levels and 1/3AR price levels by hovering over the text labels
Plot the AR levels from their Time Anchor, or as offset markers on the side for a cleaner look
Show/Hide all elements individually
In the Idea below, you can see how INDEX:BTCUSD hit the 1/3AMR level at the end of the second week of the month. The subsequent rejection from this level suggests we might have witnessed a Judas Swing, hence we flip to bullish bias.
In the more recent AWR levels, we can see how price did not touch any level until friday – this is a consolidation week with low probability setups. This was expected, if one looks at the precious two week's ranges and respective average ranges in the Data Table: both breached the AR value, due to to the great expansion higher.
Lastly for the ADR levels we can see how the Judas higher got beautifully stopped at the 1/3 level, and the full ADR level on the opposite side catches price while it falls.
To Get Access, and Level Up see the Author's Instructions below!
This indicator is available only on the TradingView platform.
⚠️ Intellectual Property Rights ⚠️
While this tool's base concepts are public, its interpretation, code, and presentation are protected intellectual property. Unauthorized copying or distribution is prohibited.
⚠️ Terms and Conditions ⚠️
This financial tool is for educational purposes only and not financial advice. Users assume responsibility for decisions made based on the tool's information. Past performance doesn't guarantee future results. By using this tool, users agree to these terms.
Zazzamira 50-25-25 Trend System Alerts OnlyPublishing my trading system script. It consist of several conditions to happen in order to open a trade. Work best on ES/MES 5 minute timeframe.
I like to use it with this settings:
- UTC -6 (don't tick Exchange Timezone)
and rest as default
To enter a trade, the following conditions must be met: Entry 1: the opening range (8:30AM - 9:15AM UTC-6) must be defined and the price must close above or below the opening range on the 5-minute timeframe. This entry condition defines the trade direction (above = long / below = short). Once the opening range is defined, the Trend-Based Fib Extension is applied from the range high to the range low (and vice versa). Fib levels are required for Exit conditions. Entry 2: the 8 - 27 - 67 - 97 EMAs must be defined. If the EMAs value order is 8 > 27 > 67 > 97, long-only trades are allowed. If the EMAs value order is 8 < 27 < 67 < 97, short-only trades are allowed. This entry condition filters fake breakouts of Entry 1. Entry 3: no trades are allowed after 12:59 UTC-6 (2PM EST). Entry 4: if Entry 1, Entry 2, and Entry 3 conditions are valid and the price hasn't reached the 23.6% Fib line, an entry order can be set at the range high/long with 4 contracts. To exit a trade, the following conditions must be met: Exit 1 (Stop loss): set a trailing stop based on 2.1x ATR (14) from entry. Exit 2: take 50% profits at the 23.6% Fib and leave trailing stop untouched. Exit 3: if Exit 2 triggers, take 50% (25% of total entry) off at 61.8% Fib, leaving Exit 2 trailing stop values valid. Exit 4: exit the full position at the FIB 100% value. Exit 5: all trades must be closed at 3pm UTC-6 (4PM EST). So basically Take Profit are 50%-25%-25% of position.
Code has been written by © Hiubris_Indicators who has been an amazing coder and gave me the possibility to make this script public so a really big shoutout to him.
This indicator only works for alerts, please check version without alerts to backtest or tweaks. This indicator is meant to be used to automate the system via webhooks
ORBox | by Octopu$📈 ORBox | by Octopu$
ORBox is a Box for the Opening Range Breakout
The Box is added automatically according to the User preferences through GUI
This Indicator includes a Dropdown selection for which Range for the Breakout you want to use
ORBox has built-in Alerts for when the Breakout happens according to your preferences
Works in any Timeframe with any Ticker
(Using SPY 5m just as an example:)
www.tradingview.com
SPY
Features:
• Opening Breakout Range (ORB)
• Dropdown menu selection to choose which TF to watch
• Built-in Alerts for Momentum Awareness
Options:
• Customization for Box Colors and Sizes
• Display ORB for Current Day or Previous
Notes:
v1.0
ORBox Indicator release
Changes and updates can come in the future for additional functionalities or per requests.
Did you like it? Shoot me a message! I'd appreciate if you dropped by to say thanks.
- Octopu$
🐙
Rescaled RangeRescaled Range is an implementation of the fractal rescaled ranges developed by Harold Edwin Hurst and Benoit Mandlebrot.
Settings include:
“Window Size” - the number of time periods in a window over which price changes are analyzed. This will generally correspond to your trading horizon and defaults to 15.
“Number of Windows” - the number of “Window Size” intervals to average the rescaled range value over. By looking at a number of such periods, the study captures potential volatility that may have occurred in the recent past. This should be set long enough to capture the current trend (defaults to 63), but not so long to include volatility regimes no longer in play.
Each window in the average is offset by 1 time period from the the others - like a moving average.
This study plots two lines - “Rescaled Range High” which indicates overbought conditions when the price moves above it and “Rescaled Range Low” which indicates oversold conditions when the price moves below it.
This study builds upon the bridge range work of Joe Catanzaro (joecat808) and Caleb Sandfort (calebsandfort). Bridge ranges are used to position the rescaled range with respect to the closing price.
Note: Your time series must have (Window Size + Number of Windows) or more periods of data to complete this study. For example, using the defaults, your time series should have (15+63) = 78 periods or more of data.
Expected Range and SkewThis is an open source and updated version of my previous "Confidence Interval" script. This script provides you with the expected range over a given time period in the future and the skew of that range. For example, if you wanted to know the expected 1 standard deviation range of MSFT over the next 20 days, this will tell you that. Additionally, this script will also tell you the skew of the expected range.
How to use this script:
1) Enter the length, this will determine the number of data points used in the calculation of the expected range.
2) Enter the amount of time you want projected forward in minutes, hours, and days.
3) Input standard deviation of the expected range.
4) Pick the type of data you want shown from the dropdown menu. Your choices are either the expected range or the skew of the expected range.
5) Enter the x and y coordinates of the label (optional). This is useful so it doesn't impede your view of the plot.
Here are a few notes about this script:
First, the expected range line gives you the width of said range (upper bound - lower bound), and the label will tell you specifically what the upper and lower bounds of the expected range are.
Second, this script will work on any of the default timeframes, but you need to be careful with how far out you try to project the expected range depending on the timeframe you're using. For example, if you're using the 1min timeframe, it probably won't do you any good trying to project the expected range over the next 20 days; or if you're using the daily timeframe it doesn't make sense to try to project the expected range for the next 5 hours. You can tell if the time horizon you're trying to project doesn't work well with the chart timeframe you're using if the current price is outside of either the upper or lower bounds provided in the label. If the current price is within the upper and lower bounds provided in the label, then the time horizon that you're projecting over is reasonable for the chart timeframe you're using.
Third, this script does not countdown automatically, so the time provided in the label will stay the same. For example, in the picture above, the expected range of Dow Futures over the next 23 days from January 12th, 2021 is calculated. But when tomorrow comes it won't count down to 22 days, instead it will show the range over the next 23 days from January 13th, 2021. So if you want the time horizon to change as time goes on you will have to update this yourself manually.
Lastly, if you try to set an alert on this script, you will get a warning about it possibly repainting. This is because of the label, not the plot itself. The label constantly updates itself, which triggers the warning. I tested setting alerts on this script both with and without the inclusion of the label, and without the label the repainting warning did not occur. So remember, if you set an alert on this script you will get a warning about it possibly repainting, but this is because of the label constantly updating, not the plot itself.
Open Range Candle [TradeWithRon]This Open Range Break indicator is a tool designed to help traders identify and visualize key price levels using the Opening Range Breakout (ORB) strategy. This indicator dynamically plots critical levels such as the high, low, and middle of a predefined range, along with Fibonacci retracement levels for further analysis. It also features several customization options to fit various trading styles.
Key Features:
Session Setup: Allows the user to set the time offset in GMT - or + to adjust the ORB session to their local time zone.
The default ORB session is set at 9:45 AM but can be adjusted based on user preferences.
Warning: Only supports 5-minute and 15-minute timeframes.
Visual Customization:
Line Styles: Users can choose from Solid, Dotted, or Dashed lines to represent key price levels.
Color Adjustments: Customizable colors for the high, middle, and low levels of the range, as well as Fibonacci levels and vertical lines.
Labeling Options: The labels can be customized in terms of size and color, helping to keep the chart clean and clear.
Fibonacci Retracement Levels: Fibonacci retracement levels are automatically drawn between the high and low of the range. Users can toggle these on or off and customize the offset to suit different trading instruments.
Time-Based Visuals: A vertical line is drawn at the start of the ORB session, providing a clear visual marker of where the breakout starts. This is useful for pinpointing key trade setups.
The indicator supports both 5-minute and 15-minute timeframes.
EMA Integration: The user can enable an Exponential Moving Average (EMA) on any chosen timeframe with adjustable parameters such as the length and color, providing additional trend context.
Dynamic Labeling: The indicator labels the high, middle, and low points of the ORB with custom text. These labels are updated in real-time as new data becomes available.
Limit on Lines and Labels: The indicator allows for a limit on the number of lines and labels drawn to maintain a clean chart, preventing unnecessary clutter as more ORB levels are plotted.
Daily Bias Information: The indicator assesses the daily trend bias (bullish or bearish) based on the relationship between the open and close prices for the last three daily candles, providing context for the current trading session.
Countdown Timer: The remaining time until the end of the current session is displayed in a countdown format, which helps traders to time their entries and exits more precisely.
How To Use:,
- Set the Timeframe to 15 minutes.
- Adjust the Time Zone Offset if needed, based on your local time zone.
- Enable the Show ORB feature for the first 15-minute candle to be drawn as the opening range. - The indicator will automatically mark the high, middle, and low points of the range.
Identify Breakout Points:
Bullish Breakout: If the price breaks above the high of the 15-minute opening range, this indicates a potential bullish breakout. The indicator will plot a vertical line marking the breakout point for further confirmation.
Bearish Breakout: If the price breaks below the low of the 15-minute opening range, this signals a potential bearish breakout. Again, the indicator will plot the breakout point with a vertical line for easy identification.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Average Daily Range ProjectionsCreates a trailing high and low projection based on the Average Daily Range.
Track the Session High and Low to determine the Daily Range.
Average the Daily Range by a fixed Period to create an Average Daily Range .
Track the Prior Daily Range .
Track the Current Daily Range .
Track the % of Range completion relative to the CDR & ADR(P).
From the Session Low, project an Average Daily Range High by adding the ADR.
From the Session High, project an Average Daily Range Low by subtracting the ADR.
When %R reaches 100% or greater, the ADR HI & LO will lock, showing the range break out or break down. As the Session High and Low create the Daily Range, observe the reaction of price as it reaches the limit of the expected daily range.
On strongly trending days, CDR is likely greater than PDR and ADR(P). Price can break away.
On ranging days, %R may fail to reach 100% and CDR may be lesser than PDR and ADR(P). Price can bounce around within the bounds of ADR HI & LO.
Morning RangeOverview
The Morning Range Indicator highlights the high and low of the market session from 6 AM to 10AM, providing key levels for potential breakout trades. The box dynamically updates in real-time, extending until 4 PM, and adjusts color based on price action.
This tool is ideal for traders looking to identify breakout opportunities and visualize key intraday price ranges.
How It Works
Session High & Low (6 AM - 10 AM)
The indicator tracks the highest high and lowest low within this time window.
Once 10 AM passes, the high and low are locked in and will not change.
Box Extends Until 4 PM
The session box remains visible throughout the trading day.
It provides a visual reference for potential breakout zones.
Dynamic Box Coloring
Gray (Neutral): Neither high nor low is broken.
Green: Only the high is broken before 4 PM.
Red: Only the low is broken before 4 PM.
Yellow: Both high and low are broken before 4 PM.
Live Updating Box
The box appears as soon as the session begins at 6 AM.
It dynamically updates the high and low until 10 AM.
Alerts for Breakouts
This indicator includes built-in alert conditions, so you can set up TradingView alerts without modifying the script.
Morning Range High Broken → Triggers when price breaks above the morning high.
Morning Range Low Broken → Triggers when price breaks below the morning low.
To set alerts:
Click the Alerts (⏰) icon in TradingView.
Select Condition → "Morning Range High Broken" or "Morning Range Low Broken".
Choose your preferred notification method (popup, email, webhook, etc.).
Click Create to activate the alert.
Who This Is For
✔ Intraday & Scalp Traders – Identify key breakout levels for short-term trades.
✔ Futures & Forex Traders – Works great for markets like NQ, ES, Gold, and FX pairs.
✔ Breakout & Reversal Traders – Use the high/low boundaries as support & resistance levels.
Customization
This indicator automatically updates every day and requires no manual input.
You can change alert settings via TradingView’s built-in alert system.
How to Use This Indicator
Watch for breakouts above/below the morning range as potential trade opportunities.
Combine with volume, momentum indicators, or footprint charts for confirmation.
Use the box color to visually assess whether price action is bullish (green), bearish (red), or ranging (gray).
Balance Price Range (BPR) IndicatorOverview
The BPR with Directional Momentum-Filtered Breakouts indicator is designed to identify Balanced Price Ranges (BPR) and d etect high-probability breakouts and breakdowns with directional momentum confirmation . By leveraging historical BPR structures, EMA-based momentum filtering , and a trade cooldown mechanism , this script provides a structured approach to identifying potential trading opportunities while reducing false signals.
This invite-only indicator is ideal for traders who seek precise breakout confirmation, reduced noise, and trend-following logic while maintaining flexibility through adjustable parameters.
How It Works
The script follows a multi-step breakout detection process by integrating multiple key technical components:
1. Balanced Price Range (BPR) Detection:
• A Balanced Candle is identified when the price remains within a specific percentage of its range midpoint.
• These BPR zones represent areas of equilibrium , where a breakout or breakdown is likely to occur.
• The script historically tracks BPR levels across the entire chart to monitor price action around key areas.
2. Momentum-Filtered Breakout & Breakdown Logic:
• Bullish Breakout: Occurs when the price breaks above the historical BPR high with bullish momentum.
• Bearish Breakdown: Occurs when the price breaks below the historical BPR low with bearish momentum.
• Momentum Confirmation: Each breakout requires a strong directional move, measured against the Exponential Moving Average (EMA) .
• Only confirmed breakouts are marked, reducing the likelihood of false signals in choppy markets.
3. Candle-Based Background Visualization:
• Grey Background: Represents a Balanced Price Range (BPR), indicating potential breakout zones.
• Green Background: Indicates a Bullish Breakout when the price successfully breaks and holds above the BPR high.
• Red Background: Indicates a Bearish Breakdown when the price drops below the BPR low.
4. Trade Cooldown Mechanism:
• Prevents consecutive signals from triggering too frequently.
• Default cooldown period: 5 bars (adjustable).
• Ensures that trades are not clustered, improving signal quality.
5. EMA for Trend Direction & Confirmation:
• A 20-period EMA (default, adjustable) is used to confirm trade direction.
• Breakouts above the EMA align with uptrend continuation.
• Breakdowns below the EMA align with downtrend momentum.
Key Features
✔️ Historical BPR Detection – Tracks past BPR levels across the entire chart for structured breakout zones.
✔️ Momentum-Based Breakouts – Ensures breakouts are confirmed by directional price movement before generating signals.
✔️ Candle-Based Background Logic – Subtle candle highlights rather than full background fills, for better chart clarity.
✔️ Trade Cooldown Period – Prevents consecutive buy/sell signals within a defined period, improving signal efficiency.
✔️ Dynamic EMA Confirmation – Ensures trades align with the overall trend, reducing counter-trend trades.
✔️ Customizable Inputs – Adjust breakout thresholds, EMA length, and cooldown periods as per trading style.
✔️ Works Across Multiple Timeframes – Can be applied to intraday, swing, and positional trading strategies.
How to Use
1. Look for Balanced Price Ranges ( BPR )
• These zones highlight equilibrium areas where price is likely to break out.
• Grey-shaded candles indicate potential breakout zones.
2. Monitor for Bullish or Bearish Breakouts
• A green candle background signals a bullish breakout above BPR.
• A red candle background signals a bearish breakdown below BPR.
• The EMA filter helps confirm whether the breakout aligns with the prevailing trend.
3. Follow the Cooldown Logic
• After a breakout signal, wait for the cooldown period before another trade is allowed.
• This helps filter out noisy price action and prevents excessive trading.
4. Use Alongside Other Indicators
• Works well with volume analysis, support/resistance levels, and price action strategies.
• Can be combined with other momentum indicators for further trade confirmation.
Why This Combination?
Unlike generic breakout indicators, this script uniquely combines:
• BPR historical structures for defining potential breakout zones.
• Momentum-based breakout filtering using EMA confirmation.
• Trade cooldown logic to avoid excessive trading signals.
• Subtle candle-based highlights instead of cluttered full-background fills.
This structured approach makes the indicator more robust, adaptive, and reliable in different market conditions.
Why It’s Worth Using?
🔹 Avoid False Breakouts: Built-in momentum confirmation prevents weak or fake breakouts.
🔹 Clean Visualization: No excessive overlays—just precise, meaningful background coloring for breakouts.
🔹 Works in Any Market: Use on stocks, crypto, forex, indices, and commodities across different timeframes.
🔹 User-Friendly & Customizable: Fine-tune parameters to match individual trading styles.
⚠️ Note: This is an Invite-Only script. Access is granted to selected users.
✅ If you find it useful, consider incorporating it into your trend-following & breakout trading strategies.
🚀 Optimize your trading with structured breakout detection! 🚀
Unmitigated 50% of the RangeThis indicator is designed to display unmitigated 50% zones of price ranges within two swing (High and Low) points. The 50% level serves as a probable target for retracements before the price resumes its movement in the direction of the most recent swing. The underlying theory is that Price Action tends to correct unbalanced price zones by returning to 50% of the range.
The indicator identifies highs and lows utilizing the “Left Swing Sensitivity” setting, which detects the high/low points within the specified number of bars. It then ensures that the zone meets a minimum size requirement, configured via the “Minimum Leg Size” setting, to filter out smaller legs/zones that would not provide sufficient profit and loss opportunities for entries at 50% and take profit at the most recent swing point.
To prevent duplication of zones when the price is gradually moving up, an "Auto Adjust Levels" setting is available. Enabled by default, this feature automatically cleans up smaller zones, retaining only the primary zone between the most recent swing point and the outer swing.
Additionally, the indicator automatically removes mitigated zones where the price has returned to the 50% level, thus maintaining clean charts.
There are several visualization settings available, offering comprehensive control over what is displayed on the charts:
Control the color and style of the lines representing the 1, 0, and 50% levels.
Choose whether to display labels and if they should show the price at the rendered levels.
Optionally extend the lines/labels to the right for each level.
Liquitive Buy/Sell Dollar AveragerLiquitive Buy/Sell Dollar Averager Indicator
The "Liquitive Buy/Sell Dollar Averager" is a versatile trading tool designed for intraday and multi-timeframe analysis, combining advanced range-bound calculations, RSI normalization, volume spikes, and candle pattern recognition to identify optimal buy and sell conditions. This indicator is particularly suitable for traders employing strategies that focus on dollar-cost averaging, position scaling, and systematic buy/sell decision-making.
Key Features:
Adaptive RSI-Based Levels:
Dynamically calculates inner bounds (IB) and outer bounds (OB) using RSI and price ranges, helping to identify overbought and oversold conditions relative to the price action.
Normalizes RSI values to the price range for seamless visualization overlaid on the chart.
Volume and Candle Analysis:
Detects significant volume spikes relative to a moving average, signaling increased market activity.
Identifies spiking green/red candles to capture momentum-driven price movements.
Dynamic Support and Resistance:
Calculates and plots support and resistance levels based on recent swing highs and lows.
Median and boundary lines help visualize key price levels for decision-making.
Profitability Check:
Buy and Sell Signals:
Checks profitability thresholds based on percentage gains/losses.
Incorporates logic for "time to buy" and "time to sell" using target profit margins.
Implements average move percentage to define realistic thresholds for buy/sell actions.
Time-Based Trading Restrictions:
Configures trading logic to disallow trades after a specific time (e.g., 3:40 PM for intraday sessions).
Ensures logical entry and exit decisions are only made within active trading hours.
Color-Coded Visualization:
Background colors dynamically shift between green (bullish), red (bearish), and neutral, depending on RSI and price position relative to the inner bounds.
Opacity of the background adjusts based on normalized RSI differences to provide a visual cue of market strength.
Customizable Parameters:
Allows user input for key settings like lookback periods, RSI length, percent ranges, volume thresholds, and transparency levels, enabling flexible configuration tailored to individual strategies.
Actionable Alerts and Signals:
Plots "Open Position", "Add to Position", and "Close Position" markers directly on the chart, making it easy to follow systematic trading rules.
How It Works:
Buy Signals:
Triggered when price conditions, volume spikes, and RSI-based thresholds align with profitability metrics.
Designed for dollar-cost averaging, identifying opportunities to add to long positions or open new positions.
Sell Signals:
Evaluates profitability conditions to identify when to close or scale out of positions.
Incorporates real-time evaluation of market momentum and profitability.
Market Open Range Breakaway v1.2Script Name: Market Open Range Breakaway 1.2
This TradingView script, "Market Open Range Breakaway," highlights the market's opening range for a user-selected day of the week. It calculates the high and low prices during a specified period after the market opens, plots these levels, and tracks the opening price. The script dynamically adjusts for time zones and only displays data during market hours on the chosen day, with optional background shading for the defined range period.
Purpose: Identifies and highlights the market's opening range for a selected day of the week.
Features: Calculates and plots the high, low, and open price during the market's opening range.
Configurable range duration (e.g., 15, 30, or 60 minutes).
Automatically adjusts for different time zones.
Displays levels only during market hours on the target day.
Optional background shading for the opening range.
Inputs: Target day of the week.
Opening range duration.
Use Case: Ideal for traders looking to analyze breakout levels or price movements around the opening range.
Multi-Timeframe RangeThe Multi-Timeframe Range Indicator is designed for traders looking to monitor key price levels across various timeframes (Daily, Weekly, Monthly, Quarterly, and Yearly) directly on their charts. This indicator draws boxes and mid-lines for each timeframe’s high, low, and midpoint, enabling users to visualize price ranges and assess potential areas of support and resistance more effectively.
Features:
Dynamic Range Boxes: Displays the high, low, and midpoint levels for each specified timeframe, with customizable colors for easy differentiation.
Visual Cues for Monday’s Levels: Highlights Monday’s high, low, and midpoint levels each week to support intraday trading setups and weekly trend analysis.
Multi-Timeframe Flexibility: Easily toggle between timeframes to view ranges from daily to yearly, making this indicator suitable for both short-term and long-term traders.
Ideal Use Cases:
Identify key support and resistance zones based on multiple timeframes.
Assess weekly and monthly trends using the Monday range levels.
Gain insights into market structure across various timeframes.
Swing Data - Optimized SK60
v. 1.83
indicator adjust to time frame.
This Pine Script code generates a trading indicator that calculates and displays various data points on a stock, including Average Daily Range (ADR%), Market Cap, Current Volume, Free Cash Flow (FCF) Yield %, Float %, whether moving averages (MA) are inline, and the moving averages of certain indexes like the Russell 2000, Nasdaq 100, and S&P 500. Here’s a breakdown of the script and how to use it.
Key Concepts and Functionality
Indicator Definition: The script begins by defining the indicator with a title (Swing Data - Optimized ADR%...) and short title (Optimized Swing Data), which will appear on the chart. The overlay=true command ensures that the indicator is drawn on the main price chart rather than in a separate pane.
Sector and Ticker:
s = syminfo.tickerid: This stores the ticker ID of the stock being analyzed.
sector = syminfo.sector: This retrieves the sector to which the stock belongs. If the sector information is unavailable, it assigns the value "N/A".
Dynamic Inputs: Several input parameters allow you to customize the indicator:
adrp_len: Defines the length for ADR% calculation.
len: Defines the moving average length for volume.
tbl_size, bg_col, and txt_col: Control the table's appearance, including the size of the text, background color, and text color.
posTable: Allows positioning of the table on the chart. Options include top-left, top-right, bottom-left, and bottom-right.
show_empty_row: Adds an empty row above the displayed values if set to true.
Volume Unit Handling (f_vol_unit): This function converts volume into appropriate units, like thousands (K), millions (M), or billions (B), to make volume easier to read. It’s applied to both the current volume and the average daily volume.
Moving Averages for Indexes (f_ma_indexes): This function calculates the 10-day, 20-day, 50-day, and 200-day simple moving averages (SMAs) for an index (such as Russell 2000 or Nasdaq 100). It also checks whether the MAs are inline, meaning if shorter MAs are above longer MAs, which is usually a bullish sign. It returns the result as "YES" or "NO" and assigns a color (green for yes, red for no).
Volume and Price Data: The script fetches several important data points:
vol_display: Current volume in human-readable units.
avgDaVol: Average daily volume.
adrp: Average Daily Range (ADR%) over a specified length.
fcf_yield_percent: Free Cash Flow Yield percentage.
ADR Calculation: The ADR% is calculated using the formula 100 * (ta.sma(high / low, adrp_len) - 1) and is fetched for the daily timeframe.
FCF Yield Color Logic: The Free Cash Flow yield is classified into three categories:
Green: Undervalued if FCF yield is over 5%.
Yellow: Neutral between 2-5%.
Red: Overvalued if below 2%.
MA's Inline Check for the Stock: The script checks if the stock's 10-day, 20-day, 50-day, and 200-day moving averages are inline (i.e., in a bullish alignment where shorter MAs are higher than longer MAs).
Float % Calculation: The float percentage is calculated as the ratio of float shares outstanding (FSO) to total shares outstanding (TSO). The color is set based on its breakout potential:
Red: Below 20% (manipulation risk).
Green: 20-50% (ideal breakout range).
Yellow: Above 50%.
Price Change %: The script calculates the percentage change in price between the current and previous close.
Volume Color Logic: The color of the "Current Volume" is based on whether it indicates buying or selling pressure:
Green: Volume is higher than average, and the price increased more than ADR%.
Red: Volume is higher than average, and the price decreased more than ADR%.
Yellow: Default color if neither condition is met.
Market Cap: The market cap is calculated by multiplying the total shares outstanding (TSO) by the current close price, and it’s displayed in a human-readable unit (K, M, or B).
Display Table:
A table is created to display all the calculated data in an organized manner. It includes fields for Market Cap, Avg Volume, ADR%, Current Volume, FCF Yield %, Float %, MA's Inline status, and Sector. Additionally, it shows the inline status for the Russell 2000, Nasdaq 100, and S&P 500.
How to Use:
Customization: Users can customize the inputs, including the length of ADR% and volume moving averages, and adjust the table size, text color, and position.
Visualization: The indicator provides a comprehensive table on the chart showing key data points for technical analysis, including whether moving averages are inline for both the stock and major indexes.
This indicator is particularly useful for swing traders or technical analysts who want a clear overview of a stock’s volume, volatility (via ADR%), and the alignment of moving averages, combined with fundamental metrics like market cap and free cash flow yield.
Volatility Filter v2VF v2 is a new iteration of my tool designed for traders who wish to gain a deeper understanding of market dynamics, specifically to distinguish periods of high volatility, which often correspond to strong market trends. By identifying these periods, traders can make more informed decisions, potentially leading to better trading outcomes.
Understanding Market Volatility:
At the heart of this script lies the concept of market volatility, a statistical measure reflecting the degree of variation in trading prices. Volatility is pivotal for traders; it provides insights into the market's emotional state, indicating periods of uncertainty or confidence. High volatility often correlates with strong trends, making it a critical indicator for trend-followers. By identifying when volatility crosses a certain threshold, traders can discern whether the market is likely to be in a trending phase or a more subdued, range-bound state.
How the Script Works:
The core functionality of the script revolves around a signal line that oscillates around a zero threshold. When the signal line is above zero, it indicates increased market volatility, suggesting the presence of a trend. The farther the oscillator deviates from zero, the stronger the implied trend. This mechanism enables traders to visually gauge market conditions and adjust their strategies accordingly.
Controlling the Indicator:
To cater to diverse trading styles and preferences, the script is equipped with several customizable settings:
Filter Threshold: This 'zero line' acts as the baseline for distinguishing between different volatility regimes. Crossing this threshold is a primary signal for changes in market volatility.
Moving Average Type: With over 30 types of moving averages to choose from, traders can select the one that best fits their analysis style. Each type offers a different perspective on price data, allowing for a tailored approach to trend identification.
Colorize Indicator: This feature enhances the visual representation of the indicator, making it easier to interpret. When enabled, the oscillator's color intensity varies with its proximity to the extremes, providing a quick visual cue about trend strength.
Advanced Settings – Length and Multiplier:
The script introduces an innovative approach to time frame analysis through its length and multiplier settings:
Length: This parameter sets the base period for all metrics within the script, similar to traditional indicators.
Multiplier: This unique feature differentiates the script by incorporating three distinct timeframes into the analysis: a lower timeframe, the main (current) timeframe, and a higher timeframe. The multiplier adjusts these timeframes relative to the main one. For instance, with a daily main timeframe and a multiplier of 2, the lower timeframe would be 12 hours, and the higher timeframe would be 2 days. This tri-timeframe approach aims to provide a more comprehensive volatility assessment.
Volatility Filter Indicators Section:
The script utilizes nine different, undisclosed metrics within its volatility filter. Traders have the flexibility to enable or disable these metrics based on their preferences, allowing for a customizable trading experience. Additionally, the script offers alert functionality for when the indicator crosses the threshold, either upwards or downwards, facilitating timely decision-making.
P.S
With better understanding of markets over time, I designed a new iteration of my volatility filter indicator. The second version provides faster, more precise way to analyze markets, but I also wanted to keep my first version untouched in case if some people find it better for their purposes. As I mentioned above, this version is calculated in a very different way from a previous one, so if you never tried it you can do it here
Fibonacci internal Break of Range PinescriptlabsThe uniqueness of this script lies in the synergy and dynamic interaction resulting from the advanced combination of key elements of technical analysis in the way it strategically merges Fibonacci Levels with the Linear Regression Channel and the internal price structure, creating a highly synergistic market analysis system.
The Linear Regression Channel, drawn from price regression and its standard deviation over a defined number of bars, offers a graphical representation of the prevailing market trend. The combination of this channel with Fibonacci Levels is deliberate and critical: the levels serve as additional filters to validate range breakouts within the channel, and vice versa, channel breakouts enhance the importance of Fibonacci levels by adjusting to the market context, represented by the specific length and displacement within the chart.
Fibonacci levels are updated with each new bar, and the detection of Break of Range (BoR) is integrated with the Fibonacci level plot to highlight significant breakout points. A unique aspect of this script is the way breakouts are identified not only by the price crossing certain Fibonacci levels but also by volume context and candlestick patterns, such as Engulfing patterns, which signal potential changes in market trends.
This interaction between the Linear Regression Channel and Fibonacci Levels, for example, a bullish price breakout above the upper channel boundary simultaneously crossing a significant Fibonacci level, suggests not only a possible continuation of the uptrend but also a strong support level established. Similarly, a bearish price breakout below the lower channel boundary, coinciding with a Fibonacci level, may signal a trend reversal confirmation and a new resistance level.
This script delves further into signal convergence, where the interaction between Break of Range and Fibonacci levels marks bullish and bearish breakouts, respectively, and when these signals coincide with breakouts of any Fibonacci level, they provide cross-confirmation that increases confidence in the generated signal. "BoR+Fib🔼" and "BoR+Fib🔽."
Additionally, the script introduces an innovative implementation of the Linear Regression Channel, which uses a customizable period and standard deviation to plot upper and lower trendlines. This approach allows traders to anticipate potential re-entry points after a breakout, as prices often retest the channel edges, providing low and high entry confirmation opportunities.
A differentiating technical aspect is the conditional logic implemented for bullish and bearish trend signal confirmation. For example, the script calibrates signals based on the intersection of price action with critical Fibonacci levels and confirmed candlestick patterns, enhancing signal reliability compared to using these indicators in isolation.
Key Features:
1. Dynamic calculation of Fibonacci levels.
2. Detection of internal price range breakouts (Break of Range).
3. Linear Regression Channel.
4. Detection of candlestick patterns (Engulfing Patterns).
Dynamic Fibonacci Level Calculation and Internal Range Breakout Detection (Break of Range):
The fusion of Fibonacci levels with the detection of internal range breakouts is crucial because it allows for precise identification of market turning points. Fibonacci levels act as initial filters, indicating potential support and resistance zones. When the price crosses a key Fibonacci level, especially in conjunction with an internal range breakout, the resulting signal is stronger and more reliable. This confluence significantly increases the probability of sustainable price movement.
Broken:
Function: The code identifies breakouts when the price crosses a key Fibonacci level (0%, 100%). A breakout is significant if the price crosses and holds beyond these levels.
Interaction: Breakouts validate Fibonacci levels. For example, a breakout above the 0% Fibonacci level can confirm an uptrend.
Structure Change:
Function: In the code, Structure Change can be interpreted through the detection of pivot patterns and price structure change signals, which we identify as Break of Range.
Interaction: This component acts as confirmation for range breakouts and Fibonacci levels. For example, if a range breakout is followed by a change in price structure (such as the formation of a new higher high), it strengthens the validity of the range breakout signal.
"BoR+Fib🔽": Indicates a bearish range breakout that has also crossed a Fibonacci level downward. This can be interpreted as a sell signal or a bearish trend indication.
"BoR+Fib🔼": Represents a bullish range breakout that has also crossed a Fibonacci level upward. It can be interpreted as a buy signal or a bullish trend indication.
Linear Regression Channel:
Function: The Linear Regression Channel is calculated and drawn using a defined number of bars to establish the overall market trend. Calculations involve summing and averaging closing prices and their products with the time index to calculate the regression line and its standard deviation. The script uses this channel to contextualize Fibonacci signals and range breakouts, with breakouts occurring in the direction of the channel's trend.
Interaction: Provides context to Fibonacci signals and range breakouts. For example, if a range breakout occurs in the same direction as indicated by the Linear Regression Channel, this adds credibility to the signal.
Integration Benefit: The Linear Regression Channel provides an overall trend context. When a range breakout signal and a Fibonacci level coincide within the direction indicated by the channel, the signal's validity is strengthened.
Signal Convergence: An ideal scenario occurs when all elements converge. For example, a good entry point could be when the price experiences a range breakout from a significant Fibonacci level, there is a change in price structure in the same direction, and all of this aligns with the trend indicated by the Linear Regression Channel.
Dynamic Volatility Visualization: Adjusts the width of the Linear Regression Channel based on market volatility.
Validation and Entry Confirmation after Linear Regression Channel Breakout:
Breakout Validation: The Linear Regression Channel breakout is validated not only by price crossing but also by an increase in volume, suggesting a significant breakout rather than a temporary fluctuation.
Entry Confirmation ('Low and High Entry Confirmation'):
Confirmation Bars: A specific number of bars (configurable entry) closing outside the channel are required to confirm an entry. This reduces the risk of false signals.
Channel Re-Test: After the breakout, the price often retests the channel's edge. An entry is confirmed if the price bounces from this area, validating the initial breakout.
Auxiliary Indicators: Oscillators or momentum indicators are used to confirm trend strength after the breakout.
Candlestick Pattern Detection (Engulfing Patterns):
Engulfing Pattern Identification: bullishEngulfing is activated in a bullish pattern with a previous bearish trend and a specific bullish candle. bearishEngulfing is activated in a bearish pattern with a previous bullish trend and a specific bearish candle.
Special Trend Signals:
Bullish signals are displayed as blue circles with "⬆️," while bearish signals are displayed as red circles with "⬇️."
Bullish Signals: Indicate that the price has crossed above certain Fibonacci levels, and the current trend is considered bullish, as the most recent closing price is higher than the closing price of a specific bar in the past.
Bearish Signals: Indicate that the price has crossed below certain Fibonacci levels, and the current trend is considered bearish, as the most recent closing price is lower than the closing price of a specific bar in the past.
Integration with 3Commas for Automation:
Signal Automation: The ability to integrate with platforms like 3Commas allows for the automatic execution of
strategies based on the script's signals, where a bot could execute trades based on the chart-generated signals, facilitating more efficient trading, reducing reaction time, and as an automated script, we only need to input our short Bot Id or our Long Bot ID into the previously loaded message alert.
Español:
La singularidad de este script radica en la sinergia y la interacción dinámica que resulta de la combinación avanzada de elementos clave del análisis técnico en la forma en que fusiona estratégicamente los Niveles de Fibonacci con el Canal de Regresión Lineal y la estructura interna del precio creando un sistema de análisis de mercado altamente sinérgico.
El Canal de Regresión Lineal, dibujado a partir de la regresión de precios y su desviación estándar sobre un número definido de barras, ofrece una representación gráfica de la tendencia predominante del mercado. La combinación de este canal con los Niveles de Fibonacci es deliberada y crítica: los niveles sirven como filtros adicionales para validar las rupturas de rango dentro del canal, y viceversa, las rupturas del canal potencian la importancia de los niveles de Fibonacci ajustándose al contexto del mercado, representado por la longitud y desplazamiento específicos dentro del gráfico.
Los niveles de Fibonacci se actualizan con cada nueva barra, La detección de rupturas de rango (Break of Range) se integra con la trama de niveles de Fibonacci para destacar los puntos de ruptura significativos. Un enfoque único de este script es la manera en que las rupturas no solo se identifican por el cruce de precios de ciertos niveles de Fibonacci sino también por el contexto de volumen y patrones de velas, como los patrones Engulfing, que señalan cambios potenciales en la tendencia del mercado.
Esta interacción entre el Canal de Regresión Lineal y los Niveles de Fibonacci Por ejemplo: una ruptura alcista del precio a través del límite superior del canal al mismo tiempo que cruza un nivel de Fibonacci significativo sugiere no solo una posible continuación de la tendencia alcista sino también un fuerte nivel de soporte establecido. Similarmente, una ruptura bajista del precio a través del límite inferior del canal, coincidiendo con un nivel de Fibonacci, puede señalar una confirmación de cambio de tendencia y un nuevo nivel de resistencia.
Este script profundiza aún más en la confluencia de señales, donde la interacción entre Break of Range y los niveles de Fibonacci marcan rupturas alcistas y bajistas respectivamente, y cuando estas señales coinciden con rupturas del de cualquier nivel de Fibonacci, proporcionan una confirmación cruzada que aumenta la confianza en la señal generada. "BoR+Fib🔼" y "BoR+Fib🔽"
Además, el script presenta una innovadora implementación de Canal de Regresión Lineal, que utiliza un periodo personalizable y una desviación estándar para trazar las líneas de tendencia superior e inferior. Este enfoque permite a los traders anticipar posibles puntos de reentrada después de una ruptura, con el precio a menudo retestando los bordes del canal, proporcionando así oportunidades de confirmación de entrada baja y alta.
Un aspecto técnico diferenciador es la lógica condicional implementada para la confirmación de señales de tendencia alcista y bajista. Por ejemplo, el script calibra señales basadas en la intersección de la acción del precio con los niveles críticos de Fibonacci y los patrones de velas confirmados, mejorando la confiabilidad de las señales en comparación con el uso de estos indicadores de forma aislada.
Características Principales:
1. Cálculo dinámico de niveles de Fibonacci.
2. Detección de rupturas internas del rango de precios (Break of Range).
3. Canal de regresión lineal.
4. Detección de patrones de velas (Patrones Engulfing).
Cálculo Dinámico de Niveles de Fibonacci y Detección de Rupturas Internas (Break of Range):
La fusión de los niveles de Fibonacci con la detección de rupturas internas del rango es crucial porque permite identificar con precisión los puntos de inflexión del mercado. Los niveles de Fibonacci funcionan como filtros iniciales, indicando potenciales zonas de soporte y resistencia. Cuando el precio cruza un nivel clave de Fibonacci, especialmente en conjunto con una ruptura interna del rango, la señal resultante es más robusta y fiable. Esta confluencia incrementa significativamente la probabilidad de que el movimiento del precio sea sostenible
Broken:
Función: El código identifica las rupturas cuando el precio cruza un nivel de Fibonacci clave (0%, 100%). Una ruptura es significativa si el precio cruza y se mantiene más allá de estos niveles.
Interacción: Las rupturas validan los niveles de Fibonacci. Por ejemplo, una ruptura por encima del nivel de Fibonacci del 0% puede confirmar una tendencia alcista.
Cambio de Estructura:
Función: En el código, el Cambio de Estructura se puede interpretar a través de la detección de patrones de pivote y señales de cambio en la estructura de precios, que identificamos como Break of Range.
Interacción: Este componente actúa como una confirmación de las rupturas de rango y los niveles de Fibonacci. Por ejemplo, si una ruptura de rango es seguida por un cambio en la estructura de precios (como la formación de un nuevo máximo más alto), esto refuerza la validez de la señal de ruptura de rango.
"BoR+Fib🔽": Indica una ruptura bajista del rango que también ha cruzado un nivel de Fibonacci hacia abajo. Esto puede interpretarse como una señal de venta o una indicación de tendencia bajista.
"BoR+Fib🔼": Representa una ruptura alcista del rango que también ha cruzado un nivel de Fibonacci hacia arriba. Puede interpretarse como una señal de compra o una indicación de tendencia alcista.
Canal de Regresión Lineal:
Función: El Canal de Regresión Lineal se calcula y dibuja utilizando un número definido de barras para establecer la tendencia general del mercado. Los cálculos involucran la suma y el promedio de los precios de cierre y sus productos con el índice de tiempo, para calcular la línea de regresión y su desviación estándar, el script utiliza este canal para contextualizar las señales de Fibonacci y las rupturas de rango, con rupturas que ocurren en la dirección de la tendencia del canal.
Interacción: Proporciona contexto a las señales de Fibonacci y rupturas de rango. Por ejemplo, si una ruptura de rango ocurre en la misma dirección que la tendencia indicada por el Canal de Regresión Lineal, esto añade credibilidad a la señal.
Beneficio de la Integración:El Canal de Regresión Lineal proporciona un contexto de tendencia general. Cuando una señal de ruptura de rango y un nivel de Fibonacci coinciden dentro de la dirección de la tendencia indicada por el canal, se fortalece la validez de la señal.
Convergencia de Señales: Un escenario ideal ocurre cuando todos los elementos convergen. Por ejemplo, un buen punto de entrada podría ser cuando el precio experimenta una ruptura de rango desde un nivel de Fibonacci importante, hay un cambio de estructura en la misma dirección, y todo esto ocurre en línea con la tendencia indicada por el Canal de Regresión Lineal.
Visualización de Volatilidad Dinámica: Ajusta el ancho del canal de regresión lineal en función de la volatilidad del mercado.
Validación y Confirmación de la Entrada después de la Ruptura del Canal de Regresión:
Confirmación de Ruptura: La ruptura del canal de regresión se valida no solo por el cruce del precio, sino también por un aumento en el volumen, lo que sugiere una ruptura significativa en lugar de una fluctuación temporal.
Confirmación de Entrada ('Confirmación de Entrada Baja y Alta'):
Barras de Confirmación: Se requiere un número específico de barras (entrada configurable) que cierren fuera del canal para confirmar una entrada. Esto reduce el riesgo de señales falsas.
Re-Test del Canal: Después de la ruptura, el precio a menudo vuelve a probar el borde del canal. Una entrada se confirma si el precio rebota desde esta área, validando la ruptura inicial.
Indicadores Auxiliares: Se utilizan osciladores o indicadores de impulso para confirmar la fuerza de la tendencia después de la ruptura.
Detección de Patrones de Velas (Patrones Engulfing):
Identificación de Patrones Engulfing: bullishEngulfing se activa en un patrón alcista con una tendencia bajista previa y una vela alcista específica. bearishEngulfing se activa en un patrón bajista con una tendencia alcista previa y una vela bajista específica.
Señales Especiales de Tendencia:
Las señales alcistas se muestran como círculos azules con "⬆️", mientras que las señales bajistas se muestran como círculos rojos "⬇️".
Señales Alcistas: Indican que el precio ha cruzado por encima de ciertos niveles de Fibonacci y la tendencia actual se considera alcista, ya que el precio de cierre más reciente es mayor que el precio de cierre de una barra específica en el pasado.
Señales Bajistas: Indican que el precio ha cruzado por debajo de ciertos niveles de Fibonacci y la tendencia actual se considera bajista, ya que el precio de cierre más reciente es menor que el precio de cierre de una barra específica en el pasado.
Integración con 3Commas para Automatización:
Automatización de Señales: La capacidad de integrar con plataformas como 3Commas permite la ejecución automática de estrategias basadas en las señales del script donde un bot podría ejecutar operaciones basadas en las señales generadas por el gráfico., facilitando un trading más eficiente y reduciendo el tiempo de reacción y como un script automatizado solo necesitamos poner en la alerta del mensaje previamente cargado nuestro short Bot Id o nuestro Long Bot ID.
Advanced Technical Range and Expectancy Estimator [SS]Hello everyone,
This indicator is a from of momentum based probability modelling. It is derived from my own approaches to probability modelling but just simplified a bit.
How it works:
The indicator looks at various technical, including stochastics, RSI, MFI and Z-Score, to determine the likely sentiment. All of these, with the exception of Z-Score, are momentum based indicators and can alert us to likely sentiment. However, instead of us making the subjective determination ourselves as to whether the RSI or MFI or Stochastics are bullish, the indicator will look at previous instances of these occurrences, and tally the bullish and bearish follow throughs that happened. It will also calculate the average target price that was hit, under similar conditions, on the same timeframe.
The Z-Score is your "tie breaker". It is not a momentum based indicator and measures something a little different (the standard deviation and over-extension of the stock). For this reason, it provides an alternative assessment and tends to be a bit more reliable in times of low momentum.
Back-test Results:
The indicator back-tests itself over the previous 100 candles. I have limited it to 100 candles for pragmatic considerations (it has to back-test each technical individually and increasing the BT length will slow and potentially error out the indicator) as well as accuracy considerations.
One thing I have noticed in my years of trying to crack the code and develop probability models for tickers, is historical accuracy doesn't always matter because sentiment is always changing. You need to see what it has done over the most recent 100 to 200 candles.
There are two back-test windows, one for the price targets and the other for the sentiment accuracy. The most effective/most accurate will highlight green, the least effective/least accurate will highlight red:
In the image above, you can see that the most accurate predictor of sentiment is Z-Score, with a 90.32% accuracy rate over the past 100 candles.
The most accurate predictor of price is MFI, with a 60% (for bull targets) and 42% (for bear targets)accuracy rate.
Anchoring Points:
The indicator permits you to anchor by two points. The default setting is anchoring by previous candle. If you plan to use this as an oscillator, to see the current prediction for the current candle you are viewing, then you will need to leave this default setting. It will pull the data from the previous candle and give you the data for the current candle you are on.
If you are assess the likely sentiment for the next day after the day has closed off, you will want to anchor by current candle. This will take the current technicals that the day has closed off with and run the assessment for you.
Customizability
You can customize the technicals by source and length of assessment.
They are all defaulted to the traditional settings of these indicators, but if you want to customize your model to try and improve or enhance accuracy in one way or another, you are free and able to do so!
I do suggest leaving the defaults as they seem to work particular well :-).
Thresholds
Thresholds are the tolerance levels that we permit for our technical search range. If you want them to be exactly identical, then you can set it to 0. If you want it to be extremely similar, you can set it to 0.01. This will hone in on the ranges you are interest in and you can see how it affects your accuracy by reviewing the results in the back-test tables.
Keep Static Colour Option
I want to make a quick note on the "Keep Static Colour" option that is in your settings menu.
The primary table that shows you the probability and price targets change colours based on the accuracy of the assessment. This is so, if you are using a mobile device or smaller screen and can't have the back-test results open at the same time, you can see still which are the most reliable results. However, if you have the back-test tables open and you find these colour changes too distracted, you can toggle on the "Keep Static Colour" and it will resort the colour of the table to a solid white:
Show Technicals
The indicator can show you the current technical values if you are using it in place of an oscillator. Its less pivotal as its making the assessment for you, but just for your reference if you want to see what the current MFI, Z-Score or Stochastics etc. are, you have that option as well.
All Timeframes Permitted
You can view Weekly, Monthly, Hourly, 5 minute, 1 minute, its all supported!
That's the indicator in a nutshell.
Hope you enjoy and leave your questions below.
Safe trades everyone!
ADR % RangesThis indicator is designed to visually represent percentage lines from the open of the day. The % amount is determined by X amount of the last days to create an average...or Average Daily Range (ADR).
1. ADR Percentage Lines: The core function of the script is to apply lines to the chart that represent specific percentage changes from the daily open. It first calculates the average over X amount of days and then displays two lines that are 1/3rd of that average. One line goes above the other line goes below. The other two lines are the full "range" of the average. These lines can act as boundaries or targets to know how an asset has moved recently. *Past performance is not indicative of current or future results.
The calculation for ADR is:
Step 1. Calculate Today's Range = DailyHigh - DailyLow
Step 2. Store this average after the day has completed
Step 3. Sum all day's ranges
Step 4. Divide by total number of days
Step 5. Draw on chart
2. Customizable Inputs: Users have the flexibility to customize the script through various inputs. This includes the option to display lines only for the current trading day (`todayonly`), and to select which lines are displayed. The user can also opt to show a table the displays the total range of previous days and the average range of those previous days.
3. No Secondary Timeframe: The ADR is computed based on whatever timeframe the chart is and does not reference secondary periods. Therefore the script cannot be used on charts greater than daily.
This script is can be used by all traders for any market. The trader might have to adjust the "X" number of days back to compute a historical average. Maybe they only want to know the average over the past week (5 days) or maybe the past month (20 days).
Sentiment Range MA [ChartPrime]The "Sentiment Range MA" provides traders with a dynamic perspective on market activity, emphasizing both stability in chop zones and quick adaptability outside of them.
Key Features:
Chop Zone Stability: In choppy markets, this indicator remains consistent, filtering out the noise to provide a clear view.
Quick Adaptability: Should the price break out of these zones, the indicator recalibrates promptly.
Dynamic Support and Resistance: Adapts based on the latest price action, serving as an evolving reference point.
Emphasis on Recent Levels: The tool factors in the latest notable market levels to stay relevant and timely.
Configurations:
Data Source: Choose your desired metric, though many default to the closing price.
Output Smoothing: Adjust the SR MA's response to market movements.
Trigger Smoothing: Refine boundary definitions based on your market insights.
ATR Period: Set the period for the ATR, influencing the surrounding boundary's width.
Range Multiplier: Control the ATR's effect on the range.
Range Switch: Flip between high-low and open-close values for range determination.
Visuals
Sentiment Range MA Line:
- This is the flowing line that transitions between green and red.
- When it's green, it indicates bullish momentum in the market. This suggests a prevailing upward trend and can be an entry cue for traders who trade with the trend.
- When it turns red, bearish sentiments dominate. It indicates the potential beginning of a downtrend or a continued downtrend. Traders might interpret this as a signal to be cautious, to short the market, or to exit long positions.
The Chop Zone:
- This is the space between the price candles and the Sentiment Range MA line. It represents a region where the price is considered to be moving sideways or without a clear direction. Price movements within the chop zone might not be substantial enough to warrant a trading decision. Only when the price breaks out of this zone do we see the Sentiment Range MA line change color, signaling a potential trading opportunity.
By interpreting these visuals, traders can make more informed decisions based on the prevailing market sentiment and trend. The chart becomes a tool, providing both an overview of the market condition and potential entry or exit points based on the Sentiment Range MA indicator's readings.
Detailed Settings Overview
Understanding the settings of the Sentiment Range MA Indicator can greatly enhance its utility in your trading strategy. Let's dive deeper into each:
Output Smoothing:
Purpose: It refines the SR MA to provide a clearer trend perspective.
Functionality:
- At `0`, it ensures the indicator responds immediately to price deviations from the chop zone.
- At higher values, it transforms the indicator into a volatility-adjusted moving average.
Filtering Modes:
- Single Filtering: Prioritizes speed.
- Double Filtering: Emphasizes stability.
Trigger Smoothing:
Purpose: Used for the range break detection.
Functionality: It dampens the indicator's sensitivity to sudden market volatility, preventing unnecessary triggers.
ATR Length:
Purpose: Governs the retrospective period for the chop zone.
Functionality:
- Higher values offer a more consistent and broad range size, capturing more historical data.
- Lower values allow for a more adaptive and responsive range.
Range Multiplier:
Purpose: Modifies the breadth of the range around the SR MA.
Functionality: Increasing the multiplier will extend the range, giving more leeway before triggering, while decreasing it will narrow the range, making the indicator more responsive to price changes.
Range Style:
Purpose: Decides which candlestick data is factored into the true range calculations.
Options:
- Body: Uses the open and close values.
- Wick: Accounts for the high and low values.
Functionality: Switching between styles lets you prioritize either the overall volatility (Wick) or just the concluded price action for a period (Body).
By fine-tuning these settings, traders can tailor the Sentiment Range MA Indicator to various market conditions and personal trading styles, ensuring optimal decision-making.
Quick Start
Based on the provided chart, here's a brief explanation of the default settings for the Sentiment Range MA Indicator:
Length: Set at ` 20 `.
- This determines the base moving average period. A standard setting, it calculates the average price over the last 20 periods, providing traders with a clear perspective of short-term trends.
ATR Length: Set at ` 200 `.
- This adjusts the lookback period for the Average True Range (ATR), which in turn influences the chop zone calculation. At a setting of 200, it offers a comprehensive view, considering a longer stretch of historical data.
Range Multiplier: Set at ` 6 `.
- This multiplies the ATR value, widening or narrowing the band around the SR MA. A setting of 6 means the range around the SR MA is determined by multiplying the ATR by 6, offering a broader fluctuation zone.
On the chart, the green line represents the bullish sentiment and the red represents the bearish sentiment. Price movements above and below these lines can be used as potential buy or sell signals respectively. Fine-tuning these settings can cater the Sentiment Range MA Indicator to your specific trading strategy and market condition preferences.
Alternative Settings
For traders looking to adapt to faster market conditions or prefer a more agile analysis, here's a brief description of the alternative settings for the Sentiment Range MA Indicator:
Length: Set at ` 3 `.
- This highly responsive setting calculates the average price over the last 3 periods. Ideal for quick market movements, it offers traders insights into very short-term price trends and potentially swift trade opportunities.
ATR Length: Set at ` 50 `.
- This shorter lookback period for the Average True Range (ATR) focuses on more recent market volatility, providing a tighter and more current chop zone calculation. It's suitable for those wanting to respond to recent market shifts.
Range Multiplier: Set at ` 4 `.
- Multiplying the ATR by 4 narrows down the buffer around the SR MA. This creates a tighter sentiment range, possibly resulting in more frequent crossovers and trading signals.
In the provided chart, the green line still denotes bullish momentum while the red symbolizes bearish sentiment. These alternative settings might generate more frequent signals, so traders should ensure their strategy is aligned with this heightened sensitivity.
Wrapping Up
The Sentiment Range MA melds stability and agility, making it a valuable tool in your trading toolkit. As always, before integrating new indicators, take the time to understand its nuances and potential impacts on your strategy.
20/200MAs+LTF+4HTF and HighLowBox+3HTF20/200MAs
Shows 20 and 200 MAs in each TFs(tfChart,1 Lower and 4 Higher).
TFs:
current TF
Lower TF (default: lower1)
Higher TF1 (default: higher1)
Higher TF2 (default: higher1)
Higher TF3 (default: higher1)
Higher TF4 (default: higher1)
MAs:
20MA (default: sma)
1st 200MA (default: sma)
2nd 200MA (default: ema)
VWAP (optional)
HighLowBox+3HTF
Enclose in a square high and low range in each timeframe.
Shows price range and duration of each box.
In current timeframe, shows Fibonacci Scale inside(23.6%, 38.2%, 50.0%, 61.8%, 76.4%)/outside of each box.
Outside(161.8%,261.8,361.8%) would be shown as next target, if break top/bottom of each box.
1st box for current timeframe.
2nd box for higher timeframe.(default: higher1)
3rd box for higher timeframe.(default: higher2)
4th box for higher timeframe.(default: higher3)
static timeframes can also be used.