Open Price Regression Modelnput Variables: The user can adjust the lookbackPeriod and m (multiplier) inputs. The lookbackPeriod specifies the number of previous bars used for regression calculations, and m is used to calculate the confidence interval width.
Calculate Regression Model: The code extracts open, high, low, and close prices for the current candle. It then performs regression calculations for high, low, and close prices based on the open prices.
Calculate Predicted Prices: Using the regression coefficients and intercepts, the code calculates predicted high, low, and close prices based on the current open price.
Calculate Confidence Interval: The code computes the standard errors of the regression for high, low, and close prices and multiplies them by the specified confidence level multiplier (m) to determine the width of the confidence intervals.
Plotting: The predicted high, low, and close prices are plotted with different colors. Additionally, confidence intervals are plotted around the predicted prices using lines.
Implications and Trading Advantage:
The Open Price Regression Model aims to predict future high, low, and close prices based on the current open price. Traders can use the predicted values and confidence intervals as potential price targets and volatility measures. Traders can consider taking long or short positions based on whether the current open price is below or above the predicted prices. Can be used on a daily time frame to forecast the day's high and low and use this levels are horizontal price levels on lower timeframes.
Forecasting
Main Market Opener Breakout [RH]Based on my observations while analyzing the crypto and forex charts, particularly BTCUSDT and EURUSD, I have noticed that the prices exhibit significant movements during most stock market sessions, particularly during New York main market session.
With the aim of capturing these moves, I embarked on extensive research. Through this research, I discovered that by considering the very first "15m" or "30m" candle of the main market trading session and marking that first candle's high and low points, we can create potential trigger points.
A break above the high point indicates a bullish signal, while a break below the low point suggests a bearish signal. To further refine our analysis and filter out some noise, we can incorporate the Average True Range (ATR) value of that candle.
Candle time is very important here. We will mark the candle when the actual trading begins in New York stock exchange. The trading hours for the New York Stock Exchange (NYSE) typically begin at 9:30 AM and end at 4:00 PM Eastern Time (ET), Monday through Friday. This is known as the "NYSE Regular Trading Session." However, it's important to note that there are also pre-market and after-hours trading sessions that occur outside of these core hours. We will not consider these pre and after-hours.
Example:
First break-above and break-below is marked automatically and alerts are also available for first breaks.
Example:
I have also added the option to add the, London Stock Exchange Main Market and Tokyo Stock Exchange Regular Trading Session. You can add those sessions also and test with different symbols.
Stocks symbols from different stock exchanges just mark the very first candle of the day(main market trading session).
Alerts are available.
Wick-to-Body Ratio Trend Forecast | Flux ChartsThe Wick-to-Body Ratio Trend Forecast Indicator aims to forecast potential movements following the last closed candle using the wick-to-body ratio. The script identifies those candles within the loopback period with a ratio matching that of the last closed candle and provides an analysis of their trends.
➡️ USAGE
Wick-to-body ratios can be used in many strategies. The most common use in stock trading is to discern bullish or bearish sentiment. This indicator extends candle ratios, revealing previous patterns that follow a candle with a similar ratio. The most basic use of this indicator is the single forecast line.
➡️ FORECASTING SYSTEM
This line displays a compilation of the averages of all the previous trends resulting from those historical candles with a matching ratio. It shows the average movements of the trends as well as the 'strength' of the trend. The 'strength' of the trend is a gradient that is blue when the trend deviates more from the average and red when it deviates less.
Chart: AMEX:SPY 30 min; Indicator Settings: Loopback 700, Previous Trends ON
The color-coded deviation is visible in this image of the indicator with the default settings (except for Forecast Lines > Previous Trends ), and the trend line grows bluer as the past patterns deviate more.
➡️ ADAPTIVE ACCEPTABLE RANGE
The algorithm looks back at every candle within the loopback period to find candles that match the last closed candle. The algorithm adaptively changes the acceptable range to which a candle can differ from the ratio of the last closed candle. The algorithm will never have more than 15 historical points used, as it will lower its sensitivity before it reaches that point.
Chart: BITSTAMP:BTCUSD 5 min; Indicator Settings: Loopback 700
Here is the BTC chart on 7/6/23 with default settings except for the loopback period at 700.
Chart: BITSTAMP:BTCUSD 5 min; Indicator Settings: Loopback 200
Here is the exact same chart with a loopback period of 200. While the first ratio for both is the same, a new ratio is revealed for the chart with a loopback of only 200 because the adaptive range is adjusted in the algorithm to find an acceptable number of reference points. Note the table in the top right however, while the algorithm adapts the acceptable range between the current ratio and historical ones to find reference points, there is a threshold at which candles will be considered too inaccurate to be considered. This prevents meaningless associations between candles due to a particularly rare ratio. This threshold can be adjusted in the settings through "Default Accuracy".
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.
Algo Targets [Premium]The Algo Targets indicator includes a suite of tools that attempt to identify market maker liquidity targets in advance.
These levels can be used by traders to determine:
1. future support/resistance
2. entries/exits
3. directional bias
4. potential reversal levels
5. pullback targets
The script uses a proprietary prediction model based on specific candle sequences, historical moves and volatility projections.
These tools have been live tested across a variety of instruments and timeframes, but should be backtested against your preferred ticker for best performance.
Primary Features:
1. Anchors
Anchors are derived from a simple, but powerful, three-candle breakout pattern. We have found that this pattern, when combined with the relative position to previous Anchor patterns on the chart, gives us clues to predicting future price structure.
Common use case: The simplest way to trade Anchors is to know that price *almost always* makes a return visit. This can be a useful tool for reversal traders. Additionally, Anchors often occur just before strong directional momentum. This can be useful for trend traders looking for entry signals.
Power User feature: Projected Ranges can be enabled in Settings. Each Anchor provides a Retracement leg (measured as the midpoint between the last two Anchors) and an Expansion leg (measured as twice the size of the Retracement leg, projected in the opposite direction). If Projected Ranges are enabled, the directional bias is also highlighted within the range, making it easy to spot at a glance.
Caveats: Expansion legs require patience and solid risk management. Additionally, the Expansion leg contains an additional Trigger level which price MUST cross before we consider the Expansion leg to be "in play" as a valid price target. This Trigger is marked on each Expansion legs as a dotted line.
Please note, Anchors require a 3 candle lookback before they are printed to the chart.
2. Target Zones
Target Zones are an advanced feature, and can be enabled in the Settings panel.
Each Target Zone consists of three levels:
Trigger — This the level closest to the current price. We expect it to act as a support/resistance level until price breaks through.
Target — This is the level farthest from the price. This is how far price is likely to move AFTER crossing the Trigger.
Midpoint — This is the level between the Trigger and Target. If price enters a Target Zone and wicks off of the Midpoint line, it’s usually a reversal signal. In this case we would cut our trade, consider the Target “filled” and potentially enter a reversal trade.
Common use case: When prices crosses a Trigger into a Target Zone, we consider that Target level to be “unlocked.” Our expectation is that price will gravitate toward the Target.
Power User feature: There are many strategies that a trader can build around Target Zones. One of our favorites is to use Targets strictly as reversal entries. On ranging days, price will often wick off of a Target level, before making a quick move in the opposite direction.
Caveats: After a Target is unlocked, it may be reached within the next few bars, or it may be saved by the market algorithms for later. Keep an eye on the Midpoint for potential reversals, and as always, proper risk management is key.
IMPORTANT: The presence of a Target Zone on the chart is neither bullish not bearish by itself. We consider the Target to be in play if, AND ONLY IF, price has crossed the Trigger level.
3. Pullback Levels
Pullback Levels are algorithmically detected return levels. They usually act as a strong draw on price, and often appear just before a pullback in price.
Common use case: The simplest way to use Pullbacks is to look for ones that have not been filled, either from a previous day or in after-hours/pre-market. We use them for confirmation bias along with Anchors and unlocked Targets.
Power User feature: For day trading, we set Alerts on our favorite tickers for any detected Pullbacks on the 5 min chart. This usually gives us plenty of time to review the chart for a possible day trade entry.
Settings:
All features are customizable, including color, line length and visibility. This lets you keep your chart as clean as you like, while only displaying additional data when it is needed.
Alerts:
Alerts can be set for all features, with the ability to set bearish and bullish alerts separately, depending on your trading preference. It is recommended to use "Once Per Bar Close" when you create an alert.
Trend Reversal PredictorTrend Reversal Predictor - An Indicator for Identifying Potential Trend Reversals
This indicator is designed to help traders identify potential trend reversals in the financial markets. It combines multiple criteria including trend identification, volume analysis, average net price movement, and RSI (Relative Strength Index) crossing its moving average to highlight potential danger zones where a trend reversal may occur.
How it Works:
1. Trend Identification: The script uses the Hull Moving Average (HMA) and Parabolic SAR to determine the prevailing trend. The HMA is a smoothing indicator that reduces lag and provides a clear representation of the trend direction.
2. Danger Zone Identification: The script analyzes volume-related metrics and average net price movement to identify potential danger zones where trend reversals might occur. It calculates the rate of change of buying and selling volume and compares it to their respective averages. Additionally, it considers the average net price movement over a specified period.
3. RSI Integration: The script incorporates the RSI, a momentum oscillator, to evaluate overbought and oversold conditions. It calculates the RSI based on user-defined length and source inputs. It also calculates the RSI's moving average using different types of moving averages (SMA, EMA, etc.) specified by the user.
4. Trend Ending Prediction: By combining the conditions of trend identification, volume analysis, average net price movement, and RSI crossing its moving average, the script identifies potential trend reversal points or danger zones. These danger zones are highlighted on the chart using different colors to represent potential uptrend and downtrend reversals.
How to Use:
2. Danger Zone Highlighting: The script highlights potential danger zones on the chart using orange color for uptrend danger zones and blue color for downtrend danger zones. These danger zones suggest areas where a trend reversal may occur.
3. Additional Analysis: Traders can further analyze the danger zones based on their trading strategy and risk management. Consider other technical indicators, price action, and fundamental factors to make informed trading decisions.
Please note that this script provides potential signals for trend reversals but does not guarantee their occurrence. It is important to use this indicator in conjunction with other technical analysis tools and risk management techniques to make well-informed trading decisions.
By understanding the underlying concepts and using the provided visual cues, traders can leverage the Trend Reversal Predictor to potentially identify potential trend reversals in the markets.
Cycles AnalysisI strongly believe in cycles, so I wanted to create something that would give a visual representation of bull/bear markets and give a prediction based on the previous data. It's up to you how to decide what is a bull/bear cycle. There is no single rule for all assets because 20% drop in SP500 starts a bear market in traditional markets, while 35% drop for Bitcoin is a Tuesday. You have two options on how to decide when markets turn: either by a % change (traditional definition) or if there is no new high/low after X days. A softer version to show periods of no new highs/lows is to use the Stagnation option. Stagnation periods hava the same logic as the cycle change by X days: if there is no new high/low then we treat this period as a stagnation. The difference is that stagnation periods do not change cycle directions and do not participate in calculations.
The script also draws a possible "predictions" zone where the current cycle might end up. There is no magic here, it just takes previous cycles' size to draw the possible boundaries. If you decide to use percentiles then the box area will be taken from the percentiles calculations, otherwise it will come from the full data. "x" in the predictions zone represents a target mean (average) value, "o" represents a target median value.
A few things to keep in mind:
- this script is not supposed to be used in trading. It was created for analysis. It repaints. And when I say "it repaints" - it might like repaint the last 6 months of data if a new low comes and we are in a stagnation period (aka not a financial advice).
- it doesn't work with replays as it does calculations only once on the last candle.
- you need at least 3 periods to be able to calculate percentiles. And after this it will remove at least 1 period on each side. Which means that 90 percentile will not be a real 90 percentile until you have enough periods for it to be (20 in this specific case).
- it assumes that a year = 360 days, and a month = 30 days. So the duration presentation might not be exact, until you move to the day level.
- I had macro analysis in mind when I created the script, but nothing stops you from using it in a 1m time frame for BTC. Just change the time duration presentation.
- the last period is not finished, so it doesn't participate in calculations.
K's Pivot PointsPivot points are a popular technical analysis tool used by traders to identify potential levels of support and resistance in a given timeframe. Pivot points are derived from previous price action and are used to estimate potential price levels where an asset may experience a reversal, breakout, or significant price movement.
The calculation of pivot points involves a simple formula that takes into account the high, low, and close prices from the previous trading session or a specific period. The most commonly used pivot point calculation method is the "Standard" or "Classic" method. Here's the formula:
Pivot Point (P) = (High + Low + Close) / 3
In addition to the pivot point itself, several support and resistance levels are calculated based on the pivot point value.
K's Pivot Points try to enhance them by incorporating multiple elements and by applying a re-integration strategy to validate two events:
* Found_Support: This event represents a basing market that is bound to recover or at least shape a bounce.
* Found_Resistance: This event represents a toppish market that is bound to consolidate or at least shape a pause.
K's Pivot Points are calculated following these steps:
1. Calculate the highest of highs for the previous 24 periods (preferably hours).
2. Calculate the lowest of lows for the previous 24 periods (preferably hours).
3. Calculate a 24-period (preferably hours) moving average of the close price.
4. Calculate K's Pivot Point as the average between the three previous step.
5. To find the support, use this formula: Support = (Lowest K's pivot point of the last 12 periods * 2) - Step 1
6. To find the resistance, use this formula: Resistance = (Highest K's pivot point of the last 12 periods * 2) - Step 2
The re-integration strategy to find support and resistance areas is as follows:
* A support has been found if the market breaks the support and shapes a close above it afterwards.
* A resistance has been found if the market surpasses the resistance and shapes a close below it afterwards.
The lookback period (whether 24 and 12) can be modified but the default versions work well.
ATR profit and loss linesWhat is ATR?
Taking a candlestick, the following 3 transactions are calculated:
1-The difference between the high of the day and the low of the day
2-The difference between today's high and yesterday's close
3-The difference between today's low and yesterday's close
Atr takes the average of these 14-day candlesticks after making their calculations and it predicts how high or low a candle can go and these give us support and resistance helps with points
If you have noticed a rise in your chart and have no idea how high it will go, you can use Atr profit and loss lines.
The red zone is the stop point, the blue zones are the snow zones.
Must be used with macd. macd is validator.
There is an increase in your chart, you opened the atr profit and loss lines upwards and if macd gives you an increase, it is recommended that you enter the trade at that time. It is recommended to increase your loss line 1 step in the direction of profit every 2 profit breaks on atr profit and loss lines.
ATR Nedir?
Bir mum barı ele alınarak şu 3 işlem hesaplanır:
1-Günün yükseği ile günün düşüğü farkı
2-Günün yükseği ile dünün kapanışının farkı
3-Günün düşüğü ile dünkü kapanışın farkı
ATR ise 14 günlük bu mum barlarının hesaplarını yaptıktan sonra ortalamasını alır ve bir mumum ne kadar yükselip düşebileceği konusunda tahmin verir ve bunlar bize destek ve direnç noktaları konusunda yardımcı olur
Eğer grafiğinizde bir yükseliş farketmişseniz ne kadar yükseleceği konusunda fikriniz yoksa Atr kar zarar çizgilerini kullanabilirsiniz.
Kırmızı bölge durdurma noktası,mavi bölgeler kar bölgeleridir.
Macd ile birlikte kullanılmalıdır.macd doğrulayıcıdır.
Grafiğinizde yükseliş var,atr kar zarar çizgilerini yukarı yönlü açtınız ve macd size yükseliş veriyorsa işte o sırada işleme girmeniz tavsiye edilir.atr kar zarar çizgilerinde her 2 kar kırılımında bir zarar çizginizi kar yönünde 1 kademe arttırmanız önerilir
ATR% multiple from 50-MABig credits again to TradingView User @Fred6724 to develop this tool on my behalf to our community.
How can one measure stock price extension?
In my view, decision-making in the trading business should rely on quantifiable data. A method I personally employ for scaling out and taking partial profits involves setting a threshold based on the multiple of Average True Range (ATR%) from the 50-day Simple Moving Average (SMA). For instance, I find it beneficial to start taking profits when positions exceed 7-10 times the ATR% from the 50-SMA. This practice helps prevent second-guessing or becoming emotionally attached to any particular position.
A relevant example illustrating this concept is the case of PLTR, SOFI, TSLA, VRT, NVDA which experienced a stall and subsequent decline after exceeding 10 times the ATR% from its 50-day moving average.
While there is no foolproof profit-taking mechanism that guarantees selling at the absolute market peak, employing this strategy can be a valuable tool for scaling out profits during extended periods to minimize potential losses.
The formula employed is as below:
A = ATR% = $ ATR / $ Last Done Price
B = % Gain From 50-MA
B / A = ATR% multiple from 50-MA
Algorganic Buy / Sell / X-Exit Signal [UOI]The " Algorganic Buy / Sell / X-Exit Signal " indicator is an Algorithmic Machine Learning-based superpack indicator that generates buy and sell signals for trading in financial markets. It is packed with conditional statemnets and filters to avoid false signals and utilizes Nearest Neighbors Model (NNM) algorithm with a distance metric to determine the direction of the price movement and make predictions according to the next past 12 bars for the next 4 to 8 bars in whatever chart frame the trader is using. Ideal time frames are 2, 3, 5 and 15 minutes for option traders and scalpers can use it on the 1 minute chart.
The indicator takes into account various technical indicators such as Relative Strength Index (RSI), Average Directional Index (ADX), CCI, Stochastic, ATR and major EMAs and has two optimizer for confirmation. These indicators are used as features to train the Machine Learning model and at the same time to provide better buy and sell signals with multiple "if" conditions.
The NNM algorithm calculates the distance between the current data point and historical data points. It works like a mixture of ATR and ADX. By considering the nearest neighbors, the model predicts the direction of future price movement. The predictions are filtered using additional criteria, including volatility, trend detection, and, ATR and ADX values.
The indicator provides visual signals on the chart, indicating when to enter a long (buy) or short (sell) position but traders should also be mindful of support and resistance levels and oversold and overbought conditions and the higher timeframe signal. It also offers options for dynamic exits based on specific conditions or fixed exits after a predefined number of bars.
Additionally, the indicator includes filters based on EMA (Exponential Moving Average), SMA (Simple Moving Average), and a kernel regression technique. These filters help to refine the signals and reduce noise in the predictions.
The indicator also includes alert functionalities to notify traders of entry and exit points.
The Algorganic is a versatile trading indicator that provides buy and sell signals based on the analysis of various popular technical indicators in combination with Machine Learning techniques with technical analysis and support and resistance levels to generate trading signals, helping traders make informed decisions. This powerful tool overlays on your price chart and can be used across different markets and timeframes.
Key Features:
1. Dynamic EMA Support and Resistance Levels: You can define the top and bottom lines as either 'Support' or 'Resistance'. These levels are calculated using an Exponential Moving Average (EMA) and Average True Range (ATR) inputs.
2. Exponential Moving Average (EMA): The EMA is calculated based on the EMA length input provided by the user, with a default setting of 21 periods.
3. Average True Range (ATR): The ATR is calculated with a default length of 14 periods and is used in determining the support and resistance levels.
4. Buy/Sell Signals: The indicator provides buy and sell signals when the price hits the defined support or resistance levels. These signals are represented by X-shapes plotted on the chart, with green indicating a hit on support (buy signal), and red indicating a hit on resistance (sell signal).
5. Trend Strength Analysis: It uses a unique combination of technical indicators like MACD, RSI, Velocity, CCI, Stochastic, and a custom trend strength indicator. The settings for each of these indicators can be customized according to user preference.
6. Bull/Bear Tug of War: This feature paints the little triangles green if the majority of the indicators are bullish, and red if the majority are bearish. This is a powerful feature to visualize the overall market sentiment.
7. Buy/Sell Alert: The script generates alerts for potential buy and sell signals. Alerts contain information about the signal type, ticker symbol, and current price.
8. Plot EMA Line: This indicator includes an option to display an additional EMA line on the chart, which can be toggled on or off as per the user's choice.
How to use it:
You basically need to master riding this machine. There are a lot of conditions that have been added to make sure novice traders do not make a mistake. The image below shows how to use the indicator. Pay attention to colors:
Longer time frame you should pay attention to the EMA lines and over bought and oversold levels in the optimizers. here is an example:
And another example on 15 min timeframe:
On top of all the above, this indicator has a built-in advanced support and resistance tool that dynamically identifies pivot points and their corresponding support and resistance zones based on the historical data of a given asset. So what this means is that you should ignore a buy signal very close to a resistance and only enter when the resistance is broken.
Here are the configurable support and resistance parameters:
1. Pivot Period : The period considered for pivot detection. The range is between 4 to 30 days with a default value of 25.
2. Source: The price point to be used as the source for pivot detection. You can choose between 'High/Low' and 'Close/Open'.
3. Maximum Number of Pivot: This defines the maximum number of pivot points that the algorithm will store. This can be anywhere from 5 to 100, with 45 as the default value.
4. Maximum Channel Width % : This sets the maximum width of the support/resistance channel as a percentage. Minimum value is 1, with a default value of 10. Higher numbers capture longer timeframe and lower number shorter timeframes. For scalping use 5 or 8 for swing use 12 or 14.
5. Maximum Number of Lines: This sets the maximum number of support/resistance lines displayed on the chart. It ranges from 1 to 15 with a default of 10.
6. Minimum Strength: This is the minimum strength of the support or resistance line, defined by the number of times price touches it. It ranges from 1 to 10 with a default of 2.
7. Line Style: This option allows the user to choose the line style between 'Solid', 'Dotted', and 'Dashed'.
8. Line Width: This allows users to choose the width of the line ranging from 1 to 4.
9. Resistance Color and Support Color: These define the colors for the resistance and support lines.
The script also includes functions to calculate if the price has crossed over or under a support or resistance line.
The S/R assist uses these inputs to calculate pivot highs and lows, create support and resistance zones, and plot these on the chart. When the price crosses a support or resistance line, the script can identify this as a possible trading signal. The lines' strengths are also calculated, and only those with strengths above the user-defined minimum are drawn on the chart.
ICT ADR Levels - Judas x Daily Range Meter°The 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 .
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 this level: what Time of the day is it? what day of the week? what week of the month?
Let's consider the Time of the day. If one thinks about the Power of Three of the daily candle (Accumulation, Manipulation Distribution), it is highly unlikely that a Manipulation event will happen later in the day – whereas seeing the 1/3ADR hold in London session or New York open gives undeniable edge to an Analyst.
Apart from the 1/3ADR level seen from a Judas perspective, the opposing 1/3 level, and the full ADR 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, ... Study them, and find what works for you!
Features:
Display a table with the previous N days' ranges and the current ADR value
Decide whether to consider daily candles, or New York (00:00 to 00:00 NY Time) for the basis of the calculation
See the ADR Range, the ADR price levels and 1/3ADR price levels by hovering over the text labels
Plot the ADR levels from the Midnight Anchor, or as offset markers on the side for a cleaner look
Show/Hide all elements individually
Examples:
– CBOT_MINI:YM1! at Equity Open
– INDEX:BTCUSD Perfect Buy Day Signature
– FX:EURUSD Clean Break = No Judas
– TSX:GC Repeated Attempts = Liquidity Engineering
Bitcoin Limited Growth ModelThe Bitcoin Limeted Growth is a model proposed by QuantMario that offers an alternative approach to estimating Bitcoin's price based on the Stock-to-Flow (S2F) ratio. This model takes into account the limitations of the traditional S2F model and introduces refinements to enhance its analysis.
The S2F model is commonly used to analyze Bitcoin's price by considering the scarcity of the asset, measured by the stock (existing supply) relative to the flow (new supply). However, the LGS-S2F Bitcoin Price Formula recognizes the need for improvements and presents an updated perspective on Bitcoin's price dynamics.
Invalidation of the Normal S2F Model:
The normal S2F model has faced criticisms and challenges. One of the limitations is its assumption of a linear relationship between the S2F ratio and Bitcoin's price, overlooking potential nonlinearities and other market dynamics. Additionally, the normal S2F model does not account for external influences, such as market sentiment, regulatory developments, and technological advancements, which can significantly impact Bitcoin's price.
Addressing the Issues:
The LGS-S2F Bitcoin Price Formula introduces refinements to address the limitations of the traditional S2F model. These refinements aim to provide a more comprehensive analysis of Bitcoin's price dynamics:
Nonlinearity: The LGS-S2F model recognizes that the relationship between the S2F ratio and Bitcoin's price may not be linear. It incorporates a logistic growth function that considers the diminishing returns of scarcity and the saturation of market demand.
Data Analysis: The LGS-S2F model employs statistical analysis and data-driven techniques to validate its predictions. It leverages historical data and econometric modeling to support its analysis of Bitcoin's price.
Utility:
The LGS-S2F Bitcoin Price Formula offers insights for traders and investors in the cryptocurrency market. By incorporating a more refined approach to analyzing Bitcoin's price, this model provides an alternative perspective. It allows market participants to consider various factors beyond the S2F ratio alone, potentially aiding in their decision-making processes.
Key Features:
Adjustable Coefficients
Sigma calculation methods: Normal or Stdev
Credit:
The LGS-S2F Bitcoin Price Formula was developed by QuantMario, who has contributed to the field of cryptocurrency analysis through their research and modeling efforts.
FalconRed 5 EMA Indicator (Powerofstocks)Improved version:
This indicator is based on Subhashish Pani's "Power of Stocks" 5 EMA Strategy, which aims to identify potential buying and selling opportunities in the market. The indicator plots the 5 EMA (Exponential Moving Average) and generates Buy/Sell signals with corresponding Target and Stoploss levels.
Subhashish Pani's 5 EMA Strategy is a straightforward approach. For intraday trading, a 5-minute timeframe is recommended for selling. In this strategy, you can choose to sell futures, sell calls, or buy puts as part of your selling strategy. The goal is to capture market tops by selling at the peak, anticipating a reversal for profitable trades. Although this strategy may result in frequent stop losses, they are typically small, while the minimum target should be at least three times the risk taken. By staying aligned with the trend, significant profits can be achieved. Subhashish Pani claims that this strategy has a 60% success rate.
Strategy for Selling (Short Future/Call/Stock or Buy Put):
1. When a candle completely closes above the 5 EMA (with no part of the candle touching the 5 EMA), it is considered an Alert Candle.
2. If the next candle is also entirely above the 5 EMA and does not break the low of the previous Alert Candle, ignore the previous Alert Candle and consider the new candle as the new Alert Candle.
3. Continue shifting the Alert Candle in this manner. However, when the next candle breaks the low of the Alert Candle, take a short trade (e.g., short futures, calls, stocks, or buy puts).
4. Set the stop loss above the high of the Alert Candle, and the minimum target should be 1:3 (at least three times the stop loss).
Strategy for Buying (Buy Future/Call/Stock or Sell Put):
1. When a candle completely closes below the 5 EMA (with no part of the candle touching the 5 EMA), it is considered an Alert Candle.
2. If the next candle is also entirely below the 5 EMA and does not break the high of the previous Alert Candle, ignore the previous Alert Candle and consider the new candle as the new Alert Candle.
3. Continue shifting the Alert Candle in this manner. However, when the next candle breaks the high of the Alert Candle, take a long trade (e.g., buy futures, calls, stocks, or sell puts).
4. Set the stop loss below the low of the Alert Candle, and the minimum target should be 1:3 (at least three times the stop loss).
Buy/Sell with Additional Conditions:
An additional condition is added to the buying/selling strategy:
1. Check if the closing price of the current candle is lower than the closing price of the Alert Candle for selling, or higher than the closing price of the Alert Candle for buying.
- This condition aims to filter out false moves, potentially preventing entering trades based on temporary fluctuations. However, it may cause you to miss out on significant moves, as you will enter trades after the candle closes, rather than at the breakout point.
Note: According to Subhashish Pani, the recommended timeframe for intraday buying is 15 minutes. However, this strategy can also be applied to positional/swing trading. If used on a monthly timeframe, it can be beneficial for long-term investing as well. The rules remain the same for all types of trades and timeframes.
If you need a deeper understanding of this strategy, you can search for "Subhashish Pani's (Power of Stocks) 5 EMA Strategy" on YouTube for further explanations.
Note: This strategy is not limited to intraday trading and can be applied to positional/swing
Probability Box Rule of Thirds [PPI]█ Probability Box Rule of Thirds
The Probability Box Rule of Thirds , is a visual indicator that helps traders identify possible overbought and oversold conditions. It does this by dividing the price range – highest high minus the lowest low of a given lookback period or date range – into thirds. Each third has distinct probability characteristics and when combined represent a probability box.
We have spent years refining the probability box concept, and have previously published a How To on Trading View – "How to Trade Probability Ranges – The Critical Rule of 1/3" which can be found here:
To quickly summarize the How To – when using the Rule of Thirds , you are using a combination of statistics, probabilities of success, and prior price action to determine when to enter a trade. The visual range division helps remove subjectivity and clearly shows when the trading odds are stacked in your favor. By identifying and taking higher probability trades, you have a higher chance of success as trading is all about probability and risk management.
Implementing the Rule of Thirds starts with finding an instrument that is consolidating and identifying the nearest important support and resistance levels based on your targeted trading timeframe or lookback period.
The range between the support and resistance levels is divided into thirds to form three zones within the consolidation range.
When going LONG , you want to BUY in the bottom third of the range. Once you buy, your objective is to hold during the middle third and sell when the price enters the top third.
When you buy in the lower third, there's a 66.6% probability of success. If you buy in the middle third, you only have a 50% / 50% chance of success. Going long in the top third of the range gives you a 33.3% chance of success as you are already close to the identified resistance level.
When going SHORT , the sequence and odds are reversed. You want to SELL in the top third of the range, hold the middle third and exit in the bottom third of the range. This gives you a 66.6% chance of success when entering in the top third, a 50% / 50% chance when entering in the middle third, and a 33.3% chance in the bottom third given you are already close to the identified support level.
When the price lies in the middle third, the even 50% / 50% odds provide no probability edge and a trader is better off waiting until the price reaches the upper or lower thirds of the price range.
The Rule of Thirds allows us to quickly visually evaluate trades based on probabilities, selectively enter trades that have the highest odds of success, and avoid likely losing trades. The Rule of Thirds gives you confidence to hold trades based on prior trading ranges and provides clear levels where the prices are likely to either reverse or start trending.
The Probability Box Rule of Thirds automatically implements the first two steps of the Rule of Thirds by using the highest high and lowest low of a given lookback period to identify the support and resistance levels, and automatically divides the range into thirds. The rest of the Rule of Thirds rules remain the same.
Just having the price within the bottom thirds or top thirds, however, does not mean the price will immediately reverse. The GE chart below is an example of a stock that remained 'stuck' in the upper thirds of the price range for an extended amount of time:
And the CVS chart below is an example where the price is 'stuck' in the lower thirds of the price range:
While the price is in the upper or lower thirds, it is very important that the trader should use other indicators to identify when a significant trend reversal occurs. Once a trend reversal event happens, the trader either enters a trade AND/OR exits a trade if already in one.
When the price exceeds the bounds of the probability box, there are three possible outcomes – a strong continuation trend, the price consolidates around the probability box edge, or a trend reversal. Your favorite indicators will help determine which event is happening.
The CVS chart above is a good example of the probability box being exceeded with the last bar. The price exceeding the price range is temporary event as the price range will expand to encompass the revised price range on the next trading day.
█ Indicator Features
Each supported timeframe – Monthly, Weekly, and Daily – allows the selection of an appropriate lookback period for your trading style. The defaults are a good starting point for swing trading and long-term investing. You many need to experiment to find the optimal lookback period for your trading style.
Even if you only day trade, the Probability Box Rule of Thirds with the appropriate lookback periods can help you visualize the bigger picture of where the instrument is heading.
When viewing the charts, you can find the currently selected lookback period above the upper edge of the price range.
The indicator will display a dotted yellow line at 50% of the price range and show the line's value when requested.
The visibility of the actual thirds and border price values are controlled by the " Show Probability Box Values " checkbox. You may need to expand the chart's right margin to see the values.
The " Show Internal Labels " checkbox controls the display of the internal ⅓ Division labels and the percentage odds, along with the 50% label. This option by default is set to off.
The " Show Error Messages " checkbox controls the display of error messages and by default is turned on. Turn off to prevent error messages from being shown on intraday timeframes. Save as indicator default to prevent having to turn off this setting each time added to chart.
The color and transparency controls allow the user to modify the colors used for each third. The default settings are optimized for use with a DARK background.
█ Implementation Notes
IMPORTANT - the Probability Box Rule of Thirds is set up to only handle Monthly, Weekly and Daily charts. This is intentional as the indicator is designed to be used for safer multiple day and longer swing trades. When viewed on intraday charts, the indicator will be hidden.
The Probability Box Rule of Thirds uses a rolling window of the equivalent number of bars for the lookback period rather than relying on the bar starting and ending dates. This allows the use of a standard number of days in the selected lookback window across various instruments and ensures fast, efficient calculations.
The lookback periods are adjusted when non-standard timeframe multipliers are used – e.g., a 12M chart timeframe and a 3-year lookback period will result in a 3 bar lookback. Fractional bars in this calculation are rounded up and any incompatible lookback period and chart timeframe combination will generate a runtime error.
In summary, the Probability Box Rule of Thirds automates and visually identifies overbought and oversold areas, which combined with the Rule of Thirds probability risk profiles, increases your odds of success through better trade selections and higher confidence in your trades.
█ Disclaimer
There is substantial risk in trading. Losses incurred in trading can be significant. Only trade with money you can afford to lose. We make no claims whatsoever regarding the impact of past or future performance on your trading results.
Trendilo (OPEN-SOURCE)The provided code is a custom indicator called "Trendilo" in TradingView. It helps traders identify trends in price data. The indicator calculates the percentage change of the chosen price source and applies smoothing to it. Then, it calculates the Arnaud Legoux Moving Average (ALMA) of the smoothed percentage change. The ALMA is compared to a root mean square (RMS) band, which represents the expected range of the ALMA values. Based on this comparison, the indicator determines whether the trend is up, down, or sideways. The indicator line is plotted in a color corresponding to the trend direction. The indicator also provides the option to fill the area between the indicator line and the RMS band. Additionally, users can choose to color the bars of the chart based on the trend direction. Overall, the "Trendilo" indicator helps traders visually identify trends and potential reversals in the price data.
Futures All List / Sell SignalAs of May 2023, there are more than 180 usdt perpetual coins on the binance futures exchange. These coins are included in the indicator in lists of 40. They are sorted instantly in the table from largest to smallest. The sorting style can be changed in the indicator settings. This indicator collects RSI and TSI values at desired values. The result has a maximum value of 600. A value of 600 signals that the price will decrease or remain stable for a certain period of time. Generally, a short can be expected from the closest point to 600. If 3 separate lists are selected by using 3 of these indicators, 120 coins can be analyzed at the same time. Available in all time zones. Examine it in a 3-minute timeframe. The line inside the indicator draws the instantaneous values of the relevant coin.
RS Momentum singleThe RS Momentum single Symbol indicator is a custom indicator that compares the performance of a specific symbol to a base symbol and calculates the relative strength (RS) and relative momentum (RM) between them. The indicator is designed to help traders identify the current market phase of the symbol and make informed trading decisions based on the relative performance.
Description:
The indicator calculates the RS and RM values using the following steps:
1. It retrieves the closing prices of the symbol and the base symbol.
2. It calculates the Symbol-to-Base Ratio (SBR) by dividing the closing price of the symbol by the closing price of the base symbol.
3. It calculates two Simple Moving Averages (SMAs) of the SBR with different lengths (RS1 and RS2) and computes the RS value as a percentage difference between these SMAs.
4. It calculates two SMAs of the RS value with different lengths (RM1 and RM2) and computes the RM value as a percentage difference between these SMAs.
5. The indicator plots the RS and RM values on the chart and assigns a market phase label based on their values.
Usage:
The indicator can be used to identify the current market phase of the symbol, which can be one of the following:
1. Leading: The symbol is outperforming the base symbol, and the momentum is positive. This phase indicates a strong bullish trend, and traders might consider entering long positions.
2. Weakening: The symbol is outperforming the base symbol, but the momentum is negative. This phase suggests that the bullish trend is losing strength, and traders might consider taking profits or tightening their stop losses.
3. Lagging: The symbol is underperforming the base symbol, and the momentum is negative. This phase indicates a strong bearish trend, and traders might consider entering short positions.
4. Improving: The symbol is underperforming the base symbol, but the momentum is positive. This phase suggests that the bearish trend is losing strength, and traders might consider closing short positions or looking for potential long entries.
Optimal Settings:
The optimal settings for the indicator depend on the specific market and trading style. However, the default settings (RS1 Length = 10, RS2 Length = 30, RM1 Length = 1, RM2 Length = 9) can be a good starting point. Traders can experiment with different settings find the ones that work best for their trading strategy and market conditions.
It's important to note that this indicator should be used in conjunction with other technical analysis tools and market context to make well-informed trading decisions. No single indicator can guarantee success in trading, and it's crucial to use a combination of tools and techniques to manage risk and maximize potential returns.
Point and Figure Vertical Price TargetsThis is the first ever Point and Figure vertical price target script. Just hover over any column and the price target will be shown on the upper left hand side where the script name is. It is for both upside and downside vertical targets. It is based on a 3 box reversal, but that can be changed within the code, and the box size can be changed within the code or within the settings.
BBO-ALPHA-PHANTOMHello friends, this is the second time I am publishing this script, hopefully the description will be sufficient and you can use it reliably.
Script Description:
The script consists of several indicators and generates buy and sell signals based on their calculations. Here's a breakdown of the functions and indicators used in the script:
Moving Average Convergence Divergence (MACD):
Fast Length: The number of periods used for calculating the fast moving average.
Slow Length: The number of periods used for calculating the slow moving average.
Source: The price source used for calculations (default is the closing price).
Signal Smoothing: The number of periods used for smoothing the signal line.
Oscillator MA Type: The type of moving average used for the oscillator line (default is Exponential Moving Average).
Signal Line MA Type: The type of moving average used for the signal line (default is Exponential Moving Average).
Benefit: MACD is a trend-following momentum indicator that helps identify potential trend reversals, bullish or bearish market conditions, and generate buy and sell signals based on the crossovers of the oscillator and signal lines.
Relative Strength Index (RSI):
RSI Length: The number of periods used for calculating RSI.
RSI Source: The price source used for RSI calculations (default is (high + low + close) / 3).
MA Type: The type of moving average used for smoothing RSI values (default is Simple Moving Average).
MA Length: The number of periods used for smoothing RSI values.
Benefit: RSI is a momentum oscillator that measures the speed and change of price movements. It helps identify overbought and oversold conditions, potential trend reversals, and generate buy and sell signals based on the crossovers of RSI and its moving average.
Money Flow Index (MFI):
MFI Length: The number of periods used for calculating MFI.
Source: The price source used for MFI calculations (default is (high + low + close) / 3).
Benefit: MFI is a momentum indicator that uses both price and volume data to measure buying and selling pressure. It helps identify overbought and oversold conditions and potential trend reversals.
Directional Movement Index (DMI):
Signal Length: The number of periods used for smoothing the ADX line.
Length: The number of periods used for calculating DMI.
Benefit: DMI consists of three lines: ADX, +DI (Plus Directional Indicator), and -DI (Minus Directional Indicator). ADX measures the strength of a trend, while +DI and -DI indicate the direction of the trend. DMI helps identify trend strength, trend direction, and potential trend reversals.
Stochastic Oscillator:
SmoothK: The number of periods used for smoothing %K line.
SmoothD: The number of periods used for smoothing %D line.
Length RSI: The number of periods used for calculating RSI within Stochastic.
Length Stoch: The number of periods used for calculating Stochastic.
Benefit: Stochastic Oscillator is a momentum indicator that compares the closing price of an asset to its price range over a specific period. It helps identify overbought and oversold conditions and potential trend reversals.
Moving Averages (MA):
MA50: Simple Moving Average with a length of 50 periods.
MA200: Simple Moving Average with a length of 200 periods.
Benefit: Moving averages are commonly used to
Advantages of the script compared to common indicators:
Comprehensive analysis: The script combines several indicators such as MACD, RSI, MFI, DMI, Stochastic Oscillator and Moving Averages. It thus provides a broader and more comprehensive view of the market and its development.
Synergy of indicators: Using multiple indicators increases the reliability and confirmation of signals. Combining different indicators can provide potentially stronger and more accurate signals of a trend change.
Identifying Oversold and Overbought Levels: RSI, MFI and Stochastic Oscillator are used to identify oversold and overbought levels in the market. This can help uncover opportunities to buy or sell in line with these levels.
Identifying trends and their strength: DMI and Moving Averages help identify trends in the market and provide information about their strength. This can help traders in deciding the appropriate time to enter and exit the market.
Early signal generation: The script generates signals based on a combination of various indicators, which can help traders identify potential trading opportunities at an early stage.
The main thing for me is that it helps me from overtrading, I only trade when I get an alert or see it on the chart. I recommend
I find it best to trade in the 1h and 2h time frame. The shorter ones like 15min and 30min are perfect for me to get out of the position.
It is important to note that no indicator guarantees 100% accuracy in generating signals and trading on financial
Ratio To Average - The Quant ScienceRatio To Average - The Quant Science is a quantitative indicator that calculates the percentage ratio of the market price in relation to a reference average. The indicator allows the calculation of the ratio using four different types of averages: SMA, EMA, WMA, and HMA. The ratio is represented by a series of histograms that highlight periods when the ratio is positive (in green) and periods when the ratio is negative (in red).
What is the Ratio to Average?
The Ratio to Average is a measure that tracks the price movements with one of its averages, calculating how much the price is above or below its own average, in percentage terms.
USER INTERFACE
Lenght: it adjusts the number of bars to include in the calculation of the average.
Moving Average: it allows you to choose the type of average to use.
Color Up/Color Down : it allows you to choose the color of the indicator for positive and negative ratios.
Gann Angles EnterpriseThe Gann Angles indicator is a tool based on the methods developed by William Delbert Gann. It is designed to analyze and forecast price movements in financial markets. The indicator automatically calculates the angle scale using Gann, Herzhik, Heliker, and Borovski methods. Additionally, users have the option to manually input their own angle scale.
The Gann methods and those of his followers are based on representing price movements as geometric shapes such as triangles, squares, and circles. Gann believed that price movements adhere to certain patterns and that future changes can be predicted based on these geometric forms.
The Gann Angle indicator allows users to identify the angles of trend and their strength. It plots template lines with different angles of inclination on the price chart, representing support and resistance levels. These levels can be used to determine entry and exit points in the market, as well as to set stop-loss and profit levels.
When automatically calculating the angle scale, the indicator takes into account various factors such as the current trend, market volatility, and the period of analyzed data. It applies relevant formulas and algorithms to determine optimal angles of inclination and create a fan-like pattern of angles.
However, the indicator also provides the option for users to manually input their own angle scale. This allows analysts or traders to customize the indicator according to their own preferences and strategies.
Overall, the Gann Angle indicator is a powerful tool for technical analysis in financial markets. It helps identify key support and resistance levels and provides information about the trend and its strength. Combining the automatic calculation of the angle scale with the option to input a manual scale gives users flexibility and adaptability in using the indicator. They can consider their own preferences, experience, and unique market conditions when determining angles of inclination and support/resistance levels.
It is important to note that the effectiveness of the Gann Angle indicator, whether using an automatic or manual scale, depends on proper analysis and interpretation of the results. Users should have knowledge and understanding of Gann's methods to make informed decisions based on the data provided by the indicator.
In conclusion, the Gann Angle indicator with automatic and manual angle scale calculation provides users with a powerful tool for analyzing and forecasting price movements in financial markets. It combines the fundamental principles of William Delbert Gann's methods with flexibility and customization to meet the needs of various traders and analysts.
The different methods of calculating the scale give traders the flexibility to choose the follower's school they prefer.
The features of the indicator include:
Mandatory knowledge of Gann's methods.
Use as a template for drawing angles and fan patterns.
Selection of scale calculation options:
Heliker
Herzhik
Gann
Borovski
Manual input of the scale
Working principle:
The indicator is used as a template.
After installing the indicator and configuring it, the trader needs to draw a trend line (or a pre-drawn fan) along the desired angle(s).
Without changing the inclination, the trader simply moves this line to the desired extreme for further analysis.
ReversalThe primary objective of this indicator is to discern candles that exhibit characteristics suggestive of potential market reversals through the application of candlestick analysis. Extensive observation across various assets and timeframes has revealed the existence of a recurrent reversal pattern. This pattern typically manifests as a sequence of one to three candles that abruptly diverge from the prevailing price action or trend, offering a distinctive signal indicating a potential reversal.
By leveraging the insights gained from this observation, the indicator aims to assist traders in identifying these noteworthy candle patterns that hold the potential to indicate significant market shifts.
The indicator operates as follows: initially, it identifies the lowest close (in the case of a bullish reversal) or the highest close (in the case of a bearish reversal) within a specified number of previous candles, as determined by user input (referred to as "Candle Lookback").
Next, the indicator examines whether the closing price surpasses the high of the previously identified lowest (bullish reversal) or highest (bearish reversal) closed candle within a designated number of candles, as specified by the user (referred to as "Confirm Within").