Composite Risk IndicatorThe Composite Risk Indicator is a financial tool designed to assess market risk by analyzing the spreads between various asset classes. This indicator synthesizes information across six key spreads, normalizing each on a scale from 0 to 100 where higher values represent higher perceived risk. It provides a single, comprehensive measure of market sentiment and risk exposure.
Key Components of the CRI:
1. Stock Market to Bond Market Spread (SPY/BND): Measures the performance of stocks relative to bonds. Higher values indicate stronger stock performance compared to bonds, suggesting increased market optimism and higher risk.
2. Junk Bond to Treasury Bond Spread (HYG/GOVT): Assesses the performance of high-yield (riskier) bonds relative to government (safer) bonds. A higher ratio indicates increased appetite for risk.
3. Junk Bond to Investment Grade Bond Spread (HYG/LQD): Compares high-yield bonds to investment-grade corporate bonds. This ratio sheds light on the risk tolerance within the corporate bond market.
4. Growth to Value Spread (VUG/VTV): Evaluates the performance of growth stocks against value stocks. A higher value suggests a preference for growth stocks, often seen in risk-on environments.
5. Tech to Staples Spread (XLK/XLP): Measures the performance of technology stocks relative to consumer staples. This ratio highlights the market’s risk preference within equity sectors.
6. Small Cap Growth to Small Cap Value Spread (SLYG/SLYV): Compares small-cap growth stocks to small-cap value stocks, providing insight into risk levels in smaller companies.
Utility:
This indicator is particularly useful for investors and traders looking to gauge market sentiment, identify shifts in risk appetite, and make informed decisions based on a broad assessment of market conditions. The CRI can serve as a valuable addition to investment analysis and risk management strategies.
Sentiment
Discovery IndexThe Discovery Index is an original technical indicator which attempts to display directional market pressure and momentum based on accumulated candle-over-candle measurements.
Discovery , in this context, is the act of finding (discovering) New Highs and Lows.
> What is 'Discovery'
Not to be confused with "Price Discovery", the term for setting the spot price of an asset.
The term 'Discovery' in Discovery Index is used based on the literal definition of 'Discovery', such as, the action of finding what was previously unknown.
Given this definition,
Discovery is the difference between highs or lows only when the current high is higher than the previous high or the current low is lower than the previous low.
Below is a visual example of exactly where Discovery is seen from each candle.
Since discovery is only based on points of the candle, and not specifically the direction of the candle; it is possible for discovery to occur in both directions from the same candle.
It is also possible for no discovery to occur from a candle.
> Calculation
The Discovery Index is the Net Total of discovery data over a specified length of bars.
Discovery Index = Sum of Upwards Discovery + Sum of Downwards Discovery
Note: Upwards Discovery is always Positive, and Downwards Discovery is always Negative. By adding both together, their Net Total is produced. This value is the "Discovery Index".
Wick Calculation Example
> Volume Discovery
Using Volume for the Discovery Index Calculation allows for a different dimension to be added to the data for new analysis opportunities.
While volume data is only a single value, by accumulating this data over time, we are able to fabricate a candle body from the data by accounting for the direction of the chart candles.
This allows for the Calculation of the Discovery Index based on volume data.
Volume Example
> Display
The display uses a "Candlestick histogram" display. The bodies and wicks from the display represent the discovery data from the respective points in each candle. (Wick Discovery & Candle Body Discovery).
This style of histogram allows for the display of both data sources, preserving the accuracy and distinction between each type, while also providing a clean display.
> Considerations
Discovery index is not an Oscillator, since there are no upper or lower boundaries to its rotations.
There are not (at this time) any "Over-bought" or "Over-sold" Areas, this is partially due to the previous consideration since any levels for these could potentially change from chart to chart. Additionally, it would generally be better to read the data based on the context of the current market.
Non-directional movements effect the Discovery Index as well. Since Discovery does not occur from every bar, the Index reflects hesitations as well as movements in market direction.
With the option to input a symbol, the Discovery Index Indicator is not constrained to one chart ticker for its calculation and could help to see shifts between different symbols, making it easier to compare different assets.
With the separation of wicks and candle body data, a stronger move may be observed by its full-bodied movements, while a potentially more speculative move may be seen from large wick movements. Since wicks are often interpreted as either, Rejection for reversal OR as Testing for continuation, the interpretation for Wick Discovery generally varies based on context.
Discovery Index ⇾ Divergences! Due to its calculation, price (and/or volume) data is displayed in such a way that makes it useful as a tool for identifying divergence opportunities.
Remember, this indicator is lookback based. An immediate significant change from the data source (if not offset by a similar opposite change) will be represented for multiple bars after its occurrence. Due to this, data is likely to be skewed or biased from these occurrences for a period of time after.
Throughout development, "Discovery" has been shortened to just "Disco", therefore, this indicator is also an attempt to bring Disco Back.
Enjoy!
Multi-Frame Market Sentiment DashboardOverview
This Pine Script™ code generates a "Market Sentiment Dashboard" on TradingView, providing a visual summary of market sentiment across multiple timeframes. This tool aids traders in making informed decisions by displaying real-time sentiment analysis based on Exponential Moving Averages (EMA).
Key Features
Panel Positioning:
Custom Placement: Traders can position the dashboard at the top, middle, or bottom of the chart and align it to the left, center, or right, ensuring optimal integration with other chart elements.
Customizable Colors:
Sentiment Colors: Users can define colors for bullish, bearish, and neutral market conditions, enhancing the dashboard's readability.
Text Color: Customizable text color ensures clarity against various background colors.
Label Size:
Scalable Labels: Adjustable label sizes (from very small to very large) ensure readability across different screen sizes and resolutions.
Market Sentiment Calculation:
EMA-Based Sentiment: The dashboard calculates sentiment using a 9-period EMA. If the EMA is higher than two bars ago, the sentiment is bullish; if lower, it's bearish; otherwise, it's neutral.
Multiple Timeframes: Sentiment is calculated for several timeframes: 1 minute, 3 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, and 1 day. This broad analysis provides a comprehensive view of market conditions.
Dynamic Table:
Structured Display: The dashboard uses a table to organize and display sentiment data clearly.
Real-Time Updates: The table updates in real-time, providing traders with up-to-date market information.
How It Works
EMA Calculation: The script requests EMA(9) values for each specified timeframe and compares the current EMA with the EMA from two bars ago to determine market sentiment.
Color Coding: Depending on the sentiment (Bullish, Bearish, or Neutral), the corresponding cell in the table is color-coded using predefined colors.
Table Display: The table displays the timeframe and corresponding sentiment, allowing traders to quickly assess market trends.
Benefits to Traders
Quick Assessment: Traders can quickly evaluate market sentiment across multiple timeframes without switching charts or manually calculating indicators.
Enhanced Visualization: The color-coded sentiment display makes it easy to identify trends at a glance.
Multi-Timeframe Analysis: Provides a broad view of short-term and long-term market trends, helping traders confirm trends and avoid false signals.
This dashboard enhances the overall trading experience by providing a comprehensive, customizable, and easy-to-read summary of market sentiment.
Usage Instructions
Add the Script to Your Chart: Apply the "Market Sentiment Dashboard" indicator to your TradingView chart.
Customize Settings: Adjust the panel position, colors, and label sizes to fit your preferences.
Interpret Sentiment: Use the color-coded table to quickly understand the market sentiment across different timeframes and make informed trading decisions.
Multi ETH Rolling APY Calculator [presentTrading]This one is for SEC paves way for Ethereum ETFs in boost for crypto!
█ Introduction and How it is Different
The "Multi ETH Rolling APY Calculator" is a sophisticated Pine Script tool designed to analyze the annualized difference between Ethereum (ETH) spot and futures prices. This tool is essential for identifying arbitrage opportunities and assessing market sentiment, offering traders invaluable insights into market dynamics. By calculating the premium or discount of futures contracts relative to the spot price and annualizing this figure based on the time until each contract's expiration, the Multi ETH Rolling APY Calculator provides a clear view of potential profit margins and market trends.
Unlike traditional trading indicators that focus solely on price movements or technical patterns, this calculator delves deeper into the futures market, providing a dual-purpose tool. It not only helps in spotting arbitrage opportunities but also serves as a gauge for the emotional state of the market, thereby offering a more comprehensive analysis of market conditions. This dual functionality sets it apart, making it a must-have for traders looking to navigate the volatile cryptocurrency trading landscape effectively.
Historical backtesting has revealed that Bitcoin's Rolling APY can serve as a robust indicator of market sentiment:
- Below 0%: Often indicates panic or 'end-of-world' scenarios.
- 0-5%: Signifies extreme market fear.
- 5-10%: Reflects a calm market environment.
- 10-15%: Suggests a moderately warm market.
- 15-20%: Indicates an overheated market.
- **Above 20%: Signals FOMO (fear of missing out).
█ Strategy, How it Works: Detailed Explanation
The Multi ETH Rolling APY Calculator employs a systematic approach to derive its insights. The process is broken down into several steps, each contributing to the overall analysis:
🔶 Data Fetching: The script first fetches the necessary data, including the closing prices of Ethereum's spot market and selected futures contracts. These futures contracts are typically set to expire at different dates, providing a broad perspective on market expectations over time.
🔶 Time and Expiration: The tool takes into account the current time and the expiration dates of the futures contracts. This helps in calculating the number of days remaining until each contract's expiration.
🔶 Premium Calculations: The premium or discount of each futures contract relative to the spot price is computed. This is done by subtracting the spot price from the futures price and then dividing the result by the spot price. This calculation gives a percentage that represents the premium or discount.
🔶 Annualized Percentage Yield (APY) Calculations: The calculated premium or discount is then annualized based on the number of days remaining until the contract's expiration. This involves multiplying the premium or discount by the factor (365 / days remaining) to annualize the figure. If the user chooses not to annualize the numbers, this step is skipped.
🔶 Plotting Results: The annualized yields are then plotted on a chart, allowing traders to visualize the potential returns from different futures contracts. The plots are color-coded for easy differentiation and quick analysis.
By following this structured approach, the Multi ETH Rolling APY Calculator provides traders with clear, actionable insights into market dynamics and potential arbitrage opportunities.
█ Trade Direction
While this tool does not provide direct trading signals, it informs traders about potential arbitrage opportunities and the prevailing market sentiment. Traders can leverage this data to make strategic decisions, aligning long or short positions with the anticipated market movements and arbitrage conditions.
█ Usage
By inputting specific parameters related to their market analysis, traders can monitor discrepancies in Bitcoin’s pricing across different timelines, which is especially beneficial for those involved in derivatives trading, arbitrage, and sentiment analysis.
█ Default Settings
- Resolution: Controls the frequency of data (default is daily).
- Show numbers in annual: Determines whether APY is displayed on an annual basis.
- Base Symbol and Future Symbols: Specify the spot and futures markets for analysis.
Normalized Z-ScoreThe Normalized Z-Score indicator is designed to help traders identify overbought or oversold conditions in a security's price. This indicator can provide valuable signals for potential buy or sell opportunities by analyzing price deviations from their average values.
How It Works :
-- Z-Score Calculation:
---- The indicator calculates the Z-Score for both high and low prices over a user-defined period (default is 14 periods).
---- The Z-Score measures how far a price deviates from its average in terms of standard deviations.
-- Average Z-Score:
---- The average Z-Score is derived by taking the mean of the high and low Z-Scores.
-- Normalization:
---- The average Z-Score is then normalized to a range between -1 and 1. This helps in standardizing the indicator's values, making it easier to interpret.
-- Signal Line:
---- A signal line, which is the simple moving average (SMA) of the normalized Z-Score, is calculated to smooth out the data and highlight trends.
-- Color-Coding:
---- The signal line changes color based on its value: green when it is positive (indicating a potential buy signal) and red when it is negative (indicating a potential sell signal). This coloration is also used for the candle/bar coloration.
How to Use It:
-- Adding the Indicator:
---- Add the Normalized Z-Score indicator to your TradingView chart. It will appear in a separate pane below the price chart.
-- Interpreting the Histogram:
---- The histogram represents the normalized Z-Score. High positive values suggest overbought conditions, while low negative values suggest oversold conditions.
-- Using the Signal Line:
---- The signal line helps to confirm the conditions indicated by the histogram. A green signal line suggests a potential buying opportunity, while a red signal line suggests a potential selling opportunity.
-- Adjusting the Period:
---- You can adjust the period for the Z-Score calculation to suit your trading strategy. The default period is 14, but you can change this based on your preference.
Example Scenario:
-- Overbought Condition: If the histogram shows a high positive value and the signal line is green, the security may be overbought. This could indicate that it is a good time to consider selling.
-- Oversold Condition: If the histogram shows a low negative value and the signal line is red, the security may be oversold. This could indicate that it is a good time to consider buying.
By using the Normalized Z-Score indicator, traders can gain insights into price deviations and potential market reversals, aiding in making more informed trading decisions.
ETH Long/Short Ratio BITFINEX - (ALPHRACTAL)Indicator Description: ETH Long/Short Ratio BITFINEX - (ALPHRACTAL)
The ETH Long/Short Ratio BITFINEX - (ALPHRACTAL) indicator provides a detailed analysis of Ethereum (ETH) long and short positions in USD and USDT on the Bitfinex exchange. This indicator is ideal for traders who want to monitor market behavior and better understand the relationship between long and short positions.
Features:
USD and USDT Long/Short Ratio:
Calculates and displays the ratio between long and short ETH positions in USD and USDT.
Helps identify market trends and the relative strength between buyers and sellers.
Color Configuration:
Allows customization of chart colors for clear and distinct visualization of USD and USDT ratios.
Uses colors with adjustable transparency to enhance chart visibility.
Label Display:
Option to show or hide labels indicating the type of ratio (USD or USDT) at the latest chart value.
Labels are useful for quickly identifying the visualized ratio.
Display Control:
Option to enable or disable the display of individual USD and USDT ratio charts.
Flexibility to view only the relevant data for your analysis.
How to Use:
Add the indicator to your chart to visualize the long/short ratios of ETH in USD and USDT.
Adjust colors and transparency as per your preference for better visual distinction.
Use the option to show or hide labels for quick identification of the data.
Analyze the relationship between long and short positions to make informed trading decisions, observing market buying and selling trends.
Example Use Cases:
Market Sentiment Analysis: An increase in the Long/Short ratio may indicate bullish sentiment among traders, while a decrease may indicate bearish sentiment.
Identifying Opportunities: Significant discrepancies between USD and USDT ratios may signal arbitrage opportunities or alert to significant market movements.
This indicator is a powerful tool for Ethereum traders who want a deeper understanding of market behavior and the dynamics of long and short positions on Bitfinex. Add the ETH Long/Short Ratio BITFINEX - (ALPHRACTAL) to your technical analysis toolkit and gain an edge in your trading strategy.
M2 Global Liquidity Index
The M2 Global Liquidity Index calculates a composite index reflecting the aggregate liquidity provided by the M2 money supply of five major currencies: Chinese Yuan (CNY), US Dollar (USD), Euro (EUR), Japanese Yen (JPY), and British Pound (GBP). The M2 money supply includes cash, checking deposits, and easily convertible near money. By incorporating exchange rates (CNY/USD, EUR/USD, JPY/USD, GBP/USD), the script adjusts each country's M2 supply to a common base (USD) and sums them up to produce a global liquidity metric. This metric, plotted on a daily timeframe, provides an overview of the total liquidity available in these five significant economies.
Understanding the M2 money supply is crucial for assessing liquidity because it represents the amount of money readily available in an economy for spending and investment. Higher M2 levels generally indicate more liquidity, suggesting easier access to capital for businesses and consumers, potentially leading to economic growth. Conversely, lower M2 levels can signify tighter liquidity conditions, possibly resulting in constrained spending and investment.
Adaptive RSI StrategyThe Adaptive RSI Strategy is designed to give you an edge by adapting to changing market conditions more effectively than the traditional RSI. By adjusting dynamically to recent price movements, this strategy aims to provide more timely and accurate trade signals.
How Does It Work?
You can set the number of periods for the RSI calculation. The default is 14, but feel free to experiment with different lengths to suit your trading style.
Choose the price data to base the RSI on, typically the closing price.
Decide if you want the strategy to visually highlight upward and downward movements of the Adaptive RSI (ARSI) on the chart. This can help you quickly spot trends.
Adaptive Calculation:
Alpha: The strategy uses an adaptive factor called alpha, which changes based on recent RSI values. This makes the RSI more sensitive to recent market conditions.
Adaptive RSI (ARSI): This is the core of our strategy. It calculates the ARSI using the adaptive alpha, making it more responsive to price changes compared to the traditional RSI.
Trade Signals:
Long Entry (Buy Signal): The strategy triggers a buy signal when the ARSI value crosses above its previous value. This indicates a potential upward trend, suggesting it's a good time to enter a long position.
Short Entry (Sell Signal): Conversely, a sell signal is triggered when the ARSI value crosses below its previous value, indicating a potential downward trend and suggesting it's a good time to enter a short position.
Visual Representation:
If you enable the highlight movements feature, the ARSI line on the chart will change color: green for upward movements and red for downward movements. This makes it easier to see potential trade opportunities at a glance.
Why Use the Adaptive RSI Strategy?
Responsiveness: The adaptive nature of this strategy means it's more sensitive to market changes, helping you react quicker to new trends.
Customization: You can tailor the length of the RSI period and decide whether to highlight movements, allowing you to adapt the strategy to your specific needs and preferences.
Visual Clarity: Highlighting the ARSI movements on the chart makes it easier to spot trends and potential entry points, giving you a clearer picture of the market.
Wicks Rejection PercentagesAnalyzing wick rejection percentages can provide insights into market sentiment and potential future price movements. For example, high wick rejection percentages at key support or resistance levels may indicate strong buying or selling interest and could influence trading decisions.
Fear & Greed index (advanced)The Fear & Greed index (advanced) is a comprehensive and customizable technical analysis tool designed to gauge market sentiment and identify potential buying or selling opportunities. This advanced version of the Fear & Greed Index incorporates a wide range of market data and technical indicators, providing traders with a more nuanced and sector-specific view of market sentiment.
Key Features:
Sector-specific analysis: The script automatically determines the sector based on the ticker data in TradingView, allowing traders to assess market sentiment for specific sectors. Users can also manually select a different sector to analyze, such as Technology, Healthcare, Energy, or Consumer Discretionary.
Additional components: This advanced Fear & Greed Index includes several new components not found in other versions, such as sector performance, Fast and Slow EMA comparison, VIX/VIX3M ratio, and the number of S&P 500 stocks above their 20-day EMA. These additional data points provide a more comprehensive view of market sentiment.
Sector performance: The script calculates sector performance by determining overbought and oversold areas, helping traders identify potential entry and exit points for sector-specific trades.
Customizable components: Users can enable or disable individual components of the Fear & Greed Index, allowing them to fine-tune the indicator to their specific needs and preferences. Tooltips are provided to explain each component in detail.
Component plotting: Traders can choose to plot particular components of the Fear & Greed Index directly on their charts, providing a visual representation of specific market sentiment factors.
Color-coded chart: The Fear & Greed Index chart is color-coded to clearly show bullish (green) or bearish (red) trends, making it easy for traders to identify potential market shifts at a glance.
Index calculation methods: Users can select between two index calculation methods: Volatility Adjusted Index and Composite Z Score. This flexibility allows traders to choose the method that best suits their trading style and market analysis preferences.
Volatility-weighted components: The script assigns weights to each component based on market volatility, ensuring that the index adapts to changing market conditions and provides a more accurate representation of sentiment.
How it works:
The Fear & Greed index combines data from multiple market indicators and technical analysis tools to create a comprehensive sentiment score. The script fetches data for each component, such as sector performance, market volatility, and put/call ratios, and normalizes the values to ensure a consistent scale.
Users can customize the index by enabling or disabling individual components, allowing them to focus on the factors they consider most relevant to their trading strategy. The script then applies a volatility-weighted formula to the enabled components, giving more weight to components that demonstrate higher volatility, as these tend to have a more significant impact on market sentiment.
The resulting Fear & Greed Index score is plotted on a color-coded chart, with green representing bullish sentiment and red indicating bearish sentiment. The script also detects divergences between the index and price action, alerting traders to potential trend reversals or market shifts.
By providing a comprehensive, sector-specific, and customizable view of market sentiment, the Fear & Greed Index helps traders make informed decisions and identify potential opportunities across various market conditions and timeframes.
We encourage you to provide feedback, ideas, and suggestions for improvements to help us continue refining this indicator and better serve the trading community. Your input is valuable in shaping the future development of the Fear & Greed index.
RSI Screener / Heatmap - By LeviathanThis script allows you to quickly scan the market by displaying the RSI values of up to 280 tickers at once and visualizing them in an easy-to-understand format using labels with heatmap coloring.
📊 Source
The script can display the RSI from a custom timeframe (MTF) and custom length for the following data:
- Price
- OBV (On Balance Volume)
- Open Interest (for crypto tickers)
📋 Ticker Selection
This script uses a different approach for selecting tickers. Instead of inputting them one by one via input.symbol(), you can now copy-paste or edit a list of tickers in the text area window. This approach allows users to easily exchange ticker lists between each other and, for example, create multiple lists of tickers by sector, market cap, etc., and easily input them into the script. Full credit to @allanster for his functions for extracting tickers from the text. Users can switch between 7 groups of 40 tickers each, totaling 280 tickers.
🖥️ Display Types
- Screener with Labels: Each ticker has its own color-coded label located at its RSI value.
- Group Average RSI: A standard RSI plot that displays the average RSI of all tickers in the group.
- RSI Heatmap (coming soon): Color-coded rows displaying current and historical values of tickers.
- RSI Divergence Heatmap (coming soon): Color-coded rows displaying current and historical regular/hidden bullish/bearish divergences for tickers.
🎨 Appearance
Appearance is fully customizable via user inputs, allowing you to change heatmap/gradient colors, zone coloring, and more.
KillZones & Sessions [TradingFinder] Volume | Asia, London & NY🔵 Introduction
🟣 Session
The forex market operates 24 hours a day, 5 days a week, with only Saturdays and Sundays being off; traders often focus on one of the forex trading sessions instead of trying to trade in all markets 24 hours a day.
Trading sessions are time intervals during which a specific financial market is active and trades are conducted. The Asia, London, and New York sessions are the most important trading sessions throughout the 24-hour period, during which a significant amount of money and liquidity enters the market.
🟣 Kill Zone
Traders in financial markets profit from the difference between the price at which they buy or sell and the current market price. Traders have different time horizons for trading.
Among these, some traders engage in daily or even hourly trading and must operate during times when the market has desirable trading volumes and significant price movements.
Kill zones are segments of a session with higher trading volumes and price fluctuations compared to the rest of the session.
🔵 How to Use
🟣 Session Time
The "Asia Session" consists of two sessions: "Sydney" and "Tokyo." The beginning of this session, according to the "UTC" time zone, is at 23:00 and ends at 06:00. Similarly, the beginning of the "Asia KillZone," according to the "UTC" time zone, is at 23:00, and it ends at 03:55.
The "London Session" consists of two sessions: "Frankfurt" and "London." The beginning of this session, according to the "UTC" time zone, is at 07:00, and it ends at 14:25. Similarly, the beginning of the "London KillZone," according to the "UTC" time zone, is at 07:00, and it ends at 09:55.
The beginning of the "New York am" session, according to the "UTC" time zone, is at 14:30, and it ends at 19:25. Similarly, the beginning of the "New York am KillZone," according to the "UTC" time zone, is at 14:30, and it ends at 16:55.
The beginning of the "New York pm" session, according to the "UTC" time zone, is at 19:30, and it ends at 22:55. Similarly, the beginning of the "New York pm KillZone," according to the "UTC" time zone, is at 19:30, and it ends at 20:55.
Important : To prevent session overlap, the working hours of each session have slightly changed.
🔵 Features
🟣 Simultaneous Session and Kill Zone
With this indicator, you can simultaneously view the kill zone and session. High and low lines are used to indicate sessions, while filled areas with color represent kill zones. If you do not want to see kill zones, you can turn off the display settings.
🟣 Candle, Time, and Volume
Using the "More Info" feature, you can see the number of candles, elapsed time, and traded volume within the colored filled area.
🔵 Settings
•Show More Info: To display "More Info," you need to turn on this feature and turn it off whenever you don't need it.
• You can also customize these settings for each session separately :
o Display or hide session.
o Choose session color.
o Set session time range.
o Display or hide kill zone.
o Set kill zone time range.
Dual RSI Differential - Strategy [presentTrading]█ Introduction and How it is Different
The Dual RSI Differential Strategy introduces a nuanced approach to market analysis and trading decisions by utilizing two Relative Strength Index (RSI) indicators calculated over different time periods. Unlike traditional strategies that employ a single RSI and may signal premature or delayed entries, this method leverages the differential between a shorter and a longer RSI. This approach pinpoints more precise entry and exit points, providing a refined tool for traders to exploit market conditions effectively, particularly in overbought and oversold scenarios.
Most important: it is a good eductional code for swing trading.
For beginners, this Pine Script provides a complete function that includes crucial elements such as holding days and the option to configure take profit/stop loss settings:
- Hold Days: This feature ensures that trades are not exited too hastily, helping traders to ride out short-term market volatility. It's particularly valuable for swing trading where maintaining positions slightly longer can lead to capturing significant trends.
- TPSL Condition (None by default): This setting allows traders to focus solely on the strategy's robust entry and exit signals without being constrained by preset profit or loss limits. This flexibility is crucial for learning to adjust strategy settings based on personal risk tolerance and market observations.
BTCUSD 6h LS Performance
█ Strategy, How It Works: Detailed Explanation
🔶 RSI Calculation:
The RSI is a momentum oscillator that measures the speed and change of price movements. It is calculated using the formula:
RSI = 100 - (100 / (1 + RS))
Where RS (Relative Strength) = Average Gain of up periods / Average Loss of down periods.
🔶 Dual RSI Setup:
This strategy involves two RSI indicators:
RSI_Short (RSI_21): Calculated over a short period (21 days).
RSI_Long (RSI_42): Calculated over a longer period (42 days).
Differential Calculation:
The strategy focuses on the differential between these two RSIs:
RSI Differential = RSI_Long - RSI_Short
This differential helps to identify when the shorter-term sentiment diverges from longer-term trends, signaling potential trading opportunities.
BTCUSD Local picuture
🔶 Signal Triggers:
Entry Signal: A buy (long) signal is triggered when the RSI Differential exceeds -5, suggesting strengthening short-term momentum. Conversely, a sell (short) signal occurs when the RSI Differential falls below +5, indicating weakening short-term momentum.
Exit Signal: Trades are generally exited when the RSI Differential reverses past these thresholds, indicating a potential momentum shift.
█ Trade Direction
This strategy accommodates various trading preferences by allowing selections among long, short, or both directions, thus enabling traders to capitalize on diverse market movements and volatility.
█ Usage
The Dual RSI Differential Strategy is particularly suited for:
Traders who prefer a systematic approach to capture market trends.
Those who seek to minimize risks associated with rapid and unexpected market movements.
Traders who value strategies that can be finely tuned to different market conditions.
█ Default Settings
- Trading Direction: Both — allows capturing of upward and downward market movements.
- Short RSI Period: 21 days — balances sensitivity to market movements.
- Long RSI Period: 42 days — smoothens out longer-term fluctuations to provide a clearer market trend.
- RSI Difference Level: 5 — minimizes false signals by setting a moderate threshold for action.
Use Hold Days: True — introduces a temporal element to trading strategy, holding positions to potentially enhance outcomes.
- Hold Days: 5 — ensures that trades are not exited too hastily, helping to ride out short-term volatility.
- TPSL Condition: None — enables traders to focus solely on the strategy's entry and exit signals without preset profit or loss limits.
- Take Profit Percentage: 15% — aims for significant market moves to lock in profits.
- Stop Loss Percentage: 10% — safeguards against large losses, essential for long-term capital preservation.
Multi BTC Rolling APY Calculator [presentTrading]█ Introduction and How it is Different
The "Multi BTC Rolling APY Calculator " is an innovative Pine Script indicator tailored for cryptocurrency traders, providing insights into arbitrage opportunities and market sentiment by calculating the Rolling Annual Percentage Yield (APY) between spot and futures prices of Bitcoin. Unlike traditional APY calculators, this tool specializes in capturing the nuances of the highly volatile and less efficient cryptocurrency markets. Rolling APY is derived from traditional market basis arbitrage but adapted to highlight significant discrepancies that frequently occur between derivative and underlying asset prices in crypto markets.
Historical backtesting has revealed that Bitcoin's Rolling APY can serve as a robust indicator of market sentiment:
- Below 0%: Often indicates panic or 'end-of-world' scenarios.
- 0-5%: Signifies extreme market fear.
- 5-10%: Reflects a calm market environment.
- 10-15%: Suggests a moderately warm market.
- 15-20%: Indicates an overheated market.
- **Above 20%: Signals FOMO (fear of missing out).
This nuanced understanding of Rolling APY helps investors not only spot arbitrage opportunities but also gauge the emotional state of the market, providing a dual function that enhances trading strategies in the volatile realm of cryptocurrencies.
█ Strategy: How It Works – Detailed Explanation
🔶 Rolling APY Calculation
The Rolling APY calculation is crucial for understanding the annualized potential returns from arbitrage strategies, given by the formula:
APY = ((Future Price - Spot Price) / Spot Price) * (365 / Days Until Expiration) * 100
This annualizes the observed premium or discount on futures contracts relative to the spot price, providing a year-over-year expectation of returns if one were to engage in arbitrage over the specified period.
🔶 Days Calculation
The accuracy of APY is contingent upon the precise calculation of days until each contract expires:
Days = (Expiration Timestamp - Current Timestamp) / 86400000
This calculation ensures the APY reflects true market dynamics for each futures contract's duration.
█ Trade Direction
While this tool does not provide direct trading signals, it informs traders about potential arbitrage opportunities and the prevailing market sentiment. Traders can leverage this data to make strategic decisions, aligning long or short positions with the anticipated market movements and arbitrage conditions.
█ Usage
By inputting specific parameters related to their market analysis, traders can monitor discrepancies in Bitcoin’s pricing across different timelines, which is especially beneficial for those involved in derivatives trading, arbitrage, and sentiment analysis.
█ Default Settings
- Resolution: Controls the frequency of data (default is daily).
- Show numbers in annual: Determines whether APY is displayed on an annual basis.
- Base Symbol and Future Symbols: Specify the spot and futures markets for analysis.
Correlated Movement Indicator V2Hello!
This script was briefly known as as Bing Chilling. I converted this to Pine Script V5 to ensure compliance with publishing requirements.
This script tracks RSI and inserts an indicator when correlated movement is detected. Proximity of current tick to indicator origin tick determines freshness of the indicator.
DO NOT sit on the indicator for a long time. This is not a magic solution. It is very accurate but, not always precise. Ensure that you use other factors to determine the relevance of the indicator on current tick. This script can technically be used on any security/commodity/currency. Your Mileage May Vary! Proceed with caution as always.
General Workflow:
Look at proximity to where the flag is placed, general volatility, and other indicators and you can potentially determine the direction/strength. Not always the duration. The indicator could be for 30s, 1hr, 1 day, or whatever the market feels like. It depends on precision/quantity of pricing data. ex. 30min tick rate pricing vs. 1 day tick rate pricing will change the scope.
So if the time scope shows all sell from 1 week -> 3 months except for a couple recent buy indicators on the day, then it may be a bad call long term but, might be good for a short term play. Very volatile. Careful.
If it was all green with long term indicators such as 1 month -> 1 year, then it looks more like a buy and forget type strategy.
If it's all green with a recent red then you can try and figure out what the relative the bottom is so you can buy for long term at a slightly more favorable price.
Flip all that for shorting. I highly recommend AGAINST shorting since the stakes are very different and usually involves taking out what is essentially a loan to bet against the market.
This script pairs nicely with the top pick indicator when you search "Heiken Ashi". I use that to determine peaks and pits to better guess a good time to open a position.
This should be used alongside other indicators. Good for short term day trading and long term hold and forget. (Don't actually forget. Set some alerts periodically.)
Please use caution. Please do not take what I've said here as fact and diamond pepe hands bet all on green to the moon. This, like all the other strategies and indicators on this site, are used as tools to inform you about potential and to categorize/depict data in a more human recognizable way. If you have access to a paper account try there first.
Happy trading!
- Zetsu
NZTInstitutionalLevelDESCRIPTION IN ENGLISH
🔶 INTRODUCTION
NZTInstitutionalLevel is an indicator for the TradingView platform designed to display institutional levels on a price chart. This script is based on the concept of calculating significant price levels that can be used for both long-term trading and intraday operations. The indicator calculates and visualizes the levels at which large market participants , such as institutional investors and large funds , can actively participate. The displayed levels are very important , as psychologically people tend to buy or sell at these levels, which makes them a reliable support in the analysis
🔶 CONTENT
The indicator uses the analysis of support and resistance levels , which are often tested by major market players . These levels represent prices that have historically experienced significant price movements due to large trading volumes, making them relevant for future trading decisions. You may notice that price often reverses or tests these round levels. These levels are a powerful pillar of price action analysis.
🔶 KEY FEATURES
The indicator displays institutional (bank) levels . Thanks to which you can easily determine the position of major players and the direction of their capital.
Visualization customization:
Users can customize the display of levels by selecting color, thickness and line style (solid, dotted, dashed).
Adaptability:
The script adapts the level step size depending on the current price of the asset and the selected time interval, which allows it to be used in various trading conditions and for assets with different volatility and price range.
Automatic scaling:
The number of displayed levels changes depending on the selected time interval, allowing traders to focus only on significant levels without overloading the chart with unnecessary information.
🔶 SETTINGS
🔹 Show Institutional Levels (Показывать институциональные уровни)
Allows you to disable or enable the display of institutional levels.
🔹 Level color (Цвет уровней)
Allows you to customize the color of the levels.
🔹 Level thickness (Толщина уровней)
Allows you to adjust the thickness of the levels.
🔹 Level style (Стиль уровней)
Allows you to customize the levels' style.
🔶 RECOMMENDATIONS FOR USE
To use the indicator, activate it on the desired price chart through the TradingView indicator menu. Once activated, adjust the visibility, color, style and thickness of the levels according to your preferences. The indicator will automatically calculate and display institutional levels based on the current asset price and configured parameters . These levels can serve as potential points for placing buy or sell orders, setting stop losses, or taking profits.
The indicator was developed by Temirlan Tolegenov for NZT Trader Community , May 2024, Prague, Czech Republic.
ОПИСАНИЕ НА РУССКОМ ЯЗЫКЕ
🔶 ВСТУПЛЕНИЕ
NZTInstitutionalLevel – это индикатор для платформы TradingView, предназначенный для отображения институциональных уровней на ценовом графике . Этот скрипт основан на концепции вычисления значимых ценовых уровней , которые могут быть использованы как для долгосрочной торговли, так и для интрадей-операций . Индикатор рассчитывает и визуализирует уровни , на которых могут активно участвовать крупные участники рынка , такие как институциональные инвесторы и большие фонды . Отображаемые уровни очень важны , так как психологически люди склонны покупать или продавать на этих уровнях , что делает их надежной опорой при анализе.
🔶 СОДЕРЖАНИЕ
Индикатор использует анализ уровней поддержки и сопротивления , которые часто тестируются крупными игроками рынка . Эти уровни представляют собой цены, на которых исторически происходили значительные движения цен за счет больших объемов торгов, что делает их релевантными для будущих торговых решений. Вы можете заметить, что цена часто разворачивается или тестирует эти круглые уровни. Эти уровни являются мощной основой анализа price action.
🔶 КЛЮЧЕВЫЕ ОСОБЕННОСТИ
Индикатор отображает институциональные (банковские/круглые) уровни. Благодаря чему вы легко сможете определить позиции крупных игроков и направление их капиталов.
Настройка визуализации:
Пользователи могут настроить отображение уровней, выбрав цвет, толщину и стиль линий (сплошные, пунктирные, точками).
Адаптивность:
Скрипт адаптирует размер шага уровня в зависимости от текущей цены актива и выбранного временного интервала, что позволяет использовать его в различных торговых условиях и для активов с разной волатильностью и ценовым диапазоном.
Автоматическое масштабирование:
Количество отображаемых уровней меняется в зависимости от выбранного временного интервала, позволяя трейдерам сосредоточиться только на значимых уровнях, не перегружая график лишней информацией.
🔶 НАСТРОЙКИ
🔹 Показывать институциональные уровни
Позволяет отключить или включить отображение институциональных уровней.
🔹 Цвет уровней
Позволяет настроить цвет уровней.
🔹 Толщина уровней
Позволяет регулировать толщину уровней.
🔹 Стиль уровней
Позволяет настроить стиль уровней.
🔶 РЕКОМЕНДАЦИИ К ИСПОЛЬЗОВАНИЮ
Для использования индикатора, активируйте его на желаемом ценовом графике через меню индикаторов TradingView. После активации, н астройте видимость, цвет, стиль и толщину уровней в соответствии с вашими предпочтениями. Индикатор автоматически рассчитает и отобразит институциональные уровни , основываясь на текущей цене актива и настроенных параметрах . Эти уровни могут служить потенциальными точками для размещения ордеров на покупку или продажу, установления стоп-лоссов или взятия прибыли.
Индикатор разработан Темирланом Толегеновым для международного сообщества NZT Trader , Май 2024, Прага, Чешская Республика.
The indicator is published in accordance and respect to all House Rules of the TradingView platform.
Индикатор опубликован в соответствии и уважением ко всем внутренним правилами платформы TradingView.
Multi Timeframe Trend Screener [TradeDots]The "Multi Timeframe Trend Screener" is a trading indicator designed to assist traders in identifying the market trends of multiple assets within a single panel. This tool is invaluable for detecting shifts in trends, enabling traders to easily adjust their strategies under different market conditions.
HOW DOES IT WORK
Upon initialization, the indicator requires users to input two key pieces of information:
The assets to be monitored.
The timeframes to be analyzed.
The tool is capable of simultaneously tracking up to four assets across five distinct timeframes.
By specifying the type and length of the moving average, the indicator uses this data as a baseline to determine the current market trend.
A price movement below the moving average triggers a downward trend symbol (📉), indicating bearish conditions.
Conversely, a movement above the moving average displays an upward trend symbol (📈), signaling bullish conditions.
The aggregation of moving averages across various timeframes provides a comprehensive view of the overall market sentiment.
APPLICATION
In scenarios where the market consistently demonstrates an upward trend, each timeframe will display a bullish symbol. Shifts in market sentiment typically start in the shorter timeframes and can progressively affect longer ones if the trend continues.
This cascading effect allows the indicator to show all timeframes transitioning to a bearish orientation when the trend reverses.
The indicator also facilitates comparison between different assets. For assets with high correlation, a trend shift in one can often predict similar movements in correlated assets, thus allowing traders to swiftly adapt their strategies to align with new market conditions.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
🇨🇭Advanced Fusion MetricsIndicator Overview
The "Advanced Fusion Metrics Indicator" is a comprehensive trading tool designed for TradingView that combines several technical analysis methods to assist traders in identifying potential buy and sell opportunities in financial markets.
Key Components
Moving Averages (MA): Uses two Simple Moving Averages (SMA) with periods defined by the user (default 10 and 20). The indicator generates buy signals when the shorter MA (MA 10) crosses above the longer MA (MA 20) and sell signals when it crosses below, helping to pinpoint trend reversals.
Relative Strength Index (RSI): A momentum oscillator that helps identify overbought or oversold conditions, adding a layer of confirmation to the signals generated by the moving averages.
Exponential Moving Average (EMA 50): Used to gauge the medium-term trend direction. The color of the EMA line changes based on whether the trend is up (green) or down (red), providing a visual representation of the market trend.
Average True Range (ATR): This component measures market volatility. Signals are only generated when the ATR confirms significant market movement relative to the EMA50, enhancing the reliability of the signals during volatile conditions.
How It Works
Signal Generation: The core of the indicator is based on the crossover of two SMAs. A buy signal is issued when the short-term MA crosses above the long-term MA during sufficient market volatility (confirmed by ATR). Conversely, a sell signal is triggered when the short-term MA crosses below the long-term MA under similar conditions.
Trend Confirmation: The EMA50 helps confirm the broader market trend, while the ATR ensures that the crossover signals occur during periods of meaningful price movement, filtering out noise and less significant price movements.
Use Case
For Traders: The indicator is ideal for traders who need clear, actionable signals combined with an assessment of market conditions. It’s particularly useful in markets where understanding volatility and momentum is crucial, such as in cryptocurrencies and forex.
Benefits
Comprehensive Analysis: Combines trend, momentum, and volatility analysis in one tool, providing a multifaceted approach to the markets.
Enhanced Decision-Making: By integrating multiple indicators, it reduces the likelihood of false signals and enhances decision-making confidence.
Customizable and Dynamic: Allows for easy adjustment of parameters to fit different trading styles and market conditions.
This indicator equips traders with a powerful blend of tools to analyze price movements and make informed trading decisions based on a combination of trend, momentum, and volatility insights.
Global Net Liquidity (TG fork)Worldwide net liquidity, with trend coloring.
Global Net Liquidity attempts to represent worldwide net liquidity, and is defined as: Fed + Japan + China + UK + ECB - RRP - TGA , Where the first five components are central bank assets.
On TradingView, the indicator can be reproduced with the following equations: Global Net Liquidity = FRED:WALCL + FRED:JPNASSETS * FX_IDC:JPYUSD + CNCBBS * FX_IDC:CNYUSD + GBCBBS * FX:GBPUSD + ECBASSETSW * FX:EURUSD + RRPONTSYD + WTREGEN
However, this indicator adds a moving average cloud, and margin coloring, which eases historical trend assessment at a glance.
This indicator can be seen as an alternative representation of the accumulation/distribution indicator (and hence the same terms can be used in this description).
The Moving Average Cloud is simply the filling between the moving average (by default an EMA) and the current value. This feature was inspired by D7R ACC/DIST closed-source indicator, kudos to D7R for making such neat visual indicators.
Usage instructions:
Blue is more likely a phase of accumulation because the current value is above its historical price as defined by the moving average,
red is when this is more likely a phase of distribution.
Yellow is when the difference is below the margin, so we consider it is insignificant and that the trend is undecided. This can be disabled by setting the margin to 0.
While the color indicates if it's more likely an accumulation (blue) or distribution (red) phase or undecided (yellow), the cloud's vertical size allows to assess the strength of this tendency and the horizontal size the momentum, so that the bigger the cloud, the stronger the accumulation (if cloud is blue) or distribution (if cloud is red).
Why is that so? This is because the cloud represents the difference between the current tendency and the moving averaged past one, so a bigger cloud represents a bigger departure from recently observed tendencies. In practice, when there is accumulation, a pump in price can be expected soon, or if it already happened then it means it is indeed supported by volume, whereas if distribution, either a dump is to be expected soon, or if it already happened it means it's supported by volume.
Or maybe not necessarily a dump, but if there is a move upward in price, but the indicator indicates a strong distribution, then it means that the price movement is not supported and may not be sustainable (reversal may happen at anytime), whereas if price is going upward AND there is an accumulation (blue coloring) then it is more sustainable. This can be used to adapt strategies accordingly (risk on/risk off depending on whether there is concordance of both price and accumulation/distribution).
This indicator also includes sentiment signals that can be used to trigger alarms.
This indicator is a remix of Dharmatech's, who authored the first this Global Net Liquidity equation, kudos to them! Please show them some love if you like this indicator!
Range Sentiment | FractalystWhat’s the purpose of this indicator?
This indicator aims to calculate the percentage level of bullish or bearish fluctuations within equally divided price sections, in the latest price range.
----
How does this indicator calculate the current sentiment?
This indicator calculates the current sentiment by identifying the highest swing high and the lowest swing low, then evenly dividing the distance between them into percentage amounts. If the price is above the 50% mark, it indicates bullishness, whereas if it's below 50%, it suggests bearishness.
----
Is this sentiment the same as the ones on online websites?
No, the sentiment as discussed earlier, is based on analyzing price action on charts and calculating the current range in percentage.
----
What methods do other websites typically use to determine market sentiment?
1. Broker Data Aggregation: Compiling data from various forex brokers to assess the percentage of long and short positions taken by traders.
2. Lot Size Analysis: Considering the size of positions taken by traders, where a significant number of large positions in one direction may indicate strong bullish or bearish sentiment.
3. Order Flow Analysis: Tracking the flow of orders in the forex market, with an increase in buy orders suggesting bullish sentiment and a surge in sell orders indicating bearish sentiment.
4. Sentiment Surveys: Conducting surveys among forex traders to gather opinions about future price movements and gauge sentiment.
----
What are the options to display the current market sentiment?
1. Table - located at top centre of your charts
2. Label - indicating the 50% level of the current range mentioned above
----
How can I analyze how the sentiment worked on historical data?
There are 3 available options:
1. Shapes
2. Candles
3. Background
- White colour/transparent background denote a weak or uncertain trend, where the bullish or bearish degree is less than 60%.
- Blue colour indicates that the price is trading bullish.
- Red colour indicates that the price is trading bearish.
----
On what market and timeframe this indicator operates on?
The Range Sentiment indicator is applicable to all markets and timeframes.
When switching between timeframes, the values remain consistent because it utilizes the daily bias to determine the sentiment for the current day.
----
How can I use this indicator?
1. Add "Range Sentiment | Fractalyst" to your TradingView chart.
2. Choose the pair you want to analyze or trade intraday/during session.
3. Make sure the sentiment is showing you a bullish or a bearish degree of higher than 60%.
(To avoid potentially choppy price action)
4. Use your favourite entry model to trade in the same direction that the sentiment is showing you.
5. Determine your take profit based on the daily swing level OR previous daily high if the bullish degree is above +60% and previous daily low if the bearish degree is +60%.
6. Risk adjustment and Trade management based on your personal preferences.
Example:
----
User-input settings and customizations
----
What makes this indicator original?
1. It utilizes the daily timeframe's current range to determine the day's bias degree in percentage.
2. Apart from presenting the current sentiment in a sentimental table, it also visualizes the 50% threshold as a label, indicating where price may shift direction from a sentiment perspective.
3. It offers the feature to analyze historical data, allowing users to observe indicator performance through shapes, candles, and background colors.
4. By integrating market sentiment directly into the charts, it simplifies the trading process, removing the reliance on online websites and services for sentiment analysis, which often rely on limited brokerage data and resources.
5. Unlike most sentiment websites that primarily focus on forex pairs sentiment data, this indicator stands out by its capability to analyze sentiment across all markets. Moreover, it provides real-time updates, ensuring traders have access to the latest sentiment information regardless of the market they are trading in.
----
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer.
[Support and Resistance with Trend Lines] with Backtest (TSO) with Backtest (TSO)
===========================================================================
===========================================================================
This indicator serves as a comprehensive full-cycle trading system, providing alerts at each stage of the trade, from opening to closure. The algorithm uses most recent and historical S&R (Support and Resistance) levels with most recent and historical Trend Lines, generating signals for trades when Breaks/Bounces occur (Trade Open Signal triggers can be configured via very customizable indicator Input "Signal Trigger Matrix" settings). With signal for trade open, TP (Take Profit and SL (Stop Loss) levels are calculated as well and marked on the chart including alerts for each action of the trade. The indicator offers a variety of automated approaches for TP (Take-Profit) and SL (Stop-Loss) settings. These include static current/historical S&R (Support and Resistance) levels or S&R/Trend Lines dynamic breaks for TP (Take-Profit) and various SL (Stop-Loss) approaches, including ATR Trailing SL, opposite S&R (Support and Resistance) levels SL, opposite Trend Lines SL and more. This diverse set of tools ensure flexibility in tailoring TP (Take-Profit) and SL (Stop-Loss) parameters to different market conditions, contributing to a more adaptive and robust trading system. Additionally, a series of signal analysis tools, including market sentiment, candle bar analysis, divergence, and volume, enhance the precision of trading signals.
* Works with popular timeframes: 1M, 3M, 5M, 15M, 30M, 45M, 1H.
* Works well with Futures and Indices, can be used to trade Stocks, Crypto and FOREX.
* Includes LIVE alert/labels Breakouts and Bounces signal trigger feature, which can be used for scalping (NOTE: This approach cannot be backtested).
* Every action of the trade is calculated on a confirmed closed candle bar state (barstate.isconfirmed), so the indicator will never repaint.
==============================================================
Indicator examples:
---------------------------------------------------------------------------
Strategy Config: SRTL_MES_15M3Y_EODoff_ALL
Here is a nice example of MES (Micro E-Mini S&P 500 Index Futures) configuration, which uses S&R (Support and Resistance) breakouts as signal trigger with Elliot Wave confirmation and previous S&R historical levels for TP (Take-Profit).
---------------------------------------------------------------------------
An example of an intraday Tesla trade. Also the green arrows will be displayed IMMEDIATELY when Breakout/Reverse Bounce occurs (same an Alert will be triggered immediately).
===========================================================================
Trading open/close/TP/SL labels, plots and colors explanations:
---------------------------------------------------------------------------
>>> S&R (Support and Resistance) levels/lines: orange - support, blue - resistance (can be hidden).
>>> Trend Lines: yellow - support, green - resistance (can be hidden).
>>> Blue labels show resistance breakouts and bounces, light-blue - bullish, dark-blue - bearish
>>> Yellow labels show resistance breakouts and bounces, light-yellow - bullish, dark-yellow - bearish
>>> Green/Red arrows on top/bottom of candle bar will show LIVE breakouts (if turned on)
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
STATS TABLE ///////////////////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading STATS table on the chart showing current trade direction, Last TP (Take-Profit) Taken, Current Trade PL (profit/loss in price difference from trade open to the very current state).
---------------------------------------------------------------------------
CUSTOM TRADING DATE RANGE /////////////////////////////////////////////////
---------------------------------------------------------------------------
>>>>> This feature can be used to manually set indicator trading range from and to a specific date and time. NOTE: This is not intended for a very long date range backtesting, utilize TradingView Strategy Tester for that.
* Use TradingView “Strategy Tester” to see Backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case - manually check “Start”/“End” dates or use “Deep Backtesting” feature!
---------------------------------------------------------------------------
INTRADAY ACTIVE TRADING SESSION CONFIGURATION /////////////////////////////
---------------------------------------------------------------------------
>>> Regional Active Trading Session Hours Schedule: If selected - trades will only open during regional active trading session, if 'OFF', there will be no trading schedule and trades will open 24/7.
>>> EOD(End of Day) Close - On/Off: Close the trade if it's still open at the end of active trading session (on the very last candle bar). NOTE: If no region is selected at 'Regional Active Trading Session Schedule' - there will be no EOD(End of Day) Close and trades will run overnight until either SL(Stop-Loss) or TP(Take-Profit) is hit!
>>>>> EOD(End of Day) Close - 1 candle bar before last: This is specifically for stocks as while usually indices can be closed 15minutes after the market closes, for stocks - the last candle bar closes at the same time with the market active trading session, which if closed - trades can't be closed until next day/session! Enable this setting for the trade to close/alert 1 candle bar before the last one, so there is still time to close the trade at the Broker (NOTE: depending on the timeframe, 1 candle bar can be: 15sec, 30sec, 1min, 3min, 5min, 15min, 30min, 45min, 1h).
---------------------------------------------------------------------------
SIGNAL TRIGGER MATRIX ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading Engine: This setting turns on TradingView Strategy trading engine for backtesting.
>>> Market Session Only: With this setting turned on, all signal trigger Breaks/Bounces will be hidden during Pre/Post market time.
>>> Plot S&R Levels/Lines: Plot S&R (Support and Resistance) on chart. Note: historical levels/lines will only be plotted if hit (Break/Bounce).
>>> Plot Trend Lines Levels/Lines: Plot Trend Lines levels/lines on chart. Note: historical levels/lines will only be plotted if hit (Break/Bounce).
>>> Use S&R Current Levels | Use S&R Historical Levels | Use Trend Lines Current Levels | Use Trend Lines Historical Levels |: Choose which levels should be used for Breaks/Bounces to be captured on. If all triggers are turned on/checked - whatever happens 1st wins the trigger.
>>> Breaks | Bounces: 'Breaks': Turn on Breaks through levels/lines signal trigger. | 'Bounces': Turn on Bounces off levels/lines signal trigger.
>>> Signal: Regular | Signal: S&R Combo | Signal: TL Combo | Signal: S&R + TL Combo | Signal: Repeat Action |: Trade open signal trigger execution approach MATRIX (If 1 or more turned on at the same time - whatever comes first will be the trade signal trigger). 'Regular': A single Break/Bounce must occur on a closed bar for signal trigger. 'S&R Combo': A combination of 2 Current + Historical S&R (Support and Resistance) Break/Bounce must happen in the same direction on same bar for signal trigger. 'TL Combo': A combination of 2 Current + Historical Trend Lines Break/Bounce must happen in the same direction on same bar for signal trigger. 'S&R + TL Combo': a combination of ANY S&R and Trend Line Break/Bounce must happen in the same direction on same bar for signal trigger. 'Repeat Action': Initial and then confirmation (2nd/3rd/etc. consecutive occurence) Break/Bounce must occur on same level/line for signal trigger.
>>> Historical - Look Back (# of days): How far back (in # of days) will historical S&R/Trend Lines will be used for Trade Open signals/TP/SL/etc.
>>> Historical - Look Back Invalidation (# of days): IF THERE IS TOO MUCH HISTORICAL LEVELS/LINES ON CHART - LOWER THIS SETTING + MAKE SURE IT'S SMALLER THAN 'Historical - Look Back (# of days)'. With big Look back period (5+ days) - it can become very messy with too many historical levels/lines. To clear oldest historical levels/lines - set Look Back Invalidation # of days to less than Historical Look Back # of days. (After X # of Look Back Invalidation days - older levels/lines will become invalidated and no longer used for opening trades/TP (Take-Profit)/SL (Stop-Loss), while newer levels/lines will still be discovered.
>>> S&R/Trend Lines - Support/Resistance combined into 1 entity: Every level or a line becomes simply a level or a line, regardless if it originally was a support or resistance. By default, depending on the level/line originally being support or resistance - the signal direction will be such as: Resistance is broken > LONG / bounced > SHORT; Support is broken > SHORT / bounced > LONG; with this setting on, either level or line can be both broken or bounced off in ANY direction, trade open direction will depend on current market sentiment only.
---------------------------------------------------------------------------
S&R CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> S&R Search - Left Bars (current): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars).
>>> S&R Search - Right Bars (current): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars).
>>> S&R Search - Custom Resolution (current): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> S&R Search - Left Bars (historical): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars).
>>> S&R Search - Right Bars (historical): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars).
>>> S&R Search - Custom Resolution (historical): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> S&R - Historical S&R Levels - Extend to the right: Extend all S&R lines to the right.
>>> S&R (Current/Historical) - Live Breakout/Bounce - ALERT/SHOW: NOTE: Alert wlil trigger immediately at price Breaking thru or Bouncing off level/line and an arrow above /below the bar will show the direction of breakout/bounce. If on that same live bar - price comes back causing the Breakout/Bounce become no longer valid - the arrow will disappear as the condition of the Break/Bounce will no longer be valid.
---------------------------------------------------------------------------
TREND LINES CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Show: Trend Line development (where it 'did not exist' yet): It takes 2 pivots to develop a trend line, pivot is established at least 3 candle bars later from where the pivot is. With this setting turned on - it will plot dashed lines where trend lines originated connecting the 1st and 2nd pivot point up to where the trend line became established (where in reality you would now be able to draw a certain trend line). Established already generated trend line are plotted with a solid line.
>>> Trend Lines - Line Slope Confirmation: LONG breakout will only be shown if trend line is goind downslope \. SHORT breakout will only be shown if trend line is goind upslope /.
>>> Trend Lines - Search - Left Bars (current): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Search - Right Bars (current): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Custom Resolution (current): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> Trend Lines - Search - Left Bars (historical): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Search - Right Bars (historical): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Custom Resolution (historical): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> Trend Lines - Historical Trend Lines - Extend to the right: Extend all Trend Lines to the right.
>>> Trend Lines (Current/Historical) - Live Breakout/Bounce - ALERT/SHOW: NOTE: Alert will trigger immediately at price Breaking thru or Bouncing off level/line and an arrow above /below the bar will show the direction of breakout/bounce. If on that same live bar - price comes back causing the Breakout/Bounce become no longer valid - the arrow will disappear as the condition of the Break/Bounce will no longer be valid.
---------------------------------------------------------------------------
TAKE-PROFIT/STOP-LOSS CONFIGURATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> TP (Take-Profit) System: 'S&R Static Current/Historical': TP (Take-Profit) is calculated using current/historical S&R (Support & Resistance) levels at trade open and remains static. 'S&R/Trend Lines Dynamic Breaks': TP (Take-Profit) is fully dynamic and will be trigger at price above trade open price and with Breakout occurence (S&R or Trend Line current/historical breakout).
>>> TP (Take-Profit) # of targets: It is wise to divide the trade into several profit targets. With this setting - up to 5 TP (Take-Profit) targets can be approached. The trade will be equally divided up by the selected # of TP (Take-Profit) targets.
>>> SL (Stop-Loss) System: 'ATR-Trailing-SL': SL (Stop-Loss) is trail-following the ATR (Average True Range) line, NOTE: If at signal trigger, ATR will be against the trade direction - trade open signal will be skipped; 'S&R-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent S&R level and remains there until trade closes; 'TrendLines-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent trend line and remains there until trade closes; 'TrendLines-Dynamic-SL': SL (Stop-Loss) will be set per current opposite trend line and follow it until trade is open.; 'Oppos-Sig-Trd-in-Loss': SL (Stop-Loss) will trigger at opposite signal with trade currently at loss.
>>> SL (Stop-Loss) - On/Off: Without SL (Stop-Loss), unless EOD (End of Day) Close is turned on - there will be no SL (Stop-Loss) at all!
---------------------------------------------------------------------------
MARKET SENTIMENT CONFIRMATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> Market Sentiment: Signal is confirmed per Market Sentiment direction. If Market Sentiment is turned off - whatever signal comes 1st will be the trade open trigger.
---------------------------------------------------------------------------
SIGNAL ANALYSIS AND CLEANUP ///////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Signal Cleanup - Bar Color: Include Bar Color (bullish/bearish) confirmation, LONG signal will only be opened if signal bar is green/bullish, SHORT if red/bearish.
>>> Signal Cleanup - Bar Directional Structure: Skip opposite bar structure types signals (For example: bearish green hammer).
>>> Signal Cleanup - Bar Doji Skip: Skip doji (indecisive) candles signals.
>>> Signal Cleanup - EWO (Elliott Wave Oscillator): Include EWO (Elliott Wave Oscillator), LONG will only be opened if EWO is bullish / SHORT if EWO is bearish.
>>> Signal Cleanup - VWAP (Volume-Weighted Average Price): Include VWAP (Volume-Weighted Average Price), LONG will only be opened if price is above VWAP / SHORT if price is below VWAP.
>>> Signal Cleanup - MA (Moving Average) Confirmation: Include MA (Moving Average), LONG will only be opened if MA is bullish / SHORT if MA is bearish.
>>> Signal Cleanup - ATR (Average True Range): Include ATR (Average True Range) confirmation, LONG will only be opened if ATR is bullish / SHORT if ATR is bearish.
>>> Signal Cleanup - Divergence(RSI + MACD): Include Divergence (RSI + MACD ) confirmation, LONG will only be opened if Divergence is bullish / SHORT if Divergence is bearish.
>>> Signal Cleanup - Volume % Strength: Include Volume strength/percentage confirmation, LONG/SHORT will only be opened with strong Volume matching the signal direction | By default, strong Volume percentage is set to 150% and weak to 50%.
>>> Signal Cleanup - Volume Above Average: Include Volume Above Moving Average (Volume closing bar closes above volume moving average) confirmation, LONG/SHORT will only be opened with Volume above average - Volume closed bar color must match the closed price color (bullish/bearish direction) + Volume bar must be closed above volume MA line).
---------------------------------------------------------------------------
===========================================================================
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
TP System - VERY IMPORTANT INFO!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" - amount by which current trade/position needs to be reduced/partially closed/sold.
-------------------------------------------------------------------------------------------------------------------
TP System: Dynamic
"TP PERCENTAGE" - will always be the same amount (trade/position size divided by the # of take-profit(TP) targets) and percentage to be closed will always be of the ORIGINAL trade/position.
-------------------------------------------------------------------------------------------------------------------
TP System: Static
"TP PERCENTAGE" - will always be the same amount IF take-profit(TP) targets are hit 1-by-1 (TP1 > TP2 > TP3 > TP4 > TP5), otherwise it will vary and unless it is a 1st take-profit(TP1), the REMAINING trade/position size will always be smaller than original and therefore the percentage to be closed will always be of the REMAINING trade/position and NOT the original one!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" CheatSheet (these are the only percentages you may see)
-----------------------------------------------------------------------
TP PERCENTAGE---Close/Sell Amount-------------Example (trade size: 50 stocks)
20%-------------trade size * 0.2--------------50 * 0.2 = 10 stocks
25%-------------trade size * 0.25-------------50 * 0.25 = 12.5(~13) stocks
34%-------------trade size * 0.34-------------50 * 0.34 = 17 stocks
40%-------------trade size * 0.4--------------50 * 0.4 = 20 stocks
50%-------------trade size * 0.5--------------50 * 0.5 = 25 stocks
60%-------------trade size * 0.6--------------50 * 0.6 = 30 stocks
66%-------------trade size * 0.66-------------50 * 0.66 = 33 stocks
75%-------------trade size * 0.75-------------50 * 0.75 = 37.5(~38) stocks
80%-------------trade size * 0.8--------------50 * 0.8 = 40 stocks
100%------------trade size--------------------50 = 50 stocks
-----------------------------------------------------------------------
If for any reason a portion of the current/remaining trade closed at such occurrence was slightly wrong, it is not an issue. Such occurrences are rare and with slight difference in partial TP closed is not significant to overall performance of our algorithms.
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like.
NOTE: Each label , , etc. is customizable, you can change the text of it within indicator Input settings.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
TP4: 22500
TP5: 23500
SL: 19000
Leverage: 0
---------------------------------------------------------------------------
Here is how a TP1 alert will look with 5 TPs breakdown of the trade.
NOTE1: Next to TP1 taken it will show at which price it was triggered.
NOTE2: Next to "TP Percentage" it shows how much of the CURRENT/ACTIVE/REMAINING trade needs to be closed.
NOTE2: If TP2/3/4/5 comes before TP1 - the alert will tell you exactly how many percent of the trade needs to be closed!
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: TP1
TP1: 20500
TP Percentage: 20%
---------------------------------------------------------------------------
Here is how an alert will look for LONG - STOP-LOSS.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
ENTRY: 20000
LONG: SL
SL: 19000
---------------------------------------------------------------------------
Here is how an alert will look for LONG - EOD (End of Day) In Profit close.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: EOD-Close (profit)
ENTRY: 20000
EOD-Close: 21900
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Add indicator to chart and make sure the correct strategy is configured (check Backtesting results)
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "alert() function calls only", as other wise there will be 2 alerts for every alert!
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
---------------------------------------------------------------------------
NOTE: There seems to be a strange glitch when strategy is running live, it will show "double-take" take-profits labels on the chart. This is not affecting the script logic and backtesting results, if you simply change the timeframe real quick to something else then back - it will no longer show the duplicate orders... this must be some sort of a glitch as every alert was thoroughly tested to make sure everything is working!
NYSE TickThe NYSE Tick indicator is a market breadth indicator used to determine short-term bullish or bearish market sentiment. The NYSE Tick index compares the number of stocks on the New York Stock Exchange that are ticking up to the number of stocks ticking down at a specific moment in time. When the NYSE Tick is hovering around the zero line, roughly the same number of stocks are ticking up as are ticking down. When the overall market is rising it will usually present on the NYSE Tick as a rise in value that will generally stay mostly above the zero line for a period of time. The opposite is true when the general market is falling and can be seen as the NYSE Tick staying mostly below the zero line. This information can be very helpful for a short-term day trader who trades a market that also follows many of these same stocks, like the E-Mini S&P 500 Futures (ES), for example. While the index can theoretically rise or fall to over ±2,000 if all stocks on the NYSE are ticking up or down at the same time, it’s generally considered an extreme movement if the NYSE Tick is ±1,000. For this reason, the indicator has default reference lines at ±1,000 and halfway marks at ±500. In order to partially smooth out the movement and make movement trends more easily read, the indicator plots the values using Heikin Ashi candles instead of the standard bars or candlesticks. The price-line value displayed is an accurate live value, however, rather than the OHLC average value of a standard Heikin Ashi candle. Since the standard hours for the NYSE are Monday – Friday, 09:30 – 16:00 EST, the indicator only plots bars during this time.
Kalman Filter Volume Bands by TenozenHello there! I am excited to introduce a new original indicator, the Kalman Filter Volume Bands. This indicator is calculated using the Kalman Filter, which is an adaptive-based smoothing quantitative tool. The Kalman Filter Volume Bands have two components that support the calculation, namely VWAP and VaR.
VWAP is used to determine the weight of the Kalman Filter Returns, but it doesn't have a significant impact on the calculation. On the other hand, VaR or Value at risk is calculated using the 99th percentile, which means that there is a 1% chance for the returns to exceed the 99th percentile level. After getting the VaR value, I manually adjust the bands based on the current market I'm trading on. I take the highest point (VaR*2) and the lowest point (-(VaR*2)) from the Kalman Filter, and then divide them into segments manually based on my preference.
This process results in 8 segments, where 2 segments near the Kalman Filter are further divided, making a total of 12 segments. These segments classify the current state of the price based on code-based coloring. The five states are very bullish, bullish, very bearish, bearish, and neutral.
I created this indicator to have an adaptive band that is not biased toward the volatility of the market. Most band-based indicators don't capture reversals that well, but the Kalman Filter Volume Bands can capture both trends and reversals. This makes it suitable for both trend-following and reversal trading approaches.
That's all for the explanation! Ciao!
Additional Reminder:
- Please use hourly timeframes or higher as lower timeframes are too noisy for reliable readings of this indicator.