Custom SMA Plot It creates a custom indicator named "Custom SMA Plot (CSP)" that overlays on a price chart. The indicator fetches the closing prices and calculates a 14-period simple moving average (SMA) of these prices. This SMA is then visually represented as a blue line, which starts from the SMA value of the bar 100 candles ago and extends to the current bar's SMA value. The line has a thickness of 1 unit.
When price breaks over wave go long.
When price breaks below wave go short.
Forecasting
Gaussian Detrended ReversionThis strategy, titled "Gaussian Detrended Reversion Strategy," aims to identify potential price reversals using the customized Gaussian Detrended Price Oscillator (GDPO) in combination with smoothed price cycles.
Key Elements of the Strategy:
GDPO Calculation: The strategy first calculates the Detrended Price Oscillator (DPO) by comparing the close price to an Exponential Moving Average (EMA) of a specified period. This calculation helps identify short-term price cycles by detrending the price data.
Gaussian Smoothing: The DPO values are then smoothed using the Arnaud Legoux Moving Average (ALMA), applying a Gaussian smoothing technique. This smoothed version of the DPO is intended to filter out noise and provide a clearer picture of price trends.
Entry and Exit Conditions: The strategy defines conditions for both long and short entry points as well as exit points. It looks for specific crossover events between the smoothed GDPO and its lagged version. The strategy enters a long position when the smoothed GDPO crosses above the lag and is negative, and exits the long position when the smoothed GDPO crosses below the lag or the zero line. Similarly, the strategy enters a short position when the smoothed GDPO crosses below the lag and is positive, and exits the short position when the smoothed GDPO crosses above the lag or the zero line.
Visualization: The smoothed GDPO and its lag are plotted on the chart using distinct colors. The zero line is also displayed as a reference point. Additionally, the chart background changes color when the strategy enters a long or short position. Cross markers are also plotted at the crossover points as exit cues.
Overall, this strategy aims to capture potential price reversals using the GDPO and Gaussian smoothing, with specific entry and exit conditions to guide trading decisions.
Market Sessions and TPO (+Forecast)This indicator "Market Sessions and TPO (+Forecast)" shows various market sessions alongside a TPO profile (presented as the traditional lettering system or as bars) and price forecast for the duration of the session.
Additionally, numerous statistics for the session are shown.
Features
Session open and close times presented in boxes
Session pre market and post market shown
TPO profile generated for each session (normal market hours only)
A forecast for the remained of the session is projected forward
Forecast can be augmented by ATR
Naked POCs remain on the chart until violated
Volume delta for the session shown
OI Change for the session shown (Binance sourced)
Total volume for the session shown
Price range for the session shown
The image above shows processes of the indicator.
Volume delta, OI change, total volume and session range are calculated and presented for each session.
Additionally, a TPO profile for the most recent session is shown, and a forecast for the remainder of the active session is shown.
The image above shows an alternative display method for the session forecast and TPO profile!
Additionally, the pre-market and post-market times are denoted by dashed boxes.
The image above exemplifies additional capabilities.
That's all for now; further updates to come and thank you for checking this out!
And a special thank you to @TradingView of course, for making all of this possible!
Daily Network Value to Transactions Signal (NVTS)
Quote of GlassNode ...
The NVT Signal (NVTS) is a modified version of the original NVT Ratio.
It uses a 90 day moving average of the daily transaction volume in the denominator instead of the raw daily transaction volume.
This moving average improves the ratio to better function as a leading indicator.
The Network Value to Transactions (NVT) Ratio is calculated by dividing the market cap by the transferred on-chain volume measured in USD.
GlassNode says the NVT Ratio was created by Willy Woo.
I have peaked into Glassnode and took their idea.
I also added a few more Moving Averages to select from, and the length can also be changed.
This script does not depend on Glassnode alone, instead I pulls data of several services...
CoinMarketCap
CoinMetrics
GlassNode
IntoTheBlock
Therefor we have more Tokens to select from.
I have also blocked some faulty data of each service.
If you get a study error of any kind then there is no data available,
or you on a wrong timeframe.
Best to use this script in a daily chart.
And keep in mind it pulls data of yesterday.
Therefor the plot is offset by 1 to the left.
The script will check each service if the data for the chart is available.
Market Cap is taken in the following order ...
CainMarketCap
GlassNode
CoinMetrics
Transaction volume as USD is taken in the following order ...
IntoTheBlock
CoinMetrics
GlassNode
Happy Trading!
Feigenbaum ProjectionsThe theory of price delivery per Feigenbaum projections is credited to TRSTNGLRD, this indicator aims to aid traders from all backgrounds to utilize projections for determination of potential future price moves.
What follows is the simplest description of where to anchor the projection:
As price delivers and clears higher high (buy side liquidity) then reverses to clear most recent low (sell side liquidity), this becomes the anchorage point for the Feigenbaum projection and is referred to as perturbation. The start and end points for the projection should be only those candle bodies that wholly exist within the range within the high and low that were cleared by the perturbation, this range of candle bodies is to be considered the "initial condition". Structure that appears as a broadening formation is one such price delivery occurrence that can be utilized with these projections.
The projected zones are all pre-configured by TRSTNs specifications per Feigenbaum but can be adjusted if the need arises.
Price is expected to expand beyond the initial condition and into the negative and positive target zones, accuracy diminishes with further expansion and reevaluation should occur when a new perturbation is discovered.
It's recommended to explore various timeframes to find a perturbation by which to anchor the next Feigenbaum projection.
I'll do my best to update this description with time as more discoveries are made and TRSTNGLRD provides more guidance and feedback on this indicator.
AI Trend Navigator [K-Neighbor]█ Overview
In the evolving landscape of trading and investment, the demand for sophisticated and reliable tools is ever-growing. The AI Trend Navigator is an indicator designed to meet this demand, providing valuable insights into market trends and potential future price movements. The AI Trend Navigator indicator is designed to predict market trends using the k-Nearest Neighbors (KNN) classifier.
By intelligently analyzing recent price actions and emphasizing similar values, it helps traders to navigate complex market conditions with confidence. It provides an advanced way to analyze trends, offering potentially more accurate predictions compared to simpler trend-following methods.
█ Calculations
KNN Moving Average Calculation: The core of the algorithm is a KNN Moving Average that computes the mean of the 'k' closest values to a target within a specified window size. It does this by iterating through the window, calculating the absolute differences between the target and each value, and then finding the mean of the closest values. The target and value are selected based on user preferences (e.g., using the VWAP or Volatility as a target).
KNN Classifier Function: This function applies the k-nearest neighbor algorithm to classify the price action into positive, negative, or neutral trends. It looks at the nearest 'k' bars, calculates the Euclidean distance between them, and categorizes them based on the relative movement. It then returns the prediction based on the highest count of positive, negative, or neutral categories.
█ How to use
Traders can use this indicator to identify potential trend directions in different markets.
Spotting Trends: Traders can use the KNN Moving Average to identify the underlying trend of an asset. By focusing on the k closest values, this component of the indicator offers a clearer view of the trend direction, filtering out market noise.
Trend Confirmation: The KNN Classifier component can confirm existing trends by predicting the future price direction. By aligning predictions with current trends, traders can gain more confidence in their trading decisions.
█ Settings
PriceValue: This determines the type of price input used for distance calculation in the KNN algorithm.
hl2: Uses the average of the high and low prices.
VWAP: Uses the Volume Weighted Average Price.
VWAP: Uses the Volume Weighted Average Price.
Effect: Changing this input will modify the reference values used in the KNN classification, potentially altering the predictions.
TargetValue: This sets the target variable that the KNN classification will attempt to predict.
Price Action: Uses the moving average of the closing price.
VWAP: Uses the Volume Weighted Average Price.
Volatility: Uses the Average True Range (ATR).
Effect: Selecting different targets will affect what the KNN is trying to predict, altering the nature and intent of the predictions.
Number of Closest Values: Defines how many closest values will be considered when calculating the mean for the KNN Moving Average.
Effect: Increasing this value makes the algorithm consider more nearest neighbors, smoothing the indicator and potentially making it less reactive. Decreasing this value may make the indicator more sensitive but possibly more prone to noise.
Neighbors: This sets the number of neighbors that will be considered for the KNN Classifier part of the algorithm.
Effect: Adjusting the number of neighbors affects the sensitivity and smoothness of the KNN classifier.
Smoothing Period: Defines the smoothing period for the moving average used in the KNN classifier.
Effect: Increasing this value would make the KNN Moving Average smoother, potentially reducing noise. Decreasing it would make the indicator more reactive but possibly more prone to false signals.
█ What is K-Nearest Neighbors (K-NN) algorithm?
At its core, the K-NN algorithm recognizes patterns within market data and analyzes the relationships and similarities between data points. By considering the 'K' most similar instances (or neighbors) within a dataset, it predicts future price movements based on historical trends. The K-Nearest Neighbors (K-NN) algorithm is a type of instance-based or non-generalizing learning. While K-NN is considered a relatively simple machine-learning technique, it falls under the AI umbrella.
We can classify the K-Nearest Neighbors (K-NN) algorithm as a form of artificial intelligence (AI), and here's why:
Machine Learning Component: K-NN is a type of machine learning algorithm, and machine learning is a subset of AI. Machine learning is about building algorithms that allow computers to learn from and make predictions or decisions based on data. Since K-NN falls under this category, it is aligned with the principles of AI.
Instance-Based Learning: K-NN is an instance-based learning algorithm. This means that it makes decisions based on the entire training dataset rather than deriving a discriminative function from the dataset. It looks at the 'K' most similar instances (neighbors) when making a prediction, hence adapting to new information if the dataset changes. This adaptability is a hallmark of intelligent systems.
Pattern Recognition: The core of K-NN's functionality is recognizing patterns within data. It identifies relationships and similarities between data points, something akin to human pattern recognition, a key aspect of intelligence.
Classification and Regression: K-NN can be used for both classification and regression tasks, two fundamental problems in machine learning and AI. The indicator code is used for trend classification, a predictive task that aligns with the goals of AI.
Simplicity Doesn't Exclude AI: While K-NN is often considered a simpler algorithm compared to deep learning models, simplicity does not exclude something from being AI. Many AI systems are built on simple rules and can be combined or scaled to create complex behavior.
No Explicit Model Building: Unlike traditional statistical methods, K-NN does not build an explicit model during training. Instead, it waits until a prediction is required and then looks at the 'K' nearest neighbors from the training data to make that prediction. This lazy learning approach is another aspect of machine learning, part of the broader AI field.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
US Recession IndicatorThe US Recession Indicator is designed to identify recessions as they happen, using two reputable indicators that have accurately foreseen all past recessions since 1969. Unlike the National Bureau of Economic Research (NBER) which determines recession dates after the fact, this indicator seeks to spot recessions in real-time. When both of these distinct metrics meet certain criteria, the chart's background becomes shaded, signifying a strong likelihood that the economy is in a recession. Furthermore, a built-in alert system keeps users updated without constant monitoring.
The first metric is the Smoothed Recession Probabilities developed by Marcelle Chauvet. It is based on a dynamic-factor markov-switching model that assesses four monthly coincident variables: non-farm payroll employment, the index of industrial production, real personal income excluding transfer payments and real manufacturing and trade sales. It offers a mathematical analysis of how recessions deviate from expansions. In essence, this index mirrors the probability of the prevailing true economic situation being a recession, grounded on the current GDP data.
The second metric is the Sahm Rule Recession Indicator developed by Claudia Sahm. It operates on the principle that changes in the unemployment rate can be used to identify the onset of a recession. According to this rule, if the three-month moving average of the unemployment rate rises by 0.5 percentage points or more above its lowest point from the preceding year, it flags a potential recession.
For this combined indicator, the thresholds are intentionally set lower than when each metric is used individually. Both metrics must simultaneously suggest a potential recession in order to send a signal. This stems from the realisation that neither metric is infallible and has, on occasion, sent false signals in the past. By requiring both to align, the likelihood of a false positive is reduced. However, it's crucial to understand that past performance does not guarantee future results, leaving the door open for potential false alerts which may not be confirmed by the NBER.
ICT Daily Bias Finder [DTCC]What is This?
The ICT Daily Bias Finder uses a method called "DTCC" to identify the London and New York session's bias, bullish or bearish. This indicator should only be relied on for 5 minute, and not other timeframes.
How do I use it?
Look at the previous days two boxes (labeled DTCC Bear/DTCC Bull), if both are bullish or both are bearish it is NOT recommended to rely on DTCC for that day. If the first one is bullish and second one is bearish, the DTCC for the next day says that London session will turn ABOVE midnight opening price, while New York will turn UNDER midnight opening price (longs in London, shorts in New York). If the second one is bearish and the first is bullish, the DTCC for the next day says that London session will turn UNDER midnight opening price, while New York will turn ABOVE midnight opening price (shorts in London, longs in New York)
Emoji guide to DTCC indicator:
🟢🟢: Don't trust DTCC for that day
🔴🔴: Don't trust DTCC for that day
🟢🔴: Longs in London above Midnight Opening Price, Shorts in New York under Midnight Opening Price
🔴🟢: Shorts in London under Midnight Opening Price, Longs in New York under Midnight Opening Price
Reminder: NEVER rely solely on DTCC, DTCC can be wrong and is not right 100% of times.
Crude Oil Top and Bottoms -by Trevor GeallDiscover the Crude Oil Tops and Bottoms Predictor Indicator: Your Key to Market Precision!
How to Use:
Ideal for the daily chart. Wait for the colored background to form.
Confirm signals by waiting for the first candle to close after the background disappears. That would be your sign to go long (if the line is crossing up) or short (if line is crossing dow).
Combine with other indicators for enhanced insights.
Unveil Market Secrets:
Identifies potential tops and bottoms in crude oil.
Empowers strategic trading decisions.
Advanced divergence detection and price channel analysis.
Note: While powerful, no indicator guarantees perfect predictions. Use it alongside comprehensive analysis and risk management. Elevate your crude oil trading now!
PS If I get enough positive feedback on my indicators ill release some of the better ones.
DCA Liquidation Calculation [ChartPrime]The DCA Liquidation Calculator is a powerful table indicator designed for both manual and bot-assisted traders who practice Dollar Cost Averaging (DCA). Its primary objective is to help traders avoid getting liquidated and make informed decisions when managing their positions. This comprehensive table indicator provides essential information to DCA traders, enabling them to plan their trades effectively and mitigate potential risks of liquidation.
Key Features:
Liquidation Price Awareness: The DCA Liquidation Calculator calculates and displays the liquidation price for each trade within your position. This critical information empowers traders to set appropriate stop-loss levels and avoid being liquidated in adverse market conditions, especially in leveraged trading scenarios.
DCA Recommendations: Whether you are executing DCA manually or using a trading bot, the DCA Liquidation Calculator offers valuable guidance. It suggests optimal entry prices and provides insights into the percentage deviation from the current market price, helping traders make well-timed and well-informed DCA decisions.
Position Sizing: Proper position sizing is essential for risk management. The DCA Liquidation Calculator helps traders determine the percentage of capital to allocate to each trade based on the provided insights. By using the recommended position sizing, traders can protect their capital and potentially maximize profits.
Profit and Loss Visualization: Gain real-time visibility into your Profit and Loss (PnL) with the DCA Liquidation Calculator. This feature allows you to monitor your trades' performance, enabling you to adapt your strategies as needed and make data-driven decisions.
Margin Call Indicators: Anticipating potential margin calls is crucial for maintaining a healthy trading account. The DCA Liquidation Calculator's smart analysis helps you identify and manage potential margin call situations, reducing the risk of account liquidation.
Capital Requirements: Before entering a trade, it's vital to know the required capital. The DCA Liquidation Calculator provides you with this information, ensuring you are adequately prepared to execute your trades without overextending your resources.
Maximum Trade Limit: Considering your available capital, the DCA Liquidation Calculator helps you determine the maximum number of trades you can enter. This feature ensures you maintain a disciplined and sustainable trading approach aligned with your financial capabilities.
Color-Coded Risk Indicators:
Green Liquidation Price Cell: Indicates that the position is considered safe from liquidation at the given parameters.
Yellow Liquidation Price Cell: Warns traders of potential liquidation risk. Exercise caution and monitor the trade closely to avoid undesirable outcomes.
Purple Liquidation Price Cell: Shows the liquidation price, but it does not necessarily indicate an imminent liquidation. Use this information to make prudent risk management decisions.
Red Row: Signals that the trade cannot be executed due to insufficient capital. Consider alternative strategies or ensure adequate capitalization before proceeding.
Settings explained:
In conclusion, the DCA Liquidation Calculator equips traders with essential tools to make well-calculated decisions, minimize liquidation risks, and optimize their Dollar Cost Averaging strategy. By offering comprehensive insights into your trading position, this indicator empowers you to navigate the markets with confidence and increase your potential for successful and sustainable trading.
Oil Price Prediction (Highly Accurate)It's a little-known fact that gold prices move preceded oil prices by 20 months.
If you don't believe me here is a short video from Tom McClellan discussing this www.cnbc.com
This gives us one of the best and highly accurate indicators of what oil will do in the months to come.
HOW TO USE.
When adding the script to your charts it's important to make a couple of adjustments.
Click the triple dots (...), scroll down to pin to scale, and click pin to new scale.
Rght-click the new scale and click auto (fits data to screen)
Go into the indicator settings and turn off the red line.
What you'll be left with is a price projection on where oil prices will go. This becomes your 30,000-foot view. It is important for traders to know if they're coming into a bullish, bearish or consolidating market and this indicator does that.
Its important to mention this is for Monthly charts.
Happy Trading
Extrapolated Previous Trend [LuxAlgo]The Extrapolated Previous Trend indicator extrapolates the estimated linear trend of the prices within a previous interval to the current interval. Intervals can be user-defined.
🔶 USAGE
Returned lines can be used to provide a forecast of trends, assuming trends are persistent in sign and slope.
Using them as support/resistance can also be an effecting usage in case the trend in a new interval does not follow the characteristic of the trend in the previous interval.
The indicator includes a dashboard showing the degree of persistence between segmented trends for uptrends and downtrends. A higher value is indicative of more persistent trend signs.
A lower value could hint at an anti-persistent behavior, with uptrends over an interval often being followed by a down-trend and vice versa. We can invert candle colors to determine future trend direction in this case.
🔶 DETAILS
This indicator can be thought of as a segmented linear model ( a(n)t + b(n) ), where n is the specific interval index. Unlike a regular segmented linear regression model, this indicator is not subject to lookahead bias, coefficients of the model are obtained on previous intervals.
The quality of the fit of the model is dependent on the variability of its coefficients a(n) and b(n) . Coefficients being less subject to change over time are more indicative of trend persistence.
🔶 SETTINGS
Timeframe: Determine the frequency at which new trends are estimated.
Quarterly Version: Sustainable Growth Rate+ (SGR+)The Sustainable Growth Rate+ (SGR+) is an advanced financial indicator designed to estimate the sustainable growth rate of a company in a more comprehensive manner than the traditional Sustainable Growth Rate (SGR). This indicator has been created to overcome certain limitations of the traditional SGR, especially its reliance on Return on Equity (ROE), which does not take into account the impact of debt on a company's growth.
Calculation:
The SGR+ is calculated using the following formula:
(Net Income - Dividends - Depreciation & Amortization) / (Shareholders' Equity + Long-Term Debt)
This formula essentially adjusts the net income by subtracting dividends and depreciation & amortization expenses. The result is then divided by the sum of shareholders' equity and long-term debt. By including long-term debt in the denominator, SGR+ accounts for the role of debt in a company's capital structure, providing a more realistic picture of its potential growth.
Logic:
The logic behind the SGR+ is to factor in both the role of debt and the recurring costs of asset maintenance/replacement (approximated by Depreciation & Amortization expenses) into the growth estimation.
By incorporating debt, we capture a company's total capital employed (equity + debt) rather than just equity, thus considering the full range of financing options used to fuel growth.
Depreciation & Amortization expenses are subtracted from net income to better reflect the amount of earnings that can be retained for growth, as these expenses indicate the necessary reinvestment for maintaining the operational efficiency of a company's assets.
History:
The original SGR was based on the Dupont Analysis developed by the Dupont Corporation in the 1920s. While it provided a useful estimate of a company's potential growth, many analysts felt that it did not fully capture the realities of modern business finance, particularly the significant role of debt and recurring asset costs. This led to the development of the SGR+, which factors in these important elements to provide a more comprehensive and realistic measure of a company's sustainable growth rate.
Usage:
While SGR+ provides a more nuanced estimate of a company's potential growth, it should not be used in isolation. It is most effective when used alongside other financial indicators, including historical growth rates, ROE, and analyst forecasts. It also requires a careful evaluation of a company's earnings consistency and volatility.
Remember, the SGR+ is still an estimation based on various assumptions, and should be used with a sufficient margin of safety. Regularly comparing the SGR+ over multiple years can provide insight into the stability or volatility of a company's growth rate, contributing to a more accurate growth prediction.
Nadaraya-Watson Envelope Strategy (Non-Repainting) Log ScaleIn the diverse world of trading strategies, the Nadaraya-Watson Envelope Strategy offers a different approach. Grounded in mathematical analysis, this strategy utilizes the Nadaraya-Watson kernel regression, a method traditionally employed for interpreting complex data patterns.
At the core of this strategy lies the concept of 'envelopes', which are essentially dynamic volatility bands formed around the price based on a custom Average True Range (ATR). These envelopes help provide guidance on potential market entry and exit points. The strategy suggests considering a buy when the price crosses the lower envelope and a sell when it crosses the upper envelope.
One distinctive characteristic of the Nadaraya-Watson Envelope Strategy is its use of a logarithmic scale, as opposed to a linear scale. The logarithmic scale can be advantageous when dealing with larger timeframes and assets with wide-ranging price movements.
The strategy is implemented using Pine Script v5, and includes several adjustable parameters such as the lookback window, relative weighting, and the regression start point, providing a level of flexibility.
However, it's important to maintain a balanced view. While the use of mathematical models like the Nadaraya-Watson kernel regression may provide insightful data analysis, no strategy can guarantee success. Thorough backtesting, understanding the mathematical principles involved, and sound risk management are always essential when applying any trading strategy.
The Nadaraya-Watson Envelope Strategy thus offers another tool for traders to consider. As with all strategies, its effectiveness will largely depend on the trader's understanding, application, and the specific market conditions.
Adaptive Price Channel (log scale)The field of technical analysis is consistently expanding, with numerous indicators used for market forecasting. Amongst them, a novel indicator dubbed the Adaptive Price Channel (log scale), inspired by the renowned Nadaraya-Watson Envelope (LuxAlgo) from LuxAlgo, is gaining traction for its distinctive features and versatility. Unlike its predecessor, the Adaptive Price Channel (log scale) is applicable on a logarithmic scale, thereby allowing it to be utilized on both smaller and larger timeframes.
1. Key Features
The Adaptive Price Channel (log scale) is founded on the trading view Pinescript language, version 5, with its primary aim to maximize the versatility and scalability of trading indicators. It allows traders to adapt it according to their preferred timeframe, thereby making it applicable for a wide range of trading strategies.
Its bandwidth can be adjusted through the input parameters, offering traders the flexibility to manipulate the indicator according to their strategic requirements. Furthermore, it provides an option for repainting smoothing. This option enables users to control the repainting effect in which the historical output of the indicator may change over time. When disabled, the indicator provides the endpoints of the calculations, ensuring consistency in historical values.
Moreover, the Adaptive Price Channel (log scale) allows for color customization, thereby improving visibility and user-friendliness. The colors of the indicator's upward and downward directions can be changed according to the user's preference.
2. Working Mechanism
The Adaptive Price Channel (log scale) uses the logarithm of the source, which is typically the closing price of a trading instrument. It leverages a Gaussian function that exponentially decreases the further the price moves away from the mean, accounting for both positive and negative values. The bandwidth of the Gaussian function can be adjusted to adapt to different market conditions.
Additionally, the Adaptive Price Channel (log scale) features an array of 500 lines for each bar, which helps in defining the boundaries or envelope for price movements. The calculations are executed using the Nadaraya-Watson estimator, which uses kernel regression for non-parametric analysis.
The calculated values for the upper and lower bounds of the envelope are then converted back from the logarithmic scale using the exponential function. This calculation process continues for each bar until the last bar in the data set.
To ensure optimal performance, the Adaptive Price Channel (log scale) uses dynamic repainting. If the repainting mode is enabled, it adjusts the smoothing of the indicator for the entire historical data, making the results more accurate.
3. Visualization and Alerts
The Adaptive Price Channel (log scale) offers an array of visual aids, including labels and plots. The upper and lower bounds of the envelope are plotted, and the indicator triggers labels at points where the closing price crosses these boundaries. These labels serve as alerts for potential trading opportunities.
4. Conclusion
The Adaptive Price Channel (log scale) is an innovative and adaptable trading indicator, drawing inspiration from its predecessor but introducing unique features to increase its versatility. By providing a repainting option, it ensures consistent historical values, thereby enhancing the reliability of the indicator. Furthermore, the capability to operate on a logarithmic scale broadens its usability for different timeframes. The Adaptive Price Channel (log scale) is a powerful tool for any trader, facilitating a better understanding of market dynamics, and enabling more informed decision-making.
Crunchster's Normalised Trend StrategyThis is a unique rules-based, systematic trading strategy - in the trend following category.
The strategy is designed for use on the daily timeframe. Specific features of this strategy are outlined below:
1. Uses a transformed price series (which I dub "real price") to generate signals rather than ticker price
2. Uses advanced position sizing and risk management, usually reserved for institutional portfolio management, a proven technique utilised by Commodity Trading Advisors and Managed Futures funds (Algo/Quant funds).
"Real Price" is a transformed price series derived from the sum of volatility adjusted (daily) returns, over the entire price series of an asset. The lookback period of the volatility adjustment is user defined.
A Hull moving average (HMA) is derived from the real price, and used as the main trend determinant. The lookback period of the HMA is user defined. Default lookback of 100 periods (days) ensures a responsive trend indicator, but without leading to over-trading from frequent crossovers (average holding period 14 days on BTC).
The core strategy is very simple, go long when real price crosses over HMA, go short when real price crosses under HMA. New position triggers automatically close open positions in the counter direction.
Position sizing is based on recent price volatility and the user defined annualised risk target. In essence positions are inverse volatility weighted, so larger size is opened during lower volatility and smaller size during increased volatility. Recent volatility is calculated as the standard deviation of returns with 14 period lookback, then extrapolated into an annualised volatility of expected returns. Annualised recent volatility is then referenced to the risk target set by the user to adjust the position size. The default settings are a very conservative 10% annual risk target. Initial capital should be set as the maximum risk capital per trade (ie if $10,000 total capital and 10% risk per trade, initial capital should be $1000). Maximum leverage per position can be set independently, to facilitate hitting risk targets that are greater than the natural volatility of the traded asset, and to accommodate low volatility conditions, whilst maintaining overall risk controls.
Hard stop losses are based on multiples of the average true range of recent price (14 period lookback), user configurable.
Please leave comments regarding further features or refinements. I plan to develop further adding alternative moving average selections and the ability to select/deselect long and short strategies.
3 hours ago
Release Notes:
Added option to compound profits versus using a fixed position capital. Be mindful that compounding will potentially increase profits, but also increase drawdowns and overall risk. Leverage will still cap overall exposure with compounding and therefore provides an additional layer of risk control.
2 hours ago
Release Notes:
Added function to toggle long/short strategy legs on and off.
ICT Friday's Asian Range°This concept was engineered and taught by the Inner Circle Trader .
The goal of this script is to outline a potential draw on liquidity for the next trading week. It gives a parameter for ICT PD Arrays to be located above and below the marketplace and should be used in conjunction with the higher Timeframe Arrays as defined by ICT.
If there is a higher Timeframe array with a standard deviation confluence of the Friday Asian Range it is considered high probability for price to reach up/down to that level, and present a potential retracement or reversal.
The Asian Range is defined as the window of Time between 7PM to Midnight New York Time. In this case we will be only using the Friday's Asian Range which will take place on Thursday between these Times.
We have two ranges: a Body range made of the highest and lowest candle bodies, and a Wick range made by the highest and lowest candle wicks.
ICT teaches that we only want to apply this concept to the 5minute and 15minute chart.
THIS SCRIPT WILL NOT WORK ON ANY OTHER TIMEFRAME OUT OF THE BOX
Framework:
Visualization:
Example:
Crunchster's Real PriceThis is a simple transformation of any price series (best suited to daily timeframe) that filters out random price fluctuations and revealing the "real" price action. It allows comparison between different assets easily and is a useful confirmation of support and resistance levels, or can be used with other technical analysis.
In the default settings based on a daily chart, the daily returns are first calculated, then volatility normalised by dividing by the standard deviation of daily returns over the defined lookback period (14 periods by default).
These normalised returns are then added together over the entire price series period, to create a new "Real price" - the volatility adjusted price. This is the default presentation.
In addition, a second signal ("Normalised price series over rolling period") is available which, instead of summing the normalised returns over the entire price series, allows a user configurable, rolling lookback window over which the normalised returns are summed up. The default setting is 365 periods (ie 1 year on the daily timeframe for tickers with 24hr markets such as crypto. This can be set to 252 periods if analysing equities, which only trade 5 days per week, or any other user defined period of interest).
Maschke-IndikatorThis indicator is based on market data independently from the current chart being used. It considers data from FED (M2, net liquidity) as well as heavy truck index and Redbook index. This combination allows the determination of the current market situation and factors that influence short term future economy.
As an indicator is not able to determine the absolute maximum values and it does not make sense to shed light back to history more than 5 years or to consider those minimum values long time ago, the default minimum and maximum values for the 4 primary indicators have been selected to fix to those in the last 5 years, with the possibility to change the consideration limits for the user. As the index is calculated in percentage between those ranges, the values entered for minimum and maximum have great influence, but also give the experienced user the possibility to change those limits based on her or his knowledge.
This indicator has a particularly high correlation with the S&P 500. It is clearly leading in some places. I use the indicator on the daily and hourly charts, manually bring the indicator over the S&P chart as best I can and see if the indicator is showing a major breakout ahead that the chart hasn't followed yet. Larger deviations are also a sign that the price is moving too far away from the indicator and that this deviation will probably be closed in the near future. The indicator shows the theoretical course more from the economic side, how the course should run. The deviation is therefore primarily due to the mood. I recommend using the indicator together with others, so as not to rely on this indicator alone.
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.
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".
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.