Probability Pivot PointsProbability Pivot Points integrates a customizable Pivot Points indicator with conditional probabilities calculated from historical occurrences.
Features
Six different discretionarily Pivot Point Bias strategies utilizing Midpoint Pivot Points in bullish and bearish variants: Standard, Range, Continuation, Counter Trend, Expansion, and Extension.
Next Period's Pivot Points given the current period's OHLC data. Includes settings to use theoretical OHLC values to see what the next period's Pivot Points could look like.
Supports Traditional, Floor, Fibonacci, and Average True Range Pivot Point calculations.
Includes settings to customize the Fibonacci ratios and Average True Range calculations.
Automatically maximize or manually set the number of historical Pivot Points to draw.
Probability visualizations for the Pivot Points based on historical occurrences for the current and upcoming trading periods. The Probability Weighted Pivot (PWP) Point uses the probabilities calculated as weights against every displayed Pivot Point to show a mean of the data.
Load seasonal or non-seasonal historical data to calculate the odds of a High, Low, or Close occurring between any two Pivot Points.
Settings to manually set the weekly, monthly, and quarterly seasonal data loaded into the Pivot Probabilities feature. Automatic detection and loading of the current seasonal period's data is the default behavior. Includes a table that displays the data that's loaded.
Get probabilities for the currently selected Pivot Point Bias strategy.
Check the odds of High, Low, or Close occurrences at the strategy's marked Entry, Exit, or Stop Loss Pivot Points.
Seasonal Filters let you select specific years to sample probabilities from.
Customize pivot colors, width, label size, label color, Bias Entry and Exit Zone colors, Pivot Probability colors, and pick between the Point Five and M Legacy Midpoint label styles.
Auto Timeframe changes the Pivot Points higher timeframe based on the chart timeframe in use. Includes settings to customize what chart timeframes will display specific Pivot Point higher timeframes.
Q: Is this an update to your older Pivot Probabilities indicator?
Pivot Probabilities was designed to require a separately applied Pivot Points indicator to be interpreted and used properly. Probability Pivot Points is designed with an included set of Pivot Pivots that can interact with the probability calculations, which helps make improvements to new calculations and visualizations that Pivot Probabilities was never originally designed to do. Features from Pivot Probabilities are being completely redesigned, reimplemented, and expanded upon as a component in this larger Probability Pivot Points indicator. Anyone with access to the old Pivot Probabilities will also get access to Probability Pivot Points and are considered part of the same package.
Pivot points and levels
Targets For Many Indicators [LuxAlgo]The Targets For Many Indicators is a useful utility tool able to display targets for many built-in indicators as well as external indicators. Targets can be set for specific user-set conditions between two series of values, with the script being able to display targets for two different user-set conditions.
Alerts are included for the occurrence of a new target as well as for reached targets.
🔶 USAGE
Targets can help users determine the price limit where the price might start deviating from an indication given by one or multiple indicators. In the context of trading, targets can help secure profits/reduce losses of a trade, as such this tool can be useful to evaluate/determine user take profits/stop losses.
Due to these essentially being horizontal levels, they can also serve as potential support/resistances, with breakouts potentially confirming new trends.
In the above example, we set targets 3 ATR's away from the closing price when the price crosses over the script built-in SuperTrend indicator using ATR period 10 and factor 3. Using "Long Position Target" allows setting a target above the price, disabling this setting will place targets below the price.
Users might be interested in obtaining new targets once one is reached, this can be done by enabling "New Target When Reached" in the target logic setting section, resulting in more frequent targets.
Lastly, users can restrict new target creation until current ones are reached. This can result in fewer and longer-term targets, with a higher reach rate.
🔹 Dashboard
A dashboard is displayed on the top right of the chart, displaying the amount, reach rate of targets 1/2, and total amount.
This dashboard can be useful to evaluate the selected target distances relative to the selected conditions, with a higher reach rate suggesting the distance of the targets from the price allows them to be reached.
🔶 DETAILS
🔹 Indicators
Besides 'External' sources, each source can be set at 1 of the following Build-In Indicators :
ACCDIST : Accumulation/distribution index
ATR : Average True Range
BB (Middle, Upper or Lower): Bollinger Bands
CCI : Commodity Channel Index
CMO : Chande Momentum Oscillator
COG : Center Of Gravity
DC (High, Mid or Low): Donchian Channels
DEMA : Double Exponential Moving Average
EMA : Exponentially weighted Moving Average
HMA : Hull Moving Average
III : Intraday Intensity Index
KC (Middle, Upper or Lower): Keltner Channels
LINREG : Linear regression curve
MACD (macd, signal or histogram): Moving Average Convergence/Divergence
MEDIAN : median of the series
MFI : Money Flow Index
MODE : the mode of the series
MOM : Momentum
NVI : Negative Volume Index
OBV : On Balance Volume
PVI : Positive Volume Index
PVT : Price-Volume Trend
RMA : Relative Moving Average
ROC : Rate Of Change
RSI : Relative Strength Index
SMA : Simple Moving Average
STOCH : Stochastic
Supertrend
TEMA : Triple EMA or Triple Exponential Moving Average
VWAP : Volume Weighted Average Price
VWMA : Volume-Weighted Moving Average
WAD : Williams Accumulation/Distribution
WMA : Weighted Moving Average
WVAD : Williams Variable Accumulation/Distribution
%R : Williams %R
Each indicator is provided with a link to the Reference Manual or to the Build-In Indicators page.
The latter contains more information about each indicator.
Note that when "Show Source Values" is enabled, only values that can be logically found around the price will be shown. For example, Supertrend , SMA , EMA , BB , ... will be made visible. Values like RSI , OBV , %R , ... will not be visible since they will deviate too much from the price.
🔹 Interaction with settings
This publication contains input fields, where you can enter the necessary inputs per indicator.
Some indicators need only 1 value, others 2 or 3.
When several input values are needed, you need to separate them with a comma.
You can use 0 to 4 spaces between without a problem. Even an extra comma doesn't give issues.
The red colored help text will guide you further along (Only when Target is enabled)
Some examples that work without issues:
Some examples that work with issues:
As mentioned, the errors won't be visible when the concerning target is disabled
🔶 SETTINGS
Show Target Labels: Display target labels on the chart.
Candle Coloring: Apply candle coloring based on the most recent active target.
Target 1 and Target 2 use the same settings below:
Enable Target: Display the targets on the chart.
Long Position Target: Display targets above the price a user selected condition is true. If disabled will display the targets below the price.
New Target Condition: Conditional operator used to compare "Source A" and "Source B", options include CrossOver, CrossUnder, Cross, and Equal.
🔹 Sources
Source A: Source A input series, can be an indicator or external source.
External: External source if 'External" is selected in "Source A".
Settings: Settings of the selected indicator in "Source A", entered settings of indicators requiring multiple ones must be comma separated, for example, "10, 3".
Source B: Source B input series, can be an indicator or external source.
External: External source if 'External" is selected in "Source B".
Settings: Settings of the selected indicator in "Source B", entered settings of indicators requiring multiple ones must be comma separated, for example, "10, 3".
Source B Value: User-defined numerical value if "value" is selected in "Source B".
Show Source Values: Display "Source A" and "Source B" on the chart.
🔹 Logic
Wait Until Reached: When enabled will not create a new target until an existing one is reached.
New Target When Reached: Will create a new target when an existing one is reached.
Evaluate Wicks: Will use high/low prices to determine if a target is reached. Unselecting this setting will use the closing price.
Target Distance From Price: Controls the distance of a target from the price. Can be determined in currencies/points, percentages, ATR multiples, ticks, or using multiple of external values.
External Distance Value: External distance value when "External Value" is selected in "Target Distance From Price".
Anchored Chandelier ExitThe Chandelier Exit is a popular tool among traders used to help determine appropriate stop loss levels. Originally developed by Chuck LeBeau, the Chandelier Exit takes into account market volatility and adjusts the stop loss level dynamically. This indicator builds upon the original Chandelier Exit by allowing the trader to select an anchor date or starting point for the indicator to begin calculating from.
The Original Chandelier Exit
Before we get into the details of the Anchored Chandelier Exit, let's review the original. Essentially a dynamic ATR stop loss, the Chandelier Exit provides a trailing stop that moves higher or lower based on volatility.
The Chandelier Exit is calculated based on the following criteria:
🔶ATR - The ATR is used to measure the volatility of a security over a lookback period. The ATR length determines the number of bars to consider when calculating the average true range. The shorter the length, the more responsive the level will be.
🔶ATR Multiplier - The default multiplier is set to 3. This is used to determine the sensitivity of the Chandelier Exit. The higher the ATR multiplier the wider the stop levels will be. A lower multiplier will tighten stop levels.
🔶Highest / Lowest Points - Determine the highest high (bullish trade) or lowest low (bearish trade) during the lookback period. The default length is 22 bars.
Calculating the Chandelier Exit
Bullish trades - Highest High - ATR * Multiplier
Bearish trades - Lowest Low + ATR * Multiplier
The Anchored Chandelier Exit
The Anchored Chandelier Exit is a new twist on the original, allowing traders to adapt their stop loss levels based on specific market events, levels or bars.
Similar to the original, traders can select the ATR length and multiplier, however, the high or low from which the ATR is subtracted or added is first determined at the anchor bar.
As new bars form, the indicator checks for the previous high/low to be breached. If the high or low is exceeded, the highest/lowest point is updated and the Chandelier Exit is recalculated.
When the indicator is first loaded to your chart, it will ask you to select an anchor bar and choose the bias for the trade.
A bullish (long) bias trade will plot the Chandelier Exit below price action, while a bearish (short) bias trade will plot the Chandelier Exit above price action.
Indicator Features
🔶Custom Start Date
🔶Bullish or Bearish Bias
🔶Selectable ATR Length & Multiplier
🔶Custom Colors
🔶Exit With Close or Wicks
🔶Exit Alerts
With careful parameter optimization, the Anchored Chandelier Exit can be a useful tool for helping traders manage risk based on market volatility.
Apeiron Jail RangeThe Apeiron Jail Range is an experimental use of proprietary standard deviation calculations.
It calculates price standard deviations based of previous data & a MA, which it applies and anchors to an automatically (can also be done manually) selected TF open. Finally, the standard deviation bands are plotted and create a "Jail" range with up to 12 levels (6 above and 6 below) that can potentially work as support and resistance during the TF period anchor time.
The indicator is meant to help traders identify potential support and resistance levels which can then be used in confluence with other indicators and strategies. It can also be potentially used for testing automation strategies such as grid trading.
The anchor time and the lenght of the MA used for the calculation can be manually or automatically selected.
The example shown uses the same indicator twice to show all levels from 0.5 - 1 - 1.5 ... 5.5 - 6
Re-Anchoring VWAP TripleThe Triple Re-Anchoring VWAP (Volume Weighted Average Price) indicator is a tool designed for traders seeking a deeper understanding of market trends and key price levels. This indicator dynamically recalibrates VWAP calculations based on significant market pivot points, offering a unique perspective on potential support and resistance levels.
Key Features:
Dynamic Re-anchoring at All-Time Highs (ATH) : The first layer of this indicator continuously tracks the all-time high and recalibrates the VWAP from each new ATH. This VWAP line, typically acting as a dynamic resistance level, offers insights into the overbought conditions and potential reversal zones.
Adaptive Re-anchoring to Post-ATH Lows : The second component of the indicator shifts focus to the market's reaction post-ATH. It identifies the lowest low following an ATH and re-anchors the VWAP calculation from this point. This VWAP line often serves as a dynamic support level, highlighting key areas where the market finds value after a significant high.
Re-anchoring to Highs After Post-ATH Lows : The third element of this tool takes adaptation one step further by tracking the highest high achieved after the lowest low post-ATH. This VWAP line can act as either support or resistance, providing a nuanced view of the market's valuation in the recovery phase or during consolidation after a significant low.
Applications:
Trend Confirmation and Reversal Signals : By comparing the price action relative to the dynamically anchored VWAP lines, traders can gauge the strength of the trend and anticipate potential reversals.
Entry and Exit Points : By highlighting significant support and resistance areas, it assists in determining optimal entry and exit points, particularly in swing trading and mean reversion strategies.
Enhanced Market Insight : The dynamic nature of the indicator, with its shifting anchor points, offers a refined understanding of market sentiment and valuation changes over time.
Why Triple Re-Anchoring VWAP?
Traditional VWAP tools offer a linear view, often missing out on the intricacies of market fluctuations. The Triple Re-Anchoring VWAP addresses this by providing a multi-faceted view of the market, adapting not just to daily price changes but pivoting around significant market events. Whether you're a day trader, swing trader, or long-term investor, this indicator adds depth to your market analysis, enabling more informed trading decisions.
Examples:
Autofibonacci strategy [BrainyTrade]Fibonacci is a method of analyzing financial markets based on the use of Fibonacci numbers. This method involves using support and resistance levels based on the golden ratio and the Fibonacci sequence to predict future price levels.
A Fibonacci chart for most traders means stretching point A to the very minimum and point B to the very maximum. Often no one can explain why he does this.
Robert Fisher's book, New Fibonacci Trading Techniques, is one of those books that will help you understand the meaning of Fibonacci trading.
Each trend movement is subsequently associated with a correction. Based on my 6 years of trading and observing price movements in the market, I can conclude:
"The probability of correction in trends is more than 70%"
That is, on our side is the percentage of potential development of any movement in a trend.
Now we need to solve several questions:
1) How to determine a trend?
2) How to determine the correction?
3) How to determine the turning point of the correction and entry into the trend?
The indicator determines the correction based on the attenuation of the movement. When the market stops showing strong candles, he finds a second point to plot Fibonacci.
The first point is the result of the deepest correction point after the construction of the previous Fibonacci. That is why most often it will not be built from a visible level.
The indicator is based on a “correction standard”, which is more likely to work after a trend movement. In our case, these are levels 0.618-0.5. to determine potential price reversal zones. If the price rises or declines and reaches this level, you can consider it as a support zone. In this regard, when plotting with the Fibonaccia indicator, we can expect these values from the market.
The turning point of the correction occurs when all conditions are met:
1) Descent to zones 0.618-0.5 level,
2) Exit above level 0.
The tool determines the current trend depending on the previous worked fibonacci.
Every movement in the market is analyzed into impulses and corrections. In this concept, impulses represent directional price movements within the main trend, while corrective waves represent temporary deviations from the main direction of the trend.
The indicator reads all historical data and finds the current Fibonacci structure whose impulse was last found.
Important:
Sometimes fibonacci can be very small in size and that's okay. The indicator needs to read absolutely all movements and build levels there. The only question is: is it necessary to trade such small structures? I don't recommend it. Also, the levels 0.382 and 0.236 have been removed from the indicator, since they are not involved in decision-making and calculations.
Settings:
You can change the color of all elements that the indicator displays on the chart.
Application:
The indicator decides to enter a position strictly below the 0.5 extension level based on the candlestick pattern. You can place a grid of orders between 0.618 and 0.86, since they are the strongest support, and the gold levels 0.786-0.86 are a critical correction.
Closing of positions occurs after going beyond -0.618 and when a new impulse with correction is found. In this case, the Fibonacci is considered “spent” and is removed from the chart.
Gold levels (-0.18, -0.27) are often resistance, when approaching them it is better to be careful with positions
When we go beyond the 1st level, that is, the beginning of the impulse, we understand that the cyclicality of the market is being refracted, changes are occurring in the current price dynamics and we are considering opportunities for opening new positions. It is behind this level that the stop loss for previously acquired positions is located.
Examples:
The long Fibonacci structure implies that the trend is up and the image below is an example of a buy signal.
After some time and going beyond -0.618, the indicator found a new fibonacci and exited the old position, closing it with a market order
The image below shows a Fibonacci short with an entry point to sell the asset. You can notice that it is built in the opposite direction from the long one.
Good luck trader!
One Setup for Life ICTGuided by ICT tutoring, I create this versatile 'One Trading Set Up For Life' indicator
This indicator shows a different way of viewing the "Highs and Lows" of Previous Sessions, drawing from the current day until 09:30 AM, the time at which the Highs and Lows of the previous day's sessions can be taken into consideration for a Reversal or for a Take profit.
Levels tested after 9.30am will be blocked so you have a good and clear view of the levels affected
Timing Session =
London: 02:00 to 05:00
New York: 9.30am to 12.30pm
Lunch: 12.30pm to 1pm
PM Session: 1.30pm to 4pm
The user has the possibility to:
- Choose to view sessions or not
- Choose to show levels from previous sessions
- Choose to show today's session levels
- Choose between 08:30 and 09:30 the starting time for the Liquidity taken
- Choose to view High and Low only from the previous day
- See both the name of the Sessions and the price of the levels
The indicator must be used as ICT shows in its concepts, the indicator takes into consideration both previous sessions and today's sessions, and the session levels can be used both for a reversal and for a possible Take Profit like the example here under
Reversal =
Possible Take Profit =
If something is not clear, comment below and I will reply as soon as possible.
IMGBasic - HTF Structure / Order Blocks / Breakers - V1.0IMG Indicators Overview
The IMG Indicators are crafted as comprehensive educational tools for price action traders. They incorporate a variety of concepts including:
1. Multiple Timeframe Analysis
2. Order Blocks (OB)
3. Breakers (BRKR)
4. Fair Value Gaps (FVGs)
5. Overlaps of OB and FVG
6. Overlaps of BRKR and FVG
7. Analysis of Internal and External Liquidity
8. Strategies for Identifying Potential Entries, Stop-loss, and Target Levels
9. Risk Management and Position Sizing
These Price Action concepts can be applied to any market (Stocks / Options / Forex / Futures / Crypto ) and any timeframe.
Introduction to the IMG Basic Indicator
The IMG Basic Indicator serves as the foundational level within the IMG suite of indicators. Its core function is to acquaint traders with elementary price action concepts such as:
1. Higher Timeframe Market Structures through Multiple Timeframe Analysis
2. Higher Timeframe Order Blocks
3. Higher Timeframe Breakers
4. Breaks in Higher Timeframe Market Structure
Higher Timeframe Market Structure:
Market Structure can be defined using several techniques. The IMG indicators employ the Close through High/Low technique, which necessitates a candle close through a structural level to validate a structural break and designate a new range.
Example: H12 Market Structure visualisation on a H12 Chart with annotations:
By selecting a particular Market Structure timeframe in the settings, the indicator immediately illustrates both current and historical market structures for the chosen timeframe across all subordinate timeframes, subject to the limitations of your Tradingview subscription.
Example: H12 Market Structure visualisation on a H1 Chart with annotations:
Higher Timeframe Order Blocks (OB)
An Order Block represents the last candle of the opposite direction preceding a Market Structure Break. For instance, a bullish Order Block is identified as the final bearish candle leading to a bullish market structure break, and vice versa for bearish Order Blocks.
Example: H12 OB visualisation on a H12 Chart with annotations:
When activated, the indicator will highlight the Higher Timeframe Order Blocks responsible for a Market Structure Break on all subordinate timeframes relative to the chosen Market Structure Timeframe.
Note: if multiple OBs exist, the indicator will display the OB closest to the new range extreme
Example: H12 OB visualisation on a H1 Chart with annotations:
Higher Timeframe Breaker Blocks (BRKR)
A Breaker Block is identified as the most recent Order Block that has been breached by price, followed by an opposite Market Structure Break. For example, a bullish Breaker Block is the last bearish Order Block that price has passed through, followed by a bullish structural break, and the inverse is true for bearish Breakers.
Example: H12 Breaker visualisation on a H12 Chart with annotations:
Once enabled, the system will display Higher Timeframe Breaker Blocks after an opposite Market Structure Break is confirmed on all subordinate timeframes.
Example: H12 Breaker visualisation on a H1 Chart with annotations:
ALERTS: Higher Timeframe Market Structure Breaks (HTF MSBs)
The system provides notifications of confirmed Market Structure Breaks based on the selected Higher Timeframe Market Structure Timeframe. For instance, selecting a weekly structure will trigger an alert when price closes through a weekly structural level, and the same logic applies to other timeframes like D, H12, H4, H1 etc.
To enable alerts, right-click on the indicator and select “Add Alert on IMG ...”. You may customise the alert name as desired and then click 'Create' to finalise the alert setup.
General Note:
There is no system, indicator, algorithm, or strategy that can provide absolute certainty in predicting market movements. Use trading indicators as a tool to assist with trading decisions and manage your risk wisely.
For a complete user manual / knowledge base on the IMG Indicators, click on the User Manual link in the signature below
Stay safe and Happy Trading!
Displacement Order Blocks ~ DOB [Liquidity_Pro]Displacement Order Blocks (DOB)
This indicator shows order blocks with displacement (FVG required) and leans heavily on ICT’s generous and insightful teachings to define midlines for FVG, IFVG, and order blocks. The market structure definitions follow TradingHub’s (TH) rules filtering out inside bars.
It offers alerts for price in order block, liquidity sweep, break of structure (BOS), change of character (CHoCH), and inducement (IDM).
The TH model was chosen because it's programmatic allowing clear structure definitions that allow us to mark inducements (S/O to @albatherium for publishing the first TH market structure indicator).
TH’s Single Candle Order Block (SCOB) rules have also been helpful in refining order block definition, for example in the Transfer case. ICT fans will see when back testing this, that it moves the focus closer to the FVG.
In developing this indicator, we've tried to offer great aesthetic flexibility, to keep the chart uncluttered and to avoid exceeding Trading View’s limitations on boxes and lines. It's also configured to work reasonably well on both light and dark background charts:
We hope this indicator can serve as a teaching tool for ICT’s price action insights and SMC market structure concepts. For this, we've included optional labels for various order block types:
I = inside bar. The bars that follow the order block have been ignored – you will see the number of ignored bars shown after a hyphen. The idea is that inside bars fall in the shadow of a more important candle and can’t be relied on for defining a trade.
S = standard case. The order block candle takes liquidity from the previous candle and is followed immediately after by an FVG on the next candle. This differs technically from the ICT “last down-close/last up-close” order block concept. In practice, this choice has very little impact on ICT trading, because the ICT trader is entering on the FVG anyway.
T = transfer case. This is an order block that has been transferred from the candle that takes liquidity to the candle just prior to the FVG. When you back test this, you will see it is a high probability choice.
TZ = tweezer. This is an option you can turn off that fills a hole in TH teachings. It bypasses the requirement for an order block to take liquidity from the previous candle in the case of equal h/ls. The result is that you will find 2 candle order blocks with equal highs and lows (also known as tweezer tops/bottoms) show on your chart. You will note that every tweezer is a wick on a higher timeframe.
W = wick. this is a big wick candle that we call an order block without requiring an FVG. The presumption is that the displacement is contained within the wick itself on a lower timeframe.
* Asterisk denotes an extreme order block.
Finally, we trade with this indicator (using it together with our Daye Quarterly Theory ~ DQT free indicator, taking trades when price reaches an extreme FVG or order block during a Q2 manipulation).
We will continue developing it along with other indicators we have not yet published. So please boost if you like this and follow us for updates. Also please let us know what new features you would like to see.
Daye Quarterly Theory ~ DQT [Liquidity_Pro]Thanks
This indicator puts the time-based research of trader Daye on your chart. Daye studied the ICT killzones and macro times and presented his findings, as “Quarterly Theory” on YouTube. Thank you Daye for sharing!
This indicator is not the first, so S/O to @toodegrees, @a1tmaniac and @joshuuu for their own excellent Quarterly Theory indicators. Last but not least, huge thanks go to ICT for his trading innovation and generous free price action education and to @twingall for his insight, attention to detail and great teamwork coding this indicator.
Daye’s Quarterly Theory
First, the fundamental concept is that all units of time can be divided by four into quarters -- just as we look at the year’s corporate reporting cycle of Q1, Q2, Q3, and Q4.
Dividing the day by four, into six hour quarters and again into 90 minute quarters and again into 22.5 minute ‘Micro’ quarters we reach the smallest unit shown by this indicator. Apply it to your NQ1! or ES1! charts and you may see remarkable confluence with the ICT macro times!
Why would we want to do this? It helps us understand, visualize and predict ICT’s PO3 concept:
• A - Accumulation (required for a cycle to occur)
• M - Manipulation
• D - Distribution
• X - Reversal/Continuation
The bottom line - we want to sell after a manipulation (M) up, or buy after a manipulation down and Quarterly Theory plots times on your chart where this may occur. Every asset is different, so back-test and research it.
Note, this indicator always shows Q1 as the accumulation quarter (by color), but the order is not fixed and instead of AMDX may appear as XAMD, where Q1 is the Reversal/Continuation quarter. We may eventually offer an update to this indicator which would automatically transpose the quarter colors for you.
The Quarters
Yearly:
• Q1 - Jan, Feb, Mar
• Q2 - Apr, May, Jun
• Q3 - Jul, Aug, Sep
• Q4 - Oct, Nov, Dec
Monthly (starts with the first month’s Monday regardless of the date):
• Q1 - Week 1, first Monday of the month
• Q2 - Week 2, second Monday of the month
• Q3 - Week 3, third Monday of the month
• Q4 - Week 4, fourth Monday of the month
Weekly (Daye ignores Friday and Sunday’s price action):
• Q1 - Mon
• Q2 - Tue
• Q3 - Wed
• Q4 - Thu
Daily (times are all EST / New York):
• Q1 - 18:00 - 00:00 Asia
• Q2 - 00:00 - 06:00 London
• Q3 - 06:00 - 12:00 NY AM
• Q4 - 12:00 - 18:00 NY PM
90 Minute:
• Q1 - 18:00 - 19:30
• Q2 - 19:30 - 21:00
• Q3 - 21:00 - 22:30
• Q4 - 22:30 - 00:00
Micro (22.5 minute quarters, DQT only displays Micros on 7 minute TF or lower)
• Q1 - 18:00 - 18:22:30
• Q2 - 18:22:30 - 18:45
• Q3 - 18:45 - 19:07:30
• Q4 - 19:07:30 - 19:30
About the DQT Indicator
This indicator plots the quarterly time boxes in a panel which can be placed above or below your chart. It allows you to add labels with the opening time and dates and also place time of day markers which can be useful for anyone who wants to mark lunch, and of the trading day or perhaps a favorite ICT macro time. It also works on GOLD (CAPITALCOM), DXY (TVC), currencies and stocks in Regular Trading Hour (RTH) mode.
Note the way that the indicator displays quarters is affected by the time frame you are viewing and as a result you may notice imperfections. Also, the indicator is not tuned to work with every broker, so for example with DXY, you will see the TVC feed is displayed nicely but other feeds are not.
Settings
The DQT indicator offers a great deal of flexibility to customize the display of quarters aesthetically. But it’s designed to work out-of-the-box on both light and dark background charts. It's set up to only show 90 minute and micro quarters initially, but in the settings, you can turn on the daily, weekly, monthly, and yearly quarters. Remember you will only see the Micros on the 7 minute TF or lower.
Lastly, the DQT indicator works well with our DOB indicator allowing you to visualize the confluence of high timeframe PDAs or POIs with manipulation quarters.
If you find our indicators useful, please boost, comment and share -- it's very motivational for us to develop them further and publish new ones!
WHALE SIGNAL 4H
WHALE SIGNAL 4H BASED ON VOLUME CHANGE AND MOVING AVERAGE
This script aims to highlight potential whale signals on the 4-hour timeframe by analyzing volume changes, and it provides options for customization through input parameters. Whale signals are then displayed on the chart with different colors for the last hit and the previous hits. The Detector parameter adds flexibility to consider neighboring bars in the detection process, Let's break down the key components:
1/The script defines input parameters that users can customize:
-VCH (Volume Change on 4H candle) with a default value of 3, 3 times the MA Value.
-Length_240 (Moving Average length for the last 21 bars on the 4-hour timeframe).
-Detector (a boolean parameter to enable or disable whale detection in the previous or next bar).
2/Logic Section:
The script defines a function bar(hit) to convert the bar index based on the timeframe.
It calculates the Volume Change (whale signal) by comparing the current volume with a threshold (VCH * vma).
The Detector parameter allows for flexibility in detecting whale signals in neighboring bars.
3/ Plotting Section:
The script defines a function is_whale() to check if there is a whale signal and if it occurred in the last three bars.
It uses the plot function to display whale signals on the chart with different colors and offsets.
PivottrendHi all!
This script is based on the concept of "higher highs and higher lows" and "lower highs and lower lows". Bullish/bearish trend changes when a previous pivot (low in bullish trend and high in bearish trend) is broken (or has equal value). Some settings are customizable by the user:
Timeframe
- You can choose what timeframe the pivots are found on
Left length
- The left length used for the pivots found
Right length
- The right length used for the pivots found
Show labels
- Choose if you want to display buy and sell labels
Show pivots
- Choose if you want to display the pivots found
Show MSS
- Choose if you want to display a line when price breaks a previous pivot
The "look and feel" is inspired by the script "SuperTrend" by KivancOzbilgic ().
Best of trading luck!
VIX based LevelsSupport and resistance levels for the day based on the volatility index.
Major - The Major support line where the day low, high or close can occur at that level
Minor - The second level of the Support/Resistance line , where we can expect some rejections or breakouts/breakdowns
Mild - The mid level between the Major and minor levels. The market may consolidate around that area.
The script will automatically get the previous day close value of the current scrip and the India vix.
India vix is calculated based on the annual percentage and hence the previous day close value of the scrip is divided by 19.1 ( square root of 365 )
The PDC values can be manually overridden for backtesting purposes.
Please note, there will be some slippages involved on the trend lines.
Immediate rebalanceGuided by the new ICT tutoring, I create this versatile Immediate Rebalance indicator
This indicator shows a different way on how to view the "Spikes or Shadows", based on the direction of the price this indicator divides the "Spike or Shadows" into levels 0.5 - 0.75 - 0.25 Fibonacci, giving the possibility to view the levels both in normal or in pre-Macro times
The user has the possibility to:
- Choose to have Spike levels shown in MultiTimeframe
- Choose to show Sike levels only Bullish or only Bearish
- Choose to show Sike levels only in pre-Macro/Macro times
- Choose to view the maximum amount of levels with Max Show
The indicator must be used as ICT shows in its concepts, the indicator takes into consideration the last 2 candles already closed so on the candle that is forming it is possible to expect reactions on the levels it marks, below is an example of how to use it in MultiTimeframe
Below I show an example on how to set the indicator to see Immediate Rebalance in Macro times
Below is an example of when not to take the indicator into consideration
OHLC BreakThis indicator shows the Support and Resistance zones in a different way with Boxes that extend to the right and show the candle that has broken a minimum number of High or Low
The user has the possibility to:
- Choose to show High or Low levels not yet broken
- Shows candles that have broken a total of high or Low that you pre-set
- Choose to show a Box on candles that have broken the minimum of the preset levels
- Choose to show the total of broken levels with a Label on the candle
The indicator should be used as OHLC shows in its concepts, it can also be implemented to your Support and Resistance strategies, it can be implemented to Sessions strategies as in the Example
Below I show various examples on how to set the indicator for show High or Low levels not yet broken
If something is not clear, comment below and I will reply as soon as possible.
OmniSessions [WinWorld]The indicator shows the range of 4 most popular sessions (New York, Tokyo, London, Sydney). Sessions are used to identify zones with maximum volatility, as well as to find entry points. Session boundaries can act as POI no worse than OrderBlock.
In addition to sessions, you can use settings with KillZones - a range within a session that has potentially high volatility.
Silver Bullet is a more advanced range that allows you to identify the potential for maximum volatility. Excellent entry points can be obtained on the sweep of the range or from the nearest orderblock. We will explain it a bit deeply below.
Why use sessions?
During specific sessions big financial instutions from specific parts of the world enter the market, and this fact alone let us find the most "liquid" sessions in order to catch the best price movements. If talking about orderblocks, it is just a point of interest (more precisely, it is actually a zone of interest), which usually is a zone where the signficant amount of limit orders lies, and when price enter such zone, it immediately shows a strong reaction with either breakout from this zone or it bounces against this zone.
How is this indicator different from others?
There a lot of orderblocks indicator out here publicly available, but huge portion of them doesn't take into calculation important smart money concepts, such as valid pullbacks, for example. Valid pullbacks is a concept of price movement, which lets us indentify quite precisely price's impulses. Based on this impulses, we search our orderblocks. This approach allows to catch the most relevant and highly liquid orderblocks, which present traders with best trade entry opportunities, because usually, when entering with these orderblocks, you follow the moves of big money players, and that gives trader an edge in trading. None of open-source indicators uses such approach ( we've studied all of them ). Also an important notice: no public code is utilized in this indicato whatsoever. We've build our own flexible session mechanism, which allows you to quickly change between different type of sessions and also choose which session to use. And the big thing is our own alorithm to deal with asset, trading sessions of which are quite exotic (such as DAX and MEOX indexes, which close and open at different times of the day, which makes it hard for indicator to catch by default), so with indicator you can enjoy trading by sessions with no "bugs".
And the most user-desired and important thing: we've implemented feature to set winter and summer seasons for sessions, and this solves life-long struggle of traders to set correct trading session time, when forex exchanges switch trading hours, so now you don't need to info which our summer or winter is traded by, but just switch between seasons by one button in our indicator. And we can proudly state, no sesions indicator in the TradingView has such feature , so feel free to use it now on our indicator.
How orderblocks are built?
When London, New York or Asia ends, we find the closest orderblocks above and below closed session's high and low respectively. We do it by finding so called valid pullbacks ( was explained above ), then searching for valid fair value gap (FVG), that is inside of some valid pullbacks, and if we find it, then the orderblock is established and you will live orderblock and fair value gap (FVG) box ( both are colored in closed session's colour ).
How are orderblocks and FVG displayed on the chart?
Live orderblock and FVG are displayed as boxes on the chart, that are plolonged each bar if price didn't reach the orderblock.
Some important details:
When price touches FVG, FVG then is modified to reflect how much of untouched FVG is left. You will see it as decreasing of FVG box size in live mode. If price fully takes over FVG, FVG deletes;
When price touches orderblock, orderblock stops being prolonged and stays on the chart and is considered as worked-out.
These featues allow you to fully see live orderblocks and FVGs (if they exist) and already worked-out orderblocks to see how useful they were in the history.
Is that it?
No, because our indicator also shows sessions sweeps, which is historically a good indication that price grabbed the liquidity of previously closed sessions and now has enough "power" to do big movements, which is a good thing for traders, because it allows them to catch big movements and profit big.
Ok, we've covered the basics, now let's talk about what exactly this indicator can do.
OmnISessions is all-in-one sessions' indicator, that cointain:
Sessions (Automatic adaptation to your time zone)
Kill Zones
Silver Bullets
Session Sweeps
Order Blocks (Session, Killzone, SilverBullet)
Easily switch between summer and winter seasons
Now you don't need to look for opening and closing times of stock exchanges: the algorithm itself adjusts the session times according to your timezone. Just change the seasonality: winter/summer and the session times will be clearly displayed on your chart.
A quick view of the settings:
Show: Sessions, KillZones or SilverBullet
Season selection: Winter/Summer
Session Color Selection
Visuals:
Show/Hide session name - displays session name (ex.: London, New York, Silver Bullet and etc.) on the chart;
Show/Hide session box - displays session range as box with coloured background on the chart;
Show/Hide High/Low sessions - displays two horizontal lines for higher and lower borders of the session;
Show/Hide OrderBlocks - displays worked-out orderblocks in the history with live orderblocks and their fair value gaps (FVGs);
Show/Hide live Session High/Low - displays higher and lower border of the session as lines, that are prolonged each bar even after the session ends;
Show/Hide Session Sweeps - displays session sweeps of higher and lower border as dotted line;
Dividers (alternative session display):
Horizontal Divider
Backgrounder coloring
Customization: choose the display type: Sessions, Killzones or Silver Bullet.
The indicator displays orders that are above or below the previous session boundaries.
Below are Killzones with Order Blocks:
And this is Silver Bullet with Order Blocks:
Overall, you can clearly see that orderblocks, sessions sweeps and different type of sessions in one indicator allow you to fully utilize your time and mental energy, because finding orderblocks with valid pullbacks by hand is quite time-costly task, but finding them on different type of sessions, while not knowing trading hours of current trading session, is the true hell of work. OmniSessions indicator performs all of these calculations by itself, so you can focus on finding the best entries, while checking the situation on different sessions at the same time.
We hope that you will find great use of OmniSessions!
FIBO ZONESThe "Fibonacci ZONES" indicator combines Fibonacci ratio-derived zones(channels), together with a Fibonacci pattern of the Previous period high/low.
Auto Fibonacci tools are powerful ways designed to simplify your technical analysis by automatically drawing Fibonacci retracement and extension levels on your chart. This indicator is built to enhance your trading experience with clearer market moves and informative insights.
You can easily spot your waves and patterns when the percentages are moving with you.
Key Features:
Automated Fibonacci Levels: Plots Fibonacci retracement and extension levels based on recent price movements.
Multi-Timeframe Support: This indicator is your versatile companion, offering multi-timeframe functionality. You can seamlessly track Fibonacci levels across different resolutions, providing a comprehensive view of the market.
Two Types of Fibs: Retracement and Timeframe extension Fibonacci levels. Use retracements to identify potential reversal points and extensions to anticipate price targets, giving you a well-rounded perspective on market movements.
Benefits:
Save Time: No more manual Fibonacci drawing; It does this for you in real-time.
Enhanced Analysis: Gain a deeper understanding of potential support, resistance, and price targets.
User-Friendly: Suitable for traders of all levels, this indicator simplifies complex technical analysis.
Breakouts from a Fibonacci Channel are also indicated by labels, indicating a potential reversal.
Each range extremity/area can also be used as support/resistance.
MTF PIVOTSThis is a fairly basic (but hopefully useful) indicator that combines three time-frames of Camarilla pivots into one.
Default time-frames are:
Daily
Weekly
Monthly
Quarterly
Yearly
Time-frames can be modified as you wish, they are just set to these as I generally only trade higher intervals (just note that formatting labels will not change - but you can update these as needed).
The Camarilla pivots displayed are as follows:
- H3, L3, H4, L4
- CPR
- CPR Trails ( To find Virgin CPR)
- PREVIOUS HI,LOW , CLOSE
these are more useful for the majority of traders. The formula for levels.
By default all historical pivot levels are not displayed, as there can be some benefit to mapping these forward once the relevant period has ended. But these find too cluttered I'll look into having an option to display the Historical period as well.
What levels are included?
I have used traditional pivot calculation and included Daily, Weekly, Monthly, Quarterly, and Yearly pivots with high and low.
Custom Price Levels and AveragesThe "Custom Price Levels and Averages" indicator is a versatile tool designed for TradingView. It dynamically calculates and displays key price levels based on user-defined parameters such as distance percentages and position size. The indicator plots three ascending and descending price levels (A, B, C, X, Y, Z) around the last candle close on a specified timeframe. Additionally, it provides the average price for both upward and downward movements, considering the user's specified position size and increase factor. Traders can easily customize the visual appearance by adjusting colors for each plotted line. This indicator assists in identifying potential support and resistance levels and understanding the average price movements within a specified trading context.
Avoid SL hunting by acumulating your position with scaled orders.
Input Parameters:
inputTimeframe: Allows the user to select a specific timeframe (default: "D" for daily).
distancePercentageUp: Determines the percentage increase for ascending price levels (default: 1.5%).
distancePercentageDown: Determines the percentage decrease for descending price levels (default: 1.5%).
position: Specifies the position size in USD for calculating average prices (default: $100).
increaseFactor: Adjusts the increase in position size for each subsequent level (default: 1.5).
calcAvgPrice Function:
Parameters:
priceA, priceB, priceC: Ascending price levels.
priceX, priceY, priceZ: Descending price levels.
position: User-defined position size.
increaseFactor: User-defined increase factor.
Calculation:
Calculates the weighted average price for ascending (priceA, priceB, priceC) and descending (priceX, priceY, priceZ) levels.
Utilizes the specified position size and increase factor to determine the weighted average.
Plotting:
Price Calculations:
priceA, priceB, priceC: Derived by applying percentage increases to the last candle's close.
priceX, priceY, priceZ: Derived by applying percentage decreases to the last candle's close.
avgPriceUp, avgPriceDown: Computed using the calcAvgPrice function for ascending and descending levels, respectively.
Plotting Colors:
User-customizable through input parameters (colorPriceA, colorPriceB, colorPriceC, colorAvgPriceUp, colorPriceX, colorPriceY, colorPriceZ, colorAvgPriceDown).
Styling:
All lines are plotted with minimal thickness (linewidth=1) for a clean visualization.
Overall, the indicator empowers traders to analyze potential support and resistance levels and understand average price movements based on their specified parameters. The flexibility of color customization adds a layer of personalization to suit individual preferences.
Option Buying Pivot and SMA 3 Pivot crossoverThis script is designed as a visual aid for options trading specifically for option buying, providing information about potential entry points, Option levels, and trade outcomes. Here's a summary of the key elements:
1. Pivot Point and True Range:*
- The script calculates the current candle's pivot point, representing an average of high, low, and close prices from the previous candle.
- True range, a measure of volatility, is determined using the high, low, and close prices of the last two candles.
2. Option Levels:
- Downside (PutValue - Red colour line) and upside (CallValue - Green Colour line) are calculated based on the current pivot point and true range.
PutValue = currentCandlePivot + currentCandleTrueRange
CallValue = currentCandlePivot - currentCandleTrueRange
3. Simple Moving Average (SMA) of Pivot Point:
- A 3-period SMA is applied to the pivot point to smooth out fluctuations.
4. Trade Entry Logic:
- Long entry is signalled when the current pivot point is above the SMA. (longEntry = currentCandlePivot > smaPivot)
- At the time of long entry BUY THE CALL OPTION OR SELL THE PUT OPTION near the CallValue Green line
- Short entry is signalled when the current pivot point is below the SMA. (shortEntry = currentCandlePivot < smaPivot)
- At the time of Short entry BUY THE PUT OPTION OR SELL THE CALL OPTION near the PutValue Red line
The indicator having option to change the background of the candle as a green for long; and change the background of the candle as red for short. Also, Having the option to plot as label.
5. Win and Loss Logic:
- Winning conditions are assessed based on the close price relative to CallValue (for Long) and PutValue (for Short).
- Losing conditions are determined similarly.
- winLong = close > CallValue and longEntry
- winShort = close < PutValue and shortEntry
-lossLong = close < CallValue and longEntry
-lossShort = close > PutValue and shortEntry
The indicator having option to change the background of the candle as a green for win; and change the background of the candle as red for loss. Also, Having the option to plot as label.
6. Background Coloring and Plots:
- The script uses background colors to highlight Long, Short, Win, and Loss scenarios.
- Shapes and labels are plotted on the chart to visually represent entry points, stop-loss levels, and trade outcomes.
The overall purpose is to provide traders with a clear visual representation of potential trading opportunities and outcomes, helping them make informed decisions in the options market.
Breakout Detector (Previous MTF High Low Levels) [LuxAlgo]The Breakout Detector (Previous MTF High Low Levels) indicator highlights breakouts of previous high/low levels from a higher timeframe.
The indicator is able to: display take-profit/stop-loss levels based on a user selected Win/Loss ratio, detect false breakouts, and display a dashboard with various useful statistics.
Do note that previous high/low levels are subject to backpainting, that is they are drawn retrospectively in their corresponding location. Other elements in the script are not subject to backpainting.
🔶 USAGE
Breakouts occur when the price closes above a previous Higher Timeframe (HTF) High or below a previous HTF Low.
On the advent of a breakout, the closing price acts as an entry level at which a Take Profit (TP) and Stop Loss (SL) are placed. When a TP or SL level is reached, the SL/TP box border is highlighted.
When there is a breakout in the opposite direction of an active breakout, previous breakout levels stop being updated. Not reaching an SL/TP level will result in a partial loss/win,
which will result in the box being highlighted with a dotted border (default). This can also be set as a dashed or solid border.
Detection of False Breakouts (default on) can be helpful to avoid false positives, these can also be indicative of potential trend reversals.
This indicator contains visualization when a new HTF interval begins (thick vertical grey line) and a dashboard for reviewing the breakout results (both defaults enabled; and can be disabled).
As seen in the example above, the active, open breakout is colored green/red.
You can enable the setting ' Cancel TP/SL at the end of HTF ', which will stop updating previous TP/SL levels on the occurrence of a new HTF interval.
🔶 DETAILS
🔹 Principles
Every time a new timeframe period starts, the previous high and low are detected of the higher timeframe. On that bar only there won't be a breakout detection.
A breakout is confirmed when the close price breaks the previous HTF high/low
A breakout in the same direction as the active breakout is ignored.
A breakout in the opposite direction stops previous breakout levels from being updated.
Take Profit/Stop Loss, partially or not, will be highlighted in an easily interpretable manner.
🔹 Set Higher Timeframe
There are 2 options for choosing a higher timeframe:
• Choose a specific higher timeframe (in this example, Weekly higher TF on a 4h chart)
• Choose a multiple of the current timeframe (in this example, 75 minutes TF on a 15 min chart - 15 x 5)
Do mind, that when using this option, non-standard TFs can give less desired timeframe changes.
🔹 Setting Win/Loss Levels
The Stop Loss (SL) / Take Profit (TP) setting has 2 options:
W%:L% : A fixed percentage is chosen, for TP and SL.
W:L : In this case L (Loss-part) is set through Loss Settings , W (Win-part) is calculated by multiplying L , for example W : L = 2 : 1, W will be twice as large as the L .
🔹 Loss Settings
The last drawing at the right is still active (colored green/red)
The Loss part can be:
A multiple of the Average True Range (ATR) of the last 200 bars.
A multiple of the Range Cumulative Mean (RCM).
The Latest Swing (with Length setting)
Range Cumulative Mean is the sum of the Candle Range (high - low) divided by its bar index.
🔹 False Breakouts
A False Breakout is confirmed when the price of the bar immediately after the breakout bar returns above/below the breakout level.
🔹 Dashboard
🔶 ALERTS
This publication provides several alerts
Bullish/Bearish Breakout: A new Breakout.
Bullish/Bearish False Breakout: False Breakout detected, 1 bar after the Breakout.
Bullish/Bearish TP: When the TP/profit level has been reached.
Bullish/Bearish Fail: When the SL/stop-loss level has been reached.
Note that when a new Breakout causes the previous Breakout to stop being updated, only an alert is provided of the new Breakout.
🔶 SETTINGS
🔹 Set Higher Timeframe
Option : HTF/Mult
HTF : When HTF is chosen as Option , set the Higher Timeframe (higher than current TF)
Mult : When Mult is chosen as Option , set the multiple of current TF (for example 3, curr. TF 15min -> 45min)
🔹 Set Win/Loss Level
SL/TP : W:L or W%:L%: Set the Win/Loss Ratio (Take Profit/Stop Loss)
• W : L : Set the Ratio of Win (TP) against Loss (SL) . The L level is set at Loss Settings
• W% : L% : Set a fixed percentage of breakout price as SL/TP
🔹 Loss Settings
When W : L is chosen as SL/TP Option, this sets the Loss part (L)
Base :
• RCM : Range Cumulative Mean
• ATR : Average True Range of last 200 bars
• Last Swing : Last Swing Low when bullish breakout, last Swing High when bearish breakout
Multiple : x times RCM/ATR
Swing Length : Sets the 'left' period ('right' period is always 1)
Colours : colour of TP/SL box and border
Borders : Style border when breakout levels stop being updated, but TP/SL is not reached. (Default dotted dot , other option is dashed dsh or solid sol )
🔹 Extra
Show Timeframe Change : Show a grey vertical line when a new Higher Timeframe interval begins
Detect False Outbreak
Cancel TP/SL at end of HTF
🔹 Show Dashboard
Location: Location of the dashboard (Top Right or Bottom Right/Left)
Size: Text size (Tiny, Small, Normal)
See USAGE/DETAILS for more information
Market Pivot Levels [Past & Live]Market Levels provide a robust view of daily pivot points of markets such as high/low/close with both past and live values shown at the same time using the recently updated system of polylines of pinescript.
The main need for this script arose from not being able to use plots for daily points because plots are inherently once drawn can't be erased and because we can't plot stuff for previous bars after values are determined we can't use them reliably. And while we can use traditional lines, because we would have extremely high amount of lines and we would have to keep removing the previous ones it wouldn't be that effective way for us. So we try to do it with the new method of polylines .
Features of this script:
- Daily High/Low Points
- Yesterday High/Low/Close Points
- Pre-Market High-Low points.
Now let's preview some of the important points of code and see how we achieve this:
With the code below we make sure no matter which chart we are using we are getting the extended hours version of sessions so our calculations are made safely for viewing pre-market conditions.
// Let's get ticker extended no matter what the current chart is
tc = ticker.new(syminfo.prefix, syminfo.ticker, session.extended)
Coding our own function to calculate high's and low's because inbuilt pinescript function cannot take series and we send this function to retrieve our high's and lows.
// On the fly function to calculate daily highlows instead of tv inbuilt because tv's length cannot take series
f_highlow(int last) =>
bardiff = last
float _low = low, float _high = high
for i = bardiff to 0 by 1
if high > _high
_high := high
if low < _low
_low := low
With doing calculations at the bars of day ending points we can retrieve the correct points and values and push them for our polylines array so it can be used in best way possible.
// Daily change points
changeD = timeframe.change("D")
// When new day starts fill polyline arrays with previous day values for polylines to draw on chart
// We also update prevtime values with current ones after we pushed to the arrays
if changeD
f_arrFill(cpArrHigh, cpArrLow, prevArrh, prevArrl, prevArrc, prevMarh, prevMarl)
valHolder.unshift(valueHold.new(_high, _low, _high, _close, _low, time, pr_h, pr_l))
The rest of the code is annotated and commented. You can let me know in comments if you have any questions. Happy trading.
IchiBot - [SigmaStreet]
The IchiBot Indicator has been used to develop automated trading systems. It leverages the open-source Ichimoku framework provided by Trading View, to enable users to creatively generate over 1 trillion different combinations of trading conditions with the use of multiple timeframes to create unique “signal labels” that can be used to create custom strategies or provide in depth market analysis. At the end of this description, I have provided an example of input settings for a simple scalping strategy that I have back tested on US30 on the 5 minute timeframe.
Overview of the Settings:
The visuals section includes an option to show or hide certain parts of the indicator and change the size of the signal labels plotted on the chart.
Next to the “Signal color on baseline/candles” section, you can choose if you want to see additional signals generations from the most previous plotted label on a color changing baseline, or color changing candles. A color change from gray to blue/red indicate that the conditions from the most previously plotted signal label have been met again.
The next 5 sections are all related to the strategy portion of the indicator, used to aid in the back testing process. These sections are titled “Stop loss”, “Take Profit”, “Trail Stop”, “Trade Settings” and “Trade Schedule”.
The Stop Loss section includes an option to choose between value of “pts”, “atr” (average true range) or “None”. The stop loss value in “pts” is simply a specified number of points or pips from the current entry price of a trade that are input in the “SL” section. If the stop loss type is “atr” the “SL” section is not used and the value is calculated and displaced from the current entry price of a trade based on the atr period multiplied by the atr multiplier.
The take profit section is based on the same logic as the stop loss.
The Trail Stop section includes an option to choose between values “pts” or “None”. If the Trail Stop value is “pts”, a trailing stop loss is activated if a trade moves a point value into profit that exceeds the value of the “Trail Activation”. If the Trail Offset type is “pts”, the trailing stop loss is placed a point value away from the current price that is equal to the “Trail Offset” value.
The trade settings section has two options to either prevent or allow trade reversals and prevent or allow only 1 trade per signal label.
If the “Don’t allow trade reversals” is on, then a currently active trade can not be cancelled by an opposite trade signal. It can only be cancelled by the exit logic selected in the above sections. If the “One trade per signal” is selected, the strategy will only enter a trade if the most recent signal label is different from the last signal label where a trade was entered, or if the most recent signal label is in the opposite direction of the most recent signal label where a trade was entered.
The trade schedule section includes an option to only generate signal labels during the specified time. You can choose between 24/7 which will generate signals without any time restriction, or you can choose a custom time which is based on the America / New York time zone.
The timeframe settings section includes an option to choose “single” or “multiple” timeframes, as well as an option to show every signal label combination (“all”), or only the signal labels with the highest numerical value (“absolute”).
If you select “single” next to “timeframe”, the indicator will show you labels based on trade conditions met from only 1 selected timeframe. If you select “multiple” next to “timeframe”, the indicator is designed to return signal labels based on trade conditions that have been met on at least 2 different timeframes.
If you select “multiple” and “use current timeframe”, the indicator will include labels that always include a minimum of 2 timeframes where 1 timeframe is always the current timeframe. If you unselect the “use current timeframe”, the indicator will include labels with a minimum of 2 timeframes.
If you select “multiple” next to “timeframe” and “all” next to “Show all/absolute labels”, the indicator will show you every possible combination of labels that vary from trade conditions met on a minimum of 2 timeframes, to the maximum number of timeframes selected.
If you select “multiple” next to “timeframe” and “absolute” next to “Show all/absolute labels”, the indicator will only show you labels where the numerical value is equivalent to the maximum number of timeframes selected.
Each signal label provides a number which refers to the number of timeframes used to generate the label, offering insights briefly. Hover over a label to reveal detailed tooltip information that details the exact timeframes used to generate each label.
You can choose all from “Show all/absolute labels” to see every possible combination of trade signals or “absolute” to only see labels that have the highest possible numerical value. Absolute means that every condition selected from every timeframe was calculated to be true at the same time on the same candle.
The next 8 sections are “Current timeframe trade conditions”, “1-minute timeframe trade conditions”, “5-minute timeframe trade conditions”, “15-minute timeframe trade conditions”, “30-minute timeframe trade conditions”, “1-hour timeframe trade conditions”, “4-hour timeframe trade conditions”, “Daily timeframe trade conditions”.
These sections include the same 10 trade conditions, that can be used independently, or in combination with each other. This brings the total number of trade conditions to 70.
The final section includes a standard option to adjust the current Ichimoku values.
Understanding the Calculations:
The term “future” refers to a value that is calculated 26 candles to the right of the most recent closing price.
The term “current” refers to a value that is calculated on the most recent closing price.
The term “past” refers to a value that is calculated 26 candles to the left of the most recent closing price.
Bullish is referred to as “blue” and bearish is referred to as “red”.
Buy Signals:
1. The current closing price is greater than the current cloud value.
2. The future cloud is blue.
3. The current closing price is greater than the current conversion line.
4. The current conversion line is greater than the current baseline.
5. The lagging span is greater than the closing price of the last 25 candles.
6. The lagging span is greater than the past cloud.
7. The lagging span is greater than the past conversion line and the past baseline.
8. The current conversion line is greater than the current cloud.
9. The current baseline is greater than the current cloud.
10. The value of the current cloud to the future cloud is completely blue.
Sell Signals:
1. The current closing price is less than the current cloud value.
2. The future cloud is red.
3. The current closing price is less than the current conversion line.
4. The current conversion line is less than the current baseline.
5. The lagging span is less than the closing price of the last 25 candles.
6. The lagging span is less than the past cloud.
7. The lagging span is less than the past conversion line and the past baseline.
8. The current conversion line is less than the current cloud.
9. The current baseline is less than the current cloud.
10. The value of the current cloud to the future cloud is completely red.
The script enables users to access the value of these 10 trade conditions across the 7 major time frames (1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, Daily, and the current charts time frame) by using the official non repainting request security function provided by Trading View:
f_secSecurity(_src, _res, _exp) =>
request.security(_src, _res, _exp )
This indicator provides up to 70 variables (10 variables X 7 timeframes) that can be used separately, or in combination to generate signal labels.
Enhance your visual analysis with a color-changing baseline and candle colors that adapt to signal shifts, offering an immediate understanding of market trends. The base line will change from gray to blue/red which will reference the most previously plotted signal label. This change in color indicate that the conditions from the most recently plotted signal label have been met once again. Please refer to the example below.
Adjustments to the Ichimoku Indicator:
The script uses a slightly refined version of the Ichimoku indicator to calculate 10 different “trade conditions”. Each trade condition can create 1 bullish signal label and 1 bearish signal label. The calculations are primarily based on “greater than and less than logic” which is standard for signal generation.
In the original Ichimoku calculations, the “Lagging Span” has a default value of 26 periods. In the actual calculations, this input with the title “Lagging Span” is referred to as the “displacement”. When the lagging span is plotted on the chart, it is plotted with an offset value of offset = -displacement + 1 which technically plots the lagging span 25 candles to the left the most recent candle (if you count the most recent closing price as 0 and not 1). The clouds are plotted with an offset of offset = displacement -1 which technically plots the clouds 25 candles to the right of the most recent candle.
I have adjusted the logic of the Ichimoku indicator so the lagging span is still plotted 25 candles to the left of the most recently confirmed candle close, but the cloud is plotted 26 candles to the right of the most recent confirmed candle close.
This seemingly small adjustment of one candle cannot simply be adjusted in the settings of the original Ichimoku indicator since the calculations of the cloud and lagging span displacements are directly affected by the same value (displacement = 26, also known as the “lagging span”). My script is adjusted to make calculations where the lagging span is 25 candles to the left of the most recent candle, and the cloud is displaced 26 candles to the right of the most recent candle.
For example, my scripts logic to detect if the current closing price is over the current cloud is (close > leadLead1 and close > leadLine2 and leadLine1 > leadLine2 . By using a lookback of , the logic assumes that the displaced value is 26 bars to the right of the most recent candle. My script also reflects this logic in the plotted values of the cloud where the offset values are offset = displacement. This adjustment is made without affecting any other part of the Ichimoku indicators calculations, only the displacement of the cloud which directly affects the logic of trade conditioins. This change is a deliberate and necessary function of this script’s logic to generate trade conditions and signal labels.
I’ve removed the conversion line and the lagging span and introduced a 26-period pivot high/low to provide a less cluttered chart. The pivot high/low looks 26 periods to the left and only 1 period to the right. The lagging span and conversion line logic is still built into the framework of the trading signals. If you choose to enable the lagging span, or conversion line.
trading approach, and always test your strategies thoroughly.
The function to generate the "Signal Labels" calculates every single possible combination of the 7 different timeframes which is a total of 127 combinations for bullish signal labels, and 127 combinations for bearish signal labels. This function also provides the necessary criteria for the strategy entry conditions, based on the dynamically calculated values derived from the signal labels themselves. For example: "buy signal on 1 minute and 5 minute timeframe" is considered 1 combination, and "Buy signal on current, 5 minute, 15 minute, 30 minute, 1 hour, 4 hour and daily timeframe" is also considered 1 combination. There are a total of 254 combinations between buy and sell signal labels along with 254 individual variables with their own unique tool tip description. The signal label function alone spans over 1340 lines of code (minus spaces and comments) to specifically account for every possible variable combination. This unique and original function also calculates the signal label "value" which is the number you see on the signal label. This function adjusts the amount of labels plotted, the value and description of all labels based on the timeframe settings "single"/"multiple", the use of "use current timeframe" setting, and the "trade schedule". This signal label function has been a landmark piece of code for me in my endeavor to create and optimize my strategies based on its ability to provide an in depth analysis of the timeframes used when generating signal labels. This function is main reason that this script has been published closed source.
Back tested results.
The current results are from US30 (Dow Jones Industrial Average CFD) on the 5-minute timeframe using regular candles. The inputs are as follows:
Stop loss = 5000 pts
No take profit.
Trail activation = 100 pts
Trail offset = 100 pts
Don’t allow trade reversals
Trade 24/7
Timeframe = multiple
Show absolute signals
Use current timeframe, lag span over/under candles
Use 30m timeframe, all cloud is bull/bear
Initial capital = $10,000 USD, 1 contract, $0.07 per contract, slippage = 3 ticks, use bar magnifier = on
Timeframe = June 1st, 2023 – November 10th, 2023, risk = 5% (greatest loosing trade = $500.44)