Index Kill Zones - SMC IndicatorsWhat are Index Kill Zones?
Index Kill Zones are specific Time Windows of opportunity during the Session for Indices that have the potential for the highest volatility and where looking for trading opportunities is ideal.
The Index Kill Zone Indicator is specifically designed for the SP500, NQ100, and DJ30, Markets. What differentiates this script from other Kill Zones scripts is that this script is based on NY Midnight as the basis for the start of the day.
This is not the usual below-average Index Kill Zone indicator because this indicator does not only show the 3 main Kill Zones or Sessions, but it also offers extra Kill Zones within each session that are called "AM Session", "PM Session", the "Launch Hour", the "Silver Bullet for the London, AM, and PM Sessions", and the "Last Hour" for the London, AM, and PM sessions.
Another key differentiator of this indicator's functionality is that it shows the highs and lows of each Kill zone allowing SMC traders to monitor Time-Based Liquidity above the highs and lows of each trading session.
By splitting each trading day into AM and PM Sessions, we can identify 3 types of potential daily profiles. These daily profiles could be used as conceptual templates as to what to expect from the price during a certain day. The 6 templates are the following:
1. Two Sessions Up: Where the price would go in one direction higher during both the AM and PM Sessions.
2. Two Sessions Down: Where the price would go in one direction lower during both the AM and PM Sessions.
3. AM Rally, then PM Decline: The price would go higher during the AM session and then lower during the PM Session.
4. AM Decline, then PM Rally: The price would go lower during the AM session and then higher during the PM Session.
5. Consolidation, AM Rally, then PM Decline: Where the price would consolidate most of the AM Session, then go higher into the last hour, and then reverse and go lower during the PM Session.
5. Consolidation, AM Decline, then PM Rally: Where the price would consolidate most of the AM Session, then go lower into the last hour, and then reverse and go higher during the PM Session.
Within each AM and PM Session, there is a "Silver Bullet" that acts as a time window of opportunity to get into a continuation trade in the direction of the prevailing trend.
Also, within each AM and PM Session, there is a "Last Hour" that acts as a time window of opportunity to get into a trade in the direction of the potential trend if the price has not moved yet, or as a reversal trade opportunity if the price has already ran previous short-term highs or lows.
Finally, we have also incorporated a Notification function to remind the trader of the start of the trading Kill Zones to not miss out on potential trade opportunities.
Key Functionalities
Universal Time Reference
Every day starts at 00:00 NY Midnight, irrespective of the trader's local time, Instead of the Standard GMT Midnight. This allows all Index Kill Zones to be in line with the New York start of the day at Midnight, as taught by ICT.
Weekend Highlighter
This feature highlights time from Sunday Market Open at 5 PM NY Time to 00:00 NY Midnight.
It's useful for identifying the non-trading or the low volatility periods when trading should be avoided.
Features Breakdown
Lookback Period
Defaulted to 60 trading days, aligning with “IPDA Data Ranges”, which is ideal for backtesting.
It's adjustable for trading, and it's recommended to keep it at 20 trading days to focus on the most recent data only.
24-hour Daily Intervals
The 24-hour intervals are not the same as the usual daily candle. Instead, the start of each trading day is anchored to the 00:00 NY Midnight.
Highlights "Days of the Week" labels, "Weekend" Trading Time, and the daily high-low ranges based on the start of trading day mark being at 00:00 NY Midnight.
London Kill Zones (Green)
The Full London Session starts from 02:00 NY Time to 05:00 NY Time.
London Silver Bullet starts from 03:00 NY Time to 04:00 NY Time.
London Last Hour starts from 04:00 NY Time to 05:00 NY Time.
Highlights the high and low of the London Kill Zone to Identify Time-Based Liquidity above and below the London Kill Zone Range.
AM Session Kill Zone (Blue)
The full AM Session Starts from 09:30 NY time to 12:00 NY Time.
AM Session Silver Bullet starts from 10:00 NY Time to 11:00 NY Time.
AM Session Last Hour starts from 11:00 NY Time to 12:00 NY Time.
Highlight the high and low of the AM Session to Identify Time-Based Liquidity above and below the AM Session Range.
Highlights the time when there is the highest volatility during the AM Session.
PM Session Kill Zone (Orange)
The full PM Session Starts from 13:00 NY time to 16:00 NY Time.
PM Session Silver Bullet starts from 14:00 NY Time to 15:00 NY Time.
PM Session Last Hour starts from 15:00 NY Time to 16:00 NY Time.
Highlight the high and low of the PM Session to Identify Time-Based Liquidity above and below the PM Session Range.
Highlights the time when there is the highest volatility during the PM Session.
Bonus Features
Daily & Weekly Open Price Levels
The Open Price levels draw a horizontal line from the start of the trading day at 00:00 NY midnight, and it extends it towards the end of the trading day.
This is useful for understanding where the price is relative to the daily candle.
When Bullish, the trader should look for setups at or below the daily or weekly open price.
When Bearish, the trader should look for setups at or above the daily or weekly open price.
Whether to choose the Daily or Weekly open price depends on the trader's trading style. If the trader is day trading or scaling, then it's more appropriate to choose the Daily Open Price.
However, Day Traders can also use the Weekly candle to align with the Weekly Candle's expected range direction.
On the other hand, if the trader is a Swing Trader and wants to capitalise on the weekly candle's trend, then it's more appropriate to choose the Weekly Open Price.
However, Swing Traders can also use the Daily Open Price when looking to take a trade to time better entries with a high risk-to-reward ratio.
Daily Open Price Level (in Green) and Weekly Open Price Level (in White)
Kill Zones Open Price Level
This is useful if the trader is an intra-session trader and wants to treat the sessions as the daily candle. In this case, the trader can use the Kill Zones Open Price levels based on the same logic of the Daily Open Price, where the trade would look for buy opportunities below the Session's open price and look for sell opportunities above the Session's Open Price Level.
Notifications
The trader can also receive alerts as a reminder at the start of the desired session to ensure that he or she does not miss the start of the trading session.
在腳本中搜尋"high low"
Donch +This is an indicator I made for trading Forex to help me see the bigger picture. It is meant for the 30min TF and it includes the following:
- 20 Day High | Low
- 5 Day High | Low
- 4 Hour High | L
- 4 Hour Bars
- Daily Simple Moving Averages
- Weekly Trend Line (connects last week's open to this week's open)
- Daily Trend Line (connects yesterday's open to today's open)
- Horizontal Lines at 0.25% increments (these can be useful for S/R... currency rarely moves more than 1% in a day).
- A table with information about what markets are open and technicals on the pair I am looking at.
- A slight white background fill to highlight the first hour of the US session. Knowing what session you are in is very important in day trading (in my opinion). This lets me go back and see how the US has been trading.
To keep the chart from being "too busy" (it's plenty busy lol), I use a step line and focus on 30min closes. I reference the white lines above and below closes for 4hr highs/lows and don't bother with looking at the high/low of every 30 min bar.
For the table, you will see bright green by the country for the first hour of trading in that session. It will turn to a regular green after the first hour. It will turn yellow the final hour of that session. It will turn red if that market is closed.
You can select from the settings 'inputs' tab to enable/disable any parts of this you don't find useful, for the table you'd go over to the 'style' tab and unselect it there. For example, I don't use the labels regularly. If I were to get confused about what a moving average was or something, I'd enable the labels and clarify.
Currency doesn't like to break out and likes to be stable. Keeping this in mind, you can see how the 20 day high / low and the 5 day high / low act as support and resistance (unless there is a news event to break out on.
I have alerts for the following:
- Price update every hour
- Crossing a trend line
- Crossing a moving average
- Crossing a 0.25% increment
- Making a new 4 hour, 5 day, or 20 day high/low
To enable the alerts, you would click add alert, select the indicator, and click save. To work properly, you'd want to be on the 30min TF before doing this. You will get a lot of alerts (personally I like this because I like to see how currency moves throughout the day). You will get one notification per 30 minutes but not more than that for the particular alert.
Catching Trend Reversals by shorting tops and buying bottomsHOLP (High of the low period) and LOHP (Low of the high period)
Catching Trend Reversals by shorting tops and buying bottoms
using this Swing High/Low Indicator
Trading Strategy comes from Mastering the Trade, by John Carter pg 300.
Trading Rules for Sells, Buys are reversed
1. Identifying a trending market, where today's price is making a 20-day high (17-18 day highs are also fine)
Note this is configurable by setting the trending period variable (defaults to 20)
For example if price is making a 20 period high or 20 period low, it will show a triangle up/down above the candle.
2. Identify the high bar in the uptrend
3. Go short once the price action closes below the low of this high bar
4. The initial stop is the high of the high bar.
5. If you are in the trade on the third day or period, use a 2 bar trailing stop.
You can check 2-bar trailing stop to draw the line, defaults to off.
Stop is indicated by the white dot.
Code Converted from TradeStation EasyLanguage
I can't find the original source anymore for the swing high/low plots, but if someone knows,
let me know and I'll credit here.
YinYang Bar ForecastOverview:
YinYang Bar Forecast is a prediction indicator. It predicts the movement for High, Low, Open and Close for up to 13 bars into the future. We created this Indicator as we felt the TradingView community could benefit from a bar forecast as there wasn’t any currently available.
Our YinYang Bar Forecast is something we plan on continuously working on to better improve it, but at its current state it is still very useful and decently accurate. It features many calculations to derive what it thinks the future bars will hold. Let’s discuss some of the logic behind it:
Each bar has its High, Low, Open and Close calculated individually for highest accuracy. Within these calculations we first check which bar it is we are calculating and base our span back length that we are getting our data from based on the bar index we are generating. This helps us get a Moving Average for this bar index.
We take this MA and we apply our Custom Volume Filter calculation on it, which is essentially us dividing the current bars volume over the average volume in the last ‘Filtered Length’ (Setting) length. We take this decimal and multiply it on our MA and smooth it out with a VWMA.
We take the new Volume Filtered MA and apply a RSI Filter calculation on it. RSI Filter is where we take the difference between the high and low of this bar and we multiply it with an RSI calculation using our Volume Filtered MA. We take the result of that multiplication and either add or subtract it from the Volume Filtered MA based on if close > open. This makes our RSI Filtered MA.
Next, we do an EMA Strength Calculation which is where we check if close > ema(close, ‘EMA Averaged Length’) (Setting). Based on this condition we assign a multiplier that is applied to our RSI Filtered MA. We divide by how many bars we are predicting and add a bit to each predictive bar so that the further we go into the future the stronger the strength is.
Next we check RSI and RSI MA levels and apply multiplications based on its RSI levels and if it is greater than or less than the MA. Also it is affected by if the RSI is <= 30 and >= 70.
Finally we check the MFI and MFI MA levels and like RSI we apply multiplications based on its MFI levels and if it is greater than or less than the MA. It is also affected by if the MFI is <= 30 and >= 70.
Please note the way we calculate this may change in the future, this is just currently what we deemed works best for forecasting the future bars. Also note this script uses MA calculations out of scope for efficiency but there is potential for inconsistencies.
Innately it’s main use is the projection it provides. It only draws the bars for realtime bars and not historical ones, so the best way to backtest it is with TradingView’s Replay Tool.
Well, enough of the logic behind it, let's get to understanding how to use it:
Tutorial:
So unfortunately we aren’t able to plot legit bars/candles into the future so we’ve had to do a bit of a work around using lines and fills. As you can see here we have 4 Lines and 3 Zones:
Lines:
Green: Represents the High
Orange: Represents the Open
Teal: Represents the Close
Red: Represents the Low
Zones:
High Zone: This zone is from either Open or Close to the High and is ALWAYS filled with Green.
Open/Close Zone: This zone is from the Open to the Close and is filled with either Green or Red based on if it's greater than the previous bar (real or forecasted).
Low Zone: This zone is from either Open or Close to the Low and is ALWAYS filled with Red.
As you can see generally the Forecasted bars are generally within strong pivot locations and are a good estimation of what will likely go on. Please note, the WHOLE structure of the prediction can change based on the current bars movements and the way it affects the calculations.
Let's look 1 bar back from the current bar just so we can see what it used to Forecast:
As you can see it has changed quite a bit from the previous bar, but if you look close, we drew horizontal lines around where its projecting the next bar to be (our current realtime bar), if we go back to the live chart:
Its projections were pretty close for the high and low. Generally, right now at least, it does a much better job at predicting the high and low than it does the open and close, however we will do our best to fine tune that in future updates.
Remember, this indicator is not meant to base your trades on, but rather give you a Forecast towards the general direction of the next few bars. Somewhat like weather, the farther the bar (or day for weather), the harder it is to predict. For this reason we recommend you focusing on the first few bars as they are more accurate, but review the further ones as they may help show the trend and the way that pair will move.
We will conclude this tutorial here, hopefully this Predictive Indicator can be of some help and use to you. If you have any questions, comments, ideas or concerns please let us know.
Settings:
Forecast Length: How many bars should we predict into the Future? Max 13
Each Bar Length Multiplier: For each new Forecast bar, how many more bars are averaged? Min 2
VWMA Averaged Length: All Forecast bars are put into a VWMA, what length should we use?
EMA Averaged Length: All Forecast bars are put into a EMA, what length should we use?
Filtered Length: What length should we use for Filtered Volume and RSI?
EMA Strength Length: What length should we use for the EMA Strength
HAPPY TRADING!
HILOCLOP AnalysisThe "HILOCLOP Analysis" indicator is designed to analyze price data based on different conditions and provide insights into market trends and patterns. Let's break down its features and understand its potential usefulness in trading:
Sample Length: The indicator allows the user to specify the sample length, which determines the number of bars or periods considered for the analysis. This parameter can be adjusted to capture short-term or long-term trends and patterns in the market.
Raw Up/Down Analysis: The indicator calculates the number of occurrences where the current price values (high, low, open, close) are higher or lower than their previous values. It provides separate counts for each price component. By visualizing these counts on the chart, traders can identify periods of upward or downward movement in the price data.
HICLOP Analysis: The indicator offers a color scheme option called "HICLOP," which determines the color of the plotted results. If the HICLOP analysis is enabled, the plots representing raw up/down counts will have different colors based on whether the current count is higher or lower than the previous count. This color coding helps traders quickly identify changes in price trends.
Unchecking this Box will Show the general trend.
Raw HICLOP Color Scheme
Trend Color Scheme
Analysis Up vs. Down: The indicator provides an option to analyze instances where all four price components (high, low, open, close) are higher or lower than their respective previous values. This analysis helps traders identify periods of strong upward or downward movement in the market.
Analysis High vs. Low: The indicator compares the number of occurrences where the current high is higher than the previous high and the current low is higher than the previous low. It provides insights into whether the market is experiencing higher highs or higher lows, which can help traders determine the strength of an upward or downward trend.
Analysis Open vs. Close: The indicator compares the number of occurrences where the current close is higher than the previous close and the current open is higher than the previous open. This analysis helps traders assess the relationship between opening and closing prices, providing insights into the strength of buying or selling pressure in the market.
The usefulness of the "HILOCLOP Analysis" indicator in trading depends on the specific trading strategy and the trader's preferences. Here are a few potential use cases:
Trend Identification: By analyzing the raw up/down counts and the HICLOP color scheme, traders can identify trends and changes in price momentum. Increasing raw up counts and corresponding color changes to positive values may indicate an upward trend, while increasing raw down counts and negative color changes may suggest a downward trend.
Confirmation of Breakouts: Traders often look for confirmation of breakouts from key levels or chart patterns. The "Analysis Up V Dn" feature can help identify instances where all four price components simultaneously confirm a breakout, indicating a potentially significant move in the market.
Trend Reversals: The "Analysis High V Low" and "Analysis Open V Close" features can provide insights into potential trend reversals. For example, if there are more higher highs than higher lows, it may indicate a weakening trend, potentially signaling a reversal or a correction.
Auction Theory Price LevelsKnowing the levels where price might find support or resistance is critical in trading. These are the levels where buyer or sellers previously showed up.
A bull trend is recognized by higher highs and higher lows on a daily or weekly chart whereas a bear trend is recognized by lower highs and lower lows. Knowing where these daily and weekly levels are will help to expect when and where a bounce or rejection might occur. Alternatively a break of these levels might hint at a change in trend. As they say, never get bullish at the top or bearish at the bottom until the level is broken and held.
This indicator adds these critical levels to the chart and let you hide the ones that are not important to your style of trading (all times are in US Eastern)
- pre-market (4am to 9:30am): low, high, mid
- previous day; low, high, close
- previous week: low, high
- current week: high, low
- initial balance (9:30am to 10:30am): low, high
- current session: open, low, high, mid
If you like the indicator, please like and share!
Thank you!
XPrecisionSwing (XPS)* XPrecisionSwing (XPS) Indicator *
Is a visual representation of the Forces of Supply / Demand in the markets in the form of UP and DOWN waves. The Supply / Demand (denoted by a number on top or below the wave line) is computed using the *MBox Precision Supply / Demand* algorithm. These numbers diligently show the forces of Supply and Demand moving price in the markets. The algorithm for computing the numbers on the top and bottom of the wave lines measures the strength of the Supply / Demand. It is this algorithm that makes this indicator unique as it gives an accurate representation of the forces pulling the market up and down. When forces oppose each other, meaning when the direction of price does not agree with the direction of the Supply or Demand it creates a divergence and an opportunity in the markets. These situations are called BUY / SELL Imbalances. Explanation about this below.
* WHAT THE SCRIPT DOES *
The XPrecisionSwing indicator draws swing waves lines going up and down. These waves lines are representative of Supply and Demand. Waves going up are Demand, while waves going down are Supply. The strength of the Supply / Demand corresponds to the number drawn either on top of the wave line or below it. The numbers drawn on the chart are powered by the *MBox Precision Supply / Demand* algorithm, which are representative of the Forces of Supply / Demand in the markets. This is not just volume added up like in a regular zig zag indicator, since volume alone does not show Supply / Demand, and regular volume will not show BUY / SELL Imbalances as depicted by XPrecisionSwing. Volume summated will not show both positive and negative numbers on the chart. Having Supply / Demand split into both positive and negative numbers allows us to see BUY / SELL Imbalances, which can be a very powerful divergence. Information on how these numbers are computed are in the "HOW IT WORKS" section.
The numbers drawn on the chart can be either negative or positive. Positive relates to Demand, while negative relates to Supply. In this manner the strength of Supply and Demand can be gauged in each wave. If the price goes up but the number is negative (More Supply) it is a divergence and called a SELL Imbalance. This means there was more Supply even though price went up. It is important to pay attention to these scenarios, as often it can be indicative of NO DEMAND. Conversely. if the price goes down but the number is positive (No Demand) it is a divergence and is called a BUY Imbalance. This means there was more Demand even though price went down. This is indicative of NO SUPPLY. As such, it now becomes possible to know when there is a sign of Supply, Demand, No Supply, No Demand, Supply Exhaustion, and Demand exhaustion. Supply occurs when the negative numbers on the charts begin to increase (more negatively). Demand occurs when the positive numbers on the chart begin to increase (more positively). A Supply Exhaustion pattern happens when the price is starting to move down more slowly, while Supply is decreasing, and Demand is increasing. This means that the behavior of the market is changing and also a signal to look to reverse positions. A Demand Exhaustion pattern happens when the price is starting to move up more slowly, while Demand is decreasing, and Supply is increasing. The behavior of the market here is also changing.
* HOW IT WORKS *
- Technical Details for the Numbers on the Swing -
The numbers on the chart represent Supply / Demand. Supply or Demand is determined by analyzing the movement of price and quantity of volume.
When price goes up and is combined with an increase in volume it is Expansion of Demand.
(Positive Numbers get larger)
However if price goes up and is combined with a decrease in volume it is Contraction of Demand.
(Positive Numbers get smaller)
When price goes down and is combined with an increase in volume it is Expansion of Supply.
(Negative Numbers get larger)
However if price goes down and is combined with a decrease in volume it is Contraction of Supply.
(Negative Numbers get smaller)
- Technical Details for the Swing -
The way XPrecisionSwing draws the swings is fractal in nature, which make it very convenient and easier to use over the traditional zig zag indicator. The traditional zig zag indicator uses a tick reversal which needs to be adjusted every time you change time frames. However, with XPrecisionSwing you do not have to change any settings every time you load a different time frame since it will adjust to any time frame you are loading. How the swing is drawn is explained below.
XPrecisionSwing uses 3 bars (by default) to define a swing
This parameter can be adjusted. Can be 1, 2, 4 bars, etc...
Swings are always drawn using High / Low of the bar
- Rules -
To start upswing, bar high needs to be higher than previous 3 candle highs
To start downswing, bar low needs to be lower than previous 3 candle lows
If in upswing, a higher high will continue the upswing
if in downswing, a lower low will continue the downswing
- Exceptions -
If outside bar (both high and low exceeds previous 3 bars) swing will continue in current direction
- Swing Confirmation -
Swing wave line in progress (unconfirmed) is denoted by a brown box around the swing number
Once the brown box disappears, that swing wave and number is confirmed
* HOW TO USE IT *
As the numbers on the down waves increase (negatively), this shows that the bears have taken control of the markets. Conversely, as the numbers on the up waves increase (positively), this shows the bulls have taken control of the markets. Whoever is in control is the direction you generally want to place your trades in. When you see an increase in Supply (numbers on down wave) accompanied with a decrease in Demand (numbers on up wave) this shows a Supply + Demand Exhaustion Pattern. This is stronger than if you only see an increase in Supply without a decrease in Demand.
- The Buy / Sell Imbalances -
If you see a positive blue number on the bottom of a DOWN Wave, this means that there was more buying than selling even though price moved down.
If you see a negative red number on the top of an UP Wave, this means that there was more selling than buying even though price moved up.
Both of these cases signify and imbalance and a divergence.
* EXAMPLE AND USE CASES *
- Sell Imbalance Example -
If you see a large negative number with a lower low on a down wave, and then the next up wave is a lower high also with a negative number it shows that there is only Supply flooding the market and no sign of Demand. This is a very powerful combo.
- Buy Imbalance Example -
If you see a large positive number with a higher high on an up wave, and then the next down wave is a higher low also with a positive number it shows that there is only Demand flooding the market and no sign of Supply. This is a very powerful combo.
- Supply Exhaustion example -
If you see price movement struggling to make newer lows and the Supply numbers on the down waves are decreasing, while the Demand numbers on the up waves are increasing this is indicative of a *Change of Behavior*, and that the market is showing signs of reversal.
- Break out on Demand example -
If you see price has been ranging and now the numbers on the UP waves begin to increase while breaking out of a previous area of resistance, it is a good sign that the movement is backed by the strength coming from the Demand.
* BUY / SELL IMBALANCE ALERTS *
The Green / Red crosses on the chart show exactly where the Buy / Sell Imbalance Alerts trigger.
These will NEVER repaint! The crosses can be hidden in Styles if you wish to.
Alerts can be set very easily with the instructions below.
1. Right Click Chart -> Add Alert...
(Ignore Caution Warning. These alerts will *ONLY* trigger on Confirmed BUY / SELL Imbalances and will NOT repaint)
2. Select Condition to be "XPrecisionSwing"
3. Select "Buy Imbalance" or "Sell Imbalance"
4. Select "Greater Than" with Value = 0
5. Options set "Once Per Bar"
6. Customize Any other Alert Options you want
* WHAT MAKES IT ORIGINAL *
XPrecisionSwing gives an inside look into the markets by showing price movements as a series of waves going up and down with their corresponding Supply / Demand numbers associated with each wave. Reading the numbers shows the strength of Supply / Demand. The bigger the number the stronger the Supply / Demand is. The smaller the number the weaker the Supply / Demand is. It becomes possible to see where Supply / Demand comes in, along with Exhaustion of Supply / Demand to spot opportunities to place trades. The Buy / Sell Imbalances show imbalances where price movement and the direction of the Supply / Demand diverge to create potential opportunities as well.
* AUTHOR *
This script is published by MBoxWave LLC
Volume-based Support & Resistance Zones-V1 By Trade Mastership™ The all-new Support & Resistance Zones indicator, which has been upgraded to offer traders more powerful features and functionality. This innovative indicator identifies high-volume fractal lows or highs to create zones based on the size of the wick for that timeframe's candle. This makes it easy for traders to visualize which price levels are the most significant for either a trend continuation or a reversal when zones are broken and retested.
The original script for this indicator was created by Trade Mastership, with additional modifications by L N Behera. Credit goes to both of them for the majority of the logic behind this script. Since then, the script has been improved with several changes, including:
Changing the default S/R lines from plots to lines, and giving users the option to change between solid, dashed, or dotted lines for both S/R lines
Adding additional timeframes and more options for TF1, beyond the current TF. Now, users have four timeframes to plot S/R zones from
Giving users the option to easily change the line thickness for all S/R lines
Making it easier to change the colors of S/R lines and zones by consolidating the options under settings (rather than under style)
Adding extensions to active SR Zones to extend all the way right
Adding the option to extend or not extend the previous S/R zones up to the next S/R zone
Adding optional timeframe labels to active S/R zones, with left and right options, as well as the option to adjust how far to the right the label is set
Fixing an issue where the higher timeframe S/R zone was not properly starting from the high/low of fractal. Now, any higher timeframe S/R will begin exactly at the High/Low points. Note that this may not work perfectly on stocks, and if a fractal high/low is too many bars in the past, it will revert to a default max bars back to avoid script errors.
Adding a function to prevent S/R zones from lower timeframes displaying while on a higher timeframe. This helps clean up the chart quite a bit.
Creating arrays for each timeframe's boxes and lines so that the number of S/R zones can be controlled for each timeframe and limit memory consumption.
Adding new alert options and customized alert messages
Here's how this indicator works: it looks for fractal highs or fractal lows with volume that pierces above the volume's Moving Average. This moving average value can be modified in the settings for each timeframe. The fractal highs will be confirmed with three successive higher highs followed by two successive lower highs and vice versa for the fractal lows. The zone is created from the fractal high/low and the close of the candle for whatever timeframe you selected. The bigger the zone, the more significant that zone is.
Traders can disable any zone, change the zones to show lines only, and modify all the colors, transparencies, and thickness of lines for all the zones. To create alerts, traders can enable the types of alerts they want for each timeframe in the indicator's settings. After applying changes, right-click on one of the zones on the chart, and click "Add Alert on Vol S/R Zones." You do not need to add a title, as the correct alert messages are already built-in.
The latest update has migrated the script to Pine Script Version 5 and added a higher number of total boxes/lines to show on the chart. It has also increased the max bars count to the maximum Pine Script allows, enabling traders to utilize as many bars as possible when drawing the left side of SR zones that are very far back on the chart. Additionally, the update fixed issues where the indicator would not load on 1 minute and 3-minute charts unless higher timeframe SR zones
Candle Trend Counter [theEccentricTrader]█ OVERVIEW
This indicator counts the number of confirmed candle trend scenarios on any given candlestick chart and displays the statistics in a table, which can be repositioned and resized at the user's discretion.
█ CONCEPTS
Green and Red Candles
• A green candle is one that closes with a high price equal to or above the price it opened.
• A red candle is one that closes with a low price that is lower than the price it opened.
Swing Highs and Swing Lows
• A swing high is a green candle or series of consecutive green candles followed by a single red candle to complete the swing and form the peak.
• A swing low is a red candle or series of consecutive red candles followed by a single green candle to complete the swing and form the trough.
Muti-Part Green and Red Candle Trends
• A multi-part green candle trend begins upon the completion of a swing low and continues until a red candle completes the swing high, with each green candle counted as a part of the trend.
• A multi-part red candle trend begins upon the completion of a swing high and continues until a green candle completes the swing low, with each red candle counted as a part of the trend.
█ FEATURES
Inputs
Start Date
End Date
Position
Text Size
Show Sample Period
Show Plots
Table
The table is colour coded, consists of seven columns and, as many as, thirty-one rows. Blue cells denote the multi-part candle trend scenarios, green cells denote the corresponding green candle trend scenarios and red cells denote the corresponding red candle trend scenarios.
The candle trend scenarios are listed in the first column with their corresponding total counts to the right, in the second column. The last row in column one, displays the sample period which can be adjusted or hidden via indicator settings.
The third column displays the total candle trend scenarios as percentages of total 1-candle trends, or complete swing highs and swing lows. And column four displays the total candle trend scenarios as percentages of the, last, or preceding candle trend part. For example 4-candle trends as a percentage of 3-candle trends. This offers more insight into what might happen next at any given point in time.
Plots
I have added plots as a visual aid to the various candle trend scenarios listed in the table. Green up-arrows, with the number of the trend part, denote green candle trends. Red down-arrows, with the number of the trend part, denote red candle trends.
█ HOW TO USE
This indicator is intended for research purposes, strategy development and strategy optimisation. I hope it will be useful in helping to gain a better understanding of the underlying dynamics at play on any given market and timeframe.
It can, for example, give you an idea of whether the next candle will close higher or lower than it opened, based on the current scenario and what has happened in the past under similar circumstances. Such information can be very useful when conducting top down analysis across multiple timeframes and making strategic decisions.
What you do with these statistics and how far you decide to take your research is entirely up to you, the possibilities are endless.
█ LIMITATIONS
Some higher timeframe candles on tickers with larger lookbacks such as the DXY , do not actually contain all the open, high, low and close (OHLC) data at the beginning of the chart. Instead, they use the close price for open, high and low prices. So, while we can determine whether the close price is higher or lower than the preceding close price, there is no way of knowing what actually happened intra-bar for these candles. And by default candles that close at the same price as the open price, will be counted as green. You can avoid this problem by utilising the sample period filter.
The green and red candle calculations are based solely on differences between open and close prices, as such I have made no attempt to account for green candles that gap lower and close below the close price of the preceding candle, or red candles that gap higher and close above the close price of the preceding candle. I can only recommend using 24-hour markets, if and where possible, as there are far fewer gaps and, generally, more data to work with. Alternatively, you can replace the scenarios with your own logic to account for the gap anomalies, if you are feeling up to the challenge.
It is also worth noting that the sample size will be limited to your Trading View subscription plan. Premium users get 20,000 candles worth of data, pro+ and pro users get 10,000, and basic users get 5,000. If upgrading is currently not an option, you can always keep a rolling tally of the statistics in an excel spreadsheet or something of the like.
Pullback IndicatorThe Pullback Indicator is a technical analysis tool designed to identify pullbacks in the price action of a financial instrument. It is based on the concept that price tends to retrace to a previous level of support or resistance before continuing in the direction of the trend.
The indicator is plotted as a series of triangles above or below the price bars, depending on the type of pullback detected. A green triangle is displayed when a bullish pullback is detected, while a red triangle is displayed for a bearish pullback.
The Pullback Indicator uses Inside Bar Range, this number is a user-defined input that specifies the number of bars to look back for the highest high and lowest low.
The indicator classifies four types of pullbacks:
Swing Low - When the price forms a lower low and a higher low than the previous bar.
Swing High - When the price forms a higher high and a lower high than the previous bar.
High Low Sweep and close below - When the price forms a lower low and a higher low than the previous bar, but the close is below the previous high.
High Low Sweep and close above - When the price forms a higher high and a lower high than the previous bar, but the close is above the previous low.
The Pullback Indicator is best used in conjunction with other technical analysis tools to confirm the direction of the trend and to identify potential entry and exit points.
Inter-Exchanges Crypto Price Spread Clouds (Tartigradia)Display variations in min-max and median values of high, low and close across exchanges. It's a kind of realized volatility indicator, as the idea is that in times of high volatility (high emotions, fear, uncertainty), it's more likely that market inefficiencies will appear for the same asset between different market makers, ie, the price can temporarily differ a lot. This indicator will catch these instants of high differences between exchanges, even if they lasted only an instant (because we use high and low values).
Compared with my other "Inter-Exchanges Crypto Price Spread Deviation" indicator, this one overlays directly on the chart, and offers a different take based on the same premisses. Instead of summarizing volatility via standard deviation, here we display clouds of the range of values that were observed.
A big advantage of this approach is that it can also be used to determine safe stop loss levels, especially the values of percentile rank (i.e., what are the high values that were observed in at least 50% of exchanges?).
Indeed, all price levels are displayed in the indicator's status bar:
green for high values,
red for low values,
aqua for median,
purple for average,
The first two values are max and min values of high across exchanges (in green).
The next two values are max and min of low across exchanges (in red).
The next two values are median (aqua) and average (purple).
The last two values are percentile rank values for high (green) and low (red) respectively.
Another advantage is that the high (green) vs low (red) clouds can be seen as representing the buying or selling pressure respectively across exchanges, and this may in itself provide a signal to know whether one side is winning.
Link to my other complementary indicator:
Compared to other inter-exchanges spread indicators, this one offers two major features:
The symbol automatically adapts to the symbol currently selected in user's chart. Hence, switching between tickers does not require the user to modify any option, everything is dynamically updated behind the scenes.
It's easy to add more exchanges (requires some code editing because PineScript v5 does not allow dynamical request.security() calls).
Limitations/things to know:
History is limited to what the ticker itself display. Ie, even if the exchanges specified in this indicator have more data than the ticker currently displayed in the user's chart, the indicator will show only a timeperiod as long as the chart.
The indicator can manage multiple exchanges of different historical length (ie, some exchanges having more data going way earlier in the past than others), in which case they will simply be ignored from calculations when far back in the past. Hence, you should be aware that the further you go in the past, the less exchanges will have such data, and hence the less accurate the measures will be (because the deviation will be calculated from less sources than more recent bars). This is thanks to how the array.* math functions behave in case of na values, they simply skip them from calculations, contrary to math.* functions.
Micro ZigzagMicro zigzag is created based on similar concepts as that of zigzag but by using lower timeframe intra-bar data. The lines join candle's high/low points but also depict how the price movement within the candle happened. That is, if the high of the candle is reached first, pivot from previous candle join the high first and then low and vice versa.
The output can also be viewed as advanced line chart.
🎲 Process
🎯 For every bar identify whether high came first or low by using lower timeframe data.
🎯 If high came before low, add high as high pivot first and then low as low pivot. If otherwise, add low as lower pivot first and then high as higher pivot.
🎯 When adding pivot, check if the last pivot is in the same direction as the new one. If yes, replace existing pivot if the new one goes beyond it. Ignore otherwise.
🎯 If the last pivot is of different direction as that one new one, then simple add the new pivot.
MTFT VWAPs Auto AnchoredMulti Time Frame Tools
Multi Time Frame Tools (MTFT) is a suite of scripts aimed to establish a standard timeframe-based color scheme. This can be utilized to overlay different timeframes calculations/values over a single timeframe. As one example, this would allow to observe the 5-month moving average, 5-week moving average, and 5-day moving average overlaid over each other. This would allow to study a chart, get accustomed to the color scheme and study all these at the same time much easier.
All indicators calculated using the below specific timeframes as input, will always use the color scheme outlined below. This is to get you in habit of recognizing the different timeframes overlaid in top of each other. These can be personalized.
Longer TF analysis.
Yearly - Black
Semi-Annual - Yellow
Quarterly - White
Monthly - Maroon
Weekly - Royal Blue
Daily - Lime
Shorter TF analysis.
4 hour - Fuchsia
1 hour - Orange
30 min - Red
15 min - Brown
10 min - Purple
5 min - Lilac
All color coordination is able to be modified in either the “Inputs” or “Style” section. If you need to make changes, make sure to select “Save as Default” on the bottom right of the settings menu.
Recommended Chart Color Layout
I played around with color coordination a lot. The final product was what worked best for me. I personally use the following chart settings to accent all available TF colors.
-> Click on the settings wheel on your chart. -> Click on “Appearance”.
Background - Solid -> On the top row pick the 6th color from the left.
Vert Grid Lines and Horz Grid Lines -> On the top row pick the 7th color from the left.
You may of course change these and the indicator line colors as you like.
Adding indicator to Chart
-> Open the TradingView “Indicators & Strategies” library, the icon has “ƒx”. -> All premium scripts will be located under “Invite-Only Scripts” -> Click indicator to add to your chart.
MTFT VWAPs Auto Anchored
The Anchored Volume-Weighted Average Price, Anchored VWAP, is a commonly discussed FinTwit tool. I personally found it through Brian Shannon on Twitter. I have seen big FinTwit accounts solely focus on this strategy alone and have seen other big FinTwit accounts mix with their other indicators. I will be providing very basic info to utilize this script; it is up to you to dive deep into learning this strategy. I am not an expert with the tool or a financial advisor. As with all aspects of life, I recommend you research, learn, discern and practice extensively in order to become a master.
The script has the following features.
1. Three user selected time frames auto anchored VWAPS. It will auto anchor to the start of the timeframe. Timeframes(TF) include: Yearly(Y), Semi-annually(S), Quarterly(Q), Monthly(M), Weekly(W), Daily(D), and 4 hour. Image below shows the D candlestick as the active timeframe, the anchored VWAPs for the Year, Quarter, and Month.
2. Auto hide lower timeframe calculations. Auto Hide feature will hide smaller TF calculations when a larger timeframe is selected as the display TF. Example, when the Daily timeframe candlestick selected the Weekly and Daily Anchored VWAPs are hidden because they produce very noisy results. If a lower TF is selected such as the 30 min candlestick, the previously hidden Daily and Weekly Open Anchored VWAPs are now displayed. Notice that this specific indicator calculates different with every different timeframe that is selected. The lower TF calculations are more accurate as they include additional information. Image below shows the 30 min timeframe selected with the Daily, Weekly, and Monthly Open Anchored VWAPs displayed.
3. Auto Anchor using Pivot High/Low locations. Script finds the pivot highs/lows with a user selected look back/forward period. Additionally, as new pivot highs/lows appear you can choose to keep up to 4 each previous pivot high/low anchored VWAPs displayed. Image below has a 40 look back/forward period selected, and 2 past AVWAPs enabled.
You may notice in the above image that there is a gap between the AVWAP plot and the marked pivot point. This is not something that can be avoided as the script has to look forward in order to verify the pivot. The calculation is still correct, this can be verified by manually adding an “Anchored VWAP” drawing and seeing the values align. Image below shows that they match. White lines are the manually added “Anchored VWAP” drawings. If you verify this for yourself, make sure to select the correct input source in the settings of the drawing.
4. Auto Anchored on IPO High/Low. Looks for the first available candlestick in a chart and anchors to the high and low. This is useful with newer companies with recent IPOs.
IMPORTANT NOTE to TradingView admin: One of the lessons I would consider most important in attaining clarity regarding trading, is “TheStrat” by Rob Smith. His lesson on “actionable signals” is something that can be applied to any strategy. For this reason, I am including “MTFT TheStrat Patterns Pro” script in all images that will depict confluence for a better trade selection.
Example using TheStrat Pro MTFT with this indicator.
Look for a “TheStrat actionable signal” or a “TheStrat Reversal signal” on a smaller timeframe that has an instance of this indicator on a larger timeframe calculation that is in range of the candlestick that formed your actionable signal. This means that the indicators plot you are observing must be above the low and below the high of the candlestick that is the actionable signal/reversal signal.
The Image below shows what this would look like with this indicator. The selected candlestick is the 2-day, it shows a 1-3-1 pattern and the Quarter Anchored VWAP in range. This actionable signal could be played in both directions. If the high is breached, you would enter a long position from the high of the inside candlestick. If the low is breached than you would enter a short. For targets you would look at the previous pivots, for this example all targets were hit. Note that the “Entry” and “Targets” line were added manually and are not part of the script. Setups won’t always play out so nice and clean, but given that there is so many stocks and so many signals this is just a thought to improve the quality of the signal as it has extra confluence. If you are interested in learning further, research ‘TheStrat’ by Rob Smith.
Smart Money Concepts(v0.01) - SoldiSmart Money Concepts
We are very pleased to be releasing our latest addition to the Soldi tools, called Smart Money Concepts. What this indicator was built to be is a guideline and tool to help a trader develop the mental mind state of a Smart Money Trader. Picking up on the digital footprints that they might have missed! This is our first iteration of this tool but we have so so much more coming to bring to this tool! So much that we might need to release 2 scripts to be able to efficiently fit it all in. As always Soldi/MMCFX always try to raise the bar on what is possible with PineScript and what advanced concepts we can bring to the retail market with ease, this project was insanely fun trying to get together and we spent a lot of months talking with and doing sessions with very well versed traders who only specialize and solely trade live with Smart Money/ICT Concepts. After many months of talking with and working with these traders we believe we have put together a very unique tool that any SMC trader would love to have in their tool belt.
What is Smart Money Concepts?
Smart Money Concepts (SMC) is the practice of trying to track the digital footprints left by Market Makers and large money traders like Institutional bodies and brokers. I believe this concept was originally developed by Inner Circle Trading (ICT), who has some great great content for free on YouTube. To my knowledge he was the father of the concepts being taken mainstream to retail individuals. Since then, there has been many other who have released content on these theories. For the sake of congruency we have only developed these tools based off the knowledge and practices taught by ICT.
What is Included within this tool?
What is currently Included with this tool are the following.
Market Structure - This includes Break of Structures (BOS) and Change of Characters (CHoCH), It was really important for us to define the different shifts that SMC traders track and follow so we built a unique customizable system that allows the traders to track these Market Structure shifts in real-time. Part of this module includes the option to plot the High/Low labels, by putting this settings on you will mark out the swing points as their respective Higher High(HH), High Low(HL), Lower Low(LL) and Lower High(LH) . This feature is a great way to help familiarize yourself with spotting these instances, there is a slight lag due to the nature of the calculations for tracking the Swing Points. By default we track 4 left bars and 4 right bars, on the 5th bar if the swing point returns true you will see the label plot itself. If you have a higher bar count you will need to wait till x+1 to see the label be plotted. eg. 7 bar count on the left and right, you will need to wait till the 8th bar to see the label be plotted.
By changing the bar counts you also change how the Market Structure module picks up the Market shifts (BOS/CHoCH)
4 bar left, 4 bar right example:
7 bar left, 7 bar right example:
Liquidity Sweep - This part of the Market Structure module is still being worked on and built out, this feature is meant to help a trader identify potential liquidity sweeps that have taken place past or present by switching the bar color to the user defined color (default yellow). There are many different types of liquidity sweeps that can take place and we are still working on the different profiles of these! More profiles will be added to the the updates in the future to help identify these potential trade areas
Liquidity Sweep example:
Trend Bars - This part of the Market Structure module helps traders identify structure trends based on the breaks of existing structure. Again this will shift as you play with the bar count settings, low bar count will identify faster swing points and shifts where as higher bar counts will identify longer term structures. By having this setting on it will change the bar colors to Red(Bearish) or Blue(Bullish) by default, we recommend to change your candles border settings to make this more visible.
7 bar left, 7 bar right. With High Low Labels and Trend Bars
Fair Value Gaps - This module will track the Fair Value Gaps and Imbalances that will take place in real-time. Once the final candle closes it will plot the FVG. Unlike other FVG indicators on TradingView we hold and store ALL the FVG's that take place, other indicators will only hold on to x amount of the FVG's and as new ones enter the list the old ones get bumped out. We didn't like this idea, so what we did was instead store all of the FVG's but create a threshold to where they would be plotted, eg. if you set the threshold to 4% it will only show you the FVG's within a 4% range from the current price. This way you still have access to all the data with out compromising but it helps you focus on the current data at hand.
Fair Value Gap/Imbalance - 3% threshold example
Fair Value Gap/Imbalance - 8% threshold example
Order Blocks - This was an especially interesting module to build, just like the FVG's we found that a lot if not all the authors on TradingView haven't actually been coming close to tracking and plotting true ICT style Order blocks. We set out to change that though, again through a unique approach we have built this Order Block indicator. To also comment on the other scripts out there that claim to track Order Blocks, not a SINGLE script mentions anything about Validated Order Blocks , which was especially important to all the SMC traders I have talked to and had help from building this indicator. Just like the FVG piece this also has a 'threshold' plot, but not only that it gives you the option to look at "No Validation" and "Validated" Order Blocks. With soon another style of Validation to choose from. If you choose the "Validated" option the script will actively seek Order Blocks that have a POI/liquidity sitting above it. I also want to make it clear that based on your bar count settings the order blocks will differ, as they are also based from structure breaks!
Order Blocks with "No Validation" example
Order Blocks with "Validation" example
Advanced Session Tracking - We always seek to out do what has been done and what we have already done, that being said we built our Advanced Session Tracking module to follow each user define Session's Open, High, Low, Close, Liquidity threshold and extend that into the next session . As per our last KillZone indicator we also included the Forward Plotting feature which will plot the defined sessions 24 hours in advance vs only showing you real time. Many if not all Session tracking tools on TradingView only show you real-time and in the past when the define sessions are but we find that to be a very silly practice because as SMC traders you know how important it is the relation between time and price. Instead of reacting to the sessions you and prepare for the sessions ahead of time anticipating when price might react to time.
note: There is a small bug with tracking the crypto based sessions, this is working to be fixed for the next update, check the release notes to see when the fix occurs
Session Background plots with forward plotting example
Session Backgrounds with High/Lows and Liquidity range example
What is to come with the updates?
We are always looking to improve anything, even if it is just a fraction better. That is why we are continuing to work with our SMC traders to refine the concepts, profiles, coding as well as the logic behind the calculations.
Here is a list of what we are planning and working on to be released in the updates to come!
Intra-Day Profiling - Each day has a profile, what we want to achieve is to track and predict these profiles
Liquidity Scanner - There are different types of liquidity that form and we want to be able to find and track these
Smart Trend Alerts - We want to combine quant methods into SMC to provide high probability trade ideas
User Suggestions - We are always open to work with the community to bring features they want
If it's not Soldi, it isn't money
Volume-based Support & Resistance ZonesThe new and improved Support & Resistance Zones indicator is here. This indicator is based on high volume at fractal lows or fractal highs with the zones based on the size of the wick for that timeframe’s candle.
This helps traders visualize which price levels are of the most significance for either reversals or continuation of the trend when zones are broken and then re-tested.
Original script is thanks to synapticex and additional modifications is thanks to Lij_MC. Credit to both of them for most of the logic behind this script.
Since then I have made many changes to this script as noted below:
Changed default S/R lines from plots to lines, and gave option to user to change between solid line, dashed line, or dotted line for both S/R lines.
Added additional time frame and gave more TF options for TF1 other than current TF. Now you will have 4 time frames to plot S/R zones from.
Gave user option to easily change line thickness for all S/R lines.
Made it easier to change colors of S/R lines and zones by consolidating the options under settings (rather than under style).
Added extensions to active SR Zones to extend all the way right.
Added option to extend or not extend the previous S/R zones up to next S/R zone.
Added optional time frame labels to active S/R zones, with left and right options as well as option to adjust how far to the right label is set.
Fixed issue where the higher time frame S/R zone was not properly starting from the high/low of fractal. Now any higher time frame S/R will begin exactly at the High/Low points. Note that this may not work perfectly on stocks and if a fractal high/low is too many bars in the past, it will revert to a default max bars back to avoid script errors.
Added to script a function that will prevent S/R zones from lower time frames displaying while on a higher time frame. This helps clean up the chart quite a bit.
Created arrays for each time frame's boxes and lines so that the number of S/R zones can be controlled for each time frame and limit memory consumption.
New alert options added and customized alert messages.
- The way this indicator works is it looks for fractal highs or fractal lows with volume that pierces above the volume's Moving Average. This moving average value can be modified in the settings for each time frame.
- The fractal highs will be confirmed with 3 successive higher highs followed by 2 successive lower highs and vice versa for the fractal lows.
- The zone is created from the fractal high/low and the close of the candle for whatever time frame you selected. The bigger the zone, the more significant that zone is.
- You can disable any zone, change the zones to show lines only, and modify all the colors, transparencies, and thickness of lines for all the zones.
- To create alerts, you first want to enable the types of alerts you want for each time frame in the indicator's settings. Then after you apply changes, right click on one of the zones on the chart, and click "Add Alert on Vol S/R Zones". You do not need to add a title as the correct alert messages are already built-in.
- More changes will be coming in the future!
I hope you find this indicator useful, if so please give it a thumbs up!
If you have any suggestions or features you would like to see, just let me know in the comment section. Thanks and enjoy!
Strat Assistant FTC OnlyStrat Assistant FTC Only
----------------------------
█ OVERVIEW
This script is intended to provide full time frame continuity information for almost all time frames (3, 5, 15, 30, 60, 4H, Day, Week, Month, Quarter)
When added, the script provides a visual indicator to the right at the current price level with indicators for the various time frames in terms of price action and candle type.
█ DETAIL
----------
Output
Time Frames: 3min, 5min, 15min, 30min, 60min, 4 Hour, Day, Week, Month Quarter
Time Frame Labels: 3, 5, 15, 30, 60, H, 4H, D, W, M, Q
Current Candle Time Frame Price Action: displayed below time frame labels. RED + Arrow Down (open > close) or GREEN + Arrow Up (open =< close)
Time Frame Compare: displayed above time frame labels. Current high/low vs prior high/low are compared. IN = Inside/Yellow (current high/low inside prior), O = Outside/Fuchsia (current high/low both greater and less than prior high/low), 2U = Up/Green (current high higher than prior, and low not lower), 2D = Down/Red (current lows lower than prior lows, and high not higher)
Will not show time frames lower than the one currently selected
Best Practices
----------
Had to decouple this from the other scripts because Trading View limits how much you can plot/show
May be a little slow at times, analyzing a lot of time periods/data be patient.
MA DerivativesMA Derivatives basicly using Ichimoku Cloud and some additional moving averages for traders.
A. ICHIMOKU
Tenkan-sen (Conversion Line): (9-period high + 9-period low)/2
On a daily chart , this line is the midpoint of the 9-day high-low range, which is almost two weeks.
Kijun-sen (Base Line): (26-period high + 26-period low)/2
On a daily chart , this line is the midpoint of the 26-day high-low range, which is almost one month.
Senkou Span A (Leading Span A): (Conversion Line + Base Line)/2
This is the midpoint between the Conversion Line and the Base Line. The Leading Span A forms one of the two Cloud boundaries. It is referred to as “Leading” because it is plotted 26 periods in the future and forms the faster Cloud boundary.
Senkou Span B (Leading Span B): (52-period high + 52-period low)/2
On the daily chart , this line is the midpoint of the 52-day high-low range, which is a little less than 3 months. The default calculation setting is 52 periods, but it can be adjusted. This value is plotted 26 periods in the future and forms the slower Cloud boundary.
Chikou Span: Represents the closing price and is plotted 26 days back.
Kumo Cloud: Kumo cloud between Senkuo Span A and Senkou Span B lines. It can be green or red. Color can be change with the trend.
You can use Ichimoku for buy&sell strategy
For Buying Strategy
- Tenkansen (Conversion Line) should crossover Kijunsen (Base line) above the highest line of cloud
- Price should be above the highest line of cloud
- Chikouspan should be above the cloud
For Selling Strategy
- Kijunsen (Base Line) should crossover Tenkansen (Conversion Line) below the lowest line of cloud
- Price should be below the lowest line of cloud
- Chikouspan should be below the cloud
B. SIMPLE MOVING AVERAGES
The indicator has some of Simple Moving Averages
It includes:
-Simple Moving Average 50
-Simple Moving Average 100
-Simple Moving Average 200
C. EXPONENTIAL MOVING AVERAGES
The indicator has some of Simple Moving Averages
It includes:
-Exponential Moving Average 9
-Exponential Moving Average 21
-Exponential Moving Average 50
D. BOLLINGER BAND
Bollinger Bands are a type of price envelope developed by John BollingerOpens in a new window. (Price envelopes define upper and lower price range levels.) Bollinger Bands are envelopes plotted at a standard deviation level above and below a simple moving average of the price. Because the distance of the bands is based on standard deviation, they adjust to volatility swings in the underlying price.
Bollinger Bands use 2 parameters, Period and Standard Deviations, StdDev. The default values are 20 for period, and 2 for standard deviations, although you may customize the combinations.
Bollinger bands help determine whether prices are high or low on a relative basis. They are used in pairs, both upper and lower bands and in conjunction with a moving average. Further, the pair of bands is not intended to be used on its own. Use the pair to confirm signals given with other indicators.
How this indicator works
When the bands tighten during a period of low volatility, it raises the likelihood of a sharp price move in either direction. This may begin a trending move. Watch out for a false move in opposite direction which reverses before the proper trend begins.
When the bands separate by an unusual large amount, volatility increases and any existing trend may be ending.
Prices have a tendency to bounce within the bands' envelope, touching one band then moving to the other band. You can use these swings to help identify potential profit targets. For example, if a price bounces off the lower band and then crosses above the moving average, the upper band then becomes the profit target.
Price can exceed or hug a band envelope for prolonged periods during strong trends. On divergence with a momentum oscillator, you may want to do additional research to determine if taking additional profits is appropriate for you.
A strong trend continuation can be expected when the price moves out of the bands. However, if prices move immediately back inside the band, then the suggested strength is negated.
Calculation
First, calculate a simple moving average. Next, calculate the standard deviation over the same number of periods as the simple moving average. For the upper band, add the standard deviation to the moving average. For the lower band, subtract the standard deviation from the moving average.
Typical values used:
Short term: 10 day moving average, bands at 1.5 standard deviations. (1.5 times the standard dev. +/- the SMA)
Medium term: 20 day moving average, bands at 2 standard deviations.
Long term: 50 day moving average, bands at 2.5 standard deviations.
E. ADJUSTABLE MOVING AVERAGES
And this script has also 2 adjustable moving average
- 1 Adjustable Simple Moving Average
- 1 Adjustable Exponential Moving Average
You can just change the length for using this tool.
Ease of Movement WatcherHere’s a handy Ease of Movement(EMV) Indicator. I tried to include detailed comments so that anyone that’s learning pine can follow along.
The Ease of Movement Indicator is a volume based oscillator that is designed to measure the ease (or movability) of price movement for a security. The EMV is a centered oscillator, meaning that values can fluctuate above and below zero.
To understand how to use and interpret the EMV Indicator, its crucial to first understand its two main calculations :
Distance Moved = ((high + low) / 2) - ((high + low ) / 2)
-This is the difference between the current period’s midpoint and the previous period’s
midpoint.
Box Ratio = (volume / 100,000) / (high - low)
-When calculating the Box Ratio, it is common to divide the volume by 100,000 for a clearer visualization of the data. However, users can choose
to modify this value with the ‘volumeDiv’ input.
The Ease of Movement Value is then pretty simple to calculate:
EMV = (Distance Moved / Box Ratio)
The indicator then plots a SMA of the previous 24 EMV Values.
Looking at the formula, we know that combining low volume with a large {high, low} range will result in a relatively small box ratio value. Thus, we know that the EMV value for that period will be higher since EMV is found by dividing the Distance Moved by the Box Ratio.
Here’s a simple guide to interpreting the EMV:
- If (EMV > 0)
then price is increasing with relative ease.
-If (EMV < 0)
then price is decreasing with relative ease.
- If high-low range is large and volume is low
then ease of movement is high.
-If high-low range is small and volume is high
then ease of movement is low.
The Chart:
-The histogram represents the Simple Moving Average of EMV Values. The default length is 24, but users can adjust this value at the inputs menu(I've
found 24 works best).
-The teal and pink dotted lines represent the standard deviation of the SMA of EMV values multiplied by 2.5.
-The histogram turns dark green when the EMV SMA is greater than the top teal dotted standard deviations line.
-The histogram turns maroon when the EMV SMA falls below the bottom pink standard deviation line.
How To Use:
Enter a long position when the most recent EMV SMA value was below the lower pink stand. dev. line and the current EMV SMA value rises above that
same pink line. That means the previous bar was maroon and the current bar is not.
If the user enables the option to show entry points, a green dot will be plotted when it is time to enter a long position.
Exit the long position when the most recent EMV SMA value was above the upper green standard deviation line and the current EMV SMA value falls
below that same line. If this is true, then the previous bar will be dark green, and the current will be light green.
If the ‘showExits’ option is enabled, then a red dot will be plotted when it is time to exit the long position.
Input Options:
- 'volumeDiv' : Integer. Used in the calculation of Box Ratio.
- 'lenSMA' : Integer. The length of the Simple Moving Average of Ease of Movement Values.
- 'showStDev' : Bool. If true, dotted green and red lines will be shown at values equal to 2.5 * standard deviation of emvSMA and -2.5 * standard deviation of
emvSMA.
- 'showEntries' and 'showExits' : Bool. If true, a green circle will be plotted at long entry points and a red circle will be plotted at long exit points.
- 'changeBgColor': Bool. If true, the background color will change to green when it is time to enter a long position and red when it is time to exit.
Alerts:
- When it is time to enter a long position, an alert with the message "EMV Tracker - Enter Long" is sent.
- When it is time to exit a long position, an alert with the message "EMV Tracker - Exit Long" is sent.
NOTE:
- I usually use this indicator to confirm signals from other indicators rather than relying on it solely.
- Most accurate signals are generated on 30 minutes with the default input values I've set in the script.
Shoot me a message if you have any ideas for modifications or questions.
~ Happy Trading ~
eriktrades1995-ORB-opening range breakoutThis TradingView Pine Script indicator is designed to identify and display Opening Range Breakout (ORB) levels and signal potential breakout opportunities. It helps traders visualize the high and low of an initial trading period and then highlights the first instance the price breaks out of this range.
How it Works:
- Defines the Opening Range:
You can choose an ORB period of either 15 minutes or 30 minutes from the script's settings.
The script then monitors the price action during this initial period (e.g., 09:30 - 09:45 ET for a 15-minute ORB, or 09:30 - 10:00 ET for a 30-minute ORB, based on the New York timezone).
Identifies ORB High and Low:
- During the selected ORB period, the script records the highest high and lowest low reached.
Plots ORB Levels:
Once the ORB period is complete, two horizontal black lines are drawn on your chart:
One representing the ORB High.
One representing the ORB Low.
These lines extend for the remainder of the trading day.
- Signals Breakouts:
The script watches for the price to close outside of this established ORB range.
Break Above ORB High: If the price closes above the ORB High for the first time that day (after the ORB period), a small green upward-pointing triangle is plotted below the breakout bar.
Break Below ORB Low: If the price closes below the ORB Low for the first time that day (after the ORB period), a small red downward-pointing triangle is plotted below the breakout bar.
Only the first breakout in each direction is marked for the day.
- Daily Reset:
The ORB levels and breakout signals are automatically reset at the beginning of each new trading day.
Key Features:
Customizable ORB Duration: Choose between 15-minute or 30-minute opening ranges.
Clear Visuals: Easily identifiable ORB high/low lines and distinct breakout signals.
First Breakout Focus: Designed to capture the initial breakout momentum.
Intraday Strategy: Best suited for use on intraday charts (e.g., 1-minute, 5-minute, 15-minute).
New York Timezone Based: The ORB session is calculated based on 'America/New_York' time.
How to Use:
Traders typically use ORB strategies to identify potential continuations or reversals early in the trading session. A break above the ORB high might suggest bullish momentum, while a break below the ORB low might indicate bearish momentum. Always use in conjunction with other analysis and risk management techniques.
Strong/Weak Candle FinderStrong/Weak Candle Finder (SWCF)
Overview:
The Strong/Weak Candle Finder (SWCF) is a versatile TradingView indicator designed to help traders identify statistically significant candles based on their size relative to recent historical price action. By analyzing a lookback period, the indicator dynamically calculates a threshold to classify candles as either "strong" (larger than the threshold) or "weak" (smaller than the threshold), providing visual cues directly on your chart.
This tool can be invaluable for traders looking to:
Spot potential momentum breakouts or high volatility (Strong Candles).
Identify periods of consolidation or low volatility (Weak Candles).
Gauge shifts in market sentiment based on candle body or range dynamics.
How It Works:
Candle Size Calculation: You choose how candle size is measured from four methods:
High - Low: The full range of the candle.
High - Close: The distance from the high to the close.
Open - Close: The size of the candle body.
Low - Open: The distance from the low to the open.
Historical Analysis: The indicator looks back over a user-defined LookBack Period to collect candle sizes.
Grouping & Precision: To smooth the distribution, candle sizes are grouped based on the Group Precision Size. This parameter divides the observed range of candle sizes into a set number of "bins," and individual candle sizes are rounded to the nearest representative value of these bins.
Percentile Threshold: A dynamic Outlier Pip Value is calculated based on the Outlier Percentile you set.
If Display Mode is "Strong Candles," this threshold represents the Nth percentile of the largest candle sizes (e.g., the 80th percentile if Outlier Percentile is 20%). Candles larger than this are marked as "Strong."
If Display Mode is "Weak Candles," this threshold represents the Nth percentile of the smallest candle sizes (e.g., the 20th percentile). Candles smaller than this are marked as "Weak."
Visual Markers: When a current candle meets the criteria (strong or weak based on your display mode), a configurable shape is plotted above (for strong) or below (for weak) the candle.
Resampling: The historical distribution and outlier threshold are recalculated every Resample Period (number of bars) to adapt to changing market conditions.
Key Features:
Dynamic Thresholds: Adapts to market volatility instead of using fixed pip values.
Customizable Candle Definition: Choose from four methods to define what "candle size" means to your strategy.
Flexible Display Modes: Focus on either identifying exceptionally strong candles or unusually weak ones.
Adjustable Sensitivity: Fine-tune the rarity of signals with Outlier Percentile and Group Precision Size.
Visual Chart Markers: Clear, customizable shapes (arrow, circle, etc.) for easy identification.
Periodic Recalculation: Ensures the indicator remains relevant as market dynamics evolve.
Parameters:
Display Mode:
Strong Candles: Highlights candles larger than the upper percentile threshold.
Weak Candles: Highlights candles smaller than the lower percentile threshold.
Resample Period (Candles): How often (in bars) to recalculate the historical distribution and outlier threshold.
LookBack Period (Candles): The number of past candles to analyze for the historical distribution. (Note: Plots will only begin after this many bars have loaded on the chart).
Group Precision Size: Number of groups to divide the candle size range into for rounding historical sizes. Higher values mean finer precision (less rounding).
Outlier Percentile (%): The percentile used to define the threshold for strong/weak candles.
Candle Size Method: (High-Low, High-Close, Open-Close, Low-Open).
Visuals:
Strong Shape: Choose the icon style for strong candles.
Weak Shape: Choose the icon style for weak candles.
Shape Size: Adjust the size of the plotted icons.
How to Use:
Strong Candles:
May indicate increased momentum, potential breakout confirmations, or high conviction moves.
Consider using in trending markets or as a filter for entry signals.
Weak Candles:
May signal market indecision, low volatility, consolidation phases, or potential exhaustion of a prior move.
Can be useful for identifying range-bound conditions or periods to be cautious.
Experimentation: Adjust the LookBack Period, Outlier Percentile, and Group Precision Size to match your trading style and the characteristics of the asset you are trading. What constitutes "strong" or "weak" can vary significantly.
Confirmation Tool: Use in conjunction with other indicators (e.g., moving averages, RSI, volume) for more robust trading decisions.
Important Notes:
The indicator requires sufficient historical data (LookBack Period) to initialize. You may not see plots on the chart immediately if there aren't enough bars loaded.
Like all indicators, the SWCF is not a standalone trading system and should not be used as the sole basis for financial decisions.
Past performance is not indicative of future results. Always use appropriate risk management.
We hope you find the Strong/Weak Candle Finder a valuable addition to your trading toolkit!
1M Scalp Setup – 2ndHi/2ndLo Breakout1M Scalp Setup – 2ndHi/2ndLo Breakout
This script is designed for 1-minute chart scalpers seeking high-probability intraday breakout setups based on early session price action. The strategy revolves around identifying the first high and low of the day, and then detecting the second breach (2nd high or 2nd low) to anticipate breakout entries.
🔍 Core Logic:
EMA Filter : A configurable EMA (default 8-period) is plotted for trend context.
1st High/Low Detection : Captures the very first high and low of each trading day.
2nd High/Low Markers : Identifies the second time price breaks the initial high or low, acting as a potential signal zone.
Breakout Signals :
A Buy Signal is triggered when price closes above the 2nd high.
A Sell Signal is triggered when price closes below the 2nd low.
Each signal is only triggered once per day to reduce noise and avoid overtrading.
🖌️ Visual Markers:
1stHi and 1stLo : Early session levels (red and green).
2ndHi and 2ndLo : Key breakout reference points (purple and blue).
B and S Labels : Buy and Sell triggers marked in real-time once breakouts occur.
⚙️ Inputs:
EMA Length (default: 8)
Customizable Colors for Buy/Sell signals and key markers
This tool is best used in fast-moving markets or during high-volume sessions. Combine with volume or higher-timeframe confirmation for improved accuracy.
Enhanced BTC Order Block IndicatorThe script you provided is an "Enhanced BTC Order Block Indicator" written in Pine Script v5 for TradingView. It is designed to identify and visually mark Order Blocks (OBs) on a Bitcoin (BTC) price chart, specifically tailored for a high-frequency scalping strategy on the 5-minute (M5) timeframe. Order Blocks are key price zones where institutional traders are likely to have placed significant buy or sell orders, making them high-probability areas for reversals or continuations. The script incorporates customizable filters, visual indicators, and alert functionality to assist traders in executing the strategy outlined earlier.
Key Features and Functionality
Purpose:
The indicator detects bullish Order Blocks (buy zones) and bearish Order Blocks (sell zones) based on a predefined percentage price movement (default 0.5–1%) and volume confirmation.
It marks these zones on the chart with colored boxes and provides alerts when an OB is detected.
User-Configurable Inputs:
Price Move Range: minMovePercent (default 0.5%) and maxMovePercent (default 1.0%) define the acceptable price movement range for identifying OBs.
Volume Threshold: volumeThreshold (default 1.5x average volume) ensures OB detection is backed by significant trading activity.
Lookback Period: lookback (default 10 candles) determines how many previous candles are analyzed to find the last candle before a strong move.
Wick/Body Option: useWick (default false) allows users to choose whether the OB zone is based on the candle’s wick or body.
Colors: bullishOBColor (default green) and bearishOBColor (default red) set the visual appearance of OB boxes.
Box Extension: boxExtension (default 100 bars) controls how far the OB box extends to the right on the chart.
RSI Filter: useRSI (default true) enables an RSI filter, with rsiLength (default 14), rsiBullishThreshold (default 50), and rsiBearishThreshold (default 50) for trend confirmation.
M15 Support/Resistance: useSR (default true) and srLookback (default 20) integrate M15 timeframe swing highs and lows for additional OB validation.
Core Logic:
Bullish OB Detection: Identifies a strong upward move (0.5–1%) with volume above the threshold. It then looks back to the last bearish candle before the move to define the OB zone. RSI > 50 and proximity to M15 support/resistance (optional) enhance confirmation.
Bearish OB Detection: Identifies a strong downward move (0.5–1%) with volume confirmation, tracing back to the last bullish candle. RSI < 50 and M15 resistance proximity (optional) add validation.
The OB zone is drawn as a rectangle from the high to low of the identified candle, extended rightward.
Visual Output:
Boxes: Uses box.new to draw OB zones, with left set to the previous bar (bar_index ), right extended by boxExtension, top and bottom defined by the OB’s high and low prices. Each box includes a text label ("Bullish OB" or "Bearish OB") and is semi-transparent.
Colors distinguish between bullish (green) and bearish (red) OBs.
Alerts:
Global alertcondition definitions trigger notifications for "Bullish OB Detected" and "Bearish OB Detected" when the respective conditions are met, displaying the current close price in the message.
Helper Functions:
f_priceChangePercent: Calculates the percentage price change between open and close prices.
isNearSR: Checks if the price is within 0.2% of M15 swing highs or lows for support/resistance confluence.
How It Works
The script runs on each candle, evaluating the current price action against the user-defined criteria.
When a bullish or bearish move is detected (meeting the percentage, volume, RSI, and S/R conditions), it identifies the preceding candle to define the OB zone.
The OB is then visualized on the chart, and an alert is triggered if configured in TradingView.
Use Case
This indicator is tailored for your BTC scalping strategy, where trades last 1–15 minutes targeting 0.3–0.5% gains. It helps traders spot institutional order zones on the M5 chart, confirmed by secondary M1 analysis, and integrates with your use of EMAs, RSI, and volume. The customizable settings allow adaptation to varying market conditions or personal preferences.
Limitations
The M15 S/R detection is simplified (using swing highs/lows), which may not always align perfectly with manual support/resistance levels.
Alerts depend on TradingView’s alert system and require manual setup.
Performance may vary with high volatility or low-volume periods, necessitating parameter adjustments.
Order Block Matrix [Alpha Extract]The Order Block Matrix indicator identifies and visualizes key supply and demand zones on your chart, helping traders recognize potential reversal points and high-probability trading setups.
This tool helps traders:
Visualize key order blocks with volume profile histograms showing liquidity distribution.
Identify high-volume price levels where institutional activity occurs.
rank historical order blocks and analyze their strength based on volume.
Receive alerts for potential trading opportunities based on price-block interactions.
🔶 CALCULATION
The indicator processes chart data to identify and analyze order blocks:
Order Block Detection
Inputs:
Price action patterns (consolidation areas followed by breakouts).
Volume data from current and lower timeframes.
User-defined lookback periods and thresholds.
Detection Logic:
Identifies consolidation areas using a dynamic range comparison.
Confirms breakout patterns with percentage threshold validation.
Maps volume distribution across price levels within each order block.
🔶Volume Analysis
Volume Profiling:
Divides each order block into configurable grid segments.
Maps volume distribution across price segments within blocks.
Highlights zones with highest volume concentration.
Strength Assessment:
Calculates total block volume and relative strength metrics.
Compares block volume to historical averages.
Determines probability of reversal based on volume patterns.
isConsolidation(len) =>
high_range = ta.highest(high, len) - ta.lowest(high, len)
low_range = ta.highest(low, len) - ta.lowest(low, len)
avg_range = (high_range + low_range) / 2
current_range = high - low
current_range <= avg_range * (1 + obThreshold)
🔶 DETAILS
Visual Features
Volume Profile Histograms:
Color-coded bars showing volume concentration within order blocks.
Gradient coloring based on relative volume (high volume = brighter colors).
Bull blocks (green/teal) and bear blocks (red) with varying opacity.
Block Visualization:
Dynamic box sizing based on volume concentration.
Optional block borders and background fills.
Volume labels showing total block volume.
Screener Table:
Real-time analysis of order block metrics.
Shows block direction, proximity, retest count, and volume metrics.
Color-coded for quick reference.
Interpretation
High Volume Areas: Zones with institutional interest and potential reversal points.
Block Direction: Bullish blocks typically support price, bearish blocks typically resist price.
Retests: Multiple tests of an order block may strengthen or weaken its influence.
Block Age: Newer blocks often have stronger influence than older ones.
Volume Concentration: Brightest segments within blocks represent the highest volume areas.
🔶 EXAMPLES
The indicator helps identify key trading opportunities:
Bullish Order Blocks
Support Zones: Identify strong support levels where price is likely to bounce.
Breakout Confirmation: Validate breakouts with volume analysis to avoid false moves.
Retest Strategies: Enter trades when price retests a bullish order block with high volume.
Bearish Order Blocks
Resistance Zones: Identify strong resistance levels where price is likely to reverse.
Distribution Areas: Detect zones where smart money is distributing to retail.
Short Opportunities: Find optimal short entry points at high-volume bearish blocks.
Combined Strategies
Order Block Stacking: Multiple aligned blocks create stronger support/resistance zones.
Block Mitigation: When price breaks through a block, it often indicates a strong trend continuation.
Volume Profile Applications: Higher volume segments provide more precise entry and exit points.
🔶 SETTINGS
Customization Options
Order Block Detection:
Consolidation Lookback: Adjust the period for consolidation detection.
Breakout Threshold: Set minimum percentage for breakout confirmation.
Historical Lookback Limit: Control how far back to scan for historical order blocks.
Maximum Order Blocks: Limit the number of visible blocks on the chart.
Visual Style:
Grid Segments: Adjust the number of volume profile segments.
Extend Blocks to Right: Enable/disable extending blocks to current price.
Show Block Borders: Toggle border visibility.
Border Width: Adjust thickness of block borders.
Show Volume Text: Enable/disable volume labels.
Volume Text Position: Control placement of volume labels.
Color Settings:
Bullish High/Low Volume Colors: Customize appearance of bullish blocks.
Bearish High/Low Volume Colors: Customize appearance of bearish blocks.
Border Color: Set color for block outlines.
Background Fill: Adjust color and transparency of block backgrounds.
Volume Text Color: Customize label appearance.
Screener Table:
Show Screener Table: Toggle table visibility.
Table Position: Select positioning on the chart.
Table Size: Adjust display size.
The Order Block Matrix indicator provides traders with powerful insights into market structure, helping to identify key levels where smart money is active and where high-probability trading opportunities may exist.