Ouside Bar First high/low DetectorIndicator wenting to the lower time frame(if compare with current chart time frame) and seek what happened first, the low of previouse bar was updated first or the high of previouse bar.
In some trading strategies need to know exactly sequence of actions for outside bars to program the logic for testing on deep history.
If first was updated the high of previouse bar indicator will draw green diamond above the outside bar. If first was updated the low of previouse bar then indicator will draw red diamon below the ouside bar.
In cases where both side diamonds is plotted it meant the current Lower time frame resolution is not enough to clear figure out what was first Low of High, need choose lower resolution.
I did not found ready to use examples and made my own.
I hope it will be usefull for you.
Best Regards.
Multitimeframe
Alpha Time Zones {DCAquant}
Alpha Time Zones {DCAquant}
The Alpha Time Zones {DCAquant} is a versatile TradingView indicator designed to help traders navigate the markets by highlighting key trading sessions. This tool provides visual cues by color-coding periods of the London, New York, and Tokyo trading sessions, along with customizable 'Golden' zones, enabling traders to capitalize on market overlaps and increased volatility.
Key Features:
Global Trading Sessions: Automatically shades the periods of the major trading sessions, which can be critical for traders looking to trade during peak liquidity times.
Customizable 'Golden' Zone: Set up your own 'Golden' trading hours for personalized time frames where you observe increased market activity.
Clarity and Focus: By color-coding each session, the indicator allows for a clean and organized view of the market, enabling traders to focus on their strategies without distraction.
BTC Halving Dates and Countdown: For cryptocurrency traders, this indicator includes a feature to show Bitcoin halving dates and a countdown to the next event, assisting in speculation around these significant occurrences.
How to Use the Indicator:
Optimized for Shorter Timeframes: Alpha Time Zones {DCAquant} is fine-tuned for high timeframe charts up to 12 hours. It's designed to provide the most value for intraday to half-day chart intervals, which aligns well with the duration of trading sessions around the globe.
Session Overlaps: Identify times when key sessions overlap, such as the London-New York overlap, to exploit potential periods of increased liquidity and volatility—prime times for trading on lower timeframes.
Custom 'Golden' Zone Trading: Define your own 'Golden' trading hours to correspond with specific economic releases or your peak trading times, perfect for strategies that target times of intensified market action.
Strategic Halving Date Analysis: Utilize the indicator’s Bitcoin halving dates and countdown feature to make informed decisions around these pivotal events, particularly relevant to cryptocurrency traders focusing on macro timeframes.
Adaptability and Customization: While the indicator is not intended for use on timeframes longer than 12 hours, its flexible settings allow for toggling session displays and customizing the 'Golden' zone, making it a versatile companion to your trading system.
Trading Strategy Integration:
The Alpha Time Zones {DCAquant} indicator is designed to be an auxiliary tool, easily integrated into any trading strategy that emphasizes trading session dynamics. Whether you're day trading, swing trading, or taking a position based on economic announcements, this indicator adapts to your approach, providing clear visual markers of key trading hours.
Disclaimer:
This indicator does not predict market movements but instead serves as a guide to understand the timing of market activities. Traders should use this tool in conjunction with a comprehensive analysis and a robust risk management strategy.
SMT divergencesAn extension from my Liquidity Raids indicator work, this indicator is a way to approach SMT divergences occurring on your pair against a configured pair i.e., when a bullish or bearish raid occurs (i.e., low or high gets taken) in the correlated asset and it doesn't occur in the current asset or vice versa, the indicator plots it on the chart.
In the above example, you can see SMT divergences between US100 and US500.
The following features are supported:
SMT plotted on pairs
Alerts to get notified when such SMTs occur.
Inversion of SMTs supported (for e.g., when you want SMT from DXY to be plotted on EU)
Minimum pips filter required for raids to trigger SMT (plot or alert)
NOTE: It's cleanest and advisable when it's used on the same timeframe as the chart. While switching timeframe works, the timeframe in the indicator must be equal or higher than the current timeframe, however it won't be accurate and I don't want to put in further efforts for a free-to-use indicator :)
SMA Dashboard | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Simple Moving Average (SMA) Dashboard! This dashboard let's you select a source for the calculation of the SMA of it, then shows it across 5 different lengths and timeframes.
Features of the new SMA Dashboard :
Shows SMA Across 5 Different Lengths & Timeframes.
Select Any Source, Including Other Indicators.
Enable / Disable Plotting Lines.
Customizable Dashboard.
📌 HOW DOES IT WORK ?
SMA is a widely used indicatior within trading community, it simply works by taking the mathematical average of a source by desired length. This indicator then shows it across 5 different timeframes in a dashboard and plots them in your chart for ease of use.
🚩UNIQUENESS
This dashboard cuts through the hassle of manual SMA calculations and plotting. It offers flexibility by allowing various data sources (even custom indicators) and customization through enabling / disabling SMA lines. The clear visualization lets you compare multiple SMAs efficiently.
⚙️SETTINGS
1. Timeframes
You can set up to 5 timeframes & lengths for the dashboard to show here. You can also turn on plotting and enable / disable them.
2. General Configuration
SMA Source -> You can select the source for the calculation of the SMA here. You can select sources from other indicators as well as more general sources like close, high and low price.
EMA20 in MTFThe "EMA20 in MTF" indicator on TradingView is a versatile tool designed to display the 20-period Exponential Moving Average (EMA) as a horizontal line across various time frames. This indicator provides traders with a comprehensive view of the EMA's behavior by plotting it on multiple time frames (MTF), including Quarterly, Monthly, Weekly, Daily, and 125 Minutes.
By incorporating EMA data from different time frames, traders can gain insights into both short-term and long-term trends. The Quarterly and Monthly time frames offer a broader perspective on market movements, while the Weekly and Daily time frames provide intermediate-term trends. The inclusion of the 125 Minutes time frame further enhances precision, catering to intraday trading strategies.
Overall, the "EMA20 in MTF" indicator serves as a valuable tool for traders seeking to analyze EMA dynamics across various time frames, aiding in trend identification and decision-making processes.
OBV 1min Volume SqueezeIn the vast realm of trading strategies, few terms evoke as much intrigue as the word "squeeze." It conjures images of pent-up energy, ready to burst forth in a sudden and decisive move. In this blog post, we'll delve into a new trading idea titled the "OBV 1-Minute Volume Squeeze" which aims to catch bigger market movements by fetching 1 minute OBV data on higher time charts.
The Essence of Squeeze
In trading parlance, a "squeeze" typically denotes a scenario where volatility contracts, and prices consolidate within a narrow range. Translating this concept to volume dynamics, a "volume squeeze" suggests a period of compressed volume activity. It is unclear if the Bulls or the Bears are at winning hand and price is thus consolidating. The script calculates buying and selling pressure by fetching 1 min data. The total volume presure is the sum of absolute values of the buying and selling pressure added up. By deviding the Buying volume by the total volume we know the Buying Pressure.
The trading theory suggest that when the buying pressure exceeds a certain value eg. 50% (default value in the script is 55%) it is likely the trend will continue to go up for a longer period of time. Vice Versa when selling pressure is higher, the trend is likely to continue down. In the script you can adjust the sensitivity in such way a higher "Volume Pressure %" result in less trading signals.
Fetching 1 min data
The OBV is a wonderful indicator to measure the buying and selling pressure. A disadvantage of the script is that the total volume pressure is presented as a positive (buying) or negative value (selling) value in the Oscillator. It does not offset the Bulls power against the Bears power at given time. The script aims to do measure the directional volume power by defining a volume pressure % (oulier value) by fetching 1 min OBV data on higher time frame charts comparing the Bulls power against the Bears Power. The code is included below:
// Fetch Lower Timeframe Data in an array
// nV = ZeroValue, sV = Selling Volume, bV = Buying Volume, tV = Total Volume
= request.security_lower_tf(syminfo.tickerid, '1', )
sum_bV_Lengthbars = array.sum(bV)
sum_sV_Lengthbars = array.sum(sV)
sum_tV_Lengthbars = sum_bV_Lengthbars + sum_sV_Lengthbars // Combine buying and selling volumes to get total volume
// Calculate buying and selling volume as percentage of the total volume, but ensure the denominator isn't zero.
buying_percentage = sum_tV_Lengthbars != 0 ? sum_bV_Lengthbars / sum_tV_Lengthbars * 100 : na
selling_percentage = sum_tV_Lengthbars != 0 ? -(sum_sV_Lengthbars / sum_tV_Lengthbars * 100) : na
OBV Oscillator Explanation
The On Balance Volume (OBV) indicator is a technical analysis tool used to measure buying and selling pressure in the market. It does this by keeping a running total of volume flows. OBV is typically calculated by adding the volume on a candle when the price closes higher than the previous candle's close and subtracting the volume on candles when the price closes lower than the previous candles close. If the price closes unchanged from the previous candle, the volume is not added to or subtracted from the OBV. The OBV can be presented as an oscillator. Positve value is the buying pressure and negative values is the selling pressure. In the settings the OBV is calculated based on 1 min data and comes with the following input options for visualization on the chart:
Higher Time Frame Settings (make sure the HTF is higher than the chart you have open)
Type of MA being: EMA, DEMA, TEMA, SMA, WMA, HMA, McGinley
Volume Pressure % (outlier value)
Length of number of bars (of the choosen HTF settings)
Smoothing of number candles of hte opened timechart. Note that higher number of bars to smoothen the indicator results in less signals, but lag of the indicator increases.
The Oscilator contains 3 main lines which are used to determin the entry signals:
Orange Line = the Outlier value in settings described as "Volume Pressure %"
Green Line = Total Buying Pressure OBV
Red Line = Total Selling Pressure OBV
If the Green or Red line is in between the zero line and the orange line the volume is squeezed and waiting for a directional break out.
If the Green line crosses over the orange line the buying pressure is > 55% and triggers a long entry position (green dot). If the Red line crosses under the orange line the selling pressure is > 55% and triggers an short entry (red dot). In the strategy settings this option is called: "Wait for total volume to increase?".
Alternative Strategy Options
In order to play around with different settings users can opt for two more strategy entry settings, called:
"Wait for total volume to deacrease?" --> Only gives a signal when total volume is declining, but buying or selling pressure maintains and crosses % threshold.
"Wait for Pull Back?" --> After a pullback occured and opposite buy/sell pressure gets lower than threshold (direction is shifting)
Turning on all options will logically result into more signals. Note these strategy ideas are experimental and can best be used in confirmation with other indicators.
Moving Average Filter (HTF)
The Oscillator has a horizontal line at the bottom. The line is green when the moving average is in a uptrend and red when the moving average is in a downtrend. The MA Filter comes with the following settings:
Higher Time Frame Setting
Type of MA being: EMA, DEMA, TEMA, SMA, WMA, HMA, McGinley
Length of number of bars (of the choosen HTF settings)
At last I hope you like this volume trading idea and if you have any comments let me know!
Kyrie Crossover ( @zaytradellc )Unlocking Market Dynamics: Kyrie Crossover Script by @zaytradellc
personalized trading success with the "Kyrie Crossover" script, meticulously crafted by @zaytrade. This innovative Pine Script, tailored to the birthdays of Kyrie and the script creator, combines the power of technical analysis with a touch of personalization to revolutionize your trading experience.
**Exponential Moving Average (EMA) Crossover Strategy:**
At the heart of the "Kyrie Crossover" script lies a sophisticated EMA crossover strategy. By utilizing a 10-period EMA and a 323-period EMA (symbolizing long term price action ), the strategy effectively captures market trends with precision and insight.
- **Short-Term EMA (10-period):** This EMA reacts swiftly to recent price changes, offering heightened sensitivity to short-term fluctuations. It excels in identifying immediate shifts in market sentiment, making it invaluable for pinpointing short-lived trends and potential reversal points.
- **Long-Term EMA (323-period):** In contrast, the long-term EMA provides a broader perspective by smoothing out short-term noise and focusing on longer-term trend direction. Its extended length filters out market noise effectively, providing a clear representation of the underlying trend's momentum and sustainability.
**Directional Movement Index (DMI) Metrics:**
The "Kyrie Crossover" script goes beyond traditional indicators by incorporating DMI metrics across multiple timeframes. By assessing trend strength and direction, traders gain valuable insights into market dynamics, allowing for informed decision-making.
**Simple Instructions to Profit:**
1. **Identify EMA Crossovers:** Look for instances where the short-term EMA (10-period) crosses above the long-term EMA (323-period) for a bullish signal, indicating a potential buying opportunity. Conversely, a crossover where the short-term EMA crosses below the long-term EMA signals a bearish trend and a potential selling opportunity.
2. **Confirm with DMI Metrics:** Validate EMA crossovers by checking DMI metrics across different timeframes (5 minutes, 15 minutes, 30 minutes, and 1 hour). Pay attention to color-coded indicators, with green indicating a bullish trend, red indicating a bearish trend, and white indicating no clear trend.
3. **Manage Risk:** Implement proper risk management techniques, such as setting stop-loss orders and position sizing based on your risk tolerance and trading objectives.
4. **Stay Informed:** Regularly monitor market conditions and adjust your trading strategy accordingly based on new signals and emerging trends.
Gaps Profile [vnhilton]Note: If you get an error preventing indicator from executing due to a loop running longer than >500ms, please lower the amount of boxes shown and/or increase the minimum gap % threshold.
OVERVIEW
The Gaps Profile (GP) simply shows the remaining gaps on the chart that have yet to be closed. Gaps are created where there's a distance between the current open and the previous close. Big gaps suggest change in sentiment and volatility causing prices to pull away thereby creating gaps. Gaps can be used as pivot areas where price may attempt to close the inefficiency entirely and/or serve as supply/demand zones.
(FEATURES)
- 3 to 499 remaining up/down gaps can be displayed on the chart (furthest gaps away from price are removed to make way for new gaps)
- Minimum gap % threshold
- Ability to highlight largest or newest up/down gap
- 4 GP color themes: Mono, Up/Down, Up/Down Largest Gradients, Up/Down Newest Gradients
- GP Type: Left, Right (how it is built - overlapping gaps plotted from left/right to right/left)
- GP offset from current bar
- Box border width
- Box border style for up/down: Dashed, Dotted, Solid
- Toggles to hide border/box with ease
Inversion Fair Value Gap Screener | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Inverse Fair Value Gap Screener! This screener can provide information about the latest Inverse Fair Value Gaps in up to 5 tickers. You can also customize the algorithm that finds the Inverse Fair Value Gaps and the styling of the screener.
Features of the new Inverse Fair Value Gap (IFVG) Screener :
Find Latest Inverse Fair Value Gaps Across 5 Tickers
Shows Their Information Of :
Latest Status
Number Of Retests
Consumption Percent
Volume
Customizable Algorithm / Styling
📌 HOW DOES IT WORK ?
A Fair Value Gap generally occur when there is an imbalance in the market. They can be detected by specific formations within the chart. An Inverse Fair Value Gap is when a FVG becomes invalidated, thus reversing the direction of the FVG.
IFVGs get consumed when a Close / Wick enters the IFVG zone. Check this example:
This screener then finds Fair Value Gaps across 5 different tickers, and shows the latest information about them.
Status ->
Far -> The current price is far away from the IFVG.
Approaching ⬆️/⬇️ -> The current price is approaching the IFVG, and the direction it's approaching from.
Inside -> The price is currently inside the IFVG.
Retests -> Retest means the price tried to invalidate the IFVG, but failed to do so. Here you can see how many times the price retested the IFVG.
Consumed -> IFVGs get consumed when a Close / Wick enters the IFVG zone. For example, if the price hits the middle of the IFVG zone, the zone is considered 50% consumed.
Volume -> Volume of a IFVG is essentially the volume of the bar that broke the original FVG that formed it.
🚩UNIQUENESS
This screener can detect latest Inverse Fair Value Gaps and give information about them for up to 5 tickers. This saves the user time by showing them all in a dashboard at the same time. The screener also uniquely shows information about the number of retests and the consumed percent of the IFVG, as well as it's volume. We believe that this extra information will help you spot reliable IFVGs easier.
⚙️SETTINGS
1. Tickers
You can set up to 5 tickers for the screener to scan Fair Value Gaps here. You can also enable / disable them and set their individual timeframes.
2. General Configuration
FVG Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
IFVG Zone Invalidation -> Select between Wick & Close price for IFVG Zone Invalidation. This setting also switches the type for IFVG consumption.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivities resulting in spotting bigger FVGs, and higher sensitivities resulting in spotting all sizes of FVGs.
MTF HalfTrendIntroduction
A half-trend indicator is a technical analysis tool that uses moving averages and price data to find potential trend reversal and entry points in the form of graphical arrows showing market turning points.
The salient features of this indicator are:
- It uses the phenomenon of moving averages.
- It is a momentum indicator.
- It can indicate a trend change.
- It is capable of detecting a bullish or bearish trend reversal.
- It can signal to sell/buy.
- It is a real-time indicator.
Multi-Timeframe Application
A standout feature is its flexibility across timeframes. Traders have the liberty to choose any timeframe on the chart, enhancing the tool's versatility and making it suitable for both short-term and long-term analyses.
Principle of the Half Trend indicator
This indicator is based on the moving averages. The moving average is the average of the fluctuation or change in the price of an asset. These averages are taken for a time interval.
So, a half-trend indicator takes the moving averages phenomenon as its principle for working. The most commonly used moving averages in a half trend indicator are:
- Relative strength index (RSI)
- EMA (estimated moving average)
Components of a Half Trend indicator
There are two main components of a half trend indicator:
- Half trend line
- Arrows
- ATR lines
Half trend line
Half trend line represents this indicator on a candlestick chart. This line shows the trend of a chart in real-time. A half-trend line is based on the moving averages.
There are two further components of a half-trend line:
- Redline
- Blue line
A red line represents a bearish trend. When the half-trend line turns red, a trend is facing a dip. It is time for the bears to take control of the market. A bearish control of the market represents the domination of sellers in the market.
On the other hand, the blue line represents the bullish nature of the market. It tells a trader that the bullish sentiment of the market is prevailing. A bullish market means the number of buyers is significantly greater than the number of sellers.
Moreover, a trader can change these colors to his choice by customization.
Arrows
There are two types of arrows in this indicator which help a trader with the entry and exit points. These arrows are,
- Blue arrow
- Red arrow
A blue arrow signals a buying trade; on the other hand, a red arrow tells a trader about the selling of the assets. These arrows work with the moving average line to formulate a trading strategy.
The color of these arrows is changed if a trader desires so.
ATR lines
The ATR blue and red lines represent the Average True Range of the Half trend line. They may be used as stop loss or take profit levels.
Pros and Cons
Pros
- It is a very easy to eyes indicator.
- This is a very useful friendly indicator.
- It provides sufficient information to beginner traders.
- It provides sufficient information for entry points in a trade.
- A half-trend indicator provides a good exit strategy for a trader.
- It provides information about market reversals.
- It helps a trader to find a bullish and bearish sentiment in the market.
Cons
- It is a real-time indicator. So, it can lag.
- The lagging of this indicator can lead to miss opportunities.
- The most advanced and professional traders may not rely on this indicator for crucial trading decisions.
- The lagging of this indicator can predict false reversals of the market.
- It can create false signals.
- It requires the confluence of the other technical tools for a better success ratio.
Settings for Half Trend indicator
The default settings for half trend indicator are:
Amplitude = 2
Channel deviation = 2
Different markets or financial instruments may require different settings for optimal execution.
Amplitude: The degree that the Half trend line takes the internal variables into consideration. The higher the number, the fewer trades. The default value is 2.
Channel deviation: The ATR value calculation from the Half trend line. The default value is 2.
Trading strategy
It is an effective indicator in terms of strategy formation for a trading setup. The new and beginner trades can take benefit from this indicator for the formulation of a good trading setup. This indicator also helps seasoned and professional traders formulate a good trading setup with other technical tools.
The trading strategy involving a half-trend indicator is divided into three parts:
- Entry and exit
- Risk management
- Take profit
Entry and exit
It is an effective indicator that provides sufficient information about the entry and exit points in a trading setup. The profit of a trader is directly proportional to the appropriate entry and exit points. So, it is a crucial step in any trading setup.
The blue and red arrows provide information about the entry and exit points in a trading setup. Furthermore, the entry and exit for the bullish and bearish setups are as follows.
Entry and exit for a bullish setup
If a blue arrow appears under the half-trend line, it means the bullish sentiment of the market is getting stronger in the future. So, it is a signal for entry in a bullish setup.
As the red arrow appears on the chart, it is a signal to exit your trade. The red arrow represents a reversal in the market, so it is a good opportunity to close your trade in a bullish setup.
Entry and exit for a bearish setup
Suppose a red arrow appears above the red moving average line. It is a good opportunity to enter a trade in a bearish setup. The red line represents that sooner the sellers are going to take control and the value of the asset is about to face a dip. So it is the best time to make your move.
As the opposite arrow appears in the chart, it is time to exit from a bearish trade setup.
Re-entering a position
Bullish setup
- The half-trend line is blue.
- At least one candle closes below the blue half-trend line.
- Enter on the candle that closes above the blue half-trend line.
Bearish setup
- The half-trend line is red.
- At least one candle closes above the red half-trend line.
- Enter on the candle that closes below the red half-trend line.
Risk management
Risk management is an integral part of a trading setup. It is an important step to protect your potential profits and losses.
When trading in a bullish market, place the stop loss at the prior swing low. It will help you to cut your losses in case the prices move to the lower end.
In the case of a bearish market, place your stop loss above the prior swing high.
A trader may trail the stop loss using the ATR lines.
The new trader often makes mistakes in the placement of the stop loss. If you don’t place the stop loss at an appropriate point. It can drain your bank account and ruin your trading experience. Is is recommended not to risk more than 2% of your trading account, per trade.
Take profit
The blue ATR line may be used as one take profit level on a bullish setup followed by the previous swing high. The signal reversal would indicate the final take profit and closing of any position.
The red ATR line may be used as one take profit level on a bearish setup followed by the previous swing low. The signal reversal would indicate the final take profit and closing of any position.
Conclusion
A half trend indicator is a decent indicator that can transform your trading experience. It is a dual indicator that is based on the moving averages as well as helps you to form a trading strategy. If you are a new trader, this indicator can help you to learn and flourish in the trading universe. If you are a seasoned trader, I recommend you use this indicator with other technical analysis tools to enhance your success ratio.
All credits go to:
- @everget the original creator of this indicator (I just added the MTF capability).
- Ali Muhammad original author of much of the description used.
Bitcoin Momentum StrategyThis is a very simple long-only strategy I've used since December 2022 to manage my Bitcoin position.
I'm sharing it as an open-source script for other traders to learn from the code and adapt it to their liking if they find the system concept interesting.
General Overview
Always do your own research and backtesting - this script is not intended to be traded blindly (no script should be) and I've done limited testing on other markets beyond Ethereum and BTC, it's just a template to tweak and play with and make into one's own.
The results shown in the strategy tester are from Bitcoin's inception so as to get a large sample size of trades, and potential returns have diminished significantly as BTC has grown to become a mega cap asset, but the script includes a date filter for backtesting and it has still performed solidly in recent years (speaking from personal experience using it myself - DYOR with the date filter).
The main advantage of this system in my opinion is in limiting the max drawdown significantly versus buy & hodl. Theoretically much better returns can be made by just holding, but that's also a good way to lose 70%+ of your capital in the inevitable bear markets (also speaking from experience).
In saying all of that, the future is fundamentally unknowable and past results in no way guarantee future performance.
System Concept:
Capture as much Bitcoin upside volatility as possible while side-stepping downside volatility as quickly as possible.
The system uses a simple but clever momentum-style trailing stop technique I learned from one of my trading mentors who uses this approach on momentum/trend-following stock market systems.
Basically, the system "ratchets" up the stop-loss to be much tighter during high bearish volatility to protect open profits from downside moves, but loosens the stop loss during sustained bullish momentum to let the position ride.
It is invested most of the time, unless BTC is trading below its 20-week EMA in which case it stays in cash/USDT to avoid holding through bear markets. It only trades one position (no pyramiding) and does not trade short, but can easily be tweaked to do whatever you like if you know what you're doing in Pine.
Default parameters:
HTF: Weekly Chart
EMA: 20-Period
ATR: 5-period
Bar Lookback: 7
Entry Rule #1:
Bitcoin's current price must be trading above its higher-timeframe EMA (Weekly 20 EMA).
Entry Rule #2:
Bitcoin must not be in 'caution' condition (no large bearish volatility swings recently).
Enter at next bar's open if conditions are met and we are not already involved in a trade.
"Caution" Condition:
Defined as true if BTC's recent 7-bar swing high minus current bar's low is > 1.5x ATR, or Daily close < Daily 20-EMA.
Trailing Stop:
Stop is trailed 1 ATR from recent swing high, or 20% of ATR if in caution condition (ie. 0.2 ATR).
Exit on next bar open upon a close below stop loss.
I typically use a limit order to open & exit trades as close to the open price as possible to reduce slippage, but the strategy script uses market orders.
I've never had any issues getting filled on limit orders close to the market price with BTC on the Daily timeframe, but if the exchange has relatively low slippage I've found market orders work fine too without much impact on the results particularly since BTC has consistently remained above $20k and highly liquid.
Cost of Trading:
The script uses no leverage and a default total round-trip commission of 0.3% which is what I pay on my exchange based on their tier structure, but this can vary widely from exchange to exchange and higher commission fees will have a significantly negative impact on realized gains so make sure to always input the correct theoretical commission cost when backtesting any script.
Static slippage is difficult to estimate in the strategy tester given the wide range of prices & liquidity BTC has experienced over the years and it largely depends on position size, I set it to 150 points per buy or sell as BTC is currently very liquid on the exchange I trade and I use limit orders where possible to enter/exit positions as close as possible to the market's open price as it significantly limits my slippage.
But again, this can vary a lot from exchange to exchange (for better or worse) and if BTC volatility is high at the time of execution this can have a negative impact on slippage and therefore real performance, so make sure to adjust it according to your exchange's tendencies.
Tax considerations should also be made based on short-term trade frequency if crypto profits are treated as a CGT event in your region.
Summary:
A simple, but effective and fairly robust system that achieves the goals I set for it.
From my preliminary testing it appears it may also work on altcoins but it might need a bit of tweaking/loosening with the trailing stop distance as the default parameters are designed to work with Bitcoin which obviously behaves very differently to smaller cap assets.
Good luck out there!
MTF TREND-PANEL-(AS)
0). INTRODUCTION: "MTF TREND-PANEL-(AS)" is a technical tool for traders who often perform multi-timeframe analysis.
This simple tool is meant for traders who wish to monitor and keep track of trend directions simultaneously on various timeframes, ranging from 1MIN to 3MONTHS (or other - 'DIFF')
script enhances decision-making efficiency and provides a clearer picture of market condition by integrating multiple timeframe analysis into a single panel.
1). WARNING!:
-script doesn't make any calculations on its own really but is more of a tool for traders to remember what is happening on other time frames
- use tooltips to navigate settings easier
2). MAIN OPTIONS:
- Keeps track of up to 7 timeframes. (NUMBER of TimeFrames setting, from 1-7)
- Customizable Display: Choose to display nothing, upward/downward arrows, or a range indication for each timeframe.
- timeframe options: '1-MIN','5-MIN','15-MIN','30-MIN','1H','4H','1D','1W','1M','3M','DIFF'
- Color Coding: Define your preferred colors for each timeframe
- set position of the table and size of text (Position/text)
- Personal Touch: Add your own trading maxim or motto for inspiration to show up when SHOW TEXT is turned on
3. )OPTIONS:
-NUMBER of TimeFrames setting: from 1-7 - how many rows to show
-SHOW TABLE: Toggle to display or hide the trend table panel.
-SHOW TEXT: Show or hide your personalized trading maxim.
-SHOW TREND: Enable to display trend direction arrows.
-SHOW_CLRS: Turn on to activate color coding for each timeframe.
-position/text size for table
-settings for each timeframe:color,time,trend
-place to type ur own text
5). How to Use the Script:
-After adding the script to your chart, use the 'NUMBER of TimeFrames' setting to select how many timeframes you want to track (1 to 7).
-Customize the appearance of each timeframe row using the color and arrow options.
-For trend analysis, the script offers arrows to indicate upward, downward, or ranging markets.
-decide what trend dominates particular TF (using other tools - script does not calculate trend on its own )
- mark trends on panel to keep track of all TF
-Enable or disable various features like the table panel, trader maxim, and color coding using the ON/OFF options.
6). just in case:
- ask me anything about the code
-don't be shy to report any bugs or offer improvements of any kind.
- originally created for @ict_whiz and made public at his request
Inside Candle StrategyIntroduction
The Inside Candle Breakout Strategy leverages the concept of inside candles as a primary signal for potential breakouts. Unlike common trend-following or scalping strategies, this method focuses on the volatility squeeze indicated by inside candles and aims to capture the momentum that follows these periods of consolidation. The strategy's originality lies in its specific integration of timeframes for signal detection and its application across diverse market conditions without relying on conventional trend indicators.
Strategy Description and Mechanics
Inside Candle Identification: At the heart of this strategy is the detection of inside candles, defined as candles fully contained within the range of the preceding candle. This pattern signifies a temporary balance between buyers and sellers, often preceding significant price movements. The strategy scans for these candles within a user-specified timeframe in the input section of the settings of the strategy, allowing for tailored signal generation based on individual trading preferences.
Entry Points and Market Entries: Upon identifying an inside candle and only once this candle closes, the strategy prepares to enter a trade in the direction of the breakout. Trades are executed in the timeframe selected on the chart, ensuring that entry points are aligned with real-time market movements. This process highlights the strategy's adaptability, making it suitable for various trading styles, from day trading to swing trading.
Overlay Indicator for Enhanced Market Analysis: Accompanying the breakout signals is an overlay indicator comprising two moving averages and a volatility cloud. This feature serves as a secondary tool for market analysis, offering insights into the prevailing market trend and volatility levels. While it doesn't influence the entry or exit signals directly, it provides traders with additional context for refining their decisions, enhancing the strategy's utility. This assistance tool is composed by one moving average and a second line which is calculated adding or subtracting the historical volatility of the asset on the moving average, depending on his momentum.
Strategy Results and Commitment to Realism
Backtesting Protocol: In our commitment to transparency and realism, backtesting results are derived from a dataset that ensures a sufficient number of trades (over 100) to validate the strategy's effectiveness. This approach underscores our dedication to providing traders with reliable and actionable insights.
Risk Management and Trade Sizing: Recognizing the importance of sustainable trading practices, the strategy incorporates strict risk management guidelines. Trades are sized to ensure that only a small percentage of equity is risked on a single trade, adhering to widely accepted risk tolerance levels. The initial account size for this script is set to 10000$.
Strategy Defaults and Justification: The default properties of the strategy, including the risk-reward ratio, average length for moving averages, and other parameters, are carefully chosen based on extensive testing and analysis. These settings represent a balanced approach, aiming to optimize the strategy's performance across a variety of market conditions.
Strategy Components:
- Inside Candles: An inside candle occurs when a candle's high and low are completely contained within the high and low of the previous candle. This pattern indicates a period of consolidation or indecision in the market, often preceding a significant price movement. The strategy detects inside candles based on the user-selected timeframe, allowing traders to capture potential breakouts.
Indicator Overlays:
- Moving Average: A simple moving average (SMA) is calculated over a user-defined length (`Average Length`), providing a dynamic baseline to gauge the market's direction. The strategy offers an option (`Show Moving Average`) to display or hide this moving average on the chart, giving traders control over the visual complexity.
- Volatility Measurement: Alongside the moving average, the strategy assesses market volatility using the standard deviation of the closing prices over the same period defined by the `Average Length`. The moving average is adjusted upwards or downwards by this volatility measure, creating a dynamic channel that reflects the current market conditions.
- Color Gradients for Volatility: The strategy uses a color gradient to fill the area between the moving average and its volatility-adjusted counterpart. This gradient visually represents the volatility level, transitioning from gray (low volatility) to a lighter shade (higher volatility), aiding in the assessment of market sentiment and volatility.
Trading Entries:
- Long Entry: A long position is triggered when the closing price exceeds the high of an inside candle, indicating potential bullish momentum. The strategy places a stop-loss at the low of the inside candle and sets a take-profit level based on the predefined risk-reward ratio (`RR Ratio`).
- Short Entry: Conversely, a short position is initiated when the closing price falls below the low of an inside candle, suggesting bearish pressure. A stop-loss is set at the high of the inside candle, with the take-profit level adjusted according to the risk-reward ratio.
Customization Settings:
- Timeframe: Traders can select the desired timeframe for inside candle detection, tailoring the strategy to fit various trading styles and time horizons.
- RR Ratio: The risk-reward ratio is adjustable, allowing traders to manage the potential risk and return of each trade according to their risk tolerance.
- Average Length: This setting determines the period over which the moving average and volatility are calculated, affecting the sensitivity of the strategy to price movements.
- Visual Settings: Users can customize the appearance of the strategy on their charts, including the colors of the moving average and volatility lines, as well as the line width, enhancing chart readability and personal preference adherence.
Disclaimer
Trading involves significant risk, and it is crucial for traders to conduct their own due diligence before engaging with any strategy. The Inside Candle Breakout Strategy is presented for informational purposes only and does not constitute financial advice.
Periodic OHLHere is another experience on working with 'time' variable :)
This script generates potential support and resistance levels based on daily, weekly, and monthly open, high, and low prices. In such indicators, security calls produce effective results. However, similar tasks can also be performed by built-in variables. This script serves as an example of how alternative methods can be constructed.
The originality of the indicator is based on its ability to visualise the current open, high and low prices from the bar at which they occur. You can also display levels simultaneously.
I hope it helps everyone...
DISCLAIMER
This is just an indicator, nothing more. It is provided for informational and educational purposes exclusively. The utilization of this script does not constitute professional or financial advice. The user solely bears the responsibility for risks associated with script usage. Do not forget to manage your risk. And trade as safely as possible. Best of luck!
Market Structures Screener | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Market Structures Screener! This screener can provide information about the latest market structures in up to 5 tickers. You can also customize the styling of the screener.
Features of the new Market Structures Screener :
Find Latest Market Structures Across 5 Tickers
Break Of Structure (BOS)
Change of Character (CHoCH)
Change of Character+ (CHoCH+)
Customizable Algoritm / Styling
📌 HOW DOES IT WORK ?
Sometimes specific market structures form and break as the market fills buy & sell orders. Formed Change of Character (CHoCH) and Break of Structure (BOS) often mean that market will change direction, and they can be spotted by inspecting low & high pivot points of the chart.
This screener then finds market structures across 5 different tickers, and shows the latest information about them.
🚩UNIQUENESS
Formed market structures can be strong hints about the current direction and the state of the market, and our screener has the ability to detect Change Of Character structures of the market with higher sensitivity (CHoCH+), so you will miss less hints. This screener will then show the elapsed time of the found BOS, CHoCH and CHoCH+ structures.
⚙️SETTINGS
1. Tickers
You can set up to 5 tickers for the screener to scan market structures here. You can also enable / disable them and set their individual timeframes.
Auto-magnifier / quantifytools- Overview
Auto-magnifier shows a lower timeframe view of candles and volume bars inside any main timeframe candle by zooming into it. Candles and volume bars as they develop are shown chronologically from left to right. By default, magnifier is triggered when less than 3 candles are visible on the chart.
By default, 20 lower timeframe candles are displayed by splitting main timeframe into 20 parts. The amount of candles displayed is a target rate, meaning the script will use a lower timeframe that has the closest match to 20 candles and therefore will vary a bit. Users can override automatic timeframe calculation and opt in to display any specific lower timeframe or adjust amount of candles shown (e.g. 20 -> 30 candles) per each main timeframe candle.
Example
Main timeframe set to 30 minute, candles displayed set to 20 -> Magnifying using 2 minute candles (30 minute/20 candles = 1.5 min, rounded to 2 min)
Main timeframe set to 30 minute, override set to 5 minutes -> Displaying 5 minute candles
Size of volume bars is calculated using relative volume (volume relative to volume SMA20), lowest bar representing relative volume values of under or equal to 1x the moving average and from there onwards progressively growing.
- Limitations and considerations
Amount of candles shown might flow over from the background on smaller screen sizes, in which case you would want to decrease the amount shown. Opposite is true for bigger screens, this value can be increased as more candles fit.
This indicator involves a lot of tricks with text elements to make it work automatically by zooming in. Size of wicks, bodies and volume bars are calculated by adding more text elements on big candles and less text elements on smaller candles. This means the displayed candles won't be a 100% match, but a rather a fair representation of the view, e.g. candle is green = lower timeframe candle is green, candle has a big wick = lower timeframe candle has a big wick (but not a 100% match).
Example
Magnified lower timeframe chart vs. Actual lower timeframe chart
Most mismatch will be found on the price levels where lower timeframe candles are shown, which is sacrificed for the sake of getting a better readability on the overall shape of lower timeframe price action. Users can alternatively optimize calculations for more accuracy, giving a better representation of the price levels where candles truly originated. This typically comes with the cost of worse readability however.
Example
Optimized for readability vs. Optimized for accuracy
- Visuals
All visual elements are fully customizable.
ziksfx Structure - LiteInspired by the 'mentfx Structure' indicator created by Anton (mentfx) on TradingView, I have developed my own unique version of the market structure indicator, enhancing it with features that resonate with my personal trading style and offer additional insights into market behaviour.
In the spirit of Anton's original concept, my indicator incorporates the fundamental idea of "sells before buys" for bullish ranges and "buys before sells" for bearish ranges. This methodological approach is designed to mirror the activities of large market participants who typically offload positions before accumulating again in a bullish context, and accumulate before offloading in a bearish context.
The "ranges" displayed on the chart represent historical and updated highs and lows, reflecting the structural delivery of price across any timeframe. This approach assumes that in a bullish range, the market is likely to sustain upward momentum until it reaches a new high or experiences a significant "sell before buy" scenario, and conversely in a bearish range.
Key Enhancements and Features:
Immediate Break of Structure (BOS) Recognition: This feature promptly updates the high/low to the candle that triggers a BOS, providing a more agile response compared to the original mentfx Structure's approach of waiting for a swing high/low to set the range. This adaptation allows me for quicker adaptation to the market's unfolding narrative.
Market Stage Visualization: By seamlessly integrating with the structure tracking, my indicator presents the current 'Market Stage,' offering a clear stage of the current market's phase, which is crucial for informed trading decisions. The core methodology for determining market stages is derived from the foundational concepts established by mentfx.
Moving Average Integration: The inclusion of a Moving Average (MA) within the indicator adds a layer of trend confirmation, reinforcing decisions based on market structure with established trend analysis techniques. You can use EMA or SMA.
Customizable Session Settings: Tailor the indicator to focus on specific market hours, enhancing its utility for session-based trading strategies and backtesting efficiency.
Triple M: The Triple-M feature is also included in this indicator, which provides a visual representation of the market's momentum and potential reverse.
ATR: Utilizes the Average True Range (ATR) to estimate stop loss levels, providing a data-driven method to manage risk in accordance with current market volatility.
Watermark: Displays the name of the ticker and the current timeframe directly on the chart for easy reference, ensuring clarity and orientation when analyzing multiple instruments or timeframes.
How It Works:
When a range is assigned as being bullish, it will continue updating the high until a new high is created after the bos (= the new high of the range) and will not update or change until a candle's body, open's or close's above it - which will re-update the high and update the low. The low will be updated based on the last time price had a candle (open or closure) below a previous candle low, and then will find the lowest low after the rule was met to assign a low (the idea here is to locate the last major "sell before buy" and showcase that range. And this will occur vice versa, where: when a range is assigned as bearish, it will continue updating the low until a true low is created (=low of the range) and will not update or change until a candle's body, open's or close's below it - which will reupdate the low and update the high. The high will be updated based on the last time price had a candle (open or closure) above a previous candle high, and then will find the highest high after the rule was met to assign a high (once again, the idea being to locate the last major "buy before sell" and showcase price as existing in that range.)
A high is considered as a high that has a lower high to its left and to its right. And a low is considered as a low that has a higher low to its left and to its right. These high and low are used to determine the final high or low of a Bullish or Bearish range (respectively).
Range Determination: The indicator assesses the market momentum and assigns a Bullish or Bearish state based on the most recent directional break.
High/Low Rules Adaptation: In a Bullish range, indicator updates the high if a candle's body, not just the wick, exceeds the current high. This subtle yet significant change allows for a more conservative and potentially more accurate portrayal of bullish sentiment.
Dynamic Updating: As the market evolves, the indicator recalibrates the high and low lines based on the latest price movements, ensuring that you always have the most current and relevant data.
The indicator is not merely a trend-following or scalping tool. It leverages a distinct interpretation of market behavior, focusing on the last major "sell before buy" in Bullish ranges and "buy before sell" in Bearish ranges. By doing so, it aims to pinpoint the true sentiment behind price movements, offering traders a more grounded basis for anticipating market trends.
Of course, a special acknowledgment is due to Anton for his foundational work and the insightful knowledge he's giving day-by-day. The principles of his structure tracking method and market approach have significantly influenced the creation of this indicator, which now carries those insights forward, adapted through the lens of my personal trading philosophy.
Multi Time Frame Exponential Moving Average and dasboardThis Pine script, titled "Multi Time Frame Exponential Moving Average (MTF EMA)," provides an innovative approach for traders who wish to track trends across multiple timeframes without having to switch between different charts. It combines two main features: an indicator displaying exponential moving averages (EMA) on five different time periods, as well as a compact dashboard that synthesizes this information on a single chart window.
The originality of this script lies in its ability to provide a comprehensive analysis of EMA trends across different time intervals, allowing traders to quickly and clearly understand the market dynamics without having to navigate between multiple charts. Rather than switching from one chart to another to observe trends on different time scales, traders can now consult a single dashboard to obtain all the necessary information.
The script uses exponential moving averages (EMA) to identify trends over five time periods: 5 minutes, 15 minutes, 1 hour, 4 hours, and 1 day. The values of the EMAs are calculated based on the closing prices of candles. Bullish or bearish trends are indicated by upward or downward arrows respectively, making it easy to interpret the information on the dashboard.
To use this script, traders can simply add it to their chart on the TradingView platform. They can customize the parameters of the exponential moving averages according to their preferences and choose between a dark or light theme for the dashboard. Then, they can observe trends on different time scales directly on the dashboard, enabling them to make informed trading decisions.
In summary, this script offers a practical and innovative solution for tracking trends across multiple timeframes, combining the efficiency of exponential moving averages with the convenience of a dashboard centralized on a single chart. This allows traders to save time and stay informed about market movements effectively and efficiently.
[AlbaTherium] MTF Internal Ranges Analysis - IRA-Phoenix for SMCIntroduction:
The MTF Internal Ranges Analysis - IRA - Phoenix acts as an extension to the original main SMC Indicator by AlbaTherium . This add-on provides insights into multi-timeframe internal structure points, swing structure points, POIs (Points of Interest), and order blocks (OB). By integrating this enhancement, your multi-timeframe analyses become more streamlined, expediting the process and minimizing chart workload .
This tool represents an advanced smart money technical analysis aimed at enhancing your trading experience. It introduces four pivotal concepts:
Main Features:
Multiple Timeframes and Confluences,
SCOB Internal Order Block.
Demand to Supply (D2S) or Supply to Demand (S2D) across Multiple timeframes
SCOB on LTF and SCM on HTF across same Candle
By combining these concepts all in one, traders can find confluences zones across multiple timeframes and gain a comprehensive understanding of market dynamics, theses confluences zones empower order block skills and potentiality, showcasing them as essential, crucial, powerful, strategic, and pivotal, one of the pillars in smart money concepts trading strategy to make more informed decisions.
Settings Overview:
Select timeframe {Select or current chart}
Inside bar ranges
Internal structure as Internal zigzag {turn on/ off / unconfirmed(live) zigzag}
Single Candle Mitigation Pattern {turn on/ off / confirmed / unconfirmed}
Single Candle Order Block Pattern {turn on/ off / confirmed / unconfirmed}
Demands and Supplies (D&S) {turn on/ off / confirmed / unconfirmed}
OB Mitigation {touch/ extended}
Understanding the Features:
Chapter 1: Multiple Timeframes and Confluences
Our Multi-timeframe analysis approach enables traders to analyze market trends and volatility across different timeframes. Confluences, where signals align across multiple timeframes, provide strong indications for trading opportunities.
Practical Example:
- With MTF IRA - Phoenix , traders can seamlessly transition between different timeframes while maintaining a cohesive analysis. For instance, traders can monitor the M15, H1, or M5 charts while focusing on entry on the M1 timeframe, enabling a holistic view of market trends and opportunities .
Chapter 2: SCOB Internal Order Block across Multiple Timeframe
SCOB Internal Order Block (SCOB IOB) highlights critical zones in price action, showcasing the dominance of aggressive buyers or sellers on orders blocks. As confluences accumulate across multiple timeframes, the strength of the order block intensifies, presenting entry opportunities.
Practical Example:
You have the ability to detect zones where price ranges have formed; these areas are highly sought after for taking buying as well as selling positions, especially when these areas are reflected across 1 or 3 timeframes.
The only practical way to see theses confluences is to use this Indicator, see the example below
Chapter 03: Demand to Supply (D2S) or Supply to Demand (S2D) across Multiple timeframes
The Demand to Supply or Supply to Demand feature within MTF Internal Ranges Analysis - IRA - Phoenix offers a nuanced analysis of price action dynamics across various timeframes. By identifying shifts in supply and demand zones, traders gain valuable insights into market sentiment and potential price reversals.
This feature enables traders to anticipate changes in market direction by recognizing the interplay between demand and supply across different timeframes. By understanding how price reacts at key support and resistance levels, traders can make informed decisions and capitalize on emerging trends.
The Demand to Supply or Supply to Demand feature enhances the indicator's usefulness by providing traders with actionable information to navigate complex market conditions effectively. With this comprehensive analysis, traders can better manage risk and optimize trading strategies across multiple timeframes.
Real-world Example:
Chapter 04: SCOB on LTF and SCM on HTF across same Candle
with MTF Internal Ranges Analysis - IRA - Phoenix , explores the concepts of SCOB (Single Candle Order Block) on Lower Timeframes (LTF) and SCM (Single Candle Mitigation) on Higher Timeframes (HTF).
SCOB on LTF refers to the identification and analysis of single candle order blocks within shorter timeframes. These blocks represent critical price levels where significant buying or selling activity occurred within a single candlestick. By recognizing SCOB patterns, traders can pinpoint key areas of market interest and anticipate potential price movements.
On the other hand, SCM on HTF involves analyzing single candle mitigation entries within longer timeframes. This technique aims to capitalize on price reversals or shifts in market sentiment indicated by single candlestick patterns. By incorporating SCM analysis, traders can gain insights into broader market trends and make strategic trading decisions accordingly.
the intricacies of SCOB on LTF and SCM on HTF, offering traders valuable tools to enhance their analysis and decision-making processes across different timeframes. Through a comprehensive understanding of these concepts, traders can identify high-probability trading opportunities and navigate the markets with confidence.
Real-world Example:
SCOB on M5 and SCM on M15 generate a powerful order block.
Conclusion:
MTF Internal Ranges Analysis - IRA - Phoenix for Smart Money Concepts is a valuable asset for traders seeking to add more insights in today's dynamic markets especially for Intraday Traders. By focusing on concepts like "Multiple timeframes and Confluences, with one single timeframe u can analyze all timeframes", "SCOB Internal Order Block. With its innovative features and user-friendly interface, whether you're a seasoned trader or just starting your journey, MTF IRA - Phoenix can help you navigate through the complexities of price action and make more informed trading choices.
This document provides an extensive overview of MTF Internal Ranges Analysis - IRA - Phoenix, emphasizing its importance in comprehending market dynamics and utilizing essential smart money concepts trading principles.
Liquidity Grab Screener | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Liquidity Grab Screener! This screener can provide information about the latest liquidity grabs in up to 5 tickers. You can also customize the algorithm that finds the liquidity grabs and the styling of the screener.
Features of the new Liquidity Grab Screener :
Find Latest Liquidity Grabs Accross 5 Tickers
Price, Size, Status Information
Customizable Algoritm / Styling
📌 HOW DOES IT WORK ?
Liquidity grabs occur when one of the latest pivots has a false breakout. Then, if the wick to body ratio of the bar is higher than 0.5 (can be changed from the settings) a bubble is plotted.
The bubble size is determined by the wick to body ratio of the candle.
This screener then finds liquidity grabs accross 5 different tickers, and shows the latest information about them.
Price -> The price when the liquidity grab happened.
Size -> Size of the liquidity grab, determined by the wick-body ratio.
Status -> Shows the elapsed time of the liquidity grab.
🚩UNIQUENESS
Liquidity grabs can be useful when determining candles that have executed a lot of market orders, and planning your trades accordingly. This screener will find liquidity grabs from up to 5 tickers and give information about their price, size and status. The screener also lets you customize the pivot length and the wick-body ratio for liquidity grabs.
⚙️SETTINGS
1. Tickers
You can set up to 5 tickers for the screener to scan order blocks here. You can also enable / disable them and set their individual timeframes.
2. General Configuration
Pivot Length -> This setting determines the range of the pivots. This means a candle has to have the highest / lowest wick of the previous X bars and the next X bars to become a high / low pivot.
Wick-Body Ratio -> After a pivot has a false breakout, the wick-body ratio of the latest candle is tested. The resulting ratio must be higher than this setting for it to be considered as a liquidity grab.
MTF Trend Truth [Hubka]A Multi Time Frame Tend table that displays symbols trends for 6 selectable Time Intervals. In addition to the 6 first row color trends, the table also displays the direction of the last 2 candles in each Time Interval in the last 2 rows. This extra interval information displays price trend direction change or may add confluence if the price direction is the same.
The top row of the table has column header names described below:
(TL30) Column 1 - Trend Interval + The Trend Length selected (30 is default). Uses the last 30 candles to determine the trend for this interval. The length number is Editable.
(LCC) Column 2 - Last Closed Candle. This is the direction color of the second last candle on the chart.
(LOC) Column 3 - Last Open Candle. The is the current candle color direction of the last candle on the chart. This candle has not yet closed and will flicker as price changing state.
NOTE 1: (LOC) Column 3 - Last Open Candle - only displays correctly when the market is open and price is changing.
You can adjust the "Trend Length in Candles" which defaults to using the trend of the last 30 candles (TL30). Edit this setting to use any number from 5 to 99 candles back if you want display different trend lengths.
Having a visual table of the price trends from different time intervals can be beneficial to traders. For example... When observing that a symbol has many Bullish (green) price trends on several time intervals and the last 2 candles are also bullish it should afford a trader confluence to trade in that same bullish direction. However I am not a professional and do not offer any trading advice in any way. Use this indicator at your own risk.
NOTE 2: Time interval of 240 = 4 hours. Below 1 day number only is minutes.
[KVA] Custom Sessions Custom Sessions: Multi-Timeframe Analysis & Key Level Insights
Introduction:
Introducing " Custom Sessions," an innovative Pine Script indicator meticulously crafted to empower traders by offering an advanced level of analysis on various global trading sessions. This tool is designed not just to highlight trading sessions but to delve deeper into the nuances of market movements by analyzing candlestick behavior within those sessions, offering a nuanced view of market trends, liquidity, and potential turning points.
Core Features :
Session Customization : Tailor trading sessions to align with your strategy, focusing on the markets that matter most to you. Whether it's London, New York, Tokyo, Sydney, or Frankfurt, you have the control.
Enhanced Market Insight : Beyond session timing, gain a refined understanding of market dynamics through detailed candlestick analysis within each session, providing a granular view of price action.
Comprehensive Analysis Tools : Alongside session analysis, the indicator includes features like VWAP (Volume Weighted Average Price) and Fibonacci retracement levels, offering a multifaceted approach to market analysis across chosen timeframes.
VWAP : Gain insights into the market's trend and liquidity by viewing the Volume Weighted Average Price calculated for the custom timeframe.
Fibonacci Retracement Levels : Easily identify potential reversal points with automatically plotted Fibonacci levels at 0.236, 0.382, 0.5, 0.618, and 0.782for each candle
Real-Time Updates : As the market moves, so does " Custom Sessions," offering real-time insights that adapt to the unfolding market conditions.
Utilization Guide :
Configure Your Sessions : Begin by setting up the sessions that are most relevant to your trading approach, customizing their times as needed.
Select the Desired Timeframe : Input your preferred higher timeframe to analyze data that is most relevant to your trading strategy.
Dive into the Details : Use the detailed candlestick analysis within sessions to pinpoint potential entry and exit points, supported by VWAP and Fibonacci levels for deeper market insight.
Customize Your View : Adjust the visual aspects of the indicator, including session color coding and which elements to display, tailoring the tool to your preferences.
Acknowledgements :
A special thanks to Aurocks_AIF for their foundational work on "Sessions on Chart" . This project has been an invaluable resource, inspiring the development of " Custom Sessions" and pushing the boundaries of traditional session analysis.
Final Thoughts :
" Custom Sessions" is more than just an indicator; it's a comprehensive analysis tool that brings a new depth to the understanding of market sessions. By offering detailed insights into the behavior of candles within these sessions, along with essential analysis features, this indicator is a must-have for traders seeking to enhance their technical analysis arsenal.
Whether you're a day trader looking to capture short-term movements or a long-term investor seeking broader market insights, this indicator offers valuable data visualization to enhance your trading decisions. By integrating highs, lows, VWAP, and Fibonacci levels into your analysis, you gain a comprehensive view of market behavior across different timeframes and sessions
Candle DecompositionThe Candle Decomposition indicator shows the last 2 candles in detail, with 2 levels of lower timeframes (LTF).
In this way, you can keep oversight of history, while zooming in on the last and previous candle.
This tool is meant to be used in realtime, preferentially for intraday usage.
🔶 USAGE
In this example, on the current timeframe of 15 minutes, you see the 2 latest candles, visualized through dotted lines/boxes.
The first LTF level is set at 5 minutes, the second level at 15 seconds:
(The 2 exclamation marks are just to emphasize this is the latest price which will be repainted)
The combination of 2 LTF's can be helpful in finding support/resistance levels.
These are taken in realtime, not in bar replay, so the outcome wasn't known in advance:
(blue lines were drawn manually)
After first testing resistance, the price went to the support area, bouncing back to an area of resistance and breaking it briefly.
Price turned back, and found support, after which resistance was tested once more:
Support was again tested, after which resistance was clearly broken:
A bit later (every time 1 candle further):
The following example shows 2 last candles with signs of indecision, but LTF candles show support and resistance areas:
🔶 IMPORTANT
PP = TradingView Premium / Professional Plan
BEP = TradingView Basic / Essential / Plus Plan
This publication uses second-based TF's, which is only available for PP users.
To ensure a smooth experience for BEP users, we have disabled the setting "Premium/Professional Plan" .
BEP users will get a warning when trying to use a second-based TF.
If possible, BEP users should use non-second-based TF's.
PP users have to enable the setting "Premium/Professional Plan" .
🔶 DETAILS
🔹 Timeframes
Most common timeframes can be used: 2W, W, 3D, 2D, D, 12h, 8h, 6h, 4h, 3h, 2h, 1h, 30min, 15min, 10min, 5min, 3min, 1min
When having the current chart timeframe at 1 of these TF's, you can set 1st and 2nd LTF. Choices are pré-set to ensure maximum usage of drawings:
In the image above you'll see there are gaps between candles.
The script ensures that when there are no trades, instead of attaching the next bar next to the previous, it leaves the gap visible (which is more realistic).
More in detail you can see the gaps are preserved:
(compared between white -current TF- candles, and LTF candles)
🔹 Limitations
When on a Weekly TF, and 2nd LTF is set at 4h, all drawings have enough space:
If we change the 2nd LTF to 2h, there isn't enough space for the second last candle, after which an orange coloured informational warning label will be shown:
When current chart TF is not 1 of the encoded TF's, a red warning text will be shown:
This script can be used using "Bar Replay", but very limited.
You can change the date ("Jump To..."), but "Play" is not advisable.
🔹 Code
This script uses string manipulation to convert inputs like "1 hour", "5 min", "5 sec" to usable timeframe strings like "60", "5" and "5S"
• str.contains(str , 'hour') ? str.tostring(str.tonumber(str.replace(str, ' hour', '')) * 60) : str
• str.replace(input.string( '5 sec', '' , options= ), " sec", "S")
• str.replace(str, " min", "")
Since string manipulation consumes resources, these are place in local blocks.
While inputs always will be extracted, whether it is put in an if-block or not, the string manipulation only will be executed when condition is fulfilled, in this case when we are at the right timeframe.
In following example you'll always see the '1 sec' input, on every TF, but the string manipulation will only happen when we are at a 1 minute TF:
str = ''
if timeframe.period == '1'
str := str.replace(input.string( '1 sec', '' , options= ), " sec", "S")
// output -> "5S" or "1S"
The "visible chart function" chart.right_visible_bar_time is used to reset everything when a new candle starts. This makes sure that when using "barstate.islastconfirmedhistory", the second last bar is used. Also all lines & boxes are automatically removed, starting with a fresh slate.
chT = timenow > chart.right_visible_bar_time
•••
if chT
if barstate.islastconfirmedhistory
f(4)
if barstate.islast
f(2)
If boxes/lines end up before the first bar, or after the last bar, this can be messy.
To protect ourselves against it 2 techniques are used:
math.max(0, x) is used to make sure lines & boxes don't end up before the first bar,
isOK = index < last_bar_index is used to be sure that the width of 1 candle (here index) is not wider than the total of all bars (which is the same as last_bar_index)
🔶 SETTINGS
3 columns:
Current TF: This columns shows you the chart TF where LTF settings are applicable.
1st LTF: set the timeframe of the first level LTF
2nd LTF: set the timeframe of the second level LTF
Colours can be set for 3 timeframes