Bit Rocket - Grid Bot Transactions 1.0DESCRIPTION
A grid bot is an automated trading bot that is designed to execute buy and sell orders based on a pre-defined grid of prices. Grid bots operate within a specified price range, placing trades at set intervals above and below the current market price. The key idea behind a grid bot is to take advantage of price fluctuations and market volatility.
The Grid Bot Transactions Indicator serves as a valuable tool for identifying the most suitable trading pairs and optimizing the grid bot percentage, also known as the grid level configuration. This indicator assists in the selection of pairs that are likely to yield the best results and aids in determining the ideal configuration for grid bot trading.
USAGE
NUMBER OF TRANSACTIONS - will calculate the number of times the price moves up and down by the grid level percentage for a particular trading pair. Each move up and down is counted as a transaction, total transactions are then calculated from the date range set by the user.
RANGE - number represents the swing from the highest price to the lowest price during the date range set by the user, this will assist in determining what grid range could be used when configuring the grid bot.
GRID STEP (%) - This is the distance for each buy and sell set by the user, for example if the grid step % is set at 2% then for each 2% move up or down that occurs will count as one transaction. Try different grid step percentages to see what percentage produces the best results, too high and transactions will lower but profit per sell transaction will be greater, too small results in higher trading fees and lower profit per sell transaction. Using 1.5% - 5% for the grid step will make the most sense.
Armed with this knowledge the user can now compare against other pairs, determine the optimum grid level percentage, which pairs have more transactions, and determine transaction trend.
SETUP
When you first add the indicator to the chart you will see a pop-up reminding you to set the From Date Time for Bit Rocket Grid Bot Transactions 1.0, just click anywhere on the chart to add.
1. Change timeframe to 30m
2. Under Inputs – Grid Settings change the From Date & Time field
3. Under Inputs – Grid Settings change Size of Grid % or leave at default 2.5%
4. If grid and buy and sell symbols are in the way, go to ‘Style’ tab and turn off all the signals and Lines options.
Range
Fractal Consolidations [Pro+]Introduction:
Fractal Consolidations Pro+ pushes the boundaries of Algorithmic Price Delivery Analysis. Tailored for traders seeking precision and efficiency to unlock hidden insights, this tool empowers you to dissect market Consolidations on your terms, live, in all asset classes.
What is a Fractal Consolidation?
Consolidations occur when price is trading in a range. Normally, Consolidation scripts use a static number of "lookback candles", checking whether price is continuously trading inside the highest and lowest price points of said Time window.
After years spent studying price action and numerous programming attempts, this tool succeeds in veering away from the lookback candle approach. This Consolidation script harnesses the delivery mechanisms and Time principles of the Interbank Price Delivery Algorithm (IPDA) to define Fractal Consolidations – solely based on a Timeframe Input used for context.
Description:
This concept was engineered around price delivery principles taught by the Inner Circle Trader (ICT). As per ICT, it's integral for an Analyst to understand the four phases of price delivery: Consolidation , Expansion , Retracement , and Reversal .
According to ICT, any market movement originates from a Consolidation, followed by an Expansion .
When Consolidation ranges begin to break and resting liquidity is available, cleaner Expansions will take place. This tool's value is to visually aid Analysts and save Time in finding Consolidations in live market conditions, to take advantage of Expansion moves.
CME_MINI:ES1! 15-Minute Consolidation setting up an Expansion move, on the 10 Minute Chart:
Fractal Consolidations Pro+ doesn't only assist in confirming Higher Timeframe trend continuations and exposing opportunities on Lower Timeframes. It's also designed for both advanced traders and new traders to save Time and energy in navigating choppy or rangebound environments.
CME_MINI:ES1! 30 Minute Consolidation forming Live, on the 5 Minute Chart:
By analyzing past price action, traders will find algorithmic signatures when Consolidations are taking place, therefore providing a clearer view of where and when price is likely to contract, continue consolidating, breakout, retrace, or reverse. A prominent signature to consider when using this script is ICT's Market Maker Buy/Sell Models. These signatures revolve around the engineering of Consolidations to manipulate price in a specific direction, to then reverse at the appropriate Time. Each stage of the Market Maker Model can be identified and taken advantage of using Fractal Consolidations.
CME_MINI:NQ1! shift of the Delivery Curve from a Sell Program to a Buy Program, Market Maker Buy Model
Key Features:
Tailored Timeframes: choose the Timeframe that suits your model. Whether you're a short-term enthusiast eyeing 1 Hour Consolidations or a long-term trend follower analyzing 4 Hour Consolidations, this tool gives you the freedom to choose.
FOREXCOM:EURUSD Fractal Consolidations on a 15 Minute Chart:
Auto-Timeframe Convenience: for those who prefer a more dynamic and adaptive approach, our Auto Timeframe feature effortlessly adjusts to the most relevant Timeframe, ensuring you stay on top of market consolidations without manually adjusting settings.
Consolidation Types: define consolidations as contractions of price based on either its wick range or its body range.
COMEX:GC1! 4 Hour Consolidation differences between Wick-based and Body-based on a 1 Hour Chart:
Filtering Methods: combine previous overlapping Consolidations, merging them into one uniform Consolidation. This feature is subject to repainting only while a larger Consolidation is forming , as smaller Consolidations are confirmed. However once established, the larger Consolidation will not repaint .
FOREXCOM:GBPUSD 15 Minute Consolidation Differences between Filter Consolidations ON and OFF:
IPDA Data Range Filtering: this feature gives the Analyst control for selective visibility of Consolidations in the IPDA Data Range Lookback . The Analyst can choose between 20, 40, and 60 days as per ICT teachings, or manually adjust through Override.
INDEX:BTCUSD IPDA40 Data Range vs. IPDA20 Data Range:
Extreme Float: this feature provides reference points when the price is outside the highest or lowest liquidity levels in the chosen IPDA Data Range Lookback. These Open Float Extremes offer critical insights when the market extends beyond the Lookback Consolidation Liquidity Levels . This feature helps identify liquidity extremes of interest that IPDA will consider, which is crucial for traders in understanding market movements beyond the IPDA Data Ranges.
INDEX:ETHUSD Extreme Float vs. Non-Extreme Float Liquidity:
IPDA Override: the Analyst can manually override the default settings of the IPDA Data Range Lookback, enabling more flexible and customized analysis of market data. This is particularly useful for focusing on recent price actions in Lower Timeframes (like viewing the last 3 days on a 1-minute timeframe) or for incorporating a broader data range in Higher Timeframes (like using 365 days to analyze Weekly Consolidations on a daily timeframe).
Liquidity Insight: gain a deeper understanding of market liquidity through customizable High Resistance Liquidity Run (HRLR) and Low Resistance Liquidity Run (LRLR) Consolidation colors. This feature helps distinguishing between HRLR (high resistance, delayed price movement) and LRLR (low resistance, smooth price movement) Consolidations, aiding in quick assessment of market liquidity types.
TVC:DXY Low Resistance vs. High Resistance Consolidation Liquidity Behaviour and Narrative:
Liquidity Raid Type: decide whether to categorize a Consolidation liquidity raid by a wick or body trading through a level.
CBOT:ZB1! Wick vs. Body Liquidity Raid Type:
Customizable User Interface: tailor the visual representation to align with your preferences. Personalize your trading experience by adjusting the colors of consolidation liquidity (highs and lows) and equilibrium, as well as line styles.
Monday range by MatboomThe "Monday Range" Pine Script indicator calculates and displays the lowest and highest prices during a specified trading session, focusing on Mondays. Users can configure the trading session parameters, such as start and end times and time zone. The indicator visually highlights the session range on the chart by plotting the session low and high prices and applying a background color within the session period. The customizable days of the week checkboxes allow users to choose which days the indicator should consider for analysis.
Session Configuration:
session = input.session("0000-0000", title="Trading Session")
timeZone = input.string("UTC", title="Time Zone")
monSession = input.bool(true, title="Mon ", group="Trading Session", inline="d1")
tueSession = input.bool(true, title="Tue ", group="Trading Session", inline="d1")
Users can configure the trading session start and end times and the time zone.
Checkboxes for Monday (monSession) and Tuesday (tueSession) sessions are provided.
SessionLow and SessionHigh Functions:
SessionLow(sessionTime, sessionTimeZone=syminfo.timezone) => ...
SessionHigh(sessionTime, sessionTimeZone=syminfo.timezone) => ...
Custom functions to calculate the lowest (SessionLow) and highest (SessionHigh) prices during a specified trading session.
InSession Function:
InSession(sessionTimes, sessionTimeZone=syminfo.timezone) => ...
Determines if the current bar is inside the specified trading session.
Days of Week String and Session String:
sessionDays = ""
if monSession
sessionDays += "2"
if tueSession
sessionDays += "3"
tradingSession = session + ":" + sessionDays
Constructs a string representing the selected days of the week for the session.
Fetch Session Low and High:
sessLow = SessionLow(tradingSession, timeZone)
sessHigh = SessionHigh(tradingSession, timeZone)
Calls the custom functions to obtain the session low and high prices.
Plot Session Low and High and Background Color for Session
plot(sessLow, color=color.red, title="Session Low")
plot(sessHigh, color=color.red, title="Session Low")
bgcolor(InSession(tradingSession, timeZone) ? color.new(color.aqua, 90) : na)
"Daily Range with Filtre [Hunter_Algo]
- The script calculates the high and low ranges based on the specified session time, such as the Asia Liquidity session.
- It uses the timeinrange function to determine if the current bar is within the specified session.
- High and low values are updated based on whether the current high or low surpasses the previous values within the specified session.
- The script includes functions to convert day strings to integers and style strings to enumeration values.
- There are additional inputs related to the start and end of the day range, as well as colors and styles for various elements.
- The script calculates daily high (Dh), daily low (Dl), and other variables based on certain conditions, including the day of the week.
Advanced VSA: Trend and Range LevelsThe indicator is designed for traders who are more interested in market structures and price action using volumes. Analyzing volumes, key market levels, market phases (trend or range/sideways), and multiple timeframes can help the trader build a clearer and more comprehensive view of the market. The data analysis algorithm is developed based on VSA methods, elements of the ICT concept, and the results of my research to assist trader in gaining a better understanding of the market and uncovering information that might go unnoticed.
The key idea is to consider multiple timeframes in trading. Understanding larger market movements from higher timeframes can provide a deeper context when making trading decisions, aiming to assist in more effective entries and exits. This is achieved by identifying the trend and its support levels on multiple timeframes, identifying ranges and their current boundaries, as well as buyer and seller interest zones.
Key Features
Trend Identification: The indicator determines the trend and its current support level. All significant price &movements occur in the form of impulses (either by sellers or buyers). An impulse consists of one or several consecutive candlesticks, at least one of which has a closing price beyond the boundaries of the previous impulse. The indicator displays the base of the impulse and/or the entire impulse. The base of the impulse represents the trend's support level.
Range Identification: The indicator can identify ranges and their current boundaries. Institutional traders take positions within price ranges, and many market reversals occur after flats. A range is a sequential price movement up and down within a specific price range. A range is formed by a minimum of 4 points, 2 above and 2 below, and is defined by its boundaries. The indicator detects ranges based on two (two consecutive impulses in one direction) or three impulses (the first and third in one direction, and the second in the opposite direction). The indicator displays the current boundary points of the range and the level of protection after exiting the range and initiating a trend.
Buyer and seller zones within impulses: After the impulse ends, a correction occurs. It is advisable to look for entry points during this correction in the direction of the impulse from the zone of interest of the owner of the impulse: the buyer's zone for a long impulse and the seller's zone for a short impulse. A zone consists of a series of consecutive candlesticks grouped on the chart in a specific manner.
Multi-Timeframe Trend Identification: The indicator also identifies the trend on two higher timeframes and displays the two latest bases of impulses from those higher timeframes on the chart.
Additional Features
Identification of Test Levels and Effort. A test is the price's return to a zone or to a candle of effort, followed by a continuation in the direction of the initial price movement. It is characterized by the test level. An effort or effort candle is a single candle that is individually larger in volume than the previous 2.
Example Use Cases
You can display the base levels of impulses from a 4-hour time frame and a daily time frame on a 15-minute chart to keep track of important levels from higher timeframes.
By exploring different timeframes, you can identify consolidations (range/sideways movements) and trade within them in the direction of the trend from higher timeframes.
If the market is in a trending phase (the presence of a trend is determined by two consecutive impulses in the same direction), look for trades in the direction of the impulse, following these priorities:
When the impulse base level is protected by the host of the impulse.
During corrections, look for buy trades in the buyer's zone for an uptrend and sell trades in the seller's zone for a downtrend.
During corrections, look for buy trades from a buyer's effort candle for an uptrend and sell trades from a seller's effort candle for a downtrend.
If the market is in a consolidation phase (range), look for trades:
When the current or maximum/minimum historical boundaries of the consolidation (range) are protected, look for trades towards the opposite current boundary.
If the price exits the consolidation/range (closes outside all consolidation boundaries, including both current and historical boundaries), then during corrections, look for trades in the direction of the exit.
Settings
Trend: Display base levels of impulses and/or the entire impulse. Sideways Ranges (Sideways Markets): Display the required number of sideways ranges on the chart, along with protection levels for exiting the sideways range. There are two modes for finding sideways ranges. The first mode requires touching points. The second mode (advanced) does not require precise touching of points if there are increased volumes at the extreme points of the sideways range. Touching these volumes is sufficient for the price.
Zones: Display zones on the chart. Choose the types of displayed zones and their colors. They are divided into three types. The first type is the most promising for finding trades. Type 3 represents more aggressive trades.
Test Levels: Display test levels for zones and efforts on the chart. There are three types of test levels. The first type is the most promising for finding trades. Type 3 is not recommended for finding trades as it represents the most aggressive trades.
Higher Time Frames: Choose 2 timeframes and the types of displayed impulse base lines.
Expected Move BandsExpected Moves
The Expected Move of a security shows the amount that a stock is expected to rise or fall from its current market price based on its level of volatility or implied volatility. The expected move of a stock is usually measured with standard deviations.
An Expected Move Range of 1 SD shows that price will be near the 1 SD range 68% of the time given enough samples.
Expected Move Bands
This indicator gets the Expected Move for 1-4 Standard Deviation Ranges using Historical Volatility. Then it displays it on price as bands.
The Expected Move indicator also allows you to see MTF Expected Moves if you want to.
This indicator calculates the expected price movements by analyzing the historical volatility of an asset. Volatility is the measure of fluctuation.
This script uses log returns for the historical volatility calculation which can be modelled as a normal distribution most of the time meaning it is symmetrical and stationary unlike other scripts that use bands to find "reversals". They are fundamentally incorrect.
What these ranges tell you is basically the odds of the price movement being between these levels.
If you take enough samples, 95.5% of the them will be near the 2nd Standard Deviation. And so on. (The 3rd Standard deviation is 99.7%)
For higher timeframes you might need a smaller sample size.
Features
MTF Option
Parameter customization
PhantomFlow RangeDetectorPhantomFlow RangeDetector analyzes the current price action of the market and draws ranges depending on the minimum number of bars in the zone of one candle you specify. Each range is colored depending on the closing direction of the candle outside this range. Accordingly, in trend trading, it is advisable to look for long trades from the green zones, and short trades from the red zones (with standard color settings).
If you have a basic understanding of the market context, you can consider such zones in a mirror retest to find trades with higher RR.
Range Detector [LuxAlgo]The Range Detector indicator aims to detect and highlight intervals where prices are ranging. The extremities of the ranges are highlighted in real-time, with breakouts being indicated by the color changes of the extremities.
🔶 USAGE
Ranging prices are defined by a period of stationarity, that is where prices move within a specific range.
Detecting ranging markets is a common task performed manually by traders. Price breaking one of the extremities of a range can be indicative of a new trend, with an uptrend if price breaks the upper range extremity, and a downtrend if price breaks the lower range extremity.
Ranges are highlighted as zones and are set retrospectively, that is the starting point of a range is offset in the past. The exact moment a range is detected is highlighted by a gray background color. The average between the maximum/minimum of a zone is also highlighted as a dotted line and is also set retrospectively.
The range extremities are set in real-time, blue extremities indicate the range extremities were not broken, green extremities indicate that price broke the upper range extremity, while red extremities indicate price broke the lower range extremity.
Extremities are extended until a new range is detected, allowing past ranges extremities can be used as future support/resistances.
🔶 DETAILS
The detection algorithm used to detect ranges tests if all the prices within a user-set window are all within two extremities. These extremities are determined by the mean of the detection window plus/minus an ATR value.
When a new range is detected, the script checks if this new range overlaps with a previously detected range, if this is the case, both ranges are merged into one; updating the extremities of the previous range.
This can be observed with the real-time extremities changing within a highlighted zone.
🔶 SETTINGS
Minimum Range Length: Minimum amount of bars needed to detect a range.
Range Width: Multiplicative factor for the ATR used to detect new ranges. Lower values detect ranges with a lower width. Using higher values might return false positives.
ATR Length: ATR length used to determine the range width.
Volumetric Toolkit [LuxAlgo]The Volumetric Toolkit is a complete and comprehensive set of tools that display price action-related analysis methods from volume data.
A total of 4 features are included within the toolkit. Symbols that do not include volume data will not be supported by the script.
🔶 USAGE
The volumetric toolkit puts a heavy focus on price action, returning support/resistance levels, ranges, volume divergences...etc.
The main premise between each feature is that volume has a direct relationship with market participants level of interest over a specific symbol, and that this interest is not constant over time.
Each individual feature is detailed below.
🔹 Ranges Of Interest
The Ranges Of Interest construct a range from a surge of high liquidity in the market. This range is constructed from the price high and price low of the candle with the associated significant liquidity.
The returned extremities can be used as support and resistance, with breakouts often being accompanied by significant liquidity as well, suggesting potential trend continuations.
The length setting associated with this feature determines how sensitive the range detection algorithm is to volume, with higher values requiring more significant volume in order to display a new range.
🔹 Impulses
Impulses highlight times when volume makes a new higher high while the price makes a new higher high or lower low, suggesting increased market participation.
When this occurs when the price makes a new higher high the impulse is considered bullish (green), if the price makes a new lower low the impulse is bearish (red).
Impulses occurring within an established trend opposite to it (e.g a bearish impulse on an uptrend) might be indicative of reversals.
The length setting works similarly to the previously described ranges of interest, with higher values requiring longer-term volume higher high and price higher high/lower low, highlighting more significant impulse and potentially longer-term reversals.
🔹 Levels Of Interest
Levels of interest display price levels of significant trading activity, contrary to the range of interest only the closing price is taken into account, also volume peaks are used to detect significant trading activity.
Note that this feature is subject to backpainting, that is lines are set retrospectively.
Users can determine the amount of most recent levels to display on the chart. These can be used as classical support/resistances.
🔹 Volume Divergence
We define volume divergence as a decreased market participation while a trend is still developing.
More precisely volume divergences are highlighted if volume makes a lower high while price is making a new higher high/lower low.
This can be indicative of a lack of further participation in the current trend, indicating a potential reversal.
Using higher length values will return longer-term divergences.
Note that this feature is subject to backpainting, that is lines are set retrospectively.
🔶 SETTINGS
🔹 Ranges Of Interest
Show Ranges Of Interest: Display Ranges Of Interest.
Length: Ranges Of Interest sensitivity to volume.
🔹 Impulses
Show Impulses: Display Ranges Of Interest.
Length: Impulses sensitivity to volume.
🔹 Levels Of Interest
Show: Determine if Levels Of Interest are displayed, and how many from the most recent.
Length: Level detection sensitivity to volume.
🔹 Volume Divergences
Show Divergences: Determine if Volume Divergences are displayed.
Length: Period for the detection of price tops/bottoms and volume peaks.
Supertrend x4 w/ Cloud FillSuperTrend is one of the most common ATR based trailing stop indicators.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility. In this version you can change the ATR calculation method from the settings. Default method is RMA, when the alternative method is SMA.
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier.
The implementation of 4 supertrends and cloud fills allows for a better overall picture of the higher and lower timeframe trend one is trading a particular security in.
The default values used while constructing a supertrend indicator is 10 for average true range or trading period.
The key aspect what differentiates this indicator is the Multiplier. The multiplier is based on how much bigger of a range you want to capture. In our case by default, it starts with 2.636 and 3.336 for Set 1 & Set 2 respectively giving a narrow band range or Short Term (ST) timeframe visual. On the other hand, the multipliers for Set 3 & Set 4 goes up to 9.736 and 8.536 for the multiplier respectively giving a large band range or Long Term (LT) timeframe visual.
A ‘Supertrend’ indicator can be used on equities, futures or forex, or even crypto markets and also on minutes, hourly, daily, and weekly charts as well, but generally, it fails in a sideways-moving market. That's why with this implementation it enables one to stay out of the market if they choose to do so when the market is ranging.
This Supertrend indicator is modelled around trends and areas of interest versus buy and sell signals. Therefore, to better understand this indicator, one must calibrate it to one's need first, which means day trader (shorter timeframe) vs swing trader (longer time frame), and then understand how it can be utilized to improve your entries, exits, risk and position sizing.
Example:
In this chart shown above using SPX500:OANDA, 15R Time Frame, we can see that there is at any give time 1 to 4 clouds/bands of Supertrends. These four are called Set 1, Set 2, Set 3 and Set 4 in the indicator. Set's 1 & 2 are considered short term, whereas Set's 3 & 4 are considered long term. The term short and long are subjective based on one's trading style. For instance, if a person is a 1min chart trader, which would be short term, to get an idea of the trend you would have to look at a longer time frame like a 5min for instance. Similarly, in this cases the timeframes = Multiplier value that you set.
Optional Ideas:
+ Apply some basic EMA/SMA indicator script of your choice for easier understanding of the trend or to allow smooth transition to using this indicator.
+ Split the chart into two vertical layouts and applying this same script coupled with xdecow's 2 WWV candle painting script on both the layouts. Now you can use the left side of the chart to show all bearish move candles only (make the bullish candles transparent) and do the opposite for the right side of the chart. This way you enhance focus to just stick to one side at a given time.
Credits:
This indicator is a derivative of the fine work done originally by KivancOzbilgic
Here is the source to his original indicator: ).
Disclaimer:
This indicator and tip is for educational and entertainment purposes only. This not does constitute to financial advice of any sort.
Range Breakout Signals (Intrabar) [LuxAlgo]The Range Breakout Signals (Intrabar) is a novel indicator highlighting trending/ranging intrabar candles and providing signals when the price breaks the extremities of a ranging intrabar candles.
🔶 USAGE
The indicator highlights candles with trending intrabar prices, with uptrending candles being highlighted in green, and down-trending candles being highlighted in red.
This highlighting is affected by the selected intrabar timeframe, with a lower timeframe returning a more precise estimation of a candle trending/ranging state.
When a candle intrabar prices are ranging the body of the candle is hidden from the chart, and one upper & lower extremities are displayed, the upper extremity is equal to the candle high and the lower extremity to the candle low. Price breaking one of these extremities generates a signal.
The indicator comes with two modes, "Trend Following" and "Reversal", these modes determine the extremities that need to be broken in order to return a signal. The "Trend Following" mode as its name suggests will provide trend-following signals, while "Reversal" will aim at providing early signals suggesting a potential reversal.
🔶 DETAILS
To determine if intrabar prices are trending or ranging we calculate the r-squared of the intrabar data, if the r-squared is above 0.5 it would suggest that lower time frame prices are trending, else ranging.
This approach allows almost obtaining a "settings" free indicator, which is uncommon. The intrabar timeframe setting only controls the intrabar precision, with a timeframe significantly lower than the chart timeframe returning more intrabar data as a result, this however might not necessarily affect the displayed information by the indicator.
🔶 SETTINGS
Intrabar Timeframe: Timeframe used to retrieve the intrabar data within a chart candle. Must be lower than the user chart timeframe.
Auto: Select the intrabar timeframe automatically. This setting is more adapted to intraday charts.
Mode: Signal generation mode.
Filter Out Successive Signals: Allows removing successive signals of the same type, returning a more easily readable chart.
blackOrb ZoneBuying near the bottom and selling near the peak can be a challenging trading approach. However, it all begins with the ability to identify these essential zones. This indicator is targeting support and resistance with heightened accuracy. It utilizes features like:
I. Multi-Level Weighting for Enhanced Support and Resistance Zones
II. Vertical Zone Range Adjustment for Enhanced Price Level Identification
III. High-Time Frame for Solid Macro Validation
IV. Projection Function for Informed Trade Management
V. Automatic Level Identification for Pinpointing Potential Order Positions
VI. Customizable Pivot Analysis for Accurate Zone Identifications
Technical Methodology
I. Multi-Level Weighting for Enhanced Support and Resistance Zones
Support and resistance are more accurately represented as wider zones rather than singular lines. In practical application, relevant support or resistance levels often converge around a central mean-weighted level within a zone.
This indicator visually represents these zones by calculating values from open, high, low, and close prices, accentuating them through varying opacities. Higher opacity within an area indicates a higher likelihood of it serving as a relevant support or resistance level.
Multiple mean options within the settings menu encompass weighted average calculations that utilize different combinations of price data within the relevant pivot analysis phase. This versatility allows users to target pertinent levels within a zone. For instance, when employing hlcc4 price data, the calculation is as follows:
mean_price_hlcc4 = (high + low + close + close) / 4
II. Vertical Zone Range Adjustment for Enhanced Price Level Identification
This feature enables users to precisely adjust the vertical zone range for price references within potential support or resistance phases. For instance, decreasing the reference setting results in a more granular validation within a narrower range. This creates vertically thinner zones with increased price level precision, although it may offer a less comprehensive perspective.
III. High-Time Frame for Solid Macro Validation
The indicator enhances pivot points, potentially in conjunction with high-time frame validation, to identify significant price zones with heightened confirmation strength driven by volume. Higher time frames provide more extensive volume verification, for instance, comparing the 4-hour to the 24-hour timeframe (a multiple of six).
This feature involves cross-referencing data from higher time frames, heightening the reliability of support and resistance zones and providing valuable insights into potential trading interest levels.
Technically, the indicator applies the identical rigorous analysis to both lower and higher time frames. This approach facilitates a more comprehensive perspective and aids in the clearer identification of overarching macro support and resistance levels, even when focusing on smaller timeframes. For instance, a potential support zone identified on the daily time frame can gain higher confidence when confirmed on a weekly chart.
IV. Projection Function for Informed Trade Management
The projection function visually extends the most recent analysis of support and resistance zones forward, in accordance with the user's configured parameters.
By displaying precise price values at these visualized support and resistance levels, this indicator offers valuable assistance in decision-making, particularly when planning real-time orders or when engaged in an active trade management phase (e.g., for the purpose of adjusting stop-loss levels post-entry).
Note: This function is based on historical data. It may not account for unforeseen market events. It's important to complement this feature with ongoing analysis of real-time market data.
V. Automatic Level Identification for Pinpointing Potential Order Positions
It is empirically observed that traders frequently position orders at price levels that conform to quantized values due to cognitive biases.*
Consequently, blackOrb Zone not only facilitates the identification of pertinent levels within a weighted zone but also features an "auto" functionality designed to analyze price dynamics in the proximity of these relevant levels. The objective is to identify discrete values in close vicinity, which exhibit a higher likelihood of serving as authentic support and resistance zones.
This processing approach assists traders in precisely locating the central mean-weighted level within a given zone and identifies proximate quantized levels.
Note: This method becomes especially relevant during phases of price retesting, where market participants converge, contributing to a further refinement of levels, indicative of an asymmetric balance between supply and demand.
*Source: Prof. Mitchell, Jason. "Clustering and Psychological Barriers: The Importance of Numbers." Journal of Futures Markets, vol. 21, no. 5, 2001, pp. 395-428.
VI. Customizable Pivot Analysis for Accurate Zone Identifications
The indicator employs pivot points to pinpoint key price zones where price dynamics could encounter buying or selling pressure.
Essential components of this method involve comparing time units both to the left and right within a designated phase of support or resistance, effectively defining the search range for pivotal points.
For instance, in the analysis below, the search is for the highest price point that hasn't been surpassed within a certain resistance zone in the last 10 time units to the left and 10 time units to the right:
ta.pivothigh(10, 10)
Potential Trade Management Applications of blackOrb Zone
- Reversal Trading : Robust support zones with bullish signals can indicate opportune moments for buying or long position entries, whereas confirmed resistance zones can be identified for selling or short position entries.
- Breakout Trading : Anticipating price surges as price breach support or resistance level. A resistance breakout can signal a bullish price dynamic, while a support breakdown may suggest a bearish price dynamic.
- Range Trading : In lateral sideways markets, users can capitalize on support zones for buying and resistance zones for selling, profiting from price fluctuations.
- Take-Profit Management : For buying or long positions, resistance zones can be identified to determine suitable take-profit levels either within or near these zones - for short positions, vice versa with support zones.
- Stop-Loss Management : For buying or long positions, support zones can be identified to determine appropriate stop-loss levels beneath these zones - for short positions, vice versa with resistance zones to determine stop-loss levels above these zones.
Note on Usability
blackOrb Zone can have synergies with blackOrb Price as both indicators combined can give a bigger picture for supporting comprehensive and multifaceted data-driven trading analysis.
This tool was meticulously created to serve as an additional frame for the seamless integration of other more granular trading indicators. This indicator isn't intended for standalone trading application. Instead, it is serving as a supplementary tool for orientation within broader trading strategies.
Irrespective of market conditions, it can harmonize with a wider range of trading styles and instruments / trading pairs / indices like Stocks, Gold, FX, EURUSD, SPX500, GBPUSD, BTCUSD and Oil.
Inspiration and Publishing
Taking genesis from the inspirations amongst others provided by TradingView Pine Script Wizard Kodify, blackOrb Zone is a multi-encompassing script meticulously forged from scratch. It aspires to furnish a comprehensive approach, borne out of personal experiences and a strong dedication in supporting the trading community. We eagerly await valuable feedback to refine and further enhance this tool.
Fibonacci Ranges (Real-Time) [LuxAlgo]The "Fibonacci Ranges" indicator combines Fibonacci ratio-derived ranges (channels), together with a Fibonacci pattern of the latest swing high/low.
🔶 USAGE
The indicator draws real-time ranges based on Fibonacci ratios as well as retracements. Breakouts from a Fibonacci Channel are also indicated by labels, indicating a potential reversal.
Each range extremity/area can also be used as support/resistance.
🔶 CONCEPTS
Fibonacci Channels
Latest Fibonacci
Both, Latest Fibonacci and Fibonacci Channels , display different Fibonacci levels (labels not included in the code):
However, the 2 react in a totally different way.
🔹 Fibonacci Channels
2 conditions must be fulfilled until a Fibonacci Channel is displayed:
New swing high/low
close has to be between chosen limits/levels ( Break level )
As visual guidance, chosen Break levels are accentuated by 2 small gray blocks:
Once the channel is displayed, it will remain visible until x consecutive bars break out of the chosen Break level at closing time.
• x consecutive bars is set by Break count .
The amount of breaks is counted in the code. When the price, without breaking the user-set limit, closes back between the 2 levels, the count is reset to 0.
By enabling Channels and Shadows you can see previous channels (" Shadows ", which is always delayed with 1 bar)
Previous channels can be helpful in finding potential support/resistance areas, especially from large channel blocks
The more narrow Break levels are set the less chance the price closes between these 2 levels, and the quicker close breaks out.
In other words, narrow levels give fewer & smaller channels, broader levels give more & larger channels.
Note:
• swing settings: L & R
• Break count (x consecutive bars that close outside chosen levels to invalidate the Fibonacci Channel )
will also be of influence in displaying the channels.
• Show breaks enable you to visualize signals when there is a break:
• Alerts can also be set ( Break Down / Break Up )
🔹 Latest Fibonacci
This displays the Fibonacci levels between the latest swing high and swing low, independently from the Fibonacci Channel .
The Lastest Fibonacci can be helpful in detecting the current trend against the larger Fibonacci Channel .
🔶 SETTINGS
🔹 Swing Settings
L: set left of pivothigh / pivotlow
R: set right of pivothigh / pivotlow
🔹 Fibonacci Channels
Channel : Channel / Channels + Shadows / None
Break level
-0.382 - 1.382
0.000 - 1.000
0.236 - 0.764
0.382 - 0.618
Break count
🔹 Fibonacci
Toggle
Colours: [ -0.382 - 0 ], [ 0.236 - 0.382 ], [ 0.5 ], [ 0.618 - 0.764 ], [ 1 - 1.382 ]
blackOrb PriceblackOrb's Aspiration: Enhancing the Functionality of Area Charts
At its core, an area chart analysis serves as the foundational structure for blackOrb Price. Area charts can be seen as an addition to conventional price charts. Unlike price line charts, which connect closing prices with lines, an area chart fills the space between high and low prices, creating a visual representation of price ranges. This approach can offer several advantages, particularly in assessing price volatility and price dynamics.
A wider area between high and low suggests high volatility, while a narrower area indicates lower volatility. The orientation of the closing price concerning the high-low range provides insights into whether buyers or sellers are exerting influence on the market.
Combined with the following elements, this chart tool can support comprehensive data-driven trading analysis:
- Integrated moving averages for price dynamic insights
- Zigzag pivot identification for price level insights
- Stochastic lookback analysis for turning point insights
- Ghost mode for comparative insights
Technical Methodology
I. Integrated Moving Averages for Price Dynamic Insights
Incorporating various MA alternatives allows traders to gain insights into not only price dynamics but also their underlying strength, which is reflected in trading activity. This strength is visually depicted by the derived price line within blackOrb's Price Area Chart.
Among the array of MA alternatives, VWMA stands out as a suitable implementation choice for integrating volume data. It goes beyond the scope of a simple moving average, considering both price and volume in its calculation, as shown in the following formula:
(C1 x V1 + C2 x V2 + ... + CN x Vn) / (V1 + V2 + ... + Vn)
II. Zigzag Pivot Identification for Price Level Insights
Zigzag Pivot Identification can be a valuable tool for recognizing possible price movements and potential turning points. It operates by pinpointing pivotal moments where prices alter their course. Essential components of this method involve comparing time units both to the left and right within a designated price dynamic phase, effectively defining the search range for pivotal points.
For instance, in the analysis below, the search is for the highest price point that hasn't been surpassed in the last 10 time units to the left and 10 time units to the right:
ta.pivothigh(10, 10)
The lookback variables analyze price points by simultaneously examining a specified number of time units before and after a potential pivot point as the central reference. A pivot is identified when a price point remains unbreached throughout this period.
Note: This method retroactively validates structures, implying that this tool may redraw or adjust its values as price data evolves. This leads to inconsistency and a lack of predictability.
III. Stochastic Lookback Analysis for Turning Point Insights
The stochastic calculation methodology of this feature centers around the following formula:
100 * (close - lowest(low, length)) / (highest(high, length) - lowest(low, length))
This key formula employs a stochastic calculation methodology that assesses the percentage deviation of the closing price from the lowest low over a specified timeframe (length), relative to the span between the highest high and the lowest low. The outcome is normalized within a range of 0 to 100, providing insights into the relative position of the closing price within the high-low range. Traders can define the specific periods over which the stochastic calculation is performed.
Based on this stochastic analysis, the indicator integrates area chart coloring, affording users the flexibility to adjust the sensitivity of area chart coloring according to customized stochastic look-back evaluation phases. Consequently, the coloration by length evaluation can mirror a comprehension of market dynamics.
Note: However, it's important to recognize that the efficacy of evaluation coloring might be compromised during periods of lateral price movement, characterized by less prominent market trends.
IV. Ghost Mode for Comparative Insights
Unveiling convergences and divergences, the Ghost Mode overlays two price charts, which can reveal price trajectories and reactions (e.g. Apple stock's potential response to the NASDAQ 100 Technology Sector Index).
Note: This approach may not capture nuanced correlations during intricate market scenarios.
Note on Usability
This tool is an intricately designed area chart, meticulously created to serve as a fundamental canvas for the seamless integration of other more granular trading indicators.
blackOrb Price can have synergies with blackOrb Candle as both indicators combined can give a bigger picture for supporting comprehensive and multifaceted data-driven trading analysis.
This indicator isn't intended for standalone trading application. Instead, it offers an alternative approach to traditional area charts, serving as a supplementary tool for orientation within broader trading strategies. Irrespective of market conditions, it can harmonize with a wider range of trading styles and instruments/trading pairs/indices like Stocks, Gold, EURUSDSPX500, GBPUSD, BTCUSD and Oil.
Inspiration and Publishing
Taking genesis from the inspirations amongst others provided by TradingView Pine Script Wizard Kodify, blackOrb Price is a multi-encompassing script meticulously forged from scratch. It aspires to furnish a comprehensive area chart approach, borne out of personal experiences and a strong dedication in supporting the trading community. We eagerly await valuable feedback to refine and further enhance this tool.
Auto Range [lovealgotrading]
OVERVIEW:
An indicator that automatically draws a range and generates signals according to changing market conditions. ( This indicator does not REPAINT )
ALGORITHM OF THE INDICATOR:
> When we examine the price, it generally moves in trend only 30 percent of the time and in consolidation 70 percent of the time.
> While the price is consolidating, it creates a range and continues to move within the range until this range is broken, BUT the market conditions are constantly changing and our range levels are expected to change with each new bar. I developed an indicator considering this situation.
> When Range Trading, we determine the high and low levels and we can open trades according to the price's reactions at these levels.
> However, after we draw a range, market conditions constantly change, and opening a transaction without taking into account the changing market conditions is an obstacle to our success.
IMPLEMENTATION DETAILS WITH EXAMPLE:
What kind of algorithm do I use to draw a range automatically?
For example, let's set the Number of line value to 4 and set our Period to 14.
1- Let our highest 4 values be = 100, 110, 120, 130, the average of these values is
2- (100+110+120+130)/4 = 115, in this case our Range High Value becomes 115.
3- Within the period we have determined (we have currently set 14, but you can change it), the price sees the highest level of 140.
4- In this case, our 4 largest levels = 110 120 130 140 and our average becomes (110 + 120 + 130 + 140) / 4 = 125 and the range high Our level changes automatically and becomes 125.
5- Let's take the example below, where we determine our 4 highs within the 14 bars we set and average them, if our high changes, our range high goes up.
>> I tried to draw the change with the red arrow
How does this situation appear on the indicator?
>>> Classic Range Trade and Auto Range Trade <<<
Classical Range Trade:
Auto Range Trade:
SETTINGS PANEL:
Which Signals Are More Important (Example Study)
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
[TTI] Closing Range Indicator📜 ––––HISTORY & CREDITS––––
This Pine Script Utility indicator, titled " Closing Range Indicator," is designed and developed by TintinTrading but inspired by the teaching of Investor's Business Daily (IBD) and William O'Neil. It aims to help traders identify the closing range of a given timeframe, either daily or weekly.
🦄 –––UNIQUENESS–––
The unique feature of this indicator lies in its ability to simulate a functionality of Closing Range calculation based on hovering of the mouse over the close. It employs a conditional display that allows the user to set the indicator as 'invisible' without removing it from the chart and hence provides a numerical closing range value when hovering over the indicator.
🛠️ ––––WHAT IT DOES––––
The Closing Range Indicator calculates the closing range of a trading bar in terms of percentages. It computes the difference between the closing price and the low price of the bar, and then divides it by the range of the bar.
A stock that closes on the high would display 100%
A stock that closes on the low would display 0%
Generally, the higher the percentage the more bullish the close but there are exceptions to this rule.
The indicator can operate on two timeframes:
Daily : Computes the closing range based on the daily high, low, and closing prices.
Weekly : Computes the closing range based on the weekly high, low, and closing prices. If you enable the weekly it will show the weekly close on all daily timeframes. Meaning that if the week Closing range is 54.15% on Friday, it will show the value 54.15% for all days prior to Friday from the same week.
The indicator places a label at the close of each bar, with the label's tooltip showing the calculated closing range percentage. I generally hide the label and just reference the tooltip calculation with a a hoover on top of the bar.
💡 ––––HOW TO USE IT––––
Installation: Add the indicator to your TradingView chart by searching for " Closing Range Indicator" in the indicator library.
Reorder: Reorder the indicator so that it sits as the first indicator (even above the price) on the Pane. This will make sure that you always trigger the tooltip functionality.
Go to Settings:
Timeframe: Choose between daily ('D') and weekly ('W') timeframes from the settings.
Visibility: Enable the 'Make Invisible' option if you want the indicator to be hidden.
Interpretation:
A higher percentage indicates that the closing price is closer to the high of the range, signaling bullish sentiment.
A lower percentage indicates bearish sentiment.
Tooltip: Hover over the label to view the closing range in percentage terms.
Smart Money Range [ChartPrime]The Smart Money Range indicator is designed to provide traders with a holistic view of market structure, emphasizing potential key support and resistance levels within a predefined range. This indicator is not just a visually pleasing, but also a comprehensive guide to understanding the market’s dynamics at a given level.
Key Features:
Defined Range: The indicator demarcates a clear range, highlighting support and resistance levels within it. This aids in identifying potential areas of buying and selling pressure. These are derived from highly significant areas that have been touched many times before.
Touches Counter: Underneath the support and resistance lines, there are numerical values that show the number of times price has interacted with these levels. This can provide insights into the strength or weakness of a particular level.
Zig-Zag Projections: Within the range, there's a zig-zag pattern indicating possible future touches, helping traders anticipate future price movements.
Double-Sided Profile: To the right of the range, a dual-profile is showcased. One side of the profile displays the volume traded at specific price levels, giving insights into where significant buying or selling has occurred. On the other side, it reflects the number of touches at that given price level, reinforcing the importance of particular price points.
Customizability: Users have the option to adjust the period setting, allowing them to cater the indicator to their specific trading style and configuration. Additionally, with volume levels settings, traders can adjust the number of bins in the profile for a tailored view.
HighLowBox+220MAs[libHTF]HighLowBox+220MAs
This is a sample script of libHTF to use HTF values without request.security().
import nazomobile/libHTFwoRS/1
HTF candles are calculated internally using 'GMT+3' from current TF candles by libHTF .
To calcurate Higher TF candles, please display many past bars at first.
The advantage and disadvantage is that the data can be generated at the current TF granularity.
Although the signal can be displayed more sensitively, plots such as MAs are not smooth.
In this script, assigned ➊,➋,➌,➍ for htf1,htf2,htf3,htf4.
HTF candles
Draw candles for HTF1-4 on the right edge of the chart. 2 candles for each HTF.
They are updated with every current TF bar update.
Left edge of HTF candles is located at the x-postion latest bar_index + offset.
DMI HTF
ADX/+DI/DI arrows(8lines) are shown each timeframes range.
Current TF's is located at left side of the HighLowBox.
HTF's are located at HighLowBox of HTF candles.
The top of HighLowBox is 100, The bottom of HighLowBox is 0.
HighLowBox HTF
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.
In HTF, shows Fibonacci Level of the current price at latest box only.
Boxes:
1 for current timeframe.
4 for higher timeframes.(Steps of timeframe: 5, 15, 60, 240, D, W, M, 3M, 6M, Y)
HighLowBox TrendLine
Draw TrendLine for each HighLow Range. TrendLine is drawn between high and return high(or low and return low) of each HighLowBox.
Style of TrendLine is same as each HighLowBox.
HighLowBox RSI
RSI Signals are shown at the bottom(RSI<=30) or the top(RSI>=70) of HighLowBox in each timeframe.
RSI Signal is color coded by RSI9 and RSI14 in each timeframe.(current TF: ●, HTF1-4: ➊➋➌➍)
In case of RSI<=30, Location: bottom of the HighLowBox
white: only RSI9 is <=30
aqua: RSI9&RSI14; <=30 and RSI9RSI14
green: only RSI14 <=30
In case of RSI>=70, Location: top of the HighLowBox
white: only RSI9 is >=70
yellow: RSI9&RSI14; >=70 and RSI9>RSI14
orange: RSI9&RSI14; >=70 and RSI9=70
blue/green and orange/red could be a oversold/overbought sign.
20/200 MAs
Shows 20 and 200 MAs in each TFs(tfChart and 4 Higher).
TFs:
current TF
HTF1-4
MAs:
20SMA
20EMA
200SMA
200EMA
IND-Range Box [Salar Kamjoo]Hello to all dear traders,
One of the trading methods in financial markets is Range Box Trading. Ranges are specific price levels where the market reaches equilibrium, meaning the buying force is roughly equal to the selling force. Consequently, the market neither moves significantly upwards nor downwards; it oscillates within a particular range. The indicator I have designed for you is based on this concept. It utilizes the number of candles and their oscillations to identify specific ranges on the chart. These ranges are drawn based on the maximum and minimum of the box.
The optimal time for trading and using this indicator is when the market is less volatile, specifically outside of the overlapping London and New York sessions. Additionally, be cautious during news releases as they might lead to stop-hunting scenarios. Therefore, the best time to employ this indicator is when the market is relatively calm.
This indicator has 4 settings:
Setting Number 1: Number of Candles
This setting determines the number of candles involved in calculating the range boxes. A higher value indicates longer range boxes will be identified for you, while a lower value results in quicker recognition of range boxes. However, a smaller value may reduce the reliability of the identified range boxes. The recommended value for this setting may vary for each currency pair and time frame.
s3.tradingview.com
Setting Number 2: Range Percentage
This setting determines the maximum percentage difference between the high and low of the identified range box. (These settings are interconnected with Setting Number 3, as your choice in Setting Number 3—whether to base the range box calculation on the high or low, or on the candle close—will impact how this range percentage is applied.)
s3.tradingview.com
Setting Number 3: Calculation Basis
This setting determines whether the maximum width of the range box is based on the highest or lowest points, or if it is calculated based on the closing prices of the candles.
s3.tradingview.com
s3.tradingview.com
Setting Number 4: Number of Extended Candles
This visual setting determines the extension of your range box forward by a specified number of candles.
Another valuable feature of this indicator is the ability to configure alerts. By setting up alerts, you can promptly receive notifications whenever a range box is identified on the chart. This ensures that you are promptly informed about potential trading opportunities.
If you have any questions feel free to ask in the comments section.
be profitable :)
Implied Range from Options [SS]I have been promising to post this for a while, but I just needed to make sure that a) there were no similar indicators already available and b) make it a bit more user friendly.
So here it is, a basic indicator that will display the implied range from options.
In addition to displaying the implied range from options, it will provide some secondary information to help add context to the implied range. Those are shown in the chart below:
The indicator will list various precents at each point to the upside and to the downside. This is the percent move required, based on the current close price, to obtain any point in the implied move range.
In addition, the indicator will display the average move from open to high and open to low over a user defined period (default to 14 candle period) as well as the previous open to high and open to low move from the previous day.
This is to give you context of:
a) How much of a % increase or decrease is required to reach the implied ranges; and
b) How does the implied range compare to the ticker's average moves.
An increased implied range that exceeds the ticker's average move can alert you that the market is pricing in an above average move. This can be helpful and alert you to potential news releases or other fundamental things that have the potential to move the market.
How to Use the indicator:
So unfortunately, this indicator requires a bit of manual input. I was going to do an auto IV calculcation using Black-Scholes Model but just to be more rigorous in accuracy, I decided to, for now, leave it at a manual input. So when you launch the settings menu, this is what you will see:
You can collect all of this required information from your broker. Inversely, you can collect it online for free from various services such as Barchart or COBE's exchange website. The easiest way is to just pull it from your broker though.
Make sure, if you are doing weekly options to see the weekly range, you set the timeframe to 1 week. The timeframe function will calculate the average move over the desired timeframe length. So if you are doing a 0 dte for the next day, you want to see the intra-day range and will select the 1 day timeframe. It will then present to you the range averages and information on the daily timeframe for you to compare to the implied options range.
Same for the weekly, monthly, yearly, etc.
Additional options:
The indicator provides the midline average and midway points, to add static targets if you are trading the implied range.
These can be toggled on or off in the settings menu:
As well, as you can see, you can also toggle off the range labels.
There is also an offset option. This allows you to extend the range into the future:
Simply select how many candles you would like to plot the range in advance.
Closing remarks
That is the indicator. Its very simple, but it is handy. I was never one to pay attention to option pricing data, but I have been plotting it out daily and weekly these past few weeks and it does add a bit of context in terms of what the market is thinking. So I do recommend actually adding it to your repertoire of analyses going into the weeks and months, and really just paying attention to how the average ranges compare to what the market is pricing in.
One quick suggestion, select the strike price that aligns with the closing price of the ticker. This gives you a better representation of the range.
Safe trades everyone and leave your comments, questions and suggestions below!
Average Range LinesThis Average Range Lines indicator identifies high and low price levels based on a chosen time period (day, week, month, etc.) and then uses a simple moving average over the length of the lookback period chosen to project support and resistance levels, otherwise referred to as average range. The calculation of these levels are slightly different than Average True Range and I have found this to be more accurate for intraday price bounces.
Lines are plotted and labeled on the chart based on the following methodology:
+3.0: 3x the average high over the chosen timeframe and lookback period.
+2.5: 2.5x the average high over the chosen timeframe and lookback period.
+2.0: 2x the average high over the chosen timeframe and lookback period.
+1.5: 1.5x the average high over the chosen timeframe and lookback period.
+1.0: The average high over the chosen timeframe and lookback period.
+0.5: One-half the average high over the chosen timeframe and lookback period.
Open: Opening price for the chosen time period.
-0.5: One-half the average low over the chosen timeframe and lookback period.
-1.0: The average low over the chosen timeframe and lookback period.
-1.5: 1.5x the average low over the chosen timeframe and lookback period.
-2.0: 2x the average low over the chosen timeframe and lookback period.
-2.5: 2.5x the average low over the chosen timeframe and lookback period.
-3.0: 3x the average low over the chosen timeframe and lookback period.
Look for price to find support or resistance at these levels for either entries or to take profit. When price crosses the +/- 2.0 or beyond, the likelihood of a reversal is very high, especially if set to weekly and monthly levels.
This indicator can be used/viewed on any timeframe. For intraday trading and viewing on a 15 minute or less timeframe, I recommend using the 4 hour, 1 day, and/or 1 week levels. For swing trading and viewing on a 30 minute or higher timeframe, I recommend using the 1 week, 1 month, or longer timeframes. I don’t believe this would be useful on a 1 hour or less timeframe, but let me know if the comments if you find otherwise.
Based on my testing, recommended lookback periods by timeframe include:
Timeframe: 4 hour; Lookback period: 60 (recommend viewing on a 5 minute or less timeframe)
Timeframe: 1 day; Lookback period: 10 (also check out 25 if your chart doesn’t show good support/resistance at 10 days lookback – I have found 25 to be useful on charts like SPX)
Timeframe: 1 week; Lookback period: 14
Timeframe: 1 month; Lookback period: 10
The line style and colors are all editable. You can apply a global coloring scheme in the event you want to add this indicator to your chart multiple times with different time frames like I do for the weekly and monthly.
I appreciate your comments/feedback on this indicator to improve. Also let me know if you find this useful, and what settings/ticker you find it works best with!
Also check out my profile for more indicators!
DTR & ATR
Description
This ATR and DTR label is update of Existing Label provided by © ssksubam
Please See Notes on original Script Here :
Original Code is not mine but I have done few code changes which I believe will help everyone who are looking to add more labels together and save space on the chart
ATR & DTR Script is very helpful for Day Traders as I will explain in detail bellow
Following are changes I have incorporated
Previous Label took more space on the charts with Header and Footer.
I removed the Header and moved both DTR vs ATR descriptions on the same line, saving space on the chart.
I updated the code to remove => signs, which are self-explanatory as I will explain below.
I made the label in 1 single compact line for maximum space efficiency and aesthetics.
These changes improve the content's clarity and conciseness while optimizing space on the charts. If you have any further requests or need additional assistance, feel free to let me know!
What Does DTR Signify?
Stock ATR stands for Average True Range, which is a technical indicator used in trading and investment analysis. The Average True Range measures the volatility of a stock over a given period of time. It provides insights into the price movement and potential price ranges of the stock.
The ATR is calculated as the average of the true ranges over a specific number of periods. The true range is the greatest of the following three values:
The difference between the current high and the current low.
The absolute value of the difference between the current high and the previous close.
The absolute value of the difference between the current low and the previous close.
Traders and investors use ATR to assess the potential risk and reward of a stock. A higher ATR value indicates higher volatility and larger price swings, while a lower ATR value suggests lower volatility and smaller price movements. By understanding the ATR, traders can set appropriate stop-loss levels and make informed decisions about position sizing and risk management.
It's important to note that the ATR is not a directional indicator like moving averages or oscillators. Instead, it provides a measure of volatility, helping traders adapt their strategies to suit the current market conditions.
What Does ATR Signify?
The Average True Range (ATR) signifies the level of volatility or price variability in a particular financial asset, such as a stock, currency pair, or commodity, over a specific period of time. It provides valuable information to traders and investors regarding the potential risk and reward associated with the asset.
Here are the key significances of ATR:
Volatility Measurement: ATR measures the average price range between high and low prices over a specified timeframe. Higher ATR values indicate greater volatility, while lower values suggest lower volatility. Traders use this information to gauge the potential price movements and adjust their strategies accordingly.
Risk Assessment: A higher ATR value implies larger price swings, indicating increased market uncertainty and risk. Traders can use ATR to set appropriate stop-loss levels and manage risk by adjusting position sizes based on the current volatility.
Trend Strength: ATR can also be used to assess the strength of a trend. In an uptrend or downtrend, ATR tends to increase, indicating a more powerful price movement. Conversely, a declining ATR might signify a weakening trend or a consolidation period.
Range-Bound Market Identification: In a range-bound or sideways market, the ATR value tends to be relatively low, reflecting the lack of significant price movements. This information can be helpful for range-trading strategies.
Volatility Breakouts: Traders often use ATR to identify potential breakouts from consolidation patterns. When the ATR value expands significantly, it may indicate the beginning of a new trend or a breakout move.
Comparison between Assets: ATR allows traders to compare the volatility of different
How to use DTR & ATR for Trading
Using Average True Range (ATR) and Daily Trading Range (DTR) can be beneficial for day trading to assess potential price movements, manage risk, and identify trading opportunities. Here's how you can use both indicators effectively:
Calculate ATR and DTR: First, calculate the ATR and DTR values for the asset you are interested in trading. ATR is the average of true ranges over a specified period (e.g., 14 days), while DTR is the difference between the high and low prices of a single trading day.
Assess Volatility: Compare the ATR and DTR values to understand the current volatility of the asset. Higher values indicate increased volatility, while lower values suggest reduced volatility.
Setting Stop-Loss: Use ATR to set appropriate stop-loss levels. For example, you might decide to set your stop-loss a certain number of ATR points away from your entry point. This approach allows you to factor in market volatility when determining your risk tolerance.
Identify Trading Range: Analyze DTR to determine the typical daily price range of the asset. This information can help you identify potential support and resistance levels, which are essential for day trading strategies such as breakout or range trading.
Breakout Strategies: ATR can assist in identifying potential breakout opportunities. When ATR values increase significantly, it suggests an expansion in volatility, which may indicate an upcoming breakout from a trading range. Look for breakouts above resistance or below support levels with higher than usual ATR values.
Scalping Strategies: For scalping strategies, where traders aim to profit from small price movements within a single trading session, knowing the typical DTR can help set reasonable profit targets and stop-loss levels.
Confirming Trend Strength: In day trading, you may encounter short-term trends. Use ATR to assess the strength of these trends. If the ATR is rising, it suggests a strong trend, while a declining ATR may indicate a weakening trend or potential reversal.
Risk Management: Both ATR and DTR can aid in risk management. Determine your position size based on the current ATR value to align it with your risk tolerance. Additionally, understanding the DTR can help you avoid overtrading during periods of low volatility.
Combine with Other Indicators: ATR and DTR work well when used in conjunction with other technical indicators like moving averages, Bollinger Bands, or RSI. Combining multiple indicators can provide a mor
Average True Range Trailing Mean [Alifer]Upgrade of the Average True Range default indicator by TradingView. It adds and plots a trailing mean to show periods of increased volatility more clearly.
ATR TRAILING MEAN
A trailing mean, also known as a moving average, is a statistical calculation used to smooth out data over time and identify trends or patterns in a time series.
In our indicator, it clearly shows when the ATR value spikes outside of it's average range, making it easier to identify periods of increased volatility.
Here's how the ATR Trailing Mean (atr_mean) is calculated:
atr_mean = ta.cum(atr) / (bar_index + 1) * atr_mult
The ta.cum() function calculates the cumulative sum of the ATR over all bars up to the current bar.
(bar_index + 1) represents the number of bars processed up to the current bar, including the current one.
By dividing the cumulative ATR ta.cum(atr) by (bar_index + 1) and then multiplying it by atr_mult (Multiplier), we obtain the ATR Trailing Mean value.
If atr_mult is set to 1.0, the ATR Trailing Mean will be equal to the simple average of the ATR values, and it will follow the ATR's general trend.
However, if atr_mult is increased, the ATR Trailing Mean will react more strongly to the ATR's recent changes, making it more sensitive to short-term fluctuations.
On the other hand, reducing atr_mult will make the ATR Trailing Mean less responsive to recent changes in ATR, making it smoother and less prone to reacting to short-term volatility.
In summary, adjusting the atr_mult input allows traders to fine-tune the ATR Trailing Mean's responsiveness based on their preferred level of sensitivity to recent changes in market volatility.
IMPLEMENTATION IN A STRATEGY
You can easily implement this indicator in an existing strategy, to only enter positions when the ATR is above the ATR Trailing Mean (with Multiplier-adjusted sensitivity). To do so, add the following lines of codes.
Under Inputs:
length = input.int(title="Length", defval=20, minval=1)
atr_mult = input.float(defval=1.0, step = 0.1, title = "Multiplier", tooltip = "Adjust the sensitivity of the ATR Trailing Mean line.")
smoothing = input.string(title="Smoothing", defval="RMA", options= )
ma_function(source, length) =>
switch smoothing
"RMA" => ta.rma(source, length)
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
=> ta.wma(source, length)
This will allow you to define the Length of the ATR (lookback length over which the ATR is calculated), the Multiplier to adjust the Trailing Mean's sensitivity and the type of Smoothing to be used for the ATR.
Under Calculations:
atr= ma_function(ta.tr(true), length)
atr_mean = ta.cum(atr) / (bar_index+1) * atr_mult
This will calculate the ATR based on Length and Smoothing, and the resulting ATR Trailing Mean.
Under Entry Conditions, add the following to your existing conditions:
and atr > atr_mean
This will make it so that entries are only triggered when the ATR is above the ATR Trailing Mean (adjusted by the Multiplier value you defined earlier).
ATR - DEFINITION AND HISTORY
The Average True Range (ATR) is a technical indicator used to measure market volatility, regardless of the direction of the price. It was developed by J. Welles Wilder and introduced in his book "New Concepts in Technical Trading Systems" in 1978. ATR provides valuable insights into the degree of price movement or volatility experienced by a financial asset, such as a stock, currency pair, commodity, or cryptocurrency, over a specific period.
ATR - CALCULATION AND USAGE
The ATR calculation involves three components:
1 — True Range (TR): The True Range is a measure of the asset's price movement for a given period. It takes into account the following factors:
The difference between the high and low prices of the current period.
The absolute value of the difference between the high price of the current period and the closing price of the previous period.
The absolute value of the difference between the low price of the current period and the closing price of the previous period.
Mathematically, the True Range (TR) for the current period is calculated as follows:
TR = max(high - low, abs(high - previous_close), abs(low - previous_close))
2 — ATR Calculation: The ATR is calculated as a Moving Average (MA) of the True Range over a specified period.
The ATR is calculated as follows:
ATR = MA(TR, length)
3 — ATR Interpretation: The ATR value represents the average volatility of the asset over the chosen period. Higher ATR values indicate higher volatility, while lower ATR values suggest lower volatility.
Traders and investors can use ATR in various ways:
Setting Stop Loss and Take Profit Levels: ATR can help determine appropriate stop-loss and take-profit levels in trading strategies. A larger ATR value might require wider stop-loss levels to allow for the asset's natural price fluctuations, while a smaller ATR value might allow for tighter stop-loss levels.
Identifying Market Volatility: A sharp increase in ATR might indicate heightened market uncertainty or the potential for significant price movements. Conversely, a decreasing ATR might suggest a period of low volatility and possible consolidation.
Comparing Volatility Between Assets: Since ATR uses absolute values, it shouldn't be used to compare volatility between different assets, as assets with higher prices will consistently have higher ATR values, while assets with lower prices will consistently have lower ATR values. However, the addition of a trailing mean makes such a comparison possible. An asset whose ATR is consistently close to its ATR Trailing Mean will have a lower volatility than an asset whose ATR continuously moves far above and below its ATR Trailing Mean. This can help traders and investors decide which markets to trade based on their risk tolerance and trading strategies.
Determining Position Size: ATR can be used to adjust position sizes, taking into account the asset's volatility. Smaller position sizes might be appropriate for more volatile assets to manage risk effectively.