OHLC LoggerOHLC OG - 10 Candles
The OHLC OG - 10 Candles indicator provides a clear visualization of price action by analyzing the Open, High, Low, and Close (OHLC) data of the last 10 candles. Designed for traders who rely on structured price patterns, this indicator helps in identifying market trends, key support and resistance zones, and potential breakout points.
Features:
✅ Tracks the last 10 candles to highlight significant price movements.
✅ Visualizes Open, High, Low, and Close levels for improved market analysis.
✅ Customizable settings for enhanced adaptability to different strategies.
✅ Works across all timeframes and assets (forex, stocks, crypto, etc.).
✅ Ideal for price action traders looking for structured market insights.
This indicator is perfect for traders who prefer clean and reliable price action analysis without unnecessary complexity. Whether you trade breakouts, trend reversals, or continuation patterns, OHLC OG - 10 Candles helps you stay ahead of the market.
🔹 How to Use:
Apply the indicator to your chart and observe how the OHLC levels react to price movements.
Use it to confirm trends, identify potential breakout zones, or refine entry/exit points.
Combine it with other indicators or strategies for a more comprehensive trading approach.
📌 Disclaimer: This indicator is for educational purposes only. Always conduct proper risk management before trading.
Statistics
QSL Upside/DownsideThe QSL Upside/Downside Indicator helps traders estimate potential gains and losses using Conditional Value at Risk (cVaR), a statistical measure that assesses both downside risk and upside potential beyond standard volatility. Instead of fixed timeframes (daily, weekly, etc.), traders can set a custom lookback period (in days) to analyze market behavior over their preferred time frame.
How It Works
The indicator calculates cVaR over the chosen period to determine how much an investment could move up or down based on past price behavior. It does this by:
• Mean Return – The average price movement over the period.
• Standard Deviation – Measures price fluctuations from the average.
• cVaR Confidence Interval (95%) – Estimates worst-case losses, meaning the downside projection reflects the worst 5% of expected losses.
• Upside Potential (Best 5%) – Instead of only considering risk, this indicator also calculates the potential upside by measuring returns in the top 5% of past price movements.
This provides a more complete view of what traders can expect—both in terms of risk and potential reward.
Key Features
✅ Custom Lookback Period – Set any number of days to analyze.
✅ cVaR Calculation (95% Confidence Interval) – Identifies extreme downside risks.
✅ Upside Potential (Best 5%) – Estimates how much an investment could rise in a best-case scenario.
✅ Clear Table Display – Quickly see projected best and worst-case portfolio values.
Understanding Probabilities: Upside & Downside Potential
Most traders focus on risk, but it’s equally important to understand potential gains. This indicator provides a probability-based view of expected market moves:
• 95% Confidence Interval (Downside cVaR) – There’s a 5% chance that losses could exceed this level.
• 95% Confidence Interval (Upside cVaR) – There’s a 5% chance that gains could be greater than this level.
• The remaining 90% of expected returns fall between these two extremes.
By knowing both potential losses and gains, traders can make more balanced, data-driven decisions rather than only focusing on worst-case scenarios.
Why Use This Indicator?
🔹 Better Risk & Reward Assessment – Understand both downside risk and upside potential.
🔹 More Realistic Market Projections – Uses probabilities instead of simple historical averages.
🔹 Flexible & Customizable – Works with any asset and any time period.
With this tool, QSL members can strategically plan trades, knowing the expected best and worst-case outcomes with a 95% probability range. 🚀
Date Display with Bar Counter and EMA===== ENGLISH DESCRIPTION =====
OVERVIEW:
This is a multi-function indicator that combines three useful tools in one script:
1. Date Display - Shows current date and symbol information in a customizable table
2. Bar Counter - Displays sequential bar numbers at specified intervals
3. EMA (Exponential Moving Average) - Plots an EMA line with customizable settings
FEATURES:
1. DATE DISPLAY:
- Shows date in full format (e.g., "Mon ∙ January 1, 2023") or short format (e.g., "Mon ∙ 01.01.23")
- Option to show/hide day of week
- Option to show/hide symbol and timeframe information
- Customizable table position (top/middle/bottom, left/center/right)
- Automatic color adjustment based on chart background
2. BAR COUNTER:
- Displays sequential bar numbers below price bars
- Customizable display frequency (every X bars)
- Special handling for Hong Kong futures (resets at market open)
- Different reset logic based on timeframe (daily, weekly, monthly)
- Customizable text size and color
3. EMA INDICATOR:
- Customizable period length (default: 20)
- Option to use different timeframe for calculation
- Option to wait for timeframe close for more stable signals
- Customizable line color
USAGE INSTRUCTIONS:
- After adding the indicator to your chart, customize settings in the "Format" panel
- The Date Display table will appear at your chosen position on the chart
- Bar numbers will appear below price bars at your specified frequency
- The EMA line will be plotted on the chart with your chosen settings
- Colors automatically adjust to light/dark chart themes
===== 中文说明 =====
概述:
这是一个多功能指标,将三个实用工具合并为一个脚本:
1. 日期显示 - 在可自定义的表格中显示当前日期和交易品种信息
2. K线计数器 - 按指定间隔显示K线序号
3. EMA指数移动平均线 - 绘制可自定义设置的EMA线
功能特点:
1. 日期显示:
- 支持完整格式(如"Mon ∙ January 1, 2023")或简短格式(如"Mon ∙ 01.01.23")
- 可选择显示/隐藏星期几
- 可选择显示/隐藏交易品种和时间周期信息
- 可自定义表格位置(顶部/中部/底部,左侧/中间/右侧)
- 根据图表背景自动调整颜色
2. K线计数器:
- 在价格K线下方显示序号
- 可自定义显示频率(每X根K线)
- 对香港期货有特殊处理(在开市时重置)
- 根据时间周期(日线、周线、月线)使用不同的重置逻辑
- 可自定义文字大小和颜色
3. EMA指标:
- 可自定义周期长度(默认:20)
- 可选择使用不同的时间周期进行计算
- 可选择等待时间周期结束以获得更稳定的信号
- 可自定义线条颜色
使用说明:
- 将指标添加到图表后,在"格式"面板中自定义设置
- 日期显示表格将出现在您选择的图表位置
- K线序号将按您指定的频率显示在价格K线下方
- EMA线将根据您选择的设置绘制在图表上
- 颜色会根据浅色/深色图表主题自动调整
*/
Machine Learning + Geometric Moving Average 250/500Indicator Description - Machine Learning + Geometric Moving Average 250/500
This indicator combines password-protected market analysis levels with two powerful Geometric Moving Averages (GMA 250 & GMA 500).
🔒 Password-Protected Custom Levels
Access pre-defined long and short price levels for select assets (crypto, stocks, and more) by entering the correct password in the indicator settings.
Once the correct password is entered, the indicator automatically displays:
Green horizontal lines for long entry zones.
Red horizontal lines for short entry zones.
If the password is incorrect, a warning label will appear on the chart.
📈 Geometric Moving Averages (GMA)
This indicator calculates GMA 250 and GMA 500, two long-term trend-following tools.
Unlike traditional moving averages, GMAs use logarithmic smoothing to better handle exponential price growth, making them especially useful for assets with strong trends (e.g., crypto and tech stocks).
GMA 250 (white line) tracks the medium-term trend.
GMA 500 (gold line) tracks the long-term trend.
⚙️ Customizable & Flexible
Works on multiple assets, including cryptocurrencies, equities, and more.
Adaptable to different timeframes and trading styles — ideal for both swing traders and long-term investors.
This indicator is ideal for traders who want to blend custom support/resistance levels with advanced geometric trend analysis to better navigate both volatile and trending markets.
MacroJP: US Macro Conditions & Forward GuidanceMacroJP is a comprehensive, free-to-use TradingView indicator designed to provide a clear snapshot of the US macroeconomic environment. It consolidates key economic metrics into a single, interactive dashboard, allowing traders and investors to quickly assess current conditions and adjust their portfolio biases accordingly.
How It Works:
• Data Aggregation:
The indicator pulls monthly data from reputable free economic sources—specifically, ISM Manufacturing PMI, US CPI YoY, US M2 Money Supply, and US Treasury yields (10-year and 2-year). This robust dataset forms the backbone of the analysis.
• Composite Calculations:
By calculating a Composite Inflation Indicator (the average of CPI YoY and the yield spread) and evaluating the year-over-year change in M2, MacroJP gauges both the inflationary pressures and liquidity trends in the economy. These composite metrics offer a nuanced view that goes beyond single-indicator analysis.
Regime Classification:
The core strength of MacroJP lies in its quadrant classification system. It categorises the macro environment into four distinct regimes based on the direction of economic growth (derived from PMI) and inflation (from the Composite Inflation Indicator):
• Expansion (Reflation): Indicative of a recovering economy with rising production and moderate inflation—ideal for a bullish equity bias.
• Stagflation Risk: A scenario of weak growth coupled with high inflation, where a defensive posture is recommended.
• Slowdown (Deflationary): Characterised by contracting economic activity and falling prices, suggesting a move towards cash or high-quality bonds.
• Disinflationary Boom: Reflects strong growth with stable or falling inflation—an optimal environment for equities with some bond diversification.
Forward Guidance:
To enhance its predictive capability, MacroJP incorporates leading indicators by shifting key data points. For instance, it uses a forward-shifted M2 YoY value and a one-month shifted CPI proxy to offer insights into near-term trends. This approach helps in anticipating changes, providing a sort of “forward guidance” that can inform strategic asset allocation.
User Education:
The indicator features an intuitive table with on-hover tooltips that explain each metric, its relevance, and recommended investment biases. This educational layer is designed to empower users to not only monitor the economic pulse but also to understand the ‘why’ behind each reading, making it a valuable tool for both novice and experienced investors.
MacroJP brings clarity to complex macroeconomic dynamics, allowing users to make more informed decisions in volatile markets. Its seamless integration of free public data and detailed on-chart annotations makes it an indispensable tool for anyone looking to understand the broader economic context impacting their investments.
— Jaroslav
Pearson Correlation Best MA [victhoreb]Pearson Correlation Best MA is an innovative indicator designed to dynamically select the moving average that best aligns with price action based on the Pearson correlation coefficient. Here’s what it does:
- Multiple MA Evaluation: The indicator computes eight different moving averages — SMA, EMA, DEMA, TEMA, LSMA, RMA, WMA, and VWMA — using a user-defined period.
- Correlation Analysis: For each moving average, it calculates the Pearson correlation with the price (using the average of high and low) over a specified correlation length, then identifies the one with the highest correlation.
- Optional Smoothing: Users can opt to further smooth the selected best moving average for an even more refined signal.
- Visual Cues: The indicator plots the “Best MA” on the chart, colors it based on its direction (bullish or bearish), and also displays the correlation value. Additionally, it can color the price candles to reflect the trend indicated by the best moving average.
- Customizability: All key parameters such as moving average length, correlation length, smoothing options, and color settings are fully customizable.
This tool helps traders by automatically adapting to market conditions—highlighting the moving average that is most in sync with current price trends, potentially improving trade timing and decision-making.
ALN Sessions - for NQ2/24/25 - v1
This script does not calculate any stats.
It uses the sessions and stats from NQStats/ALNSessions
Option to draw boxes around the session times.
Options to adjust the table text/background colors/position.
The logic will determine how the Asia and London sessions interact.
Once the New York session starts (8am), it will then display the appropriate stats.
Script quirk...fyi. The script removes the stats table at 6PM.
That's just how it works. I used grok to assist with the code, and it got funky. It works, so I left it that way.
The appropriate stats table will then be displayed when the next New York session begins.
---
There is another table I used just for troubleshooting to show the values of the Asia/London session highs/lows. This can just be ignored.
3/3/25 - republished.
Exchange and Symbol by BULL┃NETThe B | N EXSY (Exchange and Symbol by BULL | NET)
indicator provides traders using CFD brokers with the most significant price and time events from the stock exchange of the underlying original index or security. For example traders are able to easily identify the price at the Daily Open and Close time of up to three additional stock exchanges. Traders can choose from a huge list of options including the values from the current and previous Day, Week, Month and Year. In addition traders can enable the display of the Expected Move by either implied or historical volatility. The indicator can show Open Gaps (gap between close and open of two trading sessions) also which traders would usually see only on the original chart of an index or security.
The B | N EXSY indicator can help traders to make better entry decisions based on the real market sessions.
█ ⚠️ DISCLAIMER – READ BEFORE YOU USE ⚠️
█ CONCEPTS
CFD Brokers allow you to trade many indices, securities and assets up to 24 hours per day and 7 days per week (24/7). Other than Crypto Assets indices and securities get the highest transaction volume during the session of a stock market. Most importantly while its “Home Stock Market” is open.
For example the NASDAQ or S&P500 will see the highest volume during the business hours of the New York Stock Exchange (NYSE) between 9:30am and 4:00pm (America New York Time). Most CFD Providers however will open their Trading session approximately 9.5 hours before the NYSE opens and even 2 hours before Japan and Australia open the markets.
The German DAX on the other hand is listed on the Deutsche Börse Xetra which is open from 9:00 to 17:00 (Europe Berlin Time). CFD Brokers will open the DAX for trading differently between 9 and 5.5 hours before the XETRA opens.
Therefore most available indicators for visualizing the day open will show different results. Traders at Broker A will tell a totally different story than traders at Broker B who opened 3 hours later.
Furthermore people trading the NASDAQ often keep an eye on the London Stock Exchange (LSE) as well and those trading the NIKKEI often watch the NYSE besides its home at the Japan Exchange Group (JPX).
Advanced traders know about the importance of those information and I have seen thousands of charts where people draw horizontal lines to mark the open and closing prices as well as the session highs and lows. They do it every day and often for different indices and securities. A time consuming job.
Here is where B | N EXSY steps in to give traders objective information for Intraday trading (Daily timeframe and below). More or less automatically. Choose your primary stock exchange (e.g. the NYSE if you trade the NASDAQ) and optionally a second and third stock exchange you are interested in. Individually select the price events you like to see or keep the defaults. Make your own cosmetic decision on how you want the data to be displayed. Save your chart and you will never have to draw a horizontal line again to see the High of the current session, the Low of last week, the monthly Open or yesterdays Close. Sharing ideas with other traders in the chat groups will be easy because everyone is relying on the same information. Even across different CFD Brokers (with slightly different prices of course). Your Technical Analysis can become much more efficient.
█ FEATURES
B | N EXSY is highly customizable. The default settings are optimized for the NASDAQ during the NYSE session. Following you get an overview of all options in the settings menu.
— LOWER TIMEFRAME
The “Lower Timeframe in Minutes” defaults to 30 minutes and should work with most CFD Brokers and stock exchanges. If not you will get a huge warning on the chart suggesting different settings. If e.g. a CFD Broker opens the Dax session at 3:15 but the XETRA opens at 9:00 you have to change the setting to 15.
— STOCK EXCHANGE
Primary is mandatory and defaults to NYSE (New York Stock Exchange) which is the home of the NASDAQ, the S&P 500, the Dow Jones and many others. Usually you select the home stock exchange of the instrument you trade. E.g. XETRA for the DAX, JPX for the NIKKEI or HKEX for the HANG SENG.
The Second and Third stock exchange is optional and defaults to NONE. If e.g. you trade Nvidia with NYSE as the primary stock exchange and you are interested in the High and Low of the European Session select LSE (London Stock Exchange) or XETRA (Deutsche Börse Xetra) as the second stock exchange. By default the indicator will show only information about the current day and week for the second and third stock exchange but you can change that later.
— VISUALIZE SESSIONS
Beginners and less advanced traders sometimes want to see the time span of a session. By default this feature is disabled because it adds more noise to the chart. You can select each of the three stock exchanges individually and select your preferred color.
— CUSTOM STOCK EXCHANGE
Whether your preferred Stock Exchange is missing in the dropdowns or you have a special purpose (see the HOW TO USE section) you can add your own ”Stock Exchange” to the chart.
Name and Country are optional and get displayed in tooltips only. Opening, Closing and Timezone are important. Enter the Open and Close time as HOUR:MINUTE in 24 hour notation (22:00 instead of 10:00pm). The timezone can be provided as time offset in GMT or UTC notation (e.g. GMT+2 or UTC-5) or as a time zone name listed in the IANA Time Zone Database ( e.g. "America/New_York" or “Europe/Berlin”). If you do it wrong the indicator will give wrong results or don’t work at all.
— EXPECTED MOVE IMPLIED VOLATILITY
With this setting you can enable the calculation and display of the Expected Move (EM). Option and Future traders should be familiar with this feature. Those who never heard about should read about it on the internet. Your favorite search engine will provide you with lots of information about it.
After enabling the feature you have to select a source to calculate the EM. The drop down menu contains popular sources and are named after the indices they are based on. It is crucial that the setting match the index, symbol or asset you are trading. If e.g. you are trading a CFD for the NASDAQ you have to select Nasdaq as source. Wrong settings will lead to wrong calculations.
If the source you need is missing you select manually and enter the implied Volatility in the field “Value for manual calculation”. If e.g. you trade the Nikkei you have to enter the current value of the JNIV manually because it is not listed at TradingView so I can’t add it.
The other settings control the Line Color and Style, the Label Color and Size as well as the Text Color.
The indicator will display the EM+ and EM- as well as the 2 and 3 Sigma EM +/-. On the Daily Chart it will display the Weekly Expected Moves. On any timeframe below you will get the Daily Expected Moves.
— EXPECTED MOVE HISTORICAL VOLATILITY
Other than the feature above, this one calculates the EM based on historical volatility.
After enabling the feature you have to enter the amount of days to look back to calculate volatility. Like you would do for a SMA, EMA or RSI. The default is 10 days. Depending on what asset you trade you might play a little with this setting.
The other settings control the Line Color and Style, the Label Color and Size as well as the Text Color.
Like with the Expected Move Implied Volatility this setting will show weekly data on the daily timeframe and daily information on intraday timeframes.
— LABEL AND LINE COSMETICS
The settings in this section control how lines and labels get positioned on the chart and which information the labels show.
● Bar Offset
The bar offset controls the horizontal distance to the last bar on the chart where lines end. By default it is “2” bars to the right. If you use other indicators which show information on the right side you can increase this value to avoid overlapping.
● Bar Anchor
The bar anchor controls where lines start. Default is “lastbar”.
Lastbar sets the start of lines to the last bar of the chart. This provides a very clean chart without lines crossing bars to the left.
Moving sets lines to start at the bar at which the price event occurred. The line for the daily open (DO) price will stay at the opening bar of the stock market and it will do so when it becomes the previous day open (PDO) the next day. The line that marks the session High (DH) will be anchored to the highest bar while the stock market is open. Therefore it might be moving with the advancing chart. The same counts for the session Low (DL). The next day these lines become the previous day high or low (PDH / PDL) and stay at the highest/lowest bar from the day before. This logic is forwarded to all other lines (weekly, monthly, yearly). This gives traders a quick orientation on which bar a price event occurred but a less clean chart.
If you choose Day as bar anchor all lines will start at the beginning of the Brokers trading session in which the price event took place. This is also true for the roll over event when e.g. the Week Open (WO) will become the Previous Week Open (PWO) next Week. Unlike the “moving” setting the new WO and PWO will be anchored to the beginning of the Week. Traders will have a box like view into the past.
● Label Distance Divisor
This setting is used to calculate the minimum vertical distance of labels in means of price points. The internal formular takes the day close price and divides it by the number entered in this field. If e.g. the daily closing price was 5000 the minimum vertical distance would become 1 price point if you enter 5000 for this setting. If the price difference of two events would then be less than 1 the labels would be positioned higher and lower to prevent overlapping. The default value is fine for the Nasdaq (~ 19000 / 5000 = 3.8 at the time of writing). For other indices, securities and assets you should change the divider to your likings or as needed to set the trigger for repositioning labels.
● Distance Modifier
This setting is used to control the vertical shift of the label. The default of Zero disables the setting and activates an internal function which makes a decision based on the used timeframe on the chart (0.1 less than m30, 0.5 from m30 to h4, 0.75 above h4 and 1 for daily). The logic takes the minimum vertical distance and multiplies it by the distance modifier.
In the example above for the label distance divider a label would shift by 1.9 price points on a 30 minute chart if two lines trigger the minimum vertical distance. On the upper line the label moves up and on the lower line it moves down. If three lines are too close to each other the label in the middle does not get moved. If more lines break the minimum distance some labels will overlap until the price is advancing. Those events happen most likely during the opening of a stock exchange.
Price events with equal price, e.g. Day and Week Open at the start of a new week or Day, Week, Month, Year High in the event of a new ATH will get lined up (stacked) horizontally.
While this cosmetic corrections have limits overlapping can be reduced to a minimum.
● Show Price
● Show Exchange
Labels can show up to three information. The price, the stock exchange and the event. The event however can’t be disabled. If you select both options you will see something like
5347.84 for the Day Close of the S&P 500 on the New York Stock Exchange
With this two settings you can disable the display of price and/or stock exchange.
If you have chosen to use more than one stock exchange the setting for “Show Exchange” will be ignored. Otherwise you would not know which Day Close (DC) or Day High (DH) belongs to which stock exchange
● Enable Tooltip
If you decide to hide the price and/or exchange on the label it can be useful to get this information in a tooltip while hovering with the mouse over the label. On the contrary it might become annoying with labels popping up if you have a nervous mouse finger. The feature is disabled by default.
● Equalize Label Size
The size of labels is one of the most discussed issues. Some say it is too small other say it is too big. Label size matters on different devices. “Normal” labels can be too large on a smartphone and too small on a 4k display. And the size is crucial for the automatic horizontal stacking of labels. You simply can’t line up a small, normal and large label in Pine Script (the programming language at TradingView). The stacking is done by prepending labels with spaces to shift them to the right.
This setting overloads all individual size settings for the price events below and activates the automatic horizontal stacking of labels with equal price. It is a convenient way to change the size of all labels with one click in case you have different layouts for different devices.
If you disable this feature you can set the label size individually but you lose the horizontal stacking. This can be useful for traders who display only a few price events or for educational purpose where you want to point out a special event.
— CURRENT DAY
This setting controls which price events of the current day (current session) get displayed and how they appear.
Primary O/C
Enable the Day Open (DO) and Close (DC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Day High (DH) and Low (DL) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Day Open (DO) and Close (DC) for the second and third stock exchange. Enabled by default.
Other H/L
Enable the Day High (DH) and Low (DL) for the second and third stock exchange. Enabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— PREVIOS DAY
This setting controls which price events of the previous day get displayed and how they appear.
Primary O/C
Enable the Previous Day Open (PDO) and Close (PDC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Previous Day High (PDH) and Low (PDL) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Previous Day Open (PDO) and Close (PDC) for the second and third stock exchange. Disabled by default.
Other H/L
Enable the Previous Day High (PDH) and Low (PDL) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— OPENING HOUR
This setting controls whether and how to display the famous opening hour (High and Low within the first 60 minutes after stock market opens)
Primary Cur
Display the Current Day Opening Hour High (OH) and Low (OL) for the primary stock exchange. Enabled by default.
Primary Pre
Display the Previous Day Opening Hour High (POH) and Low (POL) for the primary stock exchange. Enabled by default.
Other Cur
Display the Current Day Opening Hour High (OH) and Low (OL) for the second and third stock exchange. Disabled by default.
Other Pre
Display the Previous Day Opening Hour High (POH) and Low (POL) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— CURRENT WEEK
This setting controls which price events of the current week get displayed and how they appear.
Primary O/C
Enable the Week Open (WO) and Close (WC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Week High (WH) and Low (WL) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Week Open (WO) and Close (WC) for the second and third stock exchange. Enabled by default.
Other H/L
Enable the Week High (WH) and Low (WL) for the second and third stock exchange. Enabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— PREVIOUS WEEK
This setting controls which price events of the previous week get displayed and how they appear.
Primary O/C
Enable the Previous Week Open (PWO) and Close (PWC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Previous Week High (PWH) and Low (PWL) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Previous Week Open (PWO) and Close (PWC) for the second and third stock exchange. Disabled by default.
Other H/L
Enable the Previous Week High (PWH) and Low (PWL) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— CURRENT MONTH
This setting controls which price events of the current month get displayed and how they appear.
Primary O/C
Enable the Month Open (MO) and Close (MC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Month High (MH) and Low (ML) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Month Open (MO) and Close (MC) for the second and third stock exchange. Disabled by default.
Other H/L
Enable the Month High (MH) and Low (ML) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— PREVIOUS MONTH
This setting controls which price events of the previous month get displayed and how they appear.
Primary O/C
Enable the Previous Month Open (PMO) and Close (PMC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Previous Month High (PMH) and Low (PML) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Previous Month Open (PMO) and Close (PMC) for the second and third stock exchange. Disabled by default.
Other H/L
Enable the Previous Month High (PMH) and Low (PML) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— CURRENT YEAR
This setting controls which price events of the current year get displayed and how they appear.
Primary O/C
Enable the Year Open (YO) and Close (YC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Year High (YH) and Low (YL) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Year Open (YO) and Close (YC) for the second and third stock exchange. Disabled by default.
Other H/L
Enable the Year High (YH) and Low (YL) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— PREVIOUS YEAR
This setting controls which price events of the previous year get displayed and how they appear.
Primary O/C
Enable the Previous Year Open (PYO) and Close (PYC) for the primary stock exchange. Enabled by default.
Primary H/L
Enable the Previous Year High (PYH) and Low (PYL) for the primary stock exchange. Enabled by default.
Other O/C
Enable the Previous Year Open (PYO) and Close (PYC) for the second and third stock exchange. Disabled by default.
Other H/L
Enable the Previous Year High (PYH) and Low (PYL) for the second and third stock exchange. Disabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— ALL TIME HIGH
This setting controls whether the All Time High gets displayed on the daily chart and how it appears. See the limitations section (Amount of data) for details why the ATH will be displayed in the daily timeframe only.
Primary ATH
Enable the All Time High (ATH) for the primary stock exchange. Enabled by default.
OTHER ATH
Enable the All Time High (ATH) for the second and third stock exchange. Enabled by default.
The settings below control the Line Color and Style, the Label Color and Size as well as the Text Color.
— GAPFINDER
If you look at the original charts of an index (not the CFD Broker chart) you will see mostly every day a price difference between the closing price of the last session and the opening price of the current session. There are many names for those gaps. I call them Open Gaps or Kassa Gaps. Advanced traders know the market tends to close those gaps more or less quickly. Which is one more reason to know where the real previous day close was.
There are market conditions where those gaps are not closed within the new session. Those gap leftovers will usually be closed in the future. Some earlier, some later. If those gaps get more and more you quickly lose track and if the time comes to close one of the gaps you might not remember or recognize the price has reached an old gap. The charts of CFDs don’t even show such gaps due to the fact they trade nearly 24 hours per day.
The Gapfinder will display such leftovers after the end of the next session. If e.g. the previous day close was at 18000 and the market opens the next session at 18200 we have an Open Gap of 200 price points. If the Low of this session is 18100 after the session closes there would be rest gap of 100 price points. The Gapfinder then would mark it with a rectangle colored according to the direction of the Gap.
Bullish gaps result from an opening price (DO) and the current Day Low (DL) being higher than the previous day close (PDC).
Bearish gaps arise from an opening price (DO) and the current Day High (DH) being lower than the previous day closing price (PDC).
If you like you can change the color for the gaps and the text color.
— MISCELLANEOUS
To streamline the appearance of prices they are set to display two decimals only. Numbers get rounded! However, trading currency pairs or crypto assets might need to display the full amount of decimals. In that case simply disable the setting “2 Decimals”.
By default the indicator will display a small table in the lower right corner of the chart. It contains information about the current symbol, the selected primary stock exchange and the volatility. If you don’t like or need it you can disable it.
The “Unreliable Data” checkbox usually should not affect you. But if it does it can be really helpful. The B | N EXSY indicator uses Lower Timeframe Data to match CFD Broker and Stock Exchange opening times. If e.g. a CFD Broker opens at 0:00 and the stock exchange at 9:30 the script uses data from the 30 Minutes timeframe if you view the chart at any timeframe higher than 30 Minutes. Why? Because if you chose a four hours timeframe there is simply no bar that starts at 9:30 in this case. The CFD brokers h4 bars will start at 0:00, 4:00, 8:00, 12:00 and so on.
Sometimes the data stream of the Broker and TradingView get out of sync and a 4 hour bar eventually returns just 6x 30 Minutes instead of 8. During development of the indicator I came across of at least two brokers with such an issue. Only in one time frame and a specific period of time. If this happens the price information might be wrong. A Day High might be to low, a Day Close missing or the Day Open not be found. In such cases your trade might fail. To prevent such situations the indicator performs a daily consistency check at 12:00 during the session for an exchange in its time zone if this option is enabled.
In case the data are found unreliable you will see a label above the bar with further information in the tooltip of the label. You should than compare the information from this timeframe with the lower timeframe selected in the field below. Anway, it is a rare issue and if you, like me, work on multiple timeframes in parallel this bug probably won’t affect you.
— HOLIDAYS
● Holidays
If there is a holiday on a stock market the original chart of an index will simply show no bars for that day. CFD Broker charts will only show no bars if it is an international holiday or the broker itself is affected by the holiday. Take for example Memorial Day in the U.S. Although the NYSE is closed you can trade e.g. the NASDAQ until around 17:30 European Time which is the closing time of the LSE and XETRA. Unfortunately the closing time in Europe is after the opening time in the U.S. If the price goes up in the overlapping time you eventually see a new Weekly High (WH) if you rely on the chart of the CFD Broker. To avoid such misleading information the B | N EXSY indicator allows you to enter holidays for each stock market individually. If the indicator finds a holiday it will not store or add data for this day.
By default there are already the market holidays entered for the NYSE, XETRA, FSX and LSE in 2024. If you want to add your own holidays you have to follow some simple rules:
1. The entry must start in a new line below existing entries (carriage return)
2. The entry starts with the shortcut of the stock exchange exactly as you see them in the dropdown menu.
3. The stock exchange gets separated from the holidays with a colon (:)
4. Each holiday is entered as YYYY-MM-DD
5. Holidays get separated with a single whitespace
The entry for the Japan Exchange Group (JPX) in 2025 would start with:
JPX: 2025-01-01, 2025-01-02, 2025-01-03, 2025-01-08
Completed by the rest of the holiday.
If you make your own entries please keep a copy of the line you added because it will be replaced by the defaults if the indicator gets an update. Best practices would be to provide your holiday string in the comment section and I add it as a default.
● Early Close
Some stock exchanges close the market early before some holidays. In that case the indicator won’t be able to fetch the closing price for that day and the daily roll over won’t work for the day after the holiday. To prevent chaos you can enter the days with early close in this field.
By default the early closing days of the NYSE are already entered. If you want to add your own early closing days you have to follow some simple rules:
1. The entry must start in a new line below existing entries (carriage return)
2. The entry starts with the shortcut of the stock exchange exactly as you see them in the dropdown menu.
3. The stock exchange gets separated from the days with a colon (:)
4. Each early closing day is entered as YYYY-MM-DD-HH-MM where HH-MM is the closing time of this day entered in 24 hours format in the timezone of the stock exchange
5. Days get separated with a single whitespace
The entry for the day before Thanksgiving at the NYSE in 2025 would be:
NYSE:2025-11-25-13-00
This is because the market will close early at 1:00 PM on November 25, 2025, the day before Thanksgiving. The time is provided in 24-hour format as 13:00.
-------------------------------------------------------
Disclaimer BullNet: The information provided in this document is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Any use of the content is at your own risk. No liability is assumed for any losses or damages resulting from reliance on this information. Trading financial instruments involves significant risks, including the potential loss of all invested capital. There is no guarantee of profits or specific outcomes. Please conduct your own research and consult a professional financial advisor if needed.
Disclaimer TradingView: According to the www.tradingview.com
Copyright: 2025-BULLNET - All rights reserved.
Roadmap:
Version 1.0 03.03.2025
US Yield Curve (2-10yr)US Yield Curve (2-10yr) by oonoon
2-10Y US Yield Curve and Investment Strategies
The 2-10 year US Treasury yield spread measures the difference between the 10-year and 2-year Treasury yields. It is a key indicator of economic conditions.
Inversion (Spread < 0%): When the 2-year yield exceeds the 10-year yield, it signals a potential recession. Investors may shift to long-term bonds (TLT, ZROZ), gold (GLD), or defensive stocks.
Steepening (Spread widening): A rising 10-year yield relative to the 2-year suggests economic expansion. Investors can benefit by shorting bonds (TBT) or investing in financial stocks (XLF). The Amundi US Curve Steepening 2-10Y ETF can be used to profit from this trend.
Monitoring the curve: Traders can track US10Y-US02Y on TradingView for real-time insights and adjust portfolios accordingly.
Autocorrelation Price Forecasting [The Quant Science]Discover how to predict future price movements using autocorrelation and linear regression models to identify potential trading opportunities.
An advanced model to predict future price movements using autocorrelation and linear regression. This script helps identify recurring market cycles and calculates potential gains, with clear visual signals for quick and informed decisions.
Main function
This script leverages an autocorrelation model to estimate the future price of an asset based on historical price relationships. It also integrates linear regression on percentage returns to provide more accurate predictions of price movements.
Insights types
1) Red label on a green candle: Bearish forecast and swing trading opportunity.
2) Red label on a red candle: Bearish forecast and trend-following opportunity.
3) Green label on a red candle: Bullish forecast and swing trading opportunity.
4) Green label on a green candle: Bullish forecast and trend-following opportunity.
IMPORTANT!
The indicator displays a future price forecast. When negative, it estimates a future price drop.
When positive, it estimates a future price increase.
Key Features
Customizable inputs
Analysis Length: number of historical bars used for autocorrelation calculation. Adjustable between 1 and 200.
Forecast Colors: customize colors for bullish and bearish signals.
Visual insights
Labels: hypothetical gains or losses are displayed as labels above or below the bars.
Dynamic coloring: bullish (green) and bearish (red) signals are highlighted directly on the chart.
Forecast line: A continuous line is plotted to represent the estimated future price values.
Practical applications
Short-term Trading: identify repetitive market cycles to anticipate future movements.
Visual Decision-making: colored signals and labels make it easier to visualize potential profit or loss for each trade.
Advanced Customization: adjust the data length and colors to tailor the indicator to your strategies.
Limitations
Prediction price models have some limitations. Trading decisions should be made with caution, considering additional market factors and risk management strategies.
Price AltimeterThis indicator should help visualize the price, inspired by a Digital Altimeter in a Pilots HUD.
It's by default calibrated to Bitcoin, with the small levels showing every $100 and the larger levels setup to display on every $1000. But you can change this to whatever you want by changing the settings for: Small and Large Level Increments.
The default colors are grey, but can be changed to whatever you want, and there are two cause if you want they work as a gradient.
There are options to fade as the values go away from the current price action.
There are options for Forward and Backward Offsets, 0 is the current price and each value represents a candle on whatever time frame your currently on.
Other Options include the Fade Ratio, the Line Width and Style, which are all self explanatory.
Hope you Enjoy!
Backtest it in fast mode to see it in action a little better...
Known Issues:
For some reason it bug's out when either or are displaying more than 19 lines, unsure why so its limited to that for now.
Extra Note on what this may be useful for: I always wanted to make this, but didn't realize how to put things in front of the price action... Offset! Duh! Anyways, I thought of this one because I often it's hard on these charts to really get an idea for absolute price amounts across different time frames, this in an intuitive, at a glance way to see it because the regular price thing on the right always adds values between values when you zoom in and you can sometimes get lost figuring out the proportions of things.
Could also be useful for Scalping?
ATH & 52-Week High Tracker### **Indicator Name: ATH & 52-Week High Tracker**
📌 **Description:**
This indicator provides a **real-time table** displaying key stock statistics to help traders analyze price levels relative to historical highs. It includes:
✔️ **All-Time High (ATH)** price
✔️ **% Change from ATH**
✔️ **52-Week High** price
✔️ **% Change from 52-Week High**
By using this indicator, traders can quickly identify how far a stock has retraced from its **historical peaks**, which can be useful for momentum trading, breakout strategies, and trend analysis.
📊 **What You Get with This Indicator:**
✅ A clear **visual table** with important stock data
✅ Quick reference to **historical price levels**
✅ Helps in identifying potential **breakout or recovery zones**
✅ Useful for both **intraday and swing traders**
⚠️ **Disclaimer:**
This indicator is for **informational purposes only** and should not be considered **financial advice, a trading strategy, or a buy/sell signal.** Always conduct your own analysis and risk management before making trading decisions. 🚀📈
Let me know if you need any refinements! 😊
RS ScanOverview
The RS Scan indicator helps traders analyze a stock's relative strength and volatility using multiple key metrics. It provides insights into where the stock is closing within its daily and weekly ranges, how far it has moved from its 52-week high, and how its price changes compare to its Average Daily Range (ADR).
Key Features
✅ Daily Close Range% – Shows the stock’s closing position within the day’s high-low range.
✅ Weekly Close Range% – Displays the stock’s closing position within the weekly high-low range.
✅ Stock Price Change% – Measures how much the stock has moved relative to its 52-week high.
✅ ADR% (Average Daily Range) – Calculates the stock’s average daily volatility over a given period (default: 20 days).
✅ ADR off 52W High – Indicates how many ADR multiples the stock has moved from its 52-week high.
How to Use
Identify Strength: Stocks closing near the high of their daily/weekly range show strong momentum.
Measure Volatility: The ADR% helps traders understand expected price fluctuations.
Detect Weakness: A stock trading far below its 52-week high with a low close range may indicate weakness.
Compare Price Change vs. ADR: If a stock is significantly down from its 52-week high but within a small ADR range, it may be consolidating.
Screening Example: If SPY is currently less than -3 ADR from its 52-week high, we can filter for stocks that are performing stronger by selecting those above -3 ADR. This helps in identifying stocks with relative strength compared to the broader market.
This indicator is useful for momentum traders, swing traders, and those tracking relative strength.
🚀 Try it out and enhance your trading decisions!
EMA Alignment & Spread Monitor (Sang Youn)Overview
The EMA Alignment & Spread Monitor is a dynamic trading script designed to monitor EMA (Exponential Moving Average) alignments, track spread deviations, and provide real-time alerts when significant conditions are met. This script allows traders to customize their EMA periods, analyze market trends based on EMA positioning, and receive visual and audio alerts when key spread conditions occur.
🔹 Key Features
✅ Customizable EMA Periods – Users can input their own EMA lengths to adapt the script to various market conditions. (Default: 5, 10, 20, 60, 120)
✅ EMA Alignment Detection – Identifies bullish alignment (all EMAs in ascending order) and bearish alignment (all EMAs in descending order).
✅ Spread Calculation & Monitoring – Computes the spread difference between each EMA and tracks the average spread over a user-defined period.
✅ Deviation Alerts – Notifies traders when:
Bullish Trend: The spread exceeds its average, indicating a potential strong uptrend.
Bearish Trend: The spread falls below its average, signaling a possible downtrend.
✅ Chart Annotations – Displays 📈 (green triangle) when bullish spread exceeds average and 📉 (red triangle) when bearish spread drops below average for easy visualization.
✅ Real-time Alerts – Sends alerts when spread conditions are met, helping traders react to market shifts efficiently.
✅ Spread Histogram – Visual representation of bullish and bearish spread levels for trend analysis.
🔹 How It Works
1️⃣ Set your EMA periods in the script settings (default: 5, 10, 20, 60, 120).
2️⃣ Define the spread average calculation length (default: 50 candles).
3️⃣ The script tracks EMA alignment to determine bullish or bearish trends.
4️⃣ If the spread deviates significantly from its average, the script:
Places a 📈 green triangle above candles in a bullish trend when spread > average.
Places a 📉 red triangle below candles in a bearish trend when spread < average.
Triggers an alert for timely decision-making.
5️⃣ Use the histogram & real-time alerts to stay ahead of market movements.
ICT Session by LasinsName: ICT Session by Lasins
Purpose: To visually identify and differentiate between the Asian, London, and New York trading sessions on the chart.
Features:
Highlights the background of the chart during each session.
Includes a mini dashboard in the top-right corner to show the active session.
Allows customization of time zones (exchange timezone or UTC).
Displays copyright and author information.
Key Components
Inputs:
useExchangeTimezone: A boolean input to toggle between using the exchange timezone or UTC for session times.
showDashboard: A boolean input to toggle the visibility of the mini dashboard.
Session Times:
The script defines three trading sessions:
Asian Session: 2000-0000 UTC (or adjusted for exchange timezone).
London Session: 0200-0500 UTC (or adjusted for exchange timezone).
New York Session: 0700-1000 UTC (or adjusted for exchange timezone).
Session Detection:
The is_session function checks if the current time falls within a specified session using the time function.
Background Coloring:
The bgcolor function is used to highlight the chart background during each session:
Asian Session: Red background.
London Session: Green background.
New York Session: Blue background.
Mini Dashboard:
A table is created in the top-right corner of the chart to display the active session and its corresponding color.
The dashboard includes:
A header row with "Session" and "Color".
Rows for each session (Asian, London, New York) with their respective colors.
Copyright and Author Information:
A label is added to the chart to display the copyright and author information ("© ICT Session by Lasins Raj").
How It Works
The script checks the current time and compares it to the predefined session times.
If the current time falls within a session, the chart background is highlighted with the corresponding color.
The mini dashboard updates to reflect the active session.
The copyright and author information is displayed at the bottom of the chart.
Customization
You can adjust the session times in the script to match your preferred timezone or trading hours.
The useExchangeTimezone input allows you to switch between UTC and the exchange timezone.
The showDashboard input lets you toggle the visibility of the mini dashboard.
Example Use Case
Traders who follow the ICT (Inner Circle Trader) methodology can use this indicator to identify key trading sessions and plan their trades accordingly.
The visual representation of sessions helps traders quickly recognize when major markets are open and active.
Market Snap Shot with Pine ScreenerMarket Snap Shot
The Market Snap Shot is a comprehensive technical analysis tool designed to track and display key price metrics across multiple timeframes, including daily, weekly, monthly, quarterly, and yearly data. This script provides a range of essential calculations for traders and investors, enabling them to assess price action, volatility, and market trends at a glance.
Features:
Daily Metrics: Includes the daily percentage change, closing range relative to the daily high/low.
Weekly Metrics: Tracks weekly open, close, range, and calculates week-to-date performance for a broader market view.
Monthly Metrics: Provides similar calculations for monthly price action, offering insights into monthly performance.
Quarter-to-Date (QTD): Displays performance for the current quarter, offering insights into quarterly price movements.
Year-to-Date (YTD): Calculates year-to-date price change, helping users track performance relative to the start of the year.
52-Week High/Low: Displays the current price's distance from the 52-week high and low, giving context to long-term price levels.
Usage:
Traders can use this screener to quickly assess the current market position and make informed decisions based on short-term and long-term trends.
Investors can leverage the 52-week and YTD metrics to gauge the overall strength of an asset in the market.
The tool is versatile for both active traders looking for real-time performance data and for those focusing on longer-term market trends.
Instructions:
This script displays multiple metrics such as percentage changes and range data for daily, weekly, monthly, quarterly, and yearly timeframes. It is designed to be used as a screener tool to assess price action and monitor performance across these key time periods.
Warning:
The "Market Snap Shot" does not provide buy or sell signals but rather serves as a performance tracking tool. Users are encouraged to use this data in conjunction with other technical and fundamental analysis tools.
Trend Detector [victhoreb]Trend Detector is a streamlined indicator that uses the Pearson correlation coefficient between the average price and time to determine market trends. It measures how closely price movement follows the progression of time over a user-defined period, providing a clear gauge of trend direction on a scale from -1 to 1.
How It Works:
The indicator calculates the correlation between price and time. A positive correlation means that as time advances, the price generally rises—signaling an uptrend. Conversely, a negative correlation indicates that the price tends to fall over time, highlighting a downtrend.
With its simple yet effective approach, Trend Detector offers traders an immediate visual and quantitative insight into prevailing market trends.
Ceres Trader NYSE Tick Indicator With Threshold AlertsThe Ceres Trader NYSE Tick Indicator provides real-time alerts for significant shifts in the NYSE Tick, empowering traders to identify potential overbought and oversold market conditions. It displays labels directly on the chart when the Tick reaches predefined thresholds, offering a clear and immediate visual representation of market sentiment.
Key Features:
Threshold-Based Alerts:
Highlights "High Tick" and "Low Tick" conditions when the Tick exceeds user-defined thresholds (default: 400 and -400).
Identifies "Extreme High Tick" and "Extreme Low Tick" conditions for more significant shifts (adjusted default: 800 and -800).
Visual Labels:
Displays colored labels directly on the price chart, indicating the type of Tick event and its value.
Green labels signal potential overbought conditions, while red labels indicate potential oversold conditions.
Low tick labels are placed below the price bar, and high tick labels are placed above the price bar for improved visibility.
Real-Time Data:
Utilizes the NYSE Tick symbol ("TICK") to provide up-to-the-minute market data.
User-Friendly Design:
Simple and intuitive design, suitable for traders of all experience levels.
How to Use:
Add the "Ceres Trader NYSE Tick Indicator with Threshold Alerts" to your TradingView chart.
Observe the colored labels that appear when the Tick reaches the specified thresholds.
Use these alerts to identify potential trading opportunities based on overbought or oversold market conditions.
Consider adjusting the threshold values within the indicator settings to align with your specific trading strategy.
Global Liquidity Indicator in USDThis indicator aggregates the total central bank balance sheets and M2 money supply for the USA, Canada, China, European Union, Japan, and the UK, converting all values to USD and normalizing them to trillions for easy visualization. It plots three lines: Total Balance Sheet, Total M2, and Combined Total, providing a comprehensive view of global liquidity trends.
Key Features:
Dynamic Coloring: Customize line colors based on direction—green for upward trends, red for downward (or any colors you choose), with independent on/off toggles for each line.
Real-Time Currency Conversion: Uses live forex rates (e.g., USD/CNY, USD/EUR) for accurate USD conversions.
Nirmal Fair Value GapsICT Fair Value Gaps
Trade Wisely
How a Fair Value Gap Works
Formation:
A Fair Value Gap occurs when a strong price movement (usually from institutional orders) creates an imbalance between buyers and sellers.
This is typically seen in a three-candle pattern, where the middle candle has a large body, and the two surrounding candles have wicks but little overlap with the middle candle’s range.
Identification:
The FVG is marked between the high of the first candle and the low of the third candle (for bullish gaps).
For bearish gaps, it’s the low of the first candle and the high of the third candle.
Market Behavior Around FVG:
Price often retraces into the gap before resuming its original direction.
This happens because the market seeks to "fill" the imbalance where few trades occurred.
Traders use FVGs as potential entry zones for trend continuation trades.
Trading Fair Value Gaps
In an Uptrend:
Look for bullish fair value gaps as potential support zones for buy entries.
Price may dip into the gap and then continue upward.
In a Downtrend:
Look for bearish fair value gaps as potential resistance zones for sell entries.
Price may retrace into the gap and then drop further.
Confluence Factors:
FVGs work best when combined with other strategies like order blocks, liquidity zones, or key Fibonacci levels.
Statistical BandsThis TradingView indicator, "Statistical Bands" (short title "StatB"), creates a dynamic envelope around a smoothed baseline by combining noise reduction techniques with volatility measurement. It offers several smoothing methods—including various moving averages and a Kalman filter option—and calculates upper and lower bands based on either standard deviation or ATR, allowing traders to visualize potential support/resistance and volatility levels.
Overview
Baseline Calculation:
The indicator computes a baseline from a user-selected source (typically the close price) and smooths it using a chosen algorithm. If the user selects “Kalman,” the script applies a Kalman filter (using user-defined parameters for measurement noise variance (R) and process noise variance (Q)); otherwise, it uses one of several moving averages (SMA, EMA, RMA, WMA, VWMA, or HMA).
Band Formation:
A statistical measure of volatility—either the standard deviation or the Average True Range (ATR)—is calculated over a specified length and then multiplied by a user-defined bandwidth multiplier. The upper and lower bands are obtained by adding or subtracting this value from the baseline.
Visualization:
The indicator plots the baseline and the two bands over the price chart and fills the area between the bands with a semi-transparent color, making it easier to identify potential breakout zones or areas of support and resistance.
This concise yet flexible tool aids traders in assessing current market conditions by highlighting volatility and potential turning points.
Futures Open/High/Low TablesAdds (up to) 3 tables to a chart, displaying Open/High/Low data for today (RTH and extended hours), yesterday, and the current week / month -- to help with intraday analysis of a futures ticker.
The tables only appear on intraday charts (5min, 30min, etc). On a Daily/Weekly/etc chart they are not calculated or shown.
In addition to Open/High/Low, the "Current" table in the top-right shows a live measurement of # of points from the open, the RTH open, and the highs/lows.
Lastly, the 9:30am ET open and the 4pm RTH close are by default marked with a shaded background (on intraday charts) for easy visual reference, and also to help with adjusting the session time to accommodate time zone issues if they occur.
Tested on ES in Eastern Time Zone, but should work on any futures instrument and any time zone by adjusting the Session Time setting.
Celestial Pair Spread Hello friends, after a very long time!
Today, I tried to put into code an idea that came to my mind spontaneously and suddenly.
Note :
This script is experimental and improvable.
I haven't had a chance to try it yet.
TIMEFRAME : 1D (Daily Bars)
CELESTIAL SPREAD
The spread moves in a very limited area and is consistent within itself, especially on days far from the end of the contract.
That's why there is a reassuring sky atmosphere. That's why this name was given completely improvised.
Basic logic of the script
We enter the name of the CME Futures contract we want to enter:
Ex : CL1! , ES1! , ZC1! , NQ1!
The script creates us a pair trade parity divided into secondary contracts.
Example : ES1!/ES2!
What is pair trading?
I will explain briefly here.
For users who are wondering:
www.investopedia.com
Let's get back to our topic.
Now we have created a parity that does not actually exist.
This parity is the manifestation of the relative movements of two contracts.
When the parity rises, ES1! increased,ES2! has fallen.
In the opposite case, We can say: ES1! Contract has been dropped ES2! has increased.
Pair trading is generally a trade that needs to be kept in mind from time to time.
It is a method preferred by professionals who can process very quickly.
Market risk is minimal, but since 2 contracts are purchased, more money is paid and very low percentage profits are made.
It is very expensive to do pair trading, especially with oil and its derivatives and interest security derivatives.
The contract we are considering has micros. (small-item contracts tied to the same value)
So when we switch to our broker MES1!/MES2! We will trade.
For all CME futures :
www.cmegroup.com
Anyway, let's continue:
The script created the parity showing its relationship with the next contract and plotted it as bars.
Celestial bands are just like Bollinger bands, but they consist of 3 bands based on percentage changes rather than standard deviation.
The middle band is obtained from moving averages.
The upper and lower bands are the middle band subjected to a threshold value.
The threshold value can be changed.
0.15 percent was charged for this script.
CAUTION :
As can be seen in the example below;
The most important thing is not to make any transactions when the contract switch dates are approaching.
Therefore, it is recommended to use it just below the main chart.
The blue bars in the parity are
Values that outside the upper and lower threshold values are colored blue.
For this condition
Alerts has been added.
Don't forget to add alert and edit.
MAIN PURPOSE
It is aimed to start a pair trade when such conditions come and to quickly close the trades when the parity basis reaches the value.
OTHER IMPORTANT POINTS
Other issues are broker related issues.
Difference between initial margins and maintanence margins of contracts (between 1! and 2!)
It shouldn't be too high.
The commission should not be too high.
Leverage must be high because the profit percentage is very low.
To calculate leverage you must divide your contract size by the relevant margin requirement.
Sample margin requirement table:
www.interactivebrokers.com
RISKS
It is an experimental and intellectual script,
the risk of contract price differences (maybe it will not leave a profit except for very extreme values)
I remind you of the quickness risk that comes from a two-legged trade.
Alerts definitely synchronized with an audible alert sent to a smartphone as an e-mail notification and displayed on the locked screen for quick action.
Best regards!