Relative volume zone + Smart Order Flow Dynamic S/ROverview:
The Relative Volume Zone + Smart Order Flow with Dynamic S/R indicator is designed to help traders identify key trading opportunities by combining multiple technical components. This script integrates relative volume analysis, order flow detection, VWAP, RSI filtering, and dynamic support and resistance levels to offer a comprehensive view of the market conditions. It is particularly effective on shorter timeframes (M5, M15), making it suitable for scalping and day trading strategies.
Key Components:
1. Relative Volume Zones:
• The script calculates the relative volume by comparing the current volume with the average volume over a defined lookback period (volLookback). When the relative volume exceeds a specified multiplier (volMultiplier), it indicates a high volume zone, signaling potential accumulation or distribution areas.
• Purpose: Identifies high-volume trading zones that may act as significant support or resistance, indicating possible entry or exit points.
2. Smart Order Flow Analysis:
• The indicator uses Volume Delta (the difference between buying and selling volume) and a Cumulative Delta to detect order imbalances in the market.
• Order Imbalance is identified using a moving average of the Volume Delta (orderImbalance), which helps highlight hidden buying or selling pressure.
• Purpose: Reveals market sentiment by showing whether buyers or sellers dominate the market, aiding in the identification of trend reversals or continuations.
3. VWAP (Volume Weighted Average Price):
• VWAP is calculated over a default daily length (vwapLength) to show the average price a security has traded at throughout the day, based on both volume and price.
• Purpose: Provides insight into the fair value of the asset, indicating whether the market is in an accumulation or distribution phase.
4. RSI (Relative Strength Index) Filter:
• RSI is used to filter buy and sell signals, preventing trades in overbought or oversold conditions. It is calculated using a specified period (rsiPeriod).
• Purpose: Reduces false signals and improves trade accuracy by only allowing trades when RSI conditions align with volume and order flow signals.
5. Dynamic Support and Resistance Levels:
• The script dynamically plots support and resistance levels based on recent swing highs and lows (swingLookback).
• Purpose: Identifies potential reversal zones where price action may change direction, allowing for more precise entry and exit points.
How It Works:
• Buy Signal:
A buy signal is generated when:
• The price enters a high-volume zone.
• The price crosses above a 5-period moving average.
• The cumulative delta shows more buying pressure (cumulativeDelta > SMA of cumulativeDelta).
• The RSI is below 70 (not in overbought conditions).
• Sell Signal:
A sell signal is generated when:
• The price enters a high-volume zone.
• The price crosses below a 5-period moving average.
• The cumulative delta shows more selling pressure (cumulativeDelta < SMA of cumulativeDelta).
• The RSI is above 30 (not in oversold conditions).
• Dynamic Support and Resistance Lines:
Drawn based on recent swing highs and lows, these lines provide context for potential price reversals or breakouts.
• VWAP and Order Imbalance Lines:
Plotted to show the average traded price and highlight order flow shifts, helping to validate buy/sell signals.
How to Use:
1. Apply the Indicator:
Add the script to your chart and adjust the settings to match your trading style and preferred timeframe (optimized for M5/M15).
2. Interpret the Signals:
Use the buy and sell signals in conjunction with dynamic support/resistance, VWAP, and order imbalance lines to identify high-probability trade setups.
3. Monitor Alerts:
Set alerts for significant order flow events to receive notifications when there is a positive or negative order imbalance, indicating potential market shifts.
What Makes It Unique:
This script is unique because it combines multiple market analysis tools — relative volume zones, smart order flow, VWAP, RSI filtering, and dynamic support/resistance — to provide a well-rounded, multi-dimensional view of the market. This integration allows traders to make more informed decisions by validating signals across various indicators, enhancing overall trading accuracy and effectiveness.
Search in scripts for "vwap"
Relative volume zone + Smart Order Flow Dynamic S/ROverview:
The Relative Volume Zone + Smart Order Flow with Dynamic S/R indicator is designed to help traders identify key trading opportunities by combining multiple technical components. This script integrates relative volume analysis, order flow detection, VWAP, RSI filtering, and dynamic support and resistance levels to offer a comprehensive view of the market conditions. It is particularly effective on shorter timeframes (M5, M15), making it suitable for scalping and day trading strategies.
Key Components:
1. Relative Volume Zones:
• The script calculates the relative volume by comparing the current volume with the average volume over a defined lookback period (volLookback). When the relative volume exceeds a specified multiplier (volMultiplier), it indicates a high volume zone, signaling potential accumulation or distribution areas.
• Purpose: Identifies high-volume trading zones that may act as significant support or resistance, indicating possible entry or exit points.
2. Smart Order Flow Analysis:
• The indicator uses Volume Delta (the difference between buying and selling volume) and a Cumulative Delta to detect order imbalances in the market.
• Order Imbalance is identified using a moving average of the Volume Delta (orderImbalance), which helps highlight hidden buying or selling pressure.
• Purpose: Reveals market sentiment by showing whether buyers or sellers dominate the market, aiding in the identification of trend reversals or continuations.
3. VWAP (Volume Weighted Average Price):
• VWAP is calculated over a default daily length (vwapLength) to show the average price a security has traded at throughout the day, based on both volume and price.
• Purpose: Provides insight into the fair value of the asset, indicating whether the market is in an accumulation or distribution phase.
4. RSI (Relative Strength Index) Filter:
• RSI is used to filter buy and sell signals, preventing trades in overbought or oversold conditions. It is calculated using a specified period (rsiPeriod).
• Purpose: Reduces false signals and improves trade accuracy by only allowing trades when RSI conditions align with volume and order flow signals.
5. Dynamic Support and Resistance Levels:
• The script dynamically plots support and resistance levels based on recent swing highs and lows (swingLookback).
• Purpose: Identifies potential reversal zones where price action may change direction, allowing for more precise entry and exit points.
How It Works:
• Buy Signal:
A buy signal is generated when:
• The price enters a high-volume zone.
• The price crosses above a 5-period moving average.
• The cumulative delta shows more buying pressure (cumulativeDelta > SMA of cumulativeDelta).
• The RSI is below 70 (not in overbought conditions).
• Sell Signal:
A sell signal is generated when:
• The price enters a high-volume zone.
• The price crosses below a 5-period moving average.
• The cumulative delta shows more selling pressure (cumulativeDelta < SMA of cumulativeDelta).
• The RSI is above 30 (not in oversold conditions).
• Dynamic Support and Resistance Lines:
Drawn based on recent swing highs and lows, these lines provide context for potential price reversals or breakouts.
• VWAP and Order Imbalance Lines:
Plotted to show the average traded price and highlight order flow shifts, helping to validate buy/sell signals.
How to Use:
1. Apply the Indicator:
Add the script to your chart and adjust the settings to match your trading style and preferred timeframe (optimized for M5/M15).
2. Interpret the Signals:
Use the buy and sell signals in conjunction with dynamic support/resistance, VWAP, and order imbalance lines to identify high-probability trade setups.
3. Monitor Alerts:
Set alerts for significant order flow events to receive notifications when there is a positive or negative order imbalance, indicating potential market shifts.
What Makes It Unique:
This script is unique because it combines multiple market analysis tools — relative volume zones, smart order flow, VWAP, RSI filtering, and dynamic support/resistance — to provide a well-rounded, multi-dimensional view of the market. This integration allows traders to make more informed decisions by validating signals across various indicators, enhancing overall trading accuracy and effectiveness.
Gorb AlgoIntroduction:
Gorb Algo is an all-in-one trading indicator made up of classic technical analysis components such as moving averages, relative strength index, stochastic oscillator, and pivot points blended together to create a synergistic algorithm. Focused on providing useful signals & trading tool overlays to meet all trader's technical analysis needs. Each feature included can be changed to meet each traders strategy or market condition.
Overview:
The Gorb Market Trend isn't a simple trend-following tool; it's a sophisticated blend of traditional and innovative methods, providing comprehensive market analysis.
Its unique combination of EMA analysis, volume weighting, RSI, and stochastic indicators, along with proprietary algorithms, providing nuanced views in trend detection and trading confluences.
The indicator is designed for traders at all levels, offering a balance of depth for experienced traders and simplicity for beginners.
Centerpieces: Gorb Market Trend & Volume Strength
These use a color-coded system to indicate market direction/strength. The color: white is used to signal upward/bullish trend, while the color: purple is used to signal downward/bearish trend. It is designed for ease of use, simplifying complex market data into an easy visually understandable format.
How the Gorb Market Trend Works:
Moving averages are used to find convergence or divergence on multiple EMA's to help determine the overall market direction. Relative Strength Index is used to assess the speed and change of price movements to add another layer to the Market Trend lines identification of the markets analysis. It then plots a line using just two colors to provide traders with a visual representation of the trend. This can help traders quickly grasp the current market trend with simple color cues.
How the Volume Strength Works:
A stochastic oscillator is used to measure the current price level relative to its price over a specific range period to capture sentiment and potential reversals for the Trend Strength feature. And the final part is the use of VWAP and volume analysis to ensure that identified trends are not only based on price movements but are also supported by trading volume, adding a layer of reliability to the trend signals. These are then plotted at the bottom of the chart following the same color scheme as Gorb Market Trend. Only difference is, when volume strength begins to decline, the color will be more transparent, and when it is strong, the color will be bright.
Custom Algorithmic Elements:
The Gorb Market Trend isn't just a combination of standard indicators. It includes proprietary algorithmic elements tailored to enhance signal accuracy and timing. These unique components are what set the Gorb Market Trend apart from conventional trend-detection methods.
We recommend exploring every feature to pick & choose what best suits your needs and style of trading, and use that to combine with the Market trend line.
Features:
All skill-level friendly presets, easy to enable features with one-click
Trading Signals: Plotted signals to help traders identify changes in trend on the Gorb Market Trend Line (not to be followed blindly)
Match Volume Color: allows the user to enable signals to appear only if they match the trend strength's color
Enable MA Filter: allows the user to use 2 EMA's to create a custom trend filter in order to limit contrarian signals with the current trend
Chop Filter: allows the user to have a specific candle range of their choice to limit signals during sideways price movement
4 EMA's: allows the user to plot up to 4 EMA's on the chart and change to the users specific trading strategy with the Market Trend line
VWAP: allows users to plot VWAP on their chart to visually see where price is relatively
EMA Clouds: allows users to fill the gap between EMA's plotted on the chart to help them visualize zones for entries or stop-losses
Pivot Points: allows users to have pivots on their chart to use in tandem with market trend line to find areas of support and resistance to help find confluence in their trading
All colors are changeable for the user to customize the scheme to their liking or style
Basic Signals, Market Trend & Volume Strength Demonstration
In the image below, we can see a basic example of how these 3 core features function.
As explained above, the trade ideas are only generated if the user enables them. They will plot as small triangles in real time and are directly correlated to the market trend line coloring in order to quickly see the change in market conditions.
The volume strength on the bottom helps identify the strength and momentum of the market condition. This can also be used to identify possible fake-outs or small pullbacks before price continues on. The brighter the volume strength the stronger it is, when it is dimmer, that means volume is decreasing in that direction. This can help traders identify signals they may not want to trust as much.
Trading Tool Overlays with Signals
In the image below, we have enabled the EMA's and VWAP overlays from the settings. By using these tools, users can add more confluence to create their trading strategies
The EMA's are not only used for the market trends, trend filter. But also used as an additional confluence for general trend following purposes alongside the trade idea signals. These can be extremely useful for traders who like to have different length moving averages depending on their timeframe for analyzing the market.
In this next image, we can see that price dips down and then bounces up. With EMA clouds enabled, the user can now have visual zones to look for trade entries in.
When paired with the market trend line and trade idea signals, this adds a whole other level of easy visual trading confluence for traders. You can see that market trend changes color and a trade signal is plotted when price enters these zones. This can be helpful to a trader looking to find confluence in their entries.
The image below shows specific pivot levels being plotted when the user enabled pivots in the settings of the indicator.
The pivot levels proved an excellent area of support/resistance for traders that are generated fresh every day. These are particularly useful for areas that line up with previous tools above and trade signals. This overlay gives traders a clear level that can be used to confirm entries and create targets to exit trades at. These levels when combined with the other tools in this indicator provide traders an all-in-one visual confluences. Some traders may just use this overlay to have an idea on the range for the trading session.
Filters:
There are 3 different trade signal filters integrated into this indicator
1. Match Volume Color: When enabled, signals can only be valid and plotted if the volume strength color matches the market trend line signal. Otherwise the signal will not appear, this limits possible fake-outs without having volume agree.
2. MA Filter: When enabled, this removes an contrarian signals to the current market trend per the settings of the filter. The EMA settings for this filter can be changed by the user for them to customize this to their trading strategies. There are two settings, short ema and long ema to define the trend.
3. Chop Filter: When enabled, this disables signals that would normally appear in sideways price action. This setting is also customizable by the user; there are two settings: candle period and threshold. The candle period is how many candles back does this filter want to look to define its range. The threshold, is the amount of price deviation is allowed from this range in order to disable a signal.
Conclusion:
We believe in providing an all inclusive trading tool to help simplify trading for all traders. The goal is to provide a user-friendly, efficient tool that provides insights into market trends. For it to stand out for its simplicity and effectiveness, as a support tool for decision making.
How to get access:
You can see the Author's instructions to get access to this indicator
RISK DISCLAIMER
All content, tools, scripts & education provided by Monstanzer or Gorb Algo LLC are for informational & educational purposes only. Trading is risk and most lose their money, past performance does not guarantee future results.
Elite By Ashu4750Inside Bar Detection:
The script identifies inside bars, which are candles where the high is lower and the low is higher than the previous bar. It tracks the high and low of the mother candle (the candle preceding the inside bars) and plots the ranges on the chart using lines and labels.
Exponential Moving Averages (EMA):
Three EMAs are calculated and plotted (with default periods of 9, 21, and 50). This is a classic trend-following technique used to smooth price data and identify the direction of the market.
Bollinger Bands (BB):
The script includes a Bollinger Band calculation using the simple moving average (SMA) with a standard deviation multiplier. The bands help visualize volatility and potential overbought or oversold conditions.
The user can configure settings like the length of the SMA and the multiplier for the upper and lower bands.
Volume Weighted Average Price (VWAP):
The VWAP is plotted on the chart and reset based on user-defined timeframes (e.g., session, week, month). VWAP is a popular indicator for institutional trading, as it shows the average price weighted by volume and can act as support or resistance.
Crossover Signals (Buy/Sell):
A combination of crossovers between VWAP, EMAs, and Bollinger Bands triggers buy and sell signals. Specifically:
Buy signal is generated when VWAP crosses over the 9 EMA, the close crosses over the Bollinger Band line, and VWAP crosses over the Bollinger Band.
Sell signal is triggered when VWAP crosses under the 9 EMA, and similar conditions exist for the other indicators.
These signals are plotted with a green "Buy" or red "Sell" marker below the bars, and alerts are set up for both buying and selling.
Additional Bollinger Band Configuration:
The script provides more flexibility in Bollinger Bands by allowing the user to select between SMA, EMA, or SMMA for the moving average.
The user can also choose the standard deviation multiplier and whether to display the bands.
Alerts:
Buy and sell conditions are linked to alert conditions, allowing the user to be notified when a signal is triggered, based on the defined crossover logic.
Technical Breakdown:
Inside Bar Logic: Tracks inside bars and plots lines representing the high and low of the mother candle. The line and label functions are used to draw these on the chart, which provides a visual representation of the range.
EMA and VWAP Crossovers:
The 9, 21, and 50-period EMAs are calculated and used in crossover logic with VWAP. Crossovers between VWAP and EMAs are a common method for identifying potential trend changes.
Bollinger Bands:
The Bollinger Band component allows for volatility analysis by calculating the upper and lower bands based on the moving average's standard deviation.
Alert System:
Alerts are set for crossover signals, allowing for real-time notifications of potential buy and sell opportunities.
Visualization:
The script plots the EMAs, VWAP, and Bollinger Bands on the price chart. It highlights inside bar patterns and displays buy/sell markers on the chart when the specified conditions are met. These visual cues make it easier to follow the market’s movements and spot trading opportunities.
Customizability:
The script is highly customizable with inputs for:
EMA periods.
VWAP settings.
Bollinger Band parameters (moving average type, length, standard deviation).
Candle color options for inside bars.
In this traders looking for multiple indicators to analyze market trends, volatility, and price action.
Supertrend (Buy/Sell) With TP & SLSupertrend (Buy/Sell) with TP & SL: An Enhanced Trading Tool
This Pine Script indicator combines the popular Supertrend indicator with multiple take-profit (TP) and stop-loss (SL) levels, providing traders with a comprehensive visual aid for potential entries, exits, and risk management.
Originality
Buffer Zones for Precision: Instead of relying solely on the Supertrend line, this script incorporates buffer zones around it. This helps filter out false signals, especially in volatile markets, leading to more accurate buy/sell signals.
Flexible Stop-Loss: Offers the choice between a fixed or trailing stop-loss, allowing traders to tailor their risk management approach based on their preferences and market conditions.
Multiple Take-Profit Levels: Provides three potential take-profit levels, giving traders the flexibility to secure profits at different stages of a trend.
Heikin Ashi Candles & VWAP: Incorporates Heikin Ashi candles for smoother trend visualization and adds a VWAP line for potential support/resistance levels.
Clear Table Display: Presents key information like Stop Loss and Take Profit levels in a user-friendly table, making it easier to track trade targets.
How It Works
Supertrend Calculation: The Supertrend is calculated using ATR (Average True Range) to gauge market volatility. The script then creates buffer zones around the Supertrend line for refined signal generation.
Buy/Sell Signals:
Buy: When the close price crosses above the upper buffer zone, indicating a potential uptrend.
Sell: When the close price crosses below the lower buffer zone, suggesting a potential downtrend.
Take Profit & Stop Loss:
Take Profits: Three TP levels are calculated based on ATR and a customizable profit factor.
Stop Loss: The stop-loss can be set as either a fixed value based on ATR or as a trailing stop-loss that dynamically adjusts to lock in profits.
How To Use
Add the Indicator: Search for "Supertrend (Buy/Sell) With TP & SL" in the TradingView indicators list and add it to your chart.
Customize Inputs: Adjust parameters like ATR Period, Factor, Take Profit Factor, Stop Loss Factor, Stop Loss Type, etc., based on your trading style and preferences.
Interpret Signals: Look for buy signals when the price crosses above the upper buffer and sell signals when it crosses below the lower buffer.
Manage Risk: Use the plotted Take Profit and Stop Loss levels to manage your risk and potential rewards.
Concepts
Supertrend: A trend-following indicator that helps identify the direction of the prevailing trend.
ATR (Average True Range): A measure of market volatility.
Buffer Zones: Used to filter out false signals by creating a zone around the Supertrend line.
Trailing Stop Loss: A dynamic stop-loss that moves with the price to protect profits.
Heikin Ashi: A type of candlestick chart designed to filter out market noise and make trends easier to identify.
VWAP (Volume Weighted Average Price): An indicator that shows the average price at which a security has traded throughout the day, based on both volume and price.
Important Note: This script is for educational and informational purposes only. Backtest thoroughly and use with caution in live trading. Always manage your risk appropriately.
BTCUSD Volume Weighted Average Price & KairiThis indicator calculates VWAP(Volume Weighted Average Price) for major crypto exchanges with BTCUSD pairs and shows what percentage each exchange deviates from VWAP.
When the parameter "Display" is the default value "Deviation", this deviation is expressed in%. Therefore, VWAP is always drawn as "0.00".
VWAP is calculated using the BTCUSD prices and volumes of the following exchanges.
These exchanges are the ones BitMEX refers to when indexing (excluding ITBIT).
・ Coinbase
・ Bitstamp
・ Kraken
・ Gemini
・ Bittrex
Therefore, VWAP shows a price close to ".BXBT" of BitMEX.
However, while BitMEX has a fixed weight, VWAP of this indicator calculates the volume for each candlestick, so it will be closer to the actual value.
When there is a big movement in the short term, it is easy to be swayed.
If you set the parameter "Display" to "Deviation_SMA", it will calculate the simple moving average of the deviation rate, so it will be hard to be swayed.
Set the desired "Length".
If you want to know the actual value of VWAP, set the parameter "Display" to "Price" and the actual BTCUSD prices will be displayed.
* Warning: This indicator also shows BitMEX and Bitfinex, but these two exchanges are not included in the VWAP calculation. be careful.
Supply And DemandThis supply and demand indicator uses sessions, volume spikes, higher timeframe price action and other volume calculations to spot areas on the chart where price will likely react. From the 1 minute and below charts to the daily and up charts, you can get excellent levels for any timeframe.
Why Use Supply And Demand?
One of the safest ways to trade is to wait for price to enter an area of interest where price should react. When we play reversals off of these areas, you increase the likelihood that your trade will be profitable because there was previous price action that told you that the current level is one where price will react. So we look for reversals at or very near these levels to enter into scalp or swing trade positions and look to exit that position when price is at or near the next major supply and demand level.
How To Use
The strategy with this indicator is to wait for price action to reach the levels shown by this supply and demand indicator and then enter trades at these levels, looking for a reversal. The thicker lines and the lines that are from the highest timeframes will be the most important levels on the chart. There is a table on the chart that will help you identify what timeframe the levels are using, with the color of that line next to it for easy identification.
The default settings are designed for scalping the 1-5 minute charts, so there are more levels turned on than necessary if you are using higher timeframes than 5 minutes. If you are using higher timeframes, make sure to turn off some of the lower timeframe levels so that it doesn’t clog up your charts. On the daily timeframe and above, many of the levels are coded to not turn on so that you don’t have to turn them off manually, but be aware that you will need to adjust your charts to suit your preferences, especially if you are on anything above the 5 minute chart.
For scalping, wait for price to react from the supply and demand levels by showing wicks, struggling to break through or getting reversal candles at those levels. Ride those moves to the next major supply and demand area before taking profit. You may want to turn on sessions and some of the lower timeframe levels as well if there are big gaps on the chart that are not suitable for scalping.
For swing trading, you will want to turn some of the lower timeframe and session levels off. Leave it to only higher timeframe OHLC lines and volume spike levels. Then you can swing moves that reverse off of the supply and demand lines.
Customization
This indicator is fully customizable. You can turn on or off any of the levels as well as increase the number specific levels so your charts suit your preferences.
All of the levels used are color coded individually so you can easily tell which type of level it is and these colors can be changed within the settings to suit your preferences. These colors are also reflected in the line identification table that show you exactly which color each type of level is.
There are toggles for the line identification table and session identification table as well if you don’t want them on your chart.
Types Of Levels Used
This indicator uses 4 different types of levels that I have found to be extremely influential on the price action. They are: volume spikes, higher timeframe price action, country based trading sessions and the VWAP. All of these levels have proven to be very important levels in my testing and are very helpful in spotting reversal areas.
Volume Spikes
This indicator is looking for the largest volume spikes and plotting the levels where that volume came in. It checks for the highest volume spikes across multiple different lengths of candles so that you get recent levels as well as the most important levels in the past. There are volume spike calculations for your current chart timeframe, 1 hour charts, 4 hour charts, daily charts, weekly charts, and monthly charts. Each of these looks for volume spikes across various lengths of candles for each timeframe and is color coded so you can identify which levels are which easily. The weekly and monthly volume spike levels are fatter than the normal volume spike levels with a line width of 2 to signify their importance.
OHLC Higher Timeframe Candles
This script plots levels of higher timeframe candles since price usually reacts very strongly to these levels. The levels it will produce are the high, low, open and close of the most recent closed candle of each higher timeframe. You can adjust these to show as many or as few previous HTF candles as you would like. The higher timeframe candles available to use are as follows: 1 hour, 4 hour, daily, 3 day, weekly, monthly, quarterly and yearly. The monthly, quarterly and yearly levels are fatter than the normal levels with a line width of 2 to signify their importance.
Trading Sessions
Trading sessions are very important levels because the market makers of different parts of the world are typically positioning themselves at these specific times. The number of each trading session line can be adjusted to show more or less levels depending on your preference. When you adjust the number, it will affect all lines that are enabled for that specific session. The levels available for each Tokyo, London & New York session are as follows: session premarket open, regular session open, session close, and session high & low. The session close boxes are fatter than the others with a line width of 2 to signify its importance.
VWAP & Previous Close
We all know that the VWAP aka Volume Weighted Average Price is a very important level on any chart, so we included this level as a default. However, we decided to take this a step further and include the previous daily session’s VWAP closing price and plot those levels. These are extremely important levels that you should pay very close attention to, along with the other levels mentioned above. The market makers are hedging their positions based on these levels and you will typically see very strong reactions to these levels, especially in the first hour when the markets open up. The VWAP and previous session VWAP close levels can be turned on or off and the default for the number of previous VWAP session close prices is set to 5. These levels are fatter lines because they are extremely important, so make sure to pay attention to them!
Line & Session Identification Tables
There are two tables to help you identify what is on the chart. The first is a large table in the top right that shows you the color and type of each line that is turned on so you can easily identify which lines are which. The second table is a small one at the bottom center of the chart that tells you which trading session we are currently in and what color that session is on the chart. These tables can be turned on or off and you can also change where they are on the chart by adjusting them at the bottom of the settings page.
Markets
This Supply And Demand indicator can be used on any market with price data such as stocks, crypto, forex and futures.
Timeframes
This Supply And Demand indicator can be used on any timeframe, from the second charts all the way up to the yearly charts.
Dual EMA Cloud 1MIN Trading SystemDual EMA Cloud 1MIN Trading System + EMA 200 + VWAP
The Script Show Dual EMA With Color Line And Cloud And Change Color And EMA 200 And VWAP Line Color.
█ FEATURES
Study Is Based In Exponential Moving Average And EMA 200 And VWAP.
1) EMA 72 And EMA 89.
2) 1 Minute Timeframe.
3) Exponential Moving Average 72.
4) Exponential Moving Average 89.
5) Exponential Moving Average 200.
6) VWAP Line Candle Above VWAP Line Color Change To Green.
7) VWAP Line Candle Above VWAP Line Color Change To Red.
8) Color Line.
9) Color Cloud.
10) Alert.
█ HOW TO USE THE STUDY
((Up Trend))
A.1) Green Cloud Mean Up Trend Signal.
A.2) Candle Above EMA Cloud Buy Signal .
A.3) Blue Line Mean EMA 200.
((Down Trend))
B.1) Red Cloud Mean Down Trend Signal.
B.2) Candle Blow EMA Cloud Buy Signal.
B.3) Blue Line Mean EMA 200.
█ Access To Script Add It To Your Chart For Free.
█ For Script Source Code Contact me
█ I Used This Script For Measure Exponential Moving Average EMA For Short And Long
BTCUSDT Volume Weighted Average Price & KairiThis indicator calculates VWAP (Volume Weighted Average Price) for major crypto exchanges with BTCUSDT pairs and shows what percentage each exchange deviates from VWAP.
I made a "BTCUSD" version of this in the past, but many people also want to see “BTCUSDT”, so I made this indicator.
When the parameter "Display" is "Basis", this deviation is expressed in%. Therefore, VWAP is always drawn as "0.00%".
VWAP is calculated using the BTCUSDT prices and volumes of the following exchanges.
These exchanges are the ones Binance refers to when indexing.
- Bitfinex
- Binance
- Huobi
- OKEx
- Bittrex
- HitBTC
VWAP of this indicator calculates the volume for each candlestick , so it will be closer to the actual value.
When there is a big movement in the short term, it is easy to be swayed.
If you set the parameter "Display" to "Basis_SMA", it will calculate the simple moving average of the deviation rate, so it will be hard to be swayed.
Set the desired "Length".
If you want to know the actual value of VWAP , set the parameter "Display" to "Price" and the actual BTCUSDT prices will be displayed.
Warning: This indicator also shows BTCUSDTPERP, but these pairs are not included in the VWAP calculation. be careful.
[Opening Range Breakout] S&R Strategy with Backtest (TSO) S&R Strategy with Backtest (TSO)
===========================================================================
===========================================================================
This indicator serves as a comprehensive full-cycle trading system, providing alerts at each stage of the trade, from opening to closure. The algorithm initiates by calculating the Opening/Pre-Market Price Range, waiting for a breakout to generate signals, and establishing TP (Take Profit and SL (Stop Loss) levels. The Opening/Pre-Market range, known for its robust support and resistance levels, is a key element. To filter out false breakouts and capture valid ones, the indicator incorporates a Smart Breakout feature, requiring confirmation through an initial breakout, a confirmation bounce, and a subsequent confirmation breakout. The indicator offers a variety of automated approaches for TP (Take-Profit) and SL (Stop-Loss) settings. These include leveraging opening range levels, both the most recent and historical S&R (Support and Resistance) levels, and an ATR (Average True Range) trailing stop-loss. This diverse set of tools ensure flexibility in tailoring TP (Take-Profit) and SL (Stop-Loss) parameters to different market conditions, contributing to a more adaptive and robust trading system. Additionally, a series of signal analysis tools, including candle bar analysis, divergence, and volume, enhance the precision of trading signals.
* Works with popular timeframes: 1M, 3M, 5M, 15M, 30M, 45M, 1H.
* Works best with Indices, Stocks, and Commodities, since there is pre-market price movement, which is used to obtain support and resistance price range.
* Every action of the trade is calculated on a confirmed closed candle bar state (barstate.isconfirmed), so the indicator will never repaint.
==============================================================
Indicator visual examples with various instruments:
---------------------------------------------------------------------------
Strategy Config: ORB_AAPL(NASDAQ)_15M
Example of Signal Cleanup confirmations via SMA and ATR. Take-Profit is calculated per optimal S&R (resistance) most recent levels.
---------------------------------------------------------------------------
Strategy Config: ORB_AMD(NASDAQ)_5M
Example of optimal S&R (resistance) level from previous day for Take-Profit 1 target, which gets hit.
---------------------------------------------------------------------------
Strategy Config: ORB_META(NASDAQ)_5M
Example of dynamic SL (Stop-Loss), which reduces the risk by moving to the new support level, which is at the same time is below the current price. Also Signal Cleanup confirmations via SMA, ATR and VWAP
---------------------------------------------------------------------------
Strategy Config: ORB_MSFT(NASDAQ)_15M
Example of automated ATR Trail Stop-Loss activation at no optimal S&R (support) feature.
---------------------------------------------------------------------------
Strategy Config: ORB_NFLX(NASDAQ)_3M
Example of a skipped LONG trade due to no optimal S&R (support) for Stop-Loss (can be seen per chart that it would be a loss trade). On another side, a SHORT SMA Confirmed trade hits all 3 profit targets.
---------------------------------------------------------------------------
Strategy Config: ORB_NVDA(NASDAQ)_15M
Example of no optimal support for SHORT Take-Profit targets, with ATR Trail Stop-Loss.
---------------------------------------------------------------------------
Strategy Config: ORB_SPY(AMEX)_15M
Example of several signal confirmations at the same time (SMA, VWAP, EWO) and S&R-TP-Entry-SL SL (Stop-Loss) system, which at trade open sets SL (Stop-Loss) per optimal S&R (since this is a LONG trade - support) and then moves to Entry at first take-profit.
===========================================================================
Trading open/close/TP/SL labels, plots and colors explanations:
---------------------------------------------------------------------------
>>> Opening/Pre-Market range: White dashed lines show opening range/pre-market levels with dotted white line extend along the Trading Schedule (if Trading Schedule is turned off - it will extend until next day).
>>> Smart Breakout: 1) Initial Breakout: "init_Brekout" | 2) Confirmation Bounce: "conf_Bounce" | 3) Confirmation Breakout: "conf_Breakout" (additional lables on chart can be hidden with only Confirmation Breakout shown).
>>> Additional S&R (Support and Resistance) lines: yellow - support, blue - resistance (can be hidden).
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
STATS TABLE ///////////////////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading STATS table on the chart showing current trade direction, Last TP (Take-Profit) Taken, Current Trade PL (profit/loss in price difference from trade open to the very current state).
---------------------------------------------------------------------------
CUSTOM TRADING DATE RANGE /////////////////////////////////////////////////
---------------------------------------------------------------------------
>>>>> This feature can be used to manually set indicator trading range from and to a specific date and time. NOTE: This is not intended for a very long date range backtesting, utilize TradingView Strategy Tester for that.
* Use TradingView “Strategy Tester” to see Backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case - manually check “Start”/“End” dates or use “Deep Backtesting” feature!
---------------------------------------------------------------------------
INTRADAY/TRADING SCHEDULE | ET (EASTERN TIMEZONE) ////////////////////////
---------------------------------------------------------------------------
>>> Trading Schedule - On/Off: This is where an Intraday Session or any custom session can be turned on and then scheduled.
>>>>> Trading Schedule - Time: Trade open Signals/Alerts time zone Hours. | NOTE: US Market Active Hours: 09:30 - 16:00 ET / Power Hour: 15:00 - 16:00 ET)
>>> Trading Schedule - EOD(End of Day) Close - On/Off: Close trade if still open by certain hour (set below).
>>>>> Trading Schedule - EOD(End of Day) Close - Hour (ET): US trading session closes at 4PM ET > 16:00.
Here is when the trade will close with EOD(End of Day) Close/Trading Cut Off Hour set to 16, which is end of US trading session:
1/3/5min > will close at 15:55pm ET
15min > will close at 15:45pm ET
30min > will close at 15:30pm ET
45min > will close at 15:45pm ET
60min > will close at 16:00pm ET
Here is when the trade will close with EOD(End of Day) Close/Trading Cut Off Hour set to 15, which is 1 hour before the end of US trading session (right before power hour starts):
1/3/5min > will close at 14:55pm ET
15min > will close at 14:45pm ET
30min > will close at 14:30pm ET
45min > will close at 14:45pm ET
60min > will close at 15:00pm ET
---------------------------------------------------------------------------
TRADE SIGNAL CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Opening Range - Time Period (ET): Opening/Pre-Market Range time, which by default is set to US Session Pre-Market Range, can be customized to any time range as there are different market hours around the world and this setting can be customized to any time. Pre-Market Time/Price Range Hours(ET) | Pre-Market EU/Asia Hours: 4:00-9:30 ET | Pre-Market US (NY) Hours: 7:00-9:30 ET | Post-Market US Hours: 16:00-19:00 ET | First US Market Hour: 9:30-10:30 ET | Power Hour: 15:00-16:00)
>>> Opening Range - Levels Structure: determines how the price range is calculated, based on the highest/lowest price zones or based on the candle body bar.
>>> Opening Range - Breakout System: "Simple": bar close price has to simply break the opening range level | "Smart": After initial breakout (which is basically 'Simple' Breakout), a price come back is expected to the opening range level, a bounce, then a confirmation breakout with price closing ahead of the initial breakout.
>>>>> Opening Range - Smart Breakout: # of bars until Initial Breakout becomes invalid
>>>>> Opening Range - Smart Breakout: Bounce Settings, "Cross-Return" - LONG: Price has to cross down the initial breakout S&R, but never close below it; SHORT: Price has to cross up the initial breakout S&R, but then close above it; ||| "Cross-Close-Return" - LONG: At least 1 candle has to close below initial breakout S&R; SHORT: At least 1 candle has to close above initial breakout S&R.
>>>>> Alerts - Opening Range - Smart Breakout: Confirmation Bounce Alert. Trigger an alert at confirmation bounce. This is for live trading (especially scalping) Smart Breakout approach - to get ready to open the trade in the correct direction.
---------------------------------------------------------------------------
TAKE-PROFIT/STOP-LOSS CONFIGURATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> TP (Take-Profit) and SL (Stop-Loss): S&R Search - Left Bars: This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars) for S&R (Support and Resistance) TP (Take-Profit) levels calculations. NOTE: if at any point - there will be no available S&R (Support & Resistance) found for SL (Stop-Loss, 'S&R-Dynamic-SL' or 'S&R-Static-SL' setting, since both settings search for optimal SL (Stop-Loss) at trade open) or TP (Take-Profit, at any setting, since at trade open, an optimal TP (Take-Profit) level is searched) > SL (Stop-Loss) will automatically switch to trailing ATR-Trailing-SL and the trade will continue to run until it either hits ATR-Trailing-SL (Stop-Loss) or closes at EOD (End of Day).
>>> TP (Take-Profit) and SL (Stop-Loss): S&R Search - Right Bars: This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars) for S&R (Support and Resistance) TP (Take-Profit) levels calculations. NOTE: if at any point - there will be no available S&R (Support & Resistance) found for SL (Stop-Loss, 'S&R-Dynamic-SL' or 'S&R-Static-SL' setting, since both settings search for optimal SL (Stop-Loss) at trade open) or TP (Take-Profit, at any setting, since at trade open, an optimal TP (Take-Profit) level is searched) > SL (Stop-Loss) will automatically switch to trailing ATR-Trailing-SL and the trade will continue to run until it either hits ATR-Trailing-SL (Stop-Loss) or closes at EOD (End of Day).
>>> TP (Take-Profit) and SL (Stop-Loss): S&R Search - Custom Resolution: This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> TP (Take-Profit) and SL (Stop-Loss): # of Bars (5000 max) to search back for optimal Support and Resistance levels: This is how many candles will be searched backwards for previous S&Rs (Support and Resistance) to find the optimal levels for TP (Take-Profit) and SL (Stop-Loss). NOTE: If SL (Stop-Loss) System is set to 'ATR-Trailing-SL' - this setting is only relevant for searching TP (Take-Profit) levels.
>>> TP (Take-Profit) and SL (Stop-Loss): At Trade Open - No S&R (Support and Resistance) found behavior: 'Skip Trade': If at trade open there are no S&R (Support and Resistance) levels for TP1 (Take-Profit 1) or SL (Stop-Loss) - trade is skipped. 'Open/ATR-Trailing-SL': If at trade open there are no S&R (Support and Resistance) levels for TP1 (Take-Profit 1) or SL (Stop-Loss), the trade will still be open with SL (Stop-Loss) set to 'ATR-Trailing-SL'.
>>> TP (Take-Profit) System: Pre-Market-Range-TP: All TP (Take-Profit) targets are calculated at trade open using the distance between Support and Resistance per Opening Pre-market Range and then divided by TP (Take-Profit) Divider, which can be set below; S&R-Current-Optimal-TP1: TP1 (Take-Profit) level is set per currently available S&R (Support & Resistance), if none available - historical S&R (Support & Resistance) levels will be searched, remaining TP (Take-Profit) targets (if selected, up to 5 # of TPs) are searched through most recent closest historical S&R (Support & Resistance) levels; S&R-Historic-Optimal-TP1: TP1 (Take-Profit) level is set per historically most recent closest available S&R (Support & Resistance) to the Entry price, remaining TP (Take-Profit) targets (if selected, up to 5 # of TPs) are searched through historical S&R (Support & Resistance) levels as well.
>>> TP (Take-Profit, Pre-Market-Range-TP) Divider #: This is for 'Pre-Market-Range-TP' setting only, where TP (Take-Profit) level is the distance between top/bottom levels of the opening range. It can be reduced by the divider #. (1 - full distance; 2 - 1/2 distance; 3 - 1/3 distance; etc.
>>> TP (Take-Profit) # of targets: It is wise to divide the trade into several profit targets. With this setting - up to 5 TP (Take-Profit) targets can be approached. The trade will be equally divided up by the selected # of TP (Take-Profit) targets.
>>> TP (Take-Profit) target(s) Consumed: Signal Bar consuming Take-Profits - trade signal bar is big enough to 'consume'/close ahead of the first TP setting > the signal can either be skipped, or all Take-Profit targets pushed ahead by average bar size).
>>> TP (Take-Profit) Offset - On/Off: This is a feature where TP (Take-Profit) target will be considered taken even if the price never crosses the target(s), but comes close enough (based on the offset amount). Set the offset amount below.
>>>>> TP (Take-Profit) Offset - Amount: Some Examples: (for SPY 0.1 would be $0.10 offset - if TP1 is $400 and price hits $399.90 > TP1 considered taken/signal shown/alert) | NOTE: For EURUSD, it is very different and if wrong will show TP1 immediately at trade open, typical good offset for EURUSD is: 0.0005 | Similar for BTCUSD, for example: 10 - $10 offset, if TP is $15,000 > $14,990.
>>> SL (Stop-Loss) System: 'Pre-Market-Range-SL': SL (Stop-Loss) is set to the opposite market range level from trade direction; 'S&R-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent S&R level and remains there until trade closes; 'S&R-Dynamic-SL': SL (Stop-Loss) is set at a trade open per optimal S&R (Support and Resistance) level from the most recent AND historical S&Rs (Support and Resistance), with every bar closed it will check if there are new S&Rs (Support and Resistance) levels, if these levels appear closer to the current price then current level - it will move SL (Stop-Loss) to that level, therefore reducing the risk; 'ATR-Trailing-SL': SL (Stop-Loss) is trail-following the ATR (Average True Range) line, NOTE: If at signal trigger, ATR will be against the trade direction - trade open signal will be skipped; 'S&R-TP-Entry-SL': SL (Stop-Loss) initially is set per S&R, then moves to Entry price at the very first TP (Take-Profit) hit and remains there until trade closes; 'S&R-TP-Trail-SL': SL (Stop-Loss) initially is set per S&R, then moves to Entry at TP1 (Take-Profit 1) hit, then keeps trailing per previously taken profit targets (TP2 taken, SL moves to TP1 | TP3 taken, SL moves to TP2 | TP4 taken, SL moves to TP3). NOTE: 'ATR-Trailing-SL' will not switch automatically if 'S&R-Dynamic-SL', S&R-TP-Entry-SL', 'S&R-TP-Trail-SL' system is selected, as already the most optimal SL (Stop-Loss) level is calculated - it will switch automatically only with 'S&R-Static-SL' system.
>>> SL (Stop-Loss) - On/Off: Without SL (Stop-Loss), unless EOD (End of Day) Close is turned on - there will be no SL (Stop-Loss) at all!
---------------------------------------------------------------------------
SIGNAL ANALYSIS AND CLEANUP ///////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Signal Cleanup - Bar Color: Include Bar Color (bullish/bearish) confirmation, LONG signal will only be opened if signal bar is green/bullish, SHORT if red/bearish.
>>> Signal Cleanup - Bar Directional Structure: Skip opposite bar structure types signals (For example: bearish green hammer).
>>> Signal Cleanup - Bar Doji Skip: Skip doji (indecisive) candles signals.
>>> Signal Cleanup - EWO (Elliott Wave Oscillator): Include EWO (Elliott Wave Oscillator), LONG will only be opened if EWO is bullish / SHORT if EWO is bearish.
>>> Signal Cleanup - VWAP (Volume-Weighted Average Price): Include VWAP (Volume-Weighted Average Price), LONG will only be opened if price is above VWAP / SHORT if price is below VWAP.
>>> Signal Cleanup - MA (Moving Average) Confirmation: Include MA (Moving Average), LONG will only be opened if MA is bullish / SHORT if MA is bearish.
>>> Signal Cleanup - ATR (Average True Range): Include ATR (Average True Range) confirmation, LONG will only be opened if ATR is bullish / SHORT if ATR is bearish.
>>> Signal Cleanup - Divergence(RSI + MACD): Include Divergence (RSI + MACD ) confirmation, LONG will only be opened if Divergence is bullish / SHORT if Divergence is bearish.
>>> Signal Cleanup - Volume % Strength: Include Volume strength/percentage confirmation, LONG/SHORT will only be opened with strong Volume matching the signal direction | By default, strong Volume percentage is set to 150% and weak to 50%.
>>> Signal Cleanup - Volume Above Average: Include Volume Above Moving Average (Volume closing bar closes above volume moving average) confirmation, LONG/SHORT will only be opened with Volume above average - Volume closed bar color must match the closed price color (bullish/bearish direction) + Volume bar must be closed above volume MA line).
---------------------------------------------------------------------------
===========================================================================
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
TP System - VERY IMPORTANT INFO!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" - amount by which current trade/position needs to be reduced/partially closed/sold.
-------------------------------------------------------------------------------------------------------------------
TP System: Dynamic
"TP PERCENTAGE" - will always be the same amount (trade/position size divided by the # of take-profit(TP) targets) and percentage to be closed will always be of the ORIGINAL trade/position.
-------------------------------------------------------------------------------------------------------------------
TP System: Static
"TP PERCENTAGE" - will always be the same amount IF take-profit(TP) targets are hit 1-by-1 (TP1 > TP2 > TP3 > TP4 > TP5), otherwise it will vary and unless it is a 1st take-profit(TP1), the REMAINING trade/position size will always be smaller than original and therefore the percentage to be closed will always be of the REMAINING trade/position and NOT the original one!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" CheatSheet (these are the only percentages you may see)
-----------------------------------------------------------------------
TP PERCENTAGE---Close/Sell Amount-------------Example (trade size: 50 stocks)
20%-------------trade size * 0.2--------------50 * 0.2 = 10 stocks
25%-------------trade size * 0.25-------------50 * 0.25 = 12.5(~13) stocks
34%-------------trade size * 0.34-------------50 * 0.34 = 17 stocks
40%-------------trade size * 0.4--------------50 * 0.4 = 20 stocks
50%-------------trade size * 0.5--------------50 * 0.5 = 25 stocks
60%-------------trade size * 0.6--------------50 * 0.6 = 30 stocks
66%-------------trade size * 0.66-------------50 * 0.66 = 33 stocks
75%-------------trade size * 0.75-------------50 * 0.75 = 37.5(~38) stocks
80%-------------trade size * 0.8--------------50 * 0.8 = 40 stocks
100%------------trade size--------------------50 = 50 stocks
-----------------------------------------------------------------------
If for any reason a portion of the current/remaining trade closed at such occurrence was slightly wrong, it is not an issue. Such occurrences are rare and with slight difference in partial TP closed is not significant to overall performance of our algorithms.
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like.
NOTE: Each label , , etc. is customizable, you can change the text of it within indicator Input settings.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
TP4: 22500
TP5: 23500
SL: 19000
Leverage: 0
---------------------------------------------------------------------------
Here is how a TP1 alert will look with 5 TPs breakdown of the trade.
NOTE1: Next to TP1 taken it will show at which price it was triggered.
NOTE2: Next to "TP Percentage" it shows how much of the CURRENT/ACTIVE/REMAINING trade needs to be closed.
NOTE2: If TP2/3/4/5 comes before TP1 - the alert will tell you exactly how many percent of the trade needs to be closed!
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: TP1
TP1: 20500
TP Percentage: 20%
---------------------------------------------------------------------------
Here is how an alert will look for LONG - STOP-LOSS.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
ENTRY: 20000
LONG: SL
SL: 19000
---------------------------------------------------------------------------
Here is how an alert will look for LONG - EOD (End of Day) In Profit close.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: EOD-Close (profit)
ENTRY: 20000
EOD-Close: 21900
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Add indicator to chart and make sure the correct strategy is configured (check Backtesting results)
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "alert() function calls only", as other wise there will be 2 alerts for every alert!
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
If you have any questions or issues with the indicator, please message me directly via TradingView.
---------------------------------------------------------------------------
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
---------------------------------------------------------------------------
NOTE: There seems to be a strange glitch when strategy is running live, it will show "double-take" take-profits labels on the chart. This is not affecting the script logic and backtesting results, if you simply change the timeframe real quick to something else then back - it will no longer show the duplicate orders... this must be some sort of a glitch as every alert was thoroughly tested to make sure everything is working!
Ultimate Bollinger Bands by @DaviddTechThis strategy uses the Ultimate Bollinger and Aroon indicator.
The logic behind the code is
* Enter long :
Aroon up is below the 20 or lower line in settings.
Aroon down is above 70 or above line in settings.
When close crossover the lower Bollinger Band we take an entry
SL is %
TP is % of if Aroon up is below the 70 or lower line in settings.
Aroon down is above 20 or above line in settings.
When close crossover the upper Bollinger Band
* Short :
Aroon down is below the 20 or lower line in settings.
Aroon up is above 70 or above line in settings.
When close crossunder the upper Bollinger Band we take an entry
SL is %
TP is % of if Aroon up is below the 20 or lower line in settings.
Aroon down is above 70 or above line in settings.
When close crossover the lower Bollinger Band
Settings I used to get the results below :
====================
** Ultimate Bollinger Bands by @DaviddTech **
====================
Enable Repainting? = False
Enable LONG entries? = True
Enable SHORT entries? = True
lengthBB = 20
Source = close
StdDev = 2
Offset = 0
Aroon Length = 14
Aroon Enter upper band = 85
Aroon Enter lower band = 5
Aroon Exit upper band = 70
Aroon Exit lower band = 20
Restrict Entries to Date Range? = False
From : = 1611100800000
To : = 1613779200000
Show Liquadation line (BETA) = False
Leverage Amount = 25
Maintenance Margin Rate = 0.5
Type of Exit / Entry = Enter New Trade Only if NO running Trades
Type of Take Profit = Custom Stoploss
Type of Stoploss = Custom Stoploss
Stop Loss % = 4
Take Profit % = 6
Highest High lookback = 50
Lowest Low Lookback = 60
Profitfactor Long (Risk to Reward) = 2
Profitfactor Short (Risk to Reward) = 0.5
Stoploss Factor: LONG = 4
SHORT = 4
Profit Factor: LONG = 2
SHORT = 2
ATR Length = 11
Length = 200
Source = hlc3
Multiplier = 3
Level = 764
Take Multi Profit X3 = False
% to take at First TP = 33
% to take at Second TP = 33
% to take at Third TP = 100
Use Strategy Alerts? - Please read the tooltip = False
Show S/R Levels = False
Use MFI + RSI = False
RSI Source = close
RSI Length = 14
RSI Oversold = 30
RSI Overbought = 60
MFI Period = 60
MFI Area multiplier = 150
MFI Area Y Pos = 2.5
Use vWap = False
vWap Source = close
vWap2 Source = close
Vwap Length = 3
EMA Breakout = False
EMA Length = 100
Use MTF EMA cross = False
MTF = 5
EMA Period = 5
MTF = 5
EMA Period = 30
WARNING:
- For purpose educate only - My mission is to debunk fake strategies with code to find THE ONE.
- Plots EMAs and other values on chart.
- This script to change bars colors.
If you have any questions or feedback, please let me know in the comments.
Top Bottom Finder Public version- Jayy This script plots a 6 algos from the Coles/Hawkins "Midas Technical Analysis" book:
Top finder / Bottom Finder (Levine Algo by Bob English)* - onlinelibrary.wiley.com
MIDAS VWAP Gen-1) -
MIDAS VWAP average and deltas
VWAP (Gen-1) using a date or a bar n number can be initiated at bar 0 - useful for a new IPO
Standard Deviation of MIDAS VWAP
MIDAS Displacement Channels (Coles) - edmond.mires.co
An%20Anchored%20VWAP%20Channel%20For%20Congested%20Markets.pdf
* for better results with topfinder and bottomfinder use the companion TB-F Matcher script.
See wiki for a synopsis: en.wikipedia.org
Relevant info can be found in: Midas Technical Analysis: A VWAP Approach to Trading and Investing in Today’s Markets by
Andrew Coles, David G. Hawkins Copyright © 2011 by Andrew Coles and David G. Hawkins.
Appendix C: TradeStation Code for the MIDAS Topfinder/Bottomfinder Curves ported to Tradingview
This script requires a working understanding of "Midas Technical Analysis" Google "Midas Technical Analysis" and a variety of information will appear.
To find fit the curve as described in the Midas book a companion script is required that will after a few manual iterative inputs guide you to the appropriate D value for the for input into this program ( see the TB-F Matcher script). You might also try the Midas average and Deltas as described in the book. I have added the 2nd, 3rd and 4th multiples of Delta.
The advantage is that there is no curve fitting. You still need to select a starting point for Midas or the topfinder bottomfinder (TB_F)
or the VWAP.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
See the notes in the script below
Cheers Jayy
Black Moving AveragesGENERAL OVERVIEW
The moving average (MA) indicator is a foundational yet versatile tool in technical analysis, used by traders and investors to smooth out price data over a specific time frame. This helps to identify the direction of a trend by filtering out short-term fluctuations or "noise" in the price action. By observing the moving average line, traders can gain insights into potential support and resistance levels, trend strength, and possible trend reversals. Moving averages are especially useful in trending markets, where they can enhance the timing of entries and exits.
The Black Moving Averages indicator is an enhanced Moving Average indicator with unique features in one indicator, features like multi-timeframe, multi-types/length, custom labelling and moving average compact PANEL with multi-symbol support.
📌HOW DOES IT WORK
A moving average is a constantly updated average price calculated by adding up the closing prices of a security over a set period and dividing by the total number of periods.
Uptrend: If the moving average line is sloping upwards and the price is above the moving average, this typically indicates an uptrend.
Downtrend: If the moving average slopes downward with price action mostly below it, a downtrend is likely in effect.
Flat/Sideways Trend: When the moving average is flat, it suggests a range-bound or consolidating market with no clear trend.
Common Moving Average Periods:
The choice of period for a moving average can vary significantly depending on the trader’s strategy:
Short-Term Traders: Often use periods such as 5, 10, or 20 (intraday or daily) to capture quick price movements.
Medium-Term Traders: Typically use 50-period MAs, which can help spot trend changes within a few weeks to a few months.
Long-Term Traders/Investors: Favor 100, 200, or even 250-period MAs to analyze the overarching trend in daily or weekly charts.
📌HOW TO USE IT
When an asset's price crosses above its moving average, it can be a signal to buy, while crossing below can be a signal to sell.
Moving Average Crossovers: When a short-term moving average crosses above a long-term moving average, it generates a “Golden Cross,” indicating a bullish trend. Conversely, when a short-term MA crosses below a long-term MA, this creates a “Death Cross,” signalling a potential bearish trend.
Moving Average Envelopes and Bands: Some traders use moving averages to create envelopes or bands (e.g., Bollinger Bands), which add upper and lower bands around the moving average. These can help to assess the volatility and gauge potential price reversals.
Dynamic Support and Resistance: Longer-term MAs, such as the 200-day SMA, often act as dynamic support or resistance. If the price bounces off this MA several times, it reinforces the indicator’s significance.
Trend Confirmation and Continuation: Traders can confirm trends by observing if the price consistently stays above or below the moving average. This can be a signal to maintain an existing position.
Crossover Signals for Entries and Exits: A crossover strategy, where a shorter MA crosses above or below a longer MA, can serve as a reliable entry or exit point. This is particularly popular for catching early trend changes.
Combining with Other Indicators: Moving averages often yield better results when used alongside other indicators, such as the Relative Strength Index (RSI) for confirming overbought or oversold conditions, or the MACD for gauging momentum.
Limitations of Moving Averages
Lagging Nature: Moving averages rely on historical data, which makes them inherently lagging indicators, meaning they tend to react after a trend is already underway.
False Signals: In range-bound or choppy markets, moving averages can produce false signals, leading to potentially unprofitable trades.
When to be cautious:
When an asset's price is driven by strong momentum, it can remain over-extended for a long time. In this case, slight pauses may be mistaken for reversals.
By refining your understanding of moving averages and using them within the broader context of technical analysis, you can leverage their simplicity and effectiveness to better time entries, and exits, and spot potential reversals in various types of market conditions.
Black Moving Averages Indicator Features:
Multiple Moving Averages with multiple types, lengths & Cross
Multi Timeframe support
Moving Average PANEL with TF, Multi Symbol, Type, Length & Trend Strength
Moving Averages Horizontal Display with Labels (Type, TF, Price)
⚙️Black Moving Average SETTINGS
+ Black Moving Averages Dashboard ◢
- Moving Averages: Enable/Disable the Moving Averages on Chart
- MA Cross: Enable/Disable the Moving Averages Cross plot on the Chart
- MA PANEL: Enable/Disable the Moving Averages Panel on Chart
- VWAP: Enable/Disable the VWAP on Chart
+ Moving Averages Display Settings ◢
- Switch to Horizontal Lines: It switches the moving averages lines into horizontal lines on the charts
- Labels: It allows users to display moving averages labels (TF, type, length), prices or both on the chart
- Label Text Size: The user can select label text size (Tiny, Small, Normal, Large, Huge)
- Label Offset: Input label offset value (distance of label display from moving averages)
+ Moving Average Settings ◢
- Moving Average Length: input value of moving average length
- Color: Color selection for moving average
- Timeframe: Selection of timeframe for the moving average
- Type: Selection of MA type for the moving average
- Source: Selection of MA source(close, open etc) for the moving average
- Style: Display style (Line, Cross, Circle) for the moving average
- Line width: Display width of the moving average
+ Moving Average Cross Settings ◢
- | | Coss A | :
Plots cross of two user-specified moving averages on the chart
- | | Coss B | :
Plots cross of two user-specified moving averages on the chart
- | | Coss C | :
Plots cross of two user-specified moving averages on the chart
+ Moving Average PANEL Settings ◢
- Override Panel Symbol: Enables user to select the symbol for MA PANEL
- MA Panel Symbol: Displays symbol on the MA PANEL
- Panel H/V Position: Displays MA Panel Horizontally or Vertically
- Moving Average Panel Position: Selection of MA Panel position on the chart
- Panel Text Size: The user can select panel text size (Tiny, Small, Normal, Large, Huge)
- Panel Text Color: Color selection for panel text
- Cross A: Displays moving averages bullish/bearish cross on the panel from "Moving Average Cross Settings"
- Cross B: Displays moving averages bullish/bearish cross on the panel from "Moving Average Cross Settings"
- Cross C: Displays moving averages bullish/bearish cross on the panel from "Moving Average Cross Settings"
- Panel MA Length: input value of panel moving average length
- Timeframe: Selection of timeframe for the panel moving average
- Type: Selection of MA type for the panel moving average
- Source: Selection of MA source(close, open etc) for the panel moving average
Feedback & Bug Report
if you found any bug in this indicator or any suggestion, please let me know. Please give feedback & appreciate it if you like to see more future updates and indicators. Thank you
Sessions [LuxAlgo]This indicator shows when user set sessions are active and returns various tools + metrics using the closing price within active sessions as an input. Users have the option to change up to 4 session times.
The indicator will increasingly lack accuracy when the chart timeframe is higher than 1 hour.
Settings
Sessions
Enable Session: Allows to enable or disable all associated elements with a specific user set session.
Session Time: Opening and closing times of the user set session in the hh:mm format.
Range: Highlights the associated session range on the chart.
Trendline: Returns the associated session trendline on the chart.
Mean: Returns the associated session mean average on the chart.
VWAP: Returns the associated session volume weighted average price on the chart.
Ranges Settings
Range Area Transparency: Transparency of the area highlighting sessions ranges.
Range Outline: Highlights the borders of the session range area.
Range Label: Shows the session label at the mid-point of the session interval.
Dashboard
Show Dashboard: Enables sessions dashboard on the chart.
Advanced Dashboard: Returns more information regarding user set sessions on the dashboard.
Dividers
Show Session Divider: Highlights active sessions using intervals on the bottom of the chart (this can lead to less responsive charts)
Show Daily Divider: Highlights days on the chart.
Usage
This tool is versatile and allows the user to perform a wide variety of tasks all focusing on highlighting and analyzing price movements within a specific user set session in a periodic fashion.
Significant forex trading sessions are used by default, but the users are free to choose the opening and closing time of their choices.
Using ranges can indicate which sessions returned the most volatile price movements.
Trendlines can be useful to estimate the underlying trend of a specific session, but they can also offer a quick way to see which session started a trend reversal.
The session Mean highlights the equilibrium level within a session, extrapolating these levels can provide potential support and resistances levels of interest.
Finally, users can use the sessions VWAP's for real time applications, using them as trailing supports and resistances.
Using The Advanced Dashboard
The advanced dashboard returns useful information regarding the user set sessions. Each dashboard elements are described below:
Status: Highlights whether the user set session is active (open) of inactive (closed).
Trend: Shows correlation coefficient between the session prices and a linear sequence of values. Values above 0 indicates an up-trending session, while values under 0 indicates a down-trending session. Values closer to (1, -1) indicates a more trending session.
Volume: Shows accumulated volume within the session
σ (Standard Deviation): Shows standard deviation of the session, while this value is not bounded it can be useful to compare it with the other ones to see which session was the most volatile.
Note that when a session becomes inactive the value on the dashboard will hold until the specific session becomes active again.
[BUBBLENUKE] BOB The Reversal Trader=============================================================: BOB The Reversal Trader :=============================================================
COMPONENTS:
- VWAP Anchored at Friday CME close
- Bitcoin CME close
- Volume bars
SETTINGS:
- Asset: BTCUSDTPERP
- Time frame: 30M
- Hard TP %: 1.5
- Hard SL %: 40
- Trading Session Start (UTC): 4
- Trading Session End (UTC): 17
DESCRIPTION:
BOB is a mean-reversion trading system focused in BTCUSDT asset in the 30M time frame. The system is divided into 2 types of entries:
WEEKENDS:
BOB will trigger his entry when the price of Bitcoin is at one of the two deviations from the VWAP anchored at Friday CME close and BOB will take your profits when the price returns to the VWAP. When BOB hits Sunday and the CME reopens, BOB will close all your open positions.
INTRA-WEEK:
BOB will trigger its entry when the price of Bitcoin is at one of the two deviations from the VWAP anchored at the Friday CME close or when a volume candle indicates a reversal. BOB will take your profits when the price returns to the VWAP or when the HARD TP % is reached (1.5% by default). When BOB hits Friday and the CME closes, BOB will close all your open positions.
Chart Champions_PVWAPHere the timeframe referrers to the previous bar of vwap. So if you remove the time frame from this indicator it will show you the previous 5min VWAP on your 5min chart, or previous 1D VWAP on your daily chart. If you enter 1W it will show you the previous 1W VWAP (VWAP of the previous week) on any chart time frame.
TRADE MASTER-SCALPER [STUDY]Hello,
MY FELLOW TRADERS
ROBINHOODLAB introduces TRADEMASTER
What is TRADEMASTER ?
TRADEMASTER is a series of bespoke technical indicators that are developed on the basis of advanced trading algorithms, Geometric predictions and precise mathematical calculations which are derived from various powerful trading metrics like price, volume , trend, volatility , support/resistance , supply/demand, Fibonacci, pivots , trendlines , candlestick patterns, multi-timeframe analysis, chart patterns (Double tops or bottom, wedges , head and shoulders , cup and handle , pennant , flag, rectangle , parallel channel , pitchforks , triangle), harmonic patterns ( AB-CD , Gartley , butterfly , three drives , bat, cipher, 5-0 , shark ), fractals, market cycles, wave analysis ( Elliot wave , neo wave , sine wave , Wolfe wave , Kondratieff wave), gann ( gann box , gann fan , gann square ) and many more. Hence, the combination of these trading metrics generate very powerful signals and trade opportunities, which further enhances, fine-tunes, facilitates, and provides clear cut pointers to traders about the current market condition and assisting them in managing, organizing, and planning the trades better in an easy and systematic way.
TRADEMASTER also acts as a learning tool for those who are new to technical analysis by helping them to quickly understand things on the chart in the easiest way possible.
The variation that you see above on the chart is TRADEMASTER-Scalper
TRADEMASTER Scalper is a powerful scalping system that consists of 40 different moving averages to choose from to better suit your scalping/trading style.
1) 'ALMA: Arnaud Legoux'
2) 'Double EMA'
3) 'EMA: Exponential'
4) 'ETMA: Triangular Exponential'
5) 'Hull MA'
6) 'KAMA: Kaufman Adaptive'
7) 'Linear Regression Curve'
8) 'McGinley Dynamic'
9) 'SMMA/RMA/Wilders: Smoothed/Running'
10) 'SMA: Simple'
11) 'SWMA: Symmetrically Weighted'
12) 'Triple EMA'
13) 'TMA: Triangular'
14) 'VWMA: Volume Weighted'
15) 'VWAP: Vol Weighted Average'
16) 'MVWAP: EMA VWAP'
17) 'WMA: Weighted'
18) 'ZLEMA: Zero Lag'
19) 'VMA: Variable moving average'
20) 'BW2: Butterworth 2 poles'
21) 'BW3: Butterworth 3 poles'
22) 'TRI: Trimean'
23) 'AHRENS: Ahrens moving average'
24) 'REC: Recursive moving trend average'
25) 'IIR: Infinite Impulse Response Filter'
26) 'MM: Moving median'
27) 'ELASTIC: Elastic Volume Weighted Moving Average'
28) 'RSI: Adaptive RSI'
29) 'LEO: Leo Moving Average'
30) 'DSMA: Deviation Scaled Moving Average'
31) 'PWMA: Parabolic Moving Average'
32) 'VLP: Low Pass'
33) 'VSN: Sine weighted Moving Average'
34) 'SMO: Smoothed MA'
35) 'GUA: Guassian Filter Multi Pole'
36) 'GEO: Geometric Mean'
37) 'REM: Regularised MA'
38) 'T3: Tilson T3'
39) 'BRY: Bryant Adaptive Moving Average'
40) 'DTMA: DT moving average'
Have a look at some of the screenshots of TRADEMASTER-Scalper :
ROBINHOODLAB
For more information please scroll down for links of telegram group, website, pricing plans, trial access, and more.
[Support and Resistance with Trend Lines] with Backtest (TSO) with Backtest (TSO)
===========================================================================
===========================================================================
This indicator serves as a comprehensive full-cycle trading system, providing alerts at each stage of the trade, from opening to closure. The algorithm uses most recent and historical S&R (Support and Resistance) levels with most recent and historical Trend Lines, generating signals for trades when Breaks/Bounces occur (Trade Open Signal triggers can be configured via very customizable indicator Input "Signal Trigger Matrix" settings). With signal for trade open, TP (Take Profit and SL (Stop Loss) levels are calculated as well and marked on the chart including alerts for each action of the trade. The indicator offers a variety of automated approaches for TP (Take-Profit) and SL (Stop-Loss) settings. These include static current/historical S&R (Support and Resistance) levels or S&R/Trend Lines dynamic breaks for TP (Take-Profit) and various SL (Stop-Loss) approaches, including ATR Trailing SL, opposite S&R (Support and Resistance) levels SL, opposite Trend Lines SL and more. This diverse set of tools ensure flexibility in tailoring TP (Take-Profit) and SL (Stop-Loss) parameters to different market conditions, contributing to a more adaptive and robust trading system. Additionally, a series of signal analysis tools, including market sentiment, candle bar analysis, divergence, and volume, enhance the precision of trading signals.
* Works with popular timeframes: 1M, 3M, 5M, 15M, 30M, 45M, 1H.
* Works well with Futures and Indices, can be used to trade Stocks, Crypto and FOREX.
* Includes LIVE alert/labels Breakouts and Bounces signal trigger feature, which can be used for scalping (NOTE: This approach cannot be backtested).
* Every action of the trade is calculated on a confirmed closed candle bar state (barstate.isconfirmed), so the indicator will never repaint.
==============================================================
Indicator examples:
---------------------------------------------------------------------------
Strategy Config: SRTL_MES_15M3Y_EODoff_ALL
Here is a nice example of MES (Micro E-Mini S&P 500 Index Futures) configuration, which uses S&R (Support and Resistance) breakouts as signal trigger with Elliot Wave confirmation and previous S&R historical levels for TP (Take-Profit).
---------------------------------------------------------------------------
An example of an intraday Tesla trade. Also the green arrows will be displayed IMMEDIATELY when Breakout/Reverse Bounce occurs (same an Alert will be triggered immediately).
===========================================================================
Trading open/close/TP/SL labels, plots and colors explanations:
---------------------------------------------------------------------------
>>> S&R (Support and Resistance) levels/lines: orange - support, blue - resistance (can be hidden).
>>> Trend Lines: yellow - support, green - resistance (can be hidden).
>>> Blue labels show resistance breakouts and bounces, light-blue - bullish, dark-blue - bearish
>>> Yellow labels show resistance breakouts and bounces, light-yellow - bullish, dark-yellow - bearish
>>> Green/Red arrows on top/bottom of candle bar will show LIVE breakouts (if turned on)
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD (End of Day | Intraday style) close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
STATS TABLE ///////////////////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading STATS table on the chart showing current trade direction, Last TP (Take-Profit) Taken, Current Trade PL (profit/loss in price difference from trade open to the very current state).
---------------------------------------------------------------------------
CUSTOM TRADING DATE RANGE /////////////////////////////////////////////////
---------------------------------------------------------------------------
>>>>> This feature can be used to manually set indicator trading range from and to a specific date and time. NOTE: This is not intended for a very long date range backtesting, utilize TradingView Strategy Tester for that.
* Use TradingView “Strategy Tester” to see Backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case - manually check “Start”/“End” dates or use “Deep Backtesting” feature!
---------------------------------------------------------------------------
INTRADAY ACTIVE TRADING SESSION CONFIGURATION /////////////////////////////
---------------------------------------------------------------------------
>>> Regional Active Trading Session Hours Schedule: If selected - trades will only open during regional active trading session, if 'OFF', there will be no trading schedule and trades will open 24/7.
>>> EOD(End of Day) Close - On/Off: Close the trade if it's still open at the end of active trading session (on the very last candle bar). NOTE: If no region is selected at 'Regional Active Trading Session Schedule' - there will be no EOD(End of Day) Close and trades will run overnight until either SL(Stop-Loss) or TP(Take-Profit) is hit!
>>>>> EOD(End of Day) Close - 1 candle bar before last: This is specifically for stocks as while usually indices can be closed 15minutes after the market closes, for stocks - the last candle bar closes at the same time with the market active trading session, which if closed - trades can't be closed until next day/session! Enable this setting for the trade to close/alert 1 candle bar before the last one, so there is still time to close the trade at the Broker (NOTE: depending on the timeframe, 1 candle bar can be: 15sec, 30sec, 1min, 3min, 5min, 15min, 30min, 45min, 1h).
---------------------------------------------------------------------------
SIGNAL TRIGGER MATRIX ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Trading Engine: This setting turns on TradingView Strategy trading engine for backtesting.
>>> Market Session Only: With this setting turned on, all signal trigger Breaks/Bounces will be hidden during Pre/Post market time.
>>> Plot S&R Levels/Lines: Plot S&R (Support and Resistance) on chart. Note: historical levels/lines will only be plotted if hit (Break/Bounce).
>>> Plot Trend Lines Levels/Lines: Plot Trend Lines levels/lines on chart. Note: historical levels/lines will only be plotted if hit (Break/Bounce).
>>> Use S&R Current Levels | Use S&R Historical Levels | Use Trend Lines Current Levels | Use Trend Lines Historical Levels |: Choose which levels should be used for Breaks/Bounces to be captured on. If all triggers are turned on/checked - whatever happens 1st wins the trigger.
>>> Breaks | Bounces: 'Breaks': Turn on Breaks through levels/lines signal trigger. | 'Bounces': Turn on Bounces off levels/lines signal trigger.
>>> Signal: Regular | Signal: S&R Combo | Signal: TL Combo | Signal: S&R + TL Combo | Signal: Repeat Action |: Trade open signal trigger execution approach MATRIX (If 1 or more turned on at the same time - whatever comes first will be the trade signal trigger). 'Regular': A single Break/Bounce must occur on a closed bar for signal trigger. 'S&R Combo': A combination of 2 Current + Historical S&R (Support and Resistance) Break/Bounce must happen in the same direction on same bar for signal trigger. 'TL Combo': A combination of 2 Current + Historical Trend Lines Break/Bounce must happen in the same direction on same bar for signal trigger. 'S&R + TL Combo': a combination of ANY S&R and Trend Line Break/Bounce must happen in the same direction on same bar for signal trigger. 'Repeat Action': Initial and then confirmation (2nd/3rd/etc. consecutive occurence) Break/Bounce must occur on same level/line for signal trigger.
>>> Historical - Look Back (# of days): How far back (in # of days) will historical S&R/Trend Lines will be used for Trade Open signals/TP/SL/etc.
>>> Historical - Look Back Invalidation (# of days): IF THERE IS TOO MUCH HISTORICAL LEVELS/LINES ON CHART - LOWER THIS SETTING + MAKE SURE IT'S SMALLER THAN 'Historical - Look Back (# of days)'. With big Look back period (5+ days) - it can become very messy with too many historical levels/lines. To clear oldest historical levels/lines - set Look Back Invalidation # of days to less than Historical Look Back # of days. (After X # of Look Back Invalidation days - older levels/lines will become invalidated and no longer used for opening trades/TP (Take-Profit)/SL (Stop-Loss), while newer levels/lines will still be discovered.
>>> S&R/Trend Lines - Support/Resistance combined into 1 entity: Every level or a line becomes simply a level or a line, regardless if it originally was a support or resistance. By default, depending on the level/line originally being support or resistance - the signal direction will be such as: Resistance is broken > LONG / bounced > SHORT; Support is broken > SHORT / bounced > LONG; with this setting on, either level or line can be both broken or bounced off in ANY direction, trade open direction will depend on current market sentiment only.
---------------------------------------------------------------------------
S&R CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> S&R Search - Left Bars (current): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars).
>>> S&R Search - Right Bars (current): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars).
>>> S&R Search - Custom Resolution (current): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> S&R Search - Left Bars (historical): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with below - Right Bars).
>>> S&R Search - Right Bars (historical): This setting is for calculating optimal S&R (Support and Resistance) levels (in combination with above - Left Bars).
>>> S&R Search - Custom Resolution (historical): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> S&R - Historical S&R Levels - Extend to the right: Extend all S&R lines to the right.
>>> S&R (Current/Historical) - Live Breakout/Bounce - ALERT/SHOW: NOTE: Alert wlil trigger immediately at price Breaking thru or Bouncing off level/line and an arrow above /below the bar will show the direction of breakout/bounce. If on that same live bar - price comes back causing the Breakout/Bounce become no longer valid - the arrow will disappear as the condition of the Break/Bounce will no longer be valid.
---------------------------------------------------------------------------
TREND LINES CONFIGURATION ////////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Show: Trend Line development (where it 'did not exist' yet): It takes 2 pivots to develop a trend line, pivot is established at least 3 candle bars later from where the pivot is. With this setting turned on - it will plot dashed lines where trend lines originated connecting the 1st and 2nd pivot point up to where the trend line became established (where in reality you would now be able to draw a certain trend line). Established already generated trend line are plotted with a solid line.
>>> Trend Lines - Line Slope Confirmation: LONG breakout will only be shown if trend line is goind downslope \. SHORT breakout will only be shown if trend line is goind upslope /.
>>> Trend Lines - Search - Left Bars (current): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Search - Right Bars (current): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Custom Resolution (current): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> Trend Lines - Search - Left Bars (historical): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Search - Right Bars (historical): This setting is for calculating optimal Trend Lines.
>>> Trend Lines - Custom Resolution (historical): This is a custom timeframe setting specifically for S&R Search, it disregards current chart timeframe. This is great to use for scalping, for example: with main chart set to 1min and the custom timeframe set to 3min or 5min - there will be stronger support/resistance levels with more detailed price action.
>>> Trend Lines - Historical Trend Lines - Extend to the right: Extend all Trend Lines to the right.
>>> Trend Lines (Current/Historical) - Live Breakout/Bounce - ALERT/SHOW: NOTE: Alert will trigger immediately at price Breaking thru or Bouncing off level/line and an arrow above /below the bar will show the direction of breakout/bounce. If on that same live bar - price comes back causing the Breakout/Bounce become no longer valid - the arrow will disappear as the condition of the Break/Bounce will no longer be valid.
---------------------------------------------------------------------------
TAKE-PROFIT/STOP-LOSS CONFIGURATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> TP (Take-Profit) System: 'S&R Static Current/Historical': TP (Take-Profit) is calculated using current/historical S&R (Support & Resistance) levels at trade open and remains static. 'S&R/Trend Lines Dynamic Breaks': TP (Take-Profit) is fully dynamic and will be trigger at price above trade open price and with Breakout occurence (S&R or Trend Line current/historical breakout).
>>> TP (Take-Profit) # of targets: It is wise to divide the trade into several profit targets. With this setting - up to 5 TP (Take-Profit) targets can be approached. The trade will be equally divided up by the selected # of TP (Take-Profit) targets.
>>> SL (Stop-Loss) System: 'ATR-Trailing-SL': SL (Stop-Loss) is trail-following the ATR (Average True Range) line, NOTE: If at signal trigger, ATR will be against the trade direction - trade open signal will be skipped; 'S&R-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent S&R level and remains there until trade closes; 'TrendLines-Static-SL': SL (Stop-Loss) is set at trade open per optimal most recent trend line and remains there until trade closes; 'TrendLines-Dynamic-SL': SL (Stop-Loss) will be set per current opposite trend line and follow it until trade is open.; 'Oppos-Sig-Trd-in-Loss': SL (Stop-Loss) will trigger at opposite signal with trade currently at loss.
>>> SL (Stop-Loss) - On/Off: Without SL (Stop-Loss), unless EOD (End of Day) Close is turned on - there will be no SL (Stop-Loss) at all!
---------------------------------------------------------------------------
MARKET SENTIMENT CONFIRMATION ///////////////////////////////////////
---------------------------------------------------------------------------
>>> Market Sentiment: Signal is confirmed per Market Sentiment direction. If Market Sentiment is turned off - whatever signal comes 1st will be the trade open trigger.
---------------------------------------------------------------------------
SIGNAL ANALYSIS AND CLEANUP ///////////////////////////////////////////////
---------------------------------------------------------------------------
>>> Signal Cleanup - Bar Color: Include Bar Color (bullish/bearish) confirmation, LONG signal will only be opened if signal bar is green/bullish, SHORT if red/bearish.
>>> Signal Cleanup - Bar Directional Structure: Skip opposite bar structure types signals (For example: bearish green hammer).
>>> Signal Cleanup - Bar Doji Skip: Skip doji (indecisive) candles signals.
>>> Signal Cleanup - EWO (Elliott Wave Oscillator): Include EWO (Elliott Wave Oscillator), LONG will only be opened if EWO is bullish / SHORT if EWO is bearish.
>>> Signal Cleanup - VWAP (Volume-Weighted Average Price): Include VWAP (Volume-Weighted Average Price), LONG will only be opened if price is above VWAP / SHORT if price is below VWAP.
>>> Signal Cleanup - MA (Moving Average) Confirmation: Include MA (Moving Average), LONG will only be opened if MA is bullish / SHORT if MA is bearish.
>>> Signal Cleanup - ATR (Average True Range): Include ATR (Average True Range) confirmation, LONG will only be opened if ATR is bullish / SHORT if ATR is bearish.
>>> Signal Cleanup - Divergence(RSI + MACD): Include Divergence (RSI + MACD ) confirmation, LONG will only be opened if Divergence is bullish / SHORT if Divergence is bearish.
>>> Signal Cleanup - Volume % Strength: Include Volume strength/percentage confirmation, LONG/SHORT will only be opened with strong Volume matching the signal direction | By default, strong Volume percentage is set to 150% and weak to 50%.
>>> Signal Cleanup - Volume Above Average: Include Volume Above Moving Average (Volume closing bar closes above volume moving average) confirmation, LONG/SHORT will only be opened with Volume above average - Volume closed bar color must match the closed price color (bullish/bearish direction) + Volume bar must be closed above volume MA line).
---------------------------------------------------------------------------
===========================================================================
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
TP System - VERY IMPORTANT INFO!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" - amount by which current trade/position needs to be reduced/partially closed/sold.
-------------------------------------------------------------------------------------------------------------------
TP System: Dynamic
"TP PERCENTAGE" - will always be the same amount (trade/position size divided by the # of take-profit(TP) targets) and percentage to be closed will always be of the ORIGINAL trade/position.
-------------------------------------------------------------------------------------------------------------------
TP System: Static
"TP PERCENTAGE" - will always be the same amount IF take-profit(TP) targets are hit 1-by-1 (TP1 > TP2 > TP3 > TP4 > TP5), otherwise it will vary and unless it is a 1st take-profit(TP1), the REMAINING trade/position size will always be smaller than original and therefore the percentage to be closed will always be of the REMAINING trade/position and NOT the original one!
-------------------------------------------------------------------------------------------------------------------
"TP PERCENTAGE" CheatSheet (these are the only percentages you may see)
-----------------------------------------------------------------------
TP PERCENTAGE---Close/Sell Amount-------------Example (trade size: 50 stocks)
20%-------------trade size * 0.2--------------50 * 0.2 = 10 stocks
25%-------------trade size * 0.25-------------50 * 0.25 = 12.5(~13) stocks
34%-------------trade size * 0.34-------------50 * 0.34 = 17 stocks
40%-------------trade size * 0.4--------------50 * 0.4 = 20 stocks
50%-------------trade size * 0.5--------------50 * 0.5 = 25 stocks
60%-------------trade size * 0.6--------------50 * 0.6 = 30 stocks
66%-------------trade size * 0.66-------------50 * 0.66 = 33 stocks
75%-------------trade size * 0.75-------------50 * 0.75 = 37.5(~38) stocks
80%-------------trade size * 0.8--------------50 * 0.8 = 40 stocks
100%------------trade size--------------------50 = 50 stocks
-----------------------------------------------------------------------
If for any reason a portion of the current/remaining trade closed at such occurrence was slightly wrong, it is not an issue. Such occurrences are rare and with slight difference in partial TP closed is not significant to overall performance of our algorithms.
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||| *** ||||||||||||||||||||||||||||||||||| *** |||||||||||||||||||||||||||||||||||
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like.
NOTE: Each label , , etc. is customizable, you can change the text of it within indicator Input settings.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
TP4: 22500
TP5: 23500
SL: 19000
Leverage: 0
---------------------------------------------------------------------------
Here is how a TP1 alert will look with 5 TPs breakdown of the trade.
NOTE1: Next to TP1 taken it will show at which price it was triggered.
NOTE2: Next to "TP Percentage" it shows how much of the CURRENT/ACTIVE/REMAINING trade needs to be closed.
NOTE2: If TP2/3/4/5 comes before TP1 - the alert will tell you exactly how many percent of the trade needs to be closed!
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: TP1
TP1: 20500
TP Percentage: 20%
---------------------------------------------------------------------------
Here is how an alert will look for LONG - STOP-LOSS.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
ENTRY: 20000
LONG: SL
SL: 19000
---------------------------------------------------------------------------
Here is how an alert will look for LONG - EOD (End of Day) In Profit close.
ALERT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
COIN: BTCUSD
TIMEFRAME: 15M
LONG: EOD-Close (profit)
ENTRY: 20000
EOD-Close: 21900
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Add indicator to chart and make sure the correct strategy is configured (check Backtesting results)
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Immediately below, change it to "alert() function calls only", as other wise there will be 2 alerts for every alert!
-Expiration: Open-ended (that may require higher tier TradingView account, otherwise the alert will need to be occasionally re-triggered)
-Alert name: Whatever you desire
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
---------------------------------------------------------------------------
NOTE: There seems to be a strange glitch when strategy is running live, it will show "double-take" take-profits labels on the chart. This is not affecting the script logic and backtesting results, if you simply change the timeframe real quick to something else then back - it will no longer show the duplicate orders... this must be some sort of a glitch as every alert was thoroughly tested to make sure everything is working!
Wick Hunter TV Companion Dynamic VEMA v0.5 (beta)Wick Hunter TV Companion Dynamic VEMA v0.5 (beta)
For triggering trades on Wick Hunter TV Companion
Indicator is similar to the standard VWAP indicator, however - this adds a level of protection against sudden reversals to not counter-trade retracements. This allows you to trade on a low timeframe while still counter-trend trading the overall trend.
Note that VEMA is a volume weighted EMA (i.e. the moving average is weighted by both volume and recency), and is slightly different to VWMA/VWAP. As recent prices are weighted heavier, a longer period should be used if you want a similar trigger to VWMA/VWAP.
Gold IBH/IBL with IBM, Overnight Levels, OVM, and ONVPOCThe Initial Balance (IB) indicator for gold trading is a valuable tool for identifying key price levels and potential trade setups. Here's an overview of how it works:
Initial Balance Calculation
The Initial Balance for gold is calculated from 8:20 AM to 9:20 AM EST, coinciding with the COMEX open. This one-hour period establishes crucial reference points for the trading day.
Key Levels
The indicator displays several important price levels:
IB High: The highest price reached during the Initial Balance period
IB Low: The lowest price reached during the Initial Balance period
IB Midpoint: The average of the IB High and IB Low
These levels often serve as significant support and resistance areas, with many traders placing stop-losses around them.
Overnight Levels
In addition to the IB levels, the indicator shows overnight price action:
ONH: Overnight High
ONL: Overnight Low
ONM: Overnight Midpoint
Overnight VWAP: Volume Weighted Average Price from the overnight session
These overnight levels have a high probability of being tested during the COMEX trading session, making them valuable reference points for traders.
Trading Applications
Traders can use the IB and overnight levels for various purposes:
Setting profit targets
Identifying potential trade entry points
Managing risk by placing stop-losses at key levels
Gauging overall market sentiment and volatility
The levels established during both the Initial Balance and overnight sessions are likely to be touched during the COMEX trading session. This insight allows traders to make more informed decisions and enhances their trading strategies.
If you have more questions about the trading strategy, please DM me, and I can explain further. I also have probabilities of all these levels being broken during the COMEX trading hours, which gives us confidence to hold our trades to targets.
Understanding and utilizing these levels can provide traders with a competitive edge in gold trading, helping them make more informed decisions based on early market dynamics and overnight price action.
Previous Day ValuesSay hello to the Previous Day Values Indicator, your new best friend in the world of trading. This script, written in the powerful Pine Script version 5, is designed to keep you informed about essential price levels from the previous day's trading session, right on your TradingView chart.
Here's how it works:
The script creates horizontal lines on your chart to represent the previous day's high, low, close, and VWAP (Volume Weighted Average Price) levels. Each level is color-coded for easy identification – red for the high, green for the low, blue for the close, and yellow for the VWAP. The lines extend to the right edge of the chart, allowing you to gauge where the current price stands in relation to these crucial levels.
But what makes this script unique is its ability to update dynamically with each new trading day. At the start of a new day, the script clears the lines from the previous day and draws new ones based on the latest data. It uses the request.security function to fetch the previous day's data for the current symbol, so you can rest assured that your information is always up-to-date.
There's also an added layer of customization built into this script. We understand that different traders might want to focus on different things, which is why we've included toggle options for each value. You can choose whether to display the previous day's high, low, close, or VWAP values, or any combination thereof. Just head to the settings and switch on/off the values you want to see.
The labels for these lines are placed further to the right of the screen for easy reading, without cluttering your chart. And if you're worried about distinguishing between them, don't be! Each label is color-matched to its corresponding line, so you'll know at a glance which is which.
In summary, the Previous Day Values Indicator is a versatile tool that can help you keep track of key price levels from the past trading day. Whether you're a seasoned trader or a beginner, this script is sure to be a valuable addition to your toolkit. Happy Trading!
[DisDev] D-I-Y Gridbot🟩 This script is a “do-it-yourself” Grid Bot Simulator, used for visualizing support and resistance levels. Prices are divided into grids, or trade zones, that will trigger signals each time a new zone is entered. During ranging markets, each transaction is followed by a “take profit.” As the market starts to trend, transactions are stacked (compare to DCA ), until the market consolidates. No signals are triggered above the upper gridline or below the lower gridline. Unlike the previous version, all grids may be adjusted in real-time by dragging the gridlines up and down to the desired support and resistance levels.
When adding the indicator to a new chart, you must choose six grid levels by clicking on the desired support or resistance price. You can change all of these levels at any time directly on the chart.
⚡ OVERVIEW ⚡
The D-I-Y Gridbot is an interactive tool designed for visualizing support and resistance levels. As a continuation of the original Gridbot Simulator , which has received significant recognition on TradingView, earning over 4000 boosts and an Editor's Pick status. This tool serves not only as an evolved version of its predecessor, but also as an open-source template for developing future gridbots. It aims to foster discussions and facilitate innovations around grid-trading strategies.
One of the new features of this gridbot is the real-time adjustability of all gridlines. Users can move these lines up and down to set their desired support and resistance levels in response to changing market conditions. Additionally, the D-I-Y Gridbot is compatible with multiple timeframes and can be used on most TradingView charts.
Drag gridlines up or down to desired price level.
Key Features 🔑
All gridlines are adjustable in real-time, directly on the chart
Signals can be filtered by a customizable moving average or by VWAP
Customizable support and resistance levels
Potentially increases profitability in ranging markets
Benefits 💸
Customizable Support and Resistance Levels : The D-I-Y Gridbot allows users to set their preferred support and resistance levels, which can be changed at any time directly on the chart. This provides users with the ability to customize their trading parameters based on their strategy and risk tolerance.
Various Trading Strategies : The D-I-Y Gridbot supports various trading strategies, including Mean Reversion, Ranging Markets, and Dollar-cost averaging (DCA). This allows users to capitalize on price reversals, execute buy and sell orders at predetermined levels, and buy more of an asset as the price falls, respectively.
Multi-Timeframe and Versatility : The D-I-Y Gridbot is compatible with multiple timeframes and can be used on any TradingView chart.
Experimental and Educational : The D-I-Y Gridbot is considered a proof-of-concept tool that is both experimental and educational. This can provide traders with a deeper understanding of grid trading strategies and the ability to experiment with different trading parameters and strategies.
⚙️ CONFIGURATION & SETTINGS ⚙️
Inputs 🔧
Trigger : Candle location to trigger the signal. "Wick" will use either high or low, depending on the signal direction. "Close" will use the close price. “MA” will use the selected moving average or VWAP.
Confirmation : Market direction to confirm the candle trigger. "Reverse" will confirm the signal when the price crosses back over the trigger. "Breakout" will confirm when the price breaks out of the trigger.
Number of Support/Resistance zones : 1 = Only Top Grid is Support/Only Bottom Grid is Resistance. 2 = Top two grids are Resistance/Bottom two grids are Support. 3 = Top three grids are Resistance/Bottom three grids are Support
MA Type : Exponential Moving Average (EMA), Hull Moving Average (HMA), Simple Moving Average (SMA), Triple Exponential Moving Average (TEMA), Volume Weighted Moving Average (VWMA), Volume Weighted Average Price (VWAP)
MA Filter : Use Moving Average as a reversion filter for signals. When enabled, no buys when above MA, no sells when below. Use in conjunction with S/R zones to reduce false signals.
Allow Repeat Signals . When enabled, signals will reset when nearest gridline is triggered. When disabled, only one signal will be triggered per gridline.
Line/Fill colors
Gridlines . Adjusts gridline prices manually.
Left : Trigger = Wick. Confirm = Breakout. Buys are signaled when LOW breaks below gridline. Sells are triggered when HIGH breaks above gridline.
Right : Trigger = Close. Confirm = Breakout. Buys are signaled when the candle CLOSES below the gridline. Sells are triggered when the candle CLOSES above the gridline.
Left : Confirm=Breakout. Signals on breaking through the next gridline.
Right : Confirm=Reverse. Signals only when crossing back from the gridline.
S/R Zones=1. Upper gridline is Resistance / Lower is Support. Middle 4 are neutral.
S/R Zones = 3. Upper three gridlines are Resistance / Lower three are Support
Notes:
If gridlines are dragged out of order on a live chart, they will auto-sort into the correct order.
Price levels may be entered in settings, or adjusted in real-time directly on the chart.
When changing symbols, remember to adjust the gridlines to accommodate the new symbol.
Alerts 🔔
Users can set alerts based on their chosen parameters for triggers, confirmations, number of support/resistance zones, and smoothing type, enabling precise control over alert conditions.
💡 USAGE & STRATEGY 💡
Trading Strategies 📈
Mean Reversion: The script can be used to capitalize on price reversals back to the mean.
Ranging Markets: The script excels in ranging markets, executing buy and sell orders at predetermined levels.
Dollar-cost averaging (DCA): The script can be used to execute DCA orders, buying more of an asset as the price falls, and lowering the average cost per unit.
Timeframes and Symbols ⌚
Multi-Timeframe: The indicator is compatible with multiple timeframes.
Versatile: Can be used on any crypto trading pair on TradingView.
🤖 DETAILS & METHODOLOGY 🤖
Algorithm and Calculation 🛡️
Grids are set and adjusted when loading the indicator on the chart and may be customized anytime afterward by clicking and dragging the gridlines on the chart.
Gridlines are updated, sorted, and stored in a float array.
Signals are calculated based on candle trigger, market direction, and previous price level.
📚 ADDITIONAL RESOURCES 📚
Chart Examples 📊
S/R Zones = 3: Three Support and Three Resistance. Filter = 50-period Triple Exponential Moving Average (TEMA)
S/R Zones = 1: One Support, One Resistance, and Four Neutral Zones. Support Zones: Buys only. Resistance Zones: Sells only. Neutral Zones: Grid-dependent
When MA filter is enabled, Buys are only triggered below Moving Average, and Sells are only triggered above.
Trigger = Wick. Confirmation = Breakout. Buys are signaled when Low breaks above the next grid level. Sells are signaled when High breaks below the next grid level.
🚀 CONCLUSION 🚀
The D-I-Y Gridbot is a proof-of-concept, emphasizing its experimental and educational nature. In future versions, we will aim to incorporate concepts such as auto-adjusting grids and angled grids for trending markets. The script is designed to evolve through user feedback and suggestions, shaping its future iterations.
Credit: This is a continuation of the Gridbot series by xxattaxx-DisDev . Explicit permission was granted by user xxattaxx-disdev to re-use all Gridbot code and all materials without restrictions.
⚠️ DISCLAIMER ⚠️
This indicator is a proof-of-concept and is considered experimental and educational. When gridlines are drawn in hindsight, signals appear to be predictive and valid. Future results may always vary when the trend direction changes. Comments and suggestions are encouraged.
This indicator is provided as a tool for traders and should not be used as the sole basis for making trading decisions. Always conduct your own research and consider your risk tolerance before entering any trades.
SPY to ES or QQQ to NQThis indicator is used to automatically map SPY VWAP and 10 levels of your choice to ES / MES or map QQQ VWAP and 10 levels of your choice to NQ / MNQ . Since SPY and QQQ have the same price action as their futures iteration, there seems to a direct correlation between their levels and VWAP. This indicator is made to easily map the key levels of your choice to the appropriate futures instrument.