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
Multitimeframe
Ceres Trader MTF Triple EMA with SmoothingDescription:
The "Ceres Trader MTF EMA with Smoothing" indicator is a versatile tool designed for traders who rely on Exponential Moving Averages (EMAs) for their technical analysis. This indicator uniquely blends the concept of EMAs with customizable smoothing techniques, enhancing the clarity and interpretability of moving average lines on your charts.
Features:
Triple EMA Visualization: Visualize three distinct EMAs on your chart, each customizable in terms of length, timeframe, and color. This triple-layer approach allows for a comprehensive view of price trends across different time periods.
User-defined EMA Lengths: Set the lengths of all three EMAs according to your trading strategy. The default length is set at 20 bars, but this can be easily adjusted to suit different trading styles and timeframes.
Flexible Timeframes: Each EMA can be plotted based on different timeframes, providing a multi-timeframe analysis within a single chart view.
Smoothing Techniques: Choose from five different smoothing methods (SMA, EMA, SMMA, WMA, VWMA) to refine the EMA lines. This feature reduces market “noise” and helps in identifying the true underlying trends.
Enhanced Smoothing for Longer Timeframes: The indicator applies an advanced double smoothing technique to the EMA of the longest timeframe, offering an even smoother line that is beneficial for long-term trend analysis.
Customizable Aesthetics: Personalize the appearance of each EMA line with a selection of colors, enhancing visual differentiation and readability.
Benefits:
Versatility: Suitable for various trading styles, including swing trading, day trading, and long-term trend following.
Clarity in Trend Analysis: The smoothing techniques help in filtering out market noise, making it easier to identify meaningful trends.
Multi-Timeframe Analysis: The ability to view EMAs from different timeframes simultaneously offers a comprehensive analysis, saving time and enhancing decision-making.
Ideal for: Traders looking for a customizable and insightful way to use EMAs in their market analysis. Whether you are a beginner or an experienced trader, this indicator's flexibility and depth can add significant value to your technical analysis toolkit.
BUY/SELL RSI FLIUX v1.0The "BUY/SELL RSI FLUX v1.0" indicator is designed to provide buy and sell signals based on the RSI (Relative Strength Index) and price action in relation to support and resistance levels. It overlays directly on the price chart and includes the following components:
- Support and Resistance Levels: Determined over a specified number of bars (lengthSR), these levels represent potential barriers where price action may stall or reverse.
- ATR (Average True Range): Used to measure market volatility. While it's calculated in the script, it's not visualized on the chart as per the latest modification.
- RSI: The RSI is calculated over a defined period (lengthRSI) and is used to identify overbought or oversold conditions. Buy signals are generated when the RSI is below the oversold threshold (rsiOversold) and the price is above the support level. Conversely, sell signals occur when the RSI is above the overbought threshold (rsiOverbought), the price is below the resistance level, and additionally, the price is below a long-term moving average, which acts as a trend filter.
- Long-Term Moving Average: This moving average is plotted to help identify the prevailing market trend. Sell signals are filtered based on the price's position in relation to this moving average.
- Buy/Sell Signals: Visual representations in the form of shapes are plotted below (for buy) or above (for sell) the price bars to indicate potential entry points.
By combining these elements, the indicator aims to provide high-probability trading signals that align with both the market's momentum and trend.
Vwap MTFExplanatory Note: VWAP Multi-Timeframe Script (Dedicated to Intraday Trading)
Description:
This Pine script has been specifically designed for intraday traders to display the VWAP (Volume Weighted Average Price) from four different timeframes (15 minutes, 1 hour, 4 hours, and daily) on a single TradingView chart. The VWAP is calculated by considering the volume-weighted average price over a specified period, providing a perspective on the market's average value. This script streamlines your analysis by avoiding the need to navigate through multiple timeframes to identify the trend.
Usage Instructions:
Apply the script to your TradingView chart.
The script will showcase the average VWAP for 15 minutes, 1 hour, 4 hours, and daily on the current chart.
The color of the VWAP indicates the direction: blue if the VWAP is higher than the previous period, red otherwise.
Parameters:
VWAP Period Length (length): The length of the period used for VWAP calculation. By default, the length is set to 30 bars.
Explanation of VWAP: "This VWAP will be more precise for your analysis and closer to price/volume."
VWAP is a crucial indicator for intraday traders, taking into account transaction volume. It provides a volume-weighted average price over a specified period, assisting traders in evaluating the average value at which an asset has been traded throughout the day. "It can be wise for the self-directed investor to use VWAP in combination with moving averages or other technical indicators to confirm buy and sell signals."
You have the option to change the colors.
Dope DPOThe "Dope DPO" (DDPO) indicator is a technical analysis tool designed for traders to identify trends and potential trend changes in the market. It's based on the concept of the Detrended Price Oscillator (DPO), but with several enhancements for greater versatility and user customization.
Key Features of the Dope DPO Indicator:
Averaging Multiple Periods: The indicator averages the DPO calculations over ten different time periods. This averaging helps in smoothing out the volatility and providing a more comprehensive view of the market trend.
Customizable Smoothing: Users can choose the length of the smoothing as well as the type of moving average (SMA, EMA, WMA, or RMA) for smoothing. This allows for flexibility in how the indicator responds to price changes.
Trend Change Detection: The indicator includes a feature to detect changes in the market trend. It does this by comparing the current value of the smoothed DPO to its value a specified number of bars back. This helps in identifying potential reversals or shifts in momentum.
Dynamic Color Coding: The indicator uses color coding (green and red) to visually represent the trend direction. If the smoothed DPO is trending upwards compared to a previous value, the color will be green, indicating bullish momentum. Conversely, a red color signifies bearish momentum.
Horizontal Reference Lines: It includes horizontal lines at specific levels (overbought, zero, and oversold) to provide reference points for interpreting the indicator's values.
Usage:
Traders can use the Dope DPO to gauge the overall market trend and to look for potential entry and exit points based on trend changes.
The color-coded histogram makes it easy to spot when the trend might be reversing, which can be particularly useful in conjunction with other technical analysis tools.
The flexibility in choosing the smoothing method and length allows traders to tailor the indicator to different trading styles and timeframes.
Dual_MACD_trendingINFO:
This indicator is useful for trending assets, as my preference is for low-frequency trading, thus using BTCUSD on 1D/1W chart
In the current implementation I find two possible use cases for the indicator:
- as a stand-alone indicator on the chart which can also fire alerts that can help to determine if we want to manually enter/exit trades based on the signals from it (1D/1W is good for non-automated trading)
- can be used to connect to the Signal input of the TTS (TempalteTradingStrategy) by jason5480 in order to backtest it, thus effectively turning it into a strategy (instructions below in TTS CONNECTIVITY section)
Trading period can be selected from the indicator itself to limit to more interesting periods.
Arrow indications are drawn on the chart to indicate the trading conditions met in the script - light green for HTF crossover, dark green for LTF crossover and orange for LTF crossunder.
Note that the indicator performs best in trending assets and markets, and it is advisable to use additional indicators to filter the trading conditions when market/asset is expected to move sideways.
DETAILS:
It uses a couple of MACD indicators - one from the current timeframe and one from a higher timeframe, as the crossover/crossunder cases of the MACD line and the signal line indicate the potential entry/exit points.
The strategy has the following flow:
- If the weekly MACD is positive (MACD line is over the signal line) we have a trading window.
- If we have a trading window, we buy when the daily macd line crosses AND closes above the signal line.
- If we are in a position, we await the daily MACD to cross AND close under the signal line, and only then place a stop loss under the wick of that closing candle.
The user can select both the higher (HTF) and lower (LTF) timeframes. Preferably the lower timeframe should be the one that the Chart is on for better visualization.
If one to decide to use the indicator as a strategy, it implements the following buy and sell criterias, which are feed to the TTS, but can be also manually managed via adding alerts from this indicator.
Since usually the LTF is preceeding the crossover compared to the HTF, then my interpretation of the strategy and flow that it follows is allowing two different ways to enter a trade:
- crossover (and bar close) of the macd over the signal line in the HIGH TIMEFRAME (no need to look at the LOWER TIMEFRMAE)
- crossover (and bar close) of the macd over the signal line in the LOW TIMEFRAME, as in this case we need to check also that the macd line is over the signal line for the HIGH TIMEFRAME as well (like a regime filter)
The exit of the trade is based on the lower timeframe MACD only, as we create a stop loss equal to the lower wick of the bar, once the macd line crosses below the signal line on that timeframe
SETTINGS:
All of the indicator's settings are for the vanilla/general case.
User can set all of the MACD parameters for both the higher and lower (current) timeframes, currently left to default of the MACD stand-alone indicator itself.
The start-end date is a time filter that can be extermely usefull when backtesting different time periods.
TTS SETTINGS (NEEDED IF USED TO BACKTEST WITH TTS)
The TempalteTradingStrategy is a strategy script developed in Pine by jason5480, which I recommend for quick turn-around of testing different ideas on a proven and tested framework
I cannot give enough credit to the developer for the efforts put in building of the infrastructure, so I advice everyone that wants to use it first to get familiar with the concept and by checking
by checking jason5480's profile www.tradingview.com
The TTS itself is extremely functional and have a lot of properties, so its functionality is beyond the scope of the current script -
Again, I strongly recommend to be thoroughly epxlored by everyone that plans on using it.
In the nutshell it is a script that can be feed with buy/sell signals from an external indicator script and based on many configuration options it can determine how to execute the trades.
The TTS has many settings that can be applied, so below I will cover only the ones that differ from the default ones, at least according to my testing - do your own research, you may find something even better :)
The current/latest version that I've been using as of writing and testing this script is TTSv48
Settings which differ from the default ones:
- from - False (time filter is from the indicator script itself)
- Deal Conditions Mode - External (take enter/exit conditions from an external script)
- 🔌Signal 🛈➡ - Dual_MACD: 🔌Signal to TTSv48 (this is the output from the indicator script, according to the TTS convention)
- Sat/Sun - true (for crypto, in order to trade 24/7)
- Order Type - STOP (perform stop order)
- Distance Method - HHLL (HigherHighLowerLow - in order to set the SL according to the strategy definition from above)
The next are just personal preferenes, you can feel free to experiment according to your trading style
- Take Profit Targets - 0 (either 100% in or out, no incremental stepping in or out of positions)
- Dist Mul|Len Long/Short- 10 (make sure that we don't close on profitable trades by any reason)
- Quantity Method - EQUITY (personal backtesting preference is to consider each backtest as a separate portfolio, so determine the position size by 100% of the allocated equity size)
- Equity % - 100 (note above)
EXAMPLES:
If used as a stand-alone indicator, the green arrows on the bottom will represent:
- light green - MACD line crossover signal line in the HTF
- darker green - MACD line crossover signal line in the LTF
- orange - MACD line crossunder signal line in the LTF
I recommend enabling the alerts from the script to cover those cases.
If used as an input to the TTS, we'll get more decorations on the chart from the TTS itself.
In the example below we open a trade on the next day of LTF crossover, then a few days later a crossunder in the LTF occurs, so we set a SL at the low of the wick of this day. Few days later the price doesn't recover and hits that SL, so the position is closed.
High and low of last D, W, 4W and quaterThis script shows you the Highs and Lows from multiple candels from some different timeframes. They are the 1D, 1W, 4W (a month basically), and 3M (a quater). The indicator offery you many customization option to make it look how you like it best
Smooth Trail V2Please, enjoy your new game-changing tradingview indicator, may I present to you: the Smooth Trail (second version), with an updated script and open source script to let anyone use it freely.
The Smooth Trail is an indicator that works just like a super trend, but it has a completely different usage and potential.
The super trend works by following the price and displaying a line that uses the ATR to determine how far it has to be from the actual price, and many new traders like to use the indicator thanks to its easy readability and the buy-sell signals that it shows, unfortunately, this is not the best usage of the indicator and it often leads to losing money on the markets.
The main characteristic that this indicator has is that, not like the normal super trend, it follows the trend better adapting itself in the retracement phases.
The second feature that dictates the best usage of this indicator, is that it shows a zone in which to buy or sell to have the best risk-to-reward ratio.
The indicator also works as the dynamic level of support and resistance and can be used best for trend-following strategies to maximize profits.
The first input, the multiplier, is used to determine how many times the ATR has to be added or subtracted in order to plot the indicator.
The second input, the length, is used to determine how many candles the indicator and the ATR have to consider for the calculation.
The third and last input, the zone width, is used to calculate the width of the zone displayed by the indicator, and is the factor that will be multiplied by the ATR, this means that if you leave the settings as default, the zone will be 1 ATR or 34 candle width.
This indicator is great to use in confluence with other indicators or with various candlestick patterns.
Multi-TrendMulti-Trend is an indicator that simplifies the task of tracking market trends across up to 10 custom timeframes. With the flexibility to select your preferred timeframes, with current or any specific data in past, this indicator offers a clear visual representation of the market's direction.
For each chosen timeframe and history, Multi-Trend provides a straightforward arrow-based signal system: an upward arrow signifies a rising market, a downward arrow indicates a falling market, and a right arrow denotes a market at equilibrium. These default symbols can be effortlessly personalized to your choice of symbols or text, allowing you to tailor the indicator to your specific needs.
The trend direction is calculated using a reliable methodology based on the percentage change in the close price for the selected timeframe.
HDBhagat multi time frame box analysis
Title: Multi-Timeframe Box Analysis Indicator
Description:
The Multi-Timeframe Box Analysis Indicator is a powerful tool designed for use on the TradingView platform. It provides a visual representation of price movements across multiple timeframes, allowing traders to gain insights into potential trend changes and key support/resistance levels.
Key Features:
Multi-Timeframe Analysis: The indicator analyzes price data across different timeframes (1W, 1D, 4H, and 1H) simultaneously, providing a comprehensive view of market trends.
Box Visualization: The indicator represents price movements within each timeframe as colored boxes. Green boxes indicate bullish price action, while red boxes represent bearish movements.
Customizable Settings: Traders can easily adjust the input parameters to suit their specific trading preferences, including timeframe selection and box appearance settings.
Historical and Real-Time Updates: The indicator updates in real-time, ensuring that traders have access to the latest information. It also accounts for historical data to provide context for past price movements.
How to Use:
Apply the Multi-Timeframe Box Analysis Indicator to your TradingView chart.
Customize the indicator settings according to your preferred timeframes and visual preferences.
Observe the boxes on the chart to identify trends, potential reversals, and key support/resistance levels.
Use the information provided by the indicator to make informed trading decisions.
Disclaimer:
This indicator is a visual representation of historical and real-time price movements and is intended for informational purposes only. It does not guarantee future performance or trading success. Traders should conduct their own analysis and consider additional factors before making any trading decisions.
Note: Past performance is not indicative of future results. Always use proper risk management and consider consulting a financial advisor before making any trading decisions.
ICT Silver Bullet with signals
The "ICT Silver Bullet with signals" indicator (inspired from the lectures of "The Inner Circle Trader" (ICT)),
goes a step further than the ICT Silver Bullet publication, which I made for LuxAlgo :
• uses HTF candles
• instant drawing of Support & Resistance (S/R) lines when price retraces into FVG
• NWOG - NDOG S/R lines
• signals
The Silver Bullet (SB) window which is a specific 1-hour interval where a Fair Value Gap (FVG) pattern can be formed.
When price goes back to the FVG, without breaking it, Support & Resistance lines will be drawn immediately.
There are 3 different Silver Bullet windows (New York local time):
The London Open Silver Bullet (03 AM — 04 AM ~ 03:00 — 04:00)
The AM Session Silver Bullet (10 AM — 11 AM ~ 10:00 — 11:00)
The PM Session Silver Bullet (02 PM — 03 PM ~ 14:00 — 15:00)
🔶 USAGE
This technique can visualise potential support/resistance lines, which can be used as targets.
The script contains 2 main components:
• forming of a Fair Value Gap (FVG)
• drawing support/resistance (S/R) lines
🔹 Forming of FVG
When HTF candles forms an FVG, the FVG will be drawn at the end (close) of the last HTF candle.
To make it easier to visualise the 2 HTF candles that form the FVG, you can enable
• SHOW -> HTF candles
During the SB session, when a FVG is broken, the FVG will be removed, together with its S/R lines.
The same goes if price did not retrace into FVG at the last bar of the SB session
Only exception is when "Remove broken FVG's" is disabled.
In this case a FVG can be broken, as long as price bounces back before the end of the SB session, it will remain to be visible:
🔹 Drawing support/resistance lines
S/R target lines are drawn immediately when price retraces into the FVG.
They will remain updated until they are broken (target hit)
Potential S/R lines are formed by:
• previous swings (swing settings (left-right)
• New Week Opening Gap (NWOG): close on Friday - weekly open
• New Day Opening Gap (NWOG): close previous day - current daily open
Only non-broken lines are included.
Broken =
• minimum of open and close below potential S/R line
• maximum of open and close above potential S/R line
NDOG lines are coloured fuchsia (as in the ICT lectures), NWOG are coloured white (darkmode) or black (lightmode ~ ICT lectures)
Swing line colour can be set as desired.
Here S/R includes NDOG lines:
The same situation, with "Extend Target-lines to their source" enabled:
Here with NWOG lines:
This publication contains a "Minimum Trade Framework (mTFW)", which represents the best-case expected price delivery, this is not your actual trade entry - exit range.
• 40 ticks for index futures or indices
• 15 pips for Forex pairs
The minimum distance (if applicable) can be shown by enabling "Show" - "Minimum Trade Framework" -> blue arrow from close to mTFW
Potential S/R lines needs to be higher (bullish) or lower (bearish) than mTFW.
🔶 SETTINGS
(check USAGE for deeper insights and explanation)
🔹 Only last x bars: when enabled, the script will do most of the calculations at these last x candles, potentially this can speeds calculations.
🔹 Swing settings (left-right): Sets the length, which will set the lookback period/sensitivity of the ZigZag patterns (which directs the trend and points for S/R lines)
🔹 FVG
HTF (minutes): 1-15 minutes.
• When the chart TF is equal of higher, calculations are based on current TF.
• Chart TF > 15 minutes will give the warning: "Please use a timeframe <= 15 minutes".
Remove broken FVG's: when enabled the script will remove FVG (+ associated S/R lines) immediately when FVG is broken at opposite direction.
FVG's still will be automatically removed at the end of the SB session, when there is no retrace, together with associated S/R lines,...
~ trend: Only include FVG in the same direction as the current trend
Note -> when set 'right' (swing setting) rather high ( > 3), he trend change will be delayed as well (default 'right' max 5)
Extend: extend FVG to max right side of SB session
🔹 Targets – support/resistance
Extend Target-lines to their source: extend lines to their origin
Colours (Swing S/R lines)
🔹 Show
SB session: show lines and labels of SB session (+ colour)
• Labels can be disabled separately in the 'Style' section, colour is set at the 'Inputs' section
Trend : Show trend (ZigZag, coloured ~ trend)
HTF candles: Show the 2 HTF candles that form the FVG
Minimum Trade Framework: blue arrow (if applicable)
🔶 ALERTS
There are 4 signals provided (bullish/bearish):
FVG Formed
FVG Retrace
Target reached
FVG cancelled
You can choose between dynamic alerts - only 1 alert needs to be set for all signals, or you can set specific alerts as desired.
💜 PURPLE BARS 😈
• Since TradingView has chosen to give away our precious Purple coloured Wizard Badge, bars are coloured purple 😊😉
Week designationThe script is primarily used for visualizing the beginning and end of the week. It is particularly helpful when working with time intervals shorter than one day. In a very simple and clear manner, you can see when a specific week has started. This makes it easier to assess the market sentiment in a short timeframe.
Here are the operating principles of this script:
Initialization:
The script begins with initialization, where basic parameters and settings such as line colors and line style are defined.
Determining the Session Start:
The startSession(hour, minute) function is used to calculate the starting time of a session on the chart. Sessions can be divided into different time intervals, such as the daily session (D), weekly session (W), and monthly session (M).
Checking for Session Start:
The script checks if a new session is starting. If so, a vertical line is inserted on the chart to mark the beginning of that session.
isSessionStart checks for the start of the daily session.
isSessionStart_2 checks for the start of the weekly session.
isSessionStart_3 checks for the start of the monthly session.
Marking Mondays:
The script checks if the current day is Monday (the day of the week number 2 represents Monday).
If the current session is starting or it is Monday, a vertical line is inserted on the chart with the day designation (color color_day).
Marking Lines on the Chart:
The lines inserted on the chart are vertical and have a specified style and color, which can be customized in the settings.
Top/Bottom DetectorThis indicator tries to detect tops and bottoms based on time and price. It counts candles using a simple criteria in both bullish and bearish directions. The count is added by 1 for each consecutive candle that matches this criteria. When a candle doesn't match the criteria the count is broken and will start over. A top or bottom is detected when the count reaches its maximum and is plotted on the chart as a red arrow (top) or a green arrow (bottom). Be aware that a top or bottom can be extended for several time periods and is broken only when the criteria no longer matches. Depending on your trading strategy, it can be advised to wait for the top/bottom to be broken before entering the trade.
How it works
The bullish count compares current candle with a candle X periods in the past. If the current candle price is higher than the past candle it matches and the count is added by 1. The bearish count works in the same way as the bullish count except that it matches if the current candle price is lower than the past candle instead of higher. The default parameters is to compare current candle close with the candle close 4 periods in the past, using a count of 9 as the maximum that detects a top or bottom. These values can all be adjusted in the settings.
Multi Timeframe Table
The multi timeframe table is visible by default in the top right corner. It gives some insight in what the count is for the current ticker in different timeframes. A bullish count will color the cell green and a bearish count red. Note that only timeframes higher or equal to what is used on the chart can be displayed. Any lower timeframes in the table will be grayed out and show the text N/A.
Alerts
Alerts can be setup when a bottom or top is detected. Using the "Any alert() function call" condition will alert both bottoms and tops.
Monthly beta (5Y monthly) with multi-timeframe supportThe PROPER way to calculate beta for a stock using monthly price returns . None of this nonsense using daily returns and sliding windows as done by other scripts...
Works on any timeframe.
This script has been checked against 100s of stocks on Yahoo finance and Zacks research data and matches 100% (some rounding error as this script is kept updated live on unconfirmed monthly bars).
You can check for yourself:
Zacks fundamentals - beta
The script calculates beta using the Variance-Covariance Method as described on Investopedia
How to calculate Beta
Panoramic EMA - Multi TimeframePanoramic EMA - Multi Timeframe
This indicator provides a straightforward visualization of Exponential Moving Averages (EMAs) from multiple timeframes simultaneously. This indicator allows traders to customize the display of EMAs, making it easier to identify and analyze trends and potential support or resistance levels across different periods.
Settings:
EMA Lengths: Customize up to five EMA lengths. Activating a length will display its EMA line on the chart for the selected timeframes.
Timeframes Selection: Choose up to four different timeframes to display the EMAs. This lets you observe how EMAs behave on various scales from a single chart.
Interpretation:
Utilize the EMAs as potential zones of dynamic support or resistance.
Observe the relationship between price action and EMAs across different timeframes to gauge market sentiment and identify trend consistency or potential shifts.
This tool is designed to offer visual clues about the market state through the behavior of EMAs. It does not generate direct buy or sell signals. It is recommended to understand how the assets you are trading interact with EMAs. For instance, in our example below, Bitcoin demonstrates a tendency to interact with the 800 and 200-length EMAs on the 4-hour timeframe, providing areas where price rejections may occur:
Note: This is a utility-focused indicator meant to supplement your market analysis and should be used in conjunction with other analysis methods or indicators for the best results.
10x Bull Vs. Bear VP Intraday Sessions [Kioseff Trading]Hello!
This script "10x Bull Vs. Bear VP Intraday Sessions" lets the user configure up to 10 session ranges for Bull Vs. Bear volume profiles!
Features
Up To 10 Fixed Ranges!
Volume Profile Anchored to Fixed Range
Delta Ladder Anchored to Range
Bull vs Bear Profiles!
Standard Poc and Value Area Lines, in Addition to Separated POCs and Value Area Lines for Bull Profiles and Bear Profiles
Configurable Value Area Target
Up to 2000 Profile Rows per Visible Range
Stylistic Options for Profiles
This script generates Bull vs. Bear volume profiles for up to 10 fixed ranges!
Up to 2000 volume profile levels (price levels) Can be calculated for each profile, thanks to the new polyline feature, allowing for less aggregation / more precision of volume at price and volume delta.
Bull vs Bear Profiles
The image above shows primary functionality!
Green profiles = buying volume
Red profiles = selling volume
All colors are configurable.
Bullish & bearish POC + value areas for each fixed range are displayable!
That’s about it :D
This indicator is part of a series titled “Bull vs. Bear”.
If you have any suggestions please feel free to share!
Anticipated Profit Targets (APT)Anticipated Profit Targets (APT)
Purpose:
The Anticipated Profit Targets script is a specialized tool designed to assist traders in visualizing potential exit points for their trades. This is achieved by leveraging the Average True Range (ATR), a renowned measure of market volatility.
How It Works:
ATR Computations: At its core, the script calculates the ATR based on a user-defined number of periods. The ATR captures the range between the high and low prices of an asset over a specific duration, providing a snapshot of its volatility.
Multiplier Application: To fine-tune the profit targets, the ATR is multiplied by a user-defined multiplier. This step adjusts the ATR value, setting the profit targets at a distance from the current price, thus accounting for potential price movements.
Adaptable Timeframes: One of the standout features of this script is its adaptability. Users can select their desired timeframe for the profit target calculations. This flexibility means that a trader can be on a 15-minute chart but visualize profit targets based on the volatility of a 1-hour chart.
Visual Representation: The calculated profit targets are then overlaid onto the current chart. This visual aid provides traders with a clear perspective of potential exit points in relation to ongoing price movements.
Originality and Usefulness:
While the concept of using ATR for setting profit targets isn't new, this script's adaptability across timeframes and its user-centric customization options make it a unique offering. The combination of ATR with dynamic multipliers and timeframe adaptability ensures that traders get a tool tailored to their specific needs, rather than a one-size-fits-all solution.
Usage Guidelines:
After adding the script to the chart, traders can adjust the input parameters to their preferences. The anticipated profit targets will then be displayed, offering potential exit points. It's recommended to use these targets in conjunction with other technical indicators and chart patterns for a holistic trading strategy.
Features:
ATR Periods: The ATR is calculated using a user-defined number of periods. By default, it's set to 14 periods, a standard setting. The ATR gauges the asset's volatility, and adjusting the periods can increase or decrease its sensitivity to recent price fluctuations.
ATR Multiplier: The ATR is multiplied by a user-defined factor to determine the profit targets. With a default multiplier of 1.5, the profit target will be positioned 1.5 times the ATR above (for bullish trades) or below (for bearish trades) the current price.
Target Timeframe: Traders can choose the timeframe for which the profit targets are calculated. This feature enables viewing of profit targets from higher timeframes on the current chart. For instance, while observing a 15-minute chart, one can see the 1-hour profit targets.
Visual Indicators:
1. Two lines are plotted: the bullish target (in green) and the bearish target (in red).
2. At the onset of each new candle in the selected higher timeframe, labels indicating the precise profit target values are displayed.
3. Price scale labels also showcase the profit targets, offering a quick reference for potential exit points.
Customization:
Traders can modify the following parameters:
1. ATR Periods: Adjusting the number of periods can refine the ATR's sensitivity to price changes.
2. Multiplier for ATR: Tweaking this value alters the distance between the profit targets and the current price.
3. Timeframe for Profit Targets: A variety of timeframes are available, granting flexibility in viewing profit targets.
How to Use:
After integrating the script into their chart, traders can modify the input parameters as desired. The anticipated profit targets will then be overlaid on the chart, offering potential exit points. When used alongside other technical indicators and chart patterns, this tool can enhance trading decision-making.
Note: This script is designed for educational purposes and should not be considered as financial advice. Always conduct your own research and consult with a financial advisor before making any trading decisions.
MACD_base_and_reference_TF//====================================================================================================================
The "MACD_with_reference" indicator aims to illustrate the MACD (Moving Average Convergence Divergence) on two distinct timeframes: the base timeframe (typically the chart's timeframe, e.g., 1D) and the reference timeframe (defaulted to 1W). This tool provides a means to determine momentum shifts within the stock, potentially guiding traders in adjusting or trimming positions.
// ================================================== INFO ==================================================
Key Features of the Indicator:
- Dual Timeframe MACD: Displays MACD on both the primary (base) and higher (reference) timeframes - transparent.
- Momentum Analysis: indication of MACD crossdown of the signal line on the refenence TF to indicate momentum loss on the higher timeframe, guiding decisions to manage positions.
- MACD Line Status: Beneath the chart, a red/green bar line signifies the MACD line's position relative to the signal line on the higher timeframe.
- Alert Creation: Allows for alerts on the MACD and signal line crossdown on the higher timeframe, aiding in planning stop-loss settings for owned stocks.
// ================================================== NOTES ==================================================
The "MACD_with_reference" indicator finds optimal usage in several scenarios:
- Chart Analysis: Replacing the MACD indicator during chart reviews.
- Alert Setup: Setting alerts for owned stocks to plan ahead for stop-loss placements or position closures.
// ================================================== TODO ==================================================
//#endregion ========================================================================================================
// Continue the script code...
New York Sessions Morning, Lunch and afternoon. AMKDescription
The script is designed to highlight the New York Stock Exchange's trading day, broken down into three specific sub-sessions: morning, lunchtime, and afternoon. Each sub-session is color-coded to provide an immediate visual cue about which portion of the trading day is currently active. Additionally, this script allows the user to adjust the time zone offset, making it adaptable for traders in different time zones around the world.
Originality
While there are scripts that highlight the entire trading day or specific market hours, this script adds granularity by breaking down the New York trading session into its typical behavioral parts: the morning rush, the lunchtime lull, and the afternoon action. The addition of an adjustable time zone offset is a unique feature that makes the tool more versatile and accommodating to a global user base.
Usefulness
The ability to visualize these different trading sessions can be valuable for various types of traders:
Day Traders: The script helps to immediately identify which session they are in, aiding in their trading strategy as market behavior can vary between these periods.
Swing Traders: They may use these sub-sessions to time their entries or exits, especially if they're based in different time zones.
Market Analysts: The color-coded sessions provide a quick way to analyze the historical performance and volatility of an asset during different trading periods.
Global Traders: The time zone adjustment feature makes it easy for traders outside of the Eastern Time Zone to customize the script according to their local time, increasing its utility across different markets.
Educational Purpose: For new traders, this could serve as an educational tool to understand the typical behavior of the stock market at different times of the day.
So, whether you're timing an intraday entry or looking for patterns tied to specific market sessions, this script offers a straightforward, visual way to keep track of where you are in the trading day.
MA + MACD alert TrendsThis is a strategy/combination of warning indicators using 6MA+MACD.
The strategy details are as follows: This is a simple warning strategy created so that we don't have to monitor the candlestick chart too often.
Note: This isn't an entry strategy; it's a signaling strategy for upcoming trends. For maximum efficiency, we should incorporate more formulas into the command. In the case below, I use Fibonacci to enter the command.
This strategy setting works for a 15-minute time frame, but it can still work for different time frames.
It has been working well with Gold and USOIL for the last two years, as well as with currency pairs like EURUSD and many others.
Components:
EMA100 + EMA200 + MA400 + MA800
MACD (timeframe greater than 1 timeframe)
Fibonacci retreat.
Uptrend alert:
Candles on both EMAs (100-200) + 2 SMAs (400-800)
In the previous 80 candles:
EMA100 cross up to EMA200
At the same time, the MACD cross up 0.
The uptrend warning will trigger when EMA6 cuts down to MA10. That's when the price creates the top and we'll wait for the market to go back to the Fibonacci threshold of 0.618 and start buying (or wait for markets to break up the trendline to buy).
Downtrend alert:
Candles are below both EMAs ( 100-200 ) + 2 SMAs ( 400-800 )
In the previous 80 candles:
EMA100 cross down to EMA200
At the same time, the MACD cross down zero.
The downtrend warning will trigger when EMA6 cuts to MA10. That's when the price creates a bottom and we'll wait for the market to go back to the Fibonacci threshold of 0.618 and start selling (or wait for the market to break down the trendline to sell).
Recommended RR: 1:1
If you have any questions please let me know!
3x MTF MACD v3.0MACD's on 3 different Time Frames
Indicator Information
- Each Time Frame shows start of Trend and end of trend of the MACD vs the Signal Cross
- They are labled 1,2,3 with respective up or down triangle for possible direction.
User Inputs
- configure the indicator by specifying various inputs. These inputs include colors for bullish
and bearish conditions, the time frame to use, whether to show a Simple Moving Average
(SMA) line, and other parameters.
- Users can choose time frames for analysis (like 30 minutes, 1 hour, etc.)
but they must be in mintues.
- The code also allows users to customize how the indicator looks on the chart by providing
options for position and color.
Main Calculations
- The script calculates the Simple Moving Average (SMA) based on the user-defined time
frame.
- It then determines the color of the plot (line) based on certain conditions, such as whether
the SMA is rising or falling. These conditions help users quickly identify market trends.
Label Creation
- The code creates labels that can be displayed on the chart.
These labels indicate whether there's a bullish or bearish signal.
Level Detection
- The script determines and labels key levels or points of interest in the chart based on
certain conditions.
- It can show labels like "①" and "▲" for bullish conditions and "▼" for bearish conditions.
Table Display
- There's an option to show a table on the chart that displays information about the MACD
indicator Chosen and the NUmber Bubble assocated with that time frame
- The table can include information like which time frame is being analyzed, whether the SMA
line is shown, and other relevant data.
Plotting on the Chart
- The script plots the Simple Moving Average (SMA) on the chart. The color of this line
changes based on the calculated trend conditions.
ATR (Average True Range)
- The script also plots the Average True Range (ATR) on the chart. ATR is used to measure
market volatility.
"In essence, this script is a highly customizable MACD and SMA indicator for traders. It assists traders in comprehending market trends, offering insights into different MACD cycles concerning various timeframes.
Users can configure it to match their trading strategies, and it presents information in a user-friendly manner with colors, labels, and tables.
This simplifies market analysis, allowing traders to make more informed decisions without the distraction of multiple indicators."
RSI Radar Multi Time FrameHello All!
First of all many Thanks to Tradingview and Pine Team for developing Pine Language all the time! Now we have a new feature and it's called Polylines and I developed RSI Radar Multi Time Frame . This script is an example and experimental work, you can use it as you wish.
The scripts gets RSI values from 6 different time frames, it doesn't matter the time frame you choose is higher/lower or chart time frame. it means that the script can get RSI values from higher or lower time frames than chart time frame.
It's designed to show RSI Radar all the time on the chart even if you zoom in/out or scroll left/right.
You can set OB/OS or RSI line colors. Also RSI polyline is shown as Curved/Hexagon optionally.
Some screenshots here:
Doesn't matter if you zoom out, it can show RSI radar in the visible area:
Another example:
You can change the colors, or see the RSI as Hexagon:
Time frames from seconds to 1Day in this example while chart time frame is any ( 30mins here )
Enjoy!
Watchlist Heatmap PlusIntroducing 'Watchlist Heatmap Plus,' an advanced indicator designed to supercharge your trading experience. With this tool, you can easily track up to 40 symbols in your watchlist and gain valuable insights into their performance. Here's what it does:
1. Data Visualization: Watchlist Heatmap Plus displays essential data for each symbol, including open, high, low, close, close percent, volume, and volume percent.
2. Dynamic Color Coding: The indicator leverages a dynamic color-coding system to make data interpretation a breeze. By default, red indicates a decrease or a lower value compared to the immediate previous candle, while green represents an increase or a higher value. This color scheme is consistently applied to open, high, low, close, and volume data, making it easy to spot trends at a glance. Close percent and volume percent are color-coded according to their actual values.
3. Customization Options: Users have the power to customize the displayed data to align with their trading strategy. They can choose from several data display options:
- Regular: Display the original data as is.
- Change: Show the difference between the current value and the previous candle.
- Change Percent: Display the percentage change between the current and previous values.
- Equal To, Less Than, Less Than or Equal To, Greater Than, Greater Than or Equal To: Perform comparison operations between the current and previous value, producing a boolean output.
4. Consistent Color Coding: Regardless of the data display option chosen, the color-coding functionality remains the same, based on the percentage change, allowing traders to quickly assess the health of each symbol.
Performance Considerations:
Please be aware that due to the complexity of this indicator and the substantial volume of data requests it handles, users may experience occasional data lag and performance slowdown, particularly when applied to certain timeframes. In some cases, there may be a risk of memory exhaustion, especially on smaller timeframes.
To optimize your experience and ensure smooth functionality, I recommend using this indicator on higher timeframes where data processing is less resource-intensive. Additionally, when using the indicator with the chart's replay feature, be cautious as it may encounter memory limits, affecting its performance.