Powertrend - Volume Range Filter Strategy [wbburgin]The Powertrend is a range filter that is based off of volume, instead of price. This helps the range filter capture trends more accurately than a price-based range filter, because the range filter will update itself from changes in volume instead of changes in price. In certain scenarios this means that the Powertrend will be more profitable than a normal range filter.
Essentials of the Strategy
This is a breakout strategy which works best on trending assets with high volume and liquidity. It should be used on middle to higher timeframes and can be used on all assets that have volume provided by the data source (stocks, crypto, forex). It is long-only as of now. It can work on lower timeframes if you optimize the strategy filters to make less trades or if your exchange/broker is low/no fees, provided that your exchange/broker has high liquidity and volume.
The strategy enters a long position if the range filter is trending upwards and the price crosses over the upper range band, which signifies a price-volume breakout. The strategy closes the long position if the range filter is trending downwards and the price crosses under the lower range band, which signifies a breakdown. Both these conditions can be altered by the three filter options in the settings. The default trend filter is not alterable because it helps prevent false entries and exits that are against the trend.
Settings
The Length setting is the lookback period for the range smoothing.
The ADX Filter setting enables you to turn on an ADX filter, which will halt entries and exits unless the ADX of your customizable length is above a ADX VWMA of that length.
The Range Supertrend setting creates a supertrend from the top and bottom ranges, which can be used to filter entries and exits. The length is customizable. The filter can show you whether the range is making higher highs and lower lows. Below is an example of the Range Supertrend being used as a filter and plotted on-chart:
The VWMA setting halts entries if they are below a customizable length VWMA.
Both the Range Supertrend and the VWMA can also be plotted separately without actually filtering the strategy, so that you can use them independently if you wish. You can turn off the bar color, the highlighting, and the labels if you wish in the settings. A note about the bar color: if the color changes but the strategy does not signal an exit or entry this means that the crossover was against the trend. In these circumstances it may be indicative of a pullback to enter or exit or to add onto your position.
About the Strategy Results Below
A range filter is normally composed of two components - the range filter itself and a smoothing function. In the development of this script I tested both normal and volume-based varieties of the range filter and the smoothing function:
Tests Performed
Volume-based Range x VWMA smoothing
Price-based Range x VWMA smoothing
Price-based Range x EMA smoothing
Volume-based Range x EMA smoothing (final result)
The highest-performing was a volume-based range filter and a normal EMA-based smoothing function, but that does not mean that this strategy will be profitable - exits are based off of signal reversion so I strongly encourage you to develop your own take profits/stop losses for the strategy if you think it may be a good fit for you. The results below are with a commission value of 0.05% (because I built the strategy first for equities), slippage of 3, so if your exchange/broker has a higher fee schedule, I recommend adding filters and/or moving to higher timeframes for the strategy. Additionally, I used 10% of equity in each trade, while using the Range Supertrend filter (the previous upload was unrealistic because it used 100% of equity - missed a 0, apologies, and added in slippage).
Bands and Channels
MACDh with divergences & impulse system (overlayed on prices)-----------------------------------------------------------------
General Description:
This indicator ( the one on the top panel above ) consists on some lines, arrows and labels drawn over the price bars/candles indicating the detection of regular divergences between price and the classic MACD histogram (shown on the low panel). This script is special because it can be adjusted to fit several criteria when trading divergences filtering them according to the "height" and "width" of the patterns. The script also includes the "extra features" Impulse System and Keltner Channels, which you will hardly find anywhere else in similar classic MACD histogram divergence indicators.
The indicator helps to find trend reversals, and it works on any market, any instrument, any timeframe, and any market condition (except against really strong trends that do not show any other sign of reversion yet).
Please take on consideration that divergences should be taken with caution.
-----------------------------------------------------------------
Definition of classic Bullish and Bearish divergences:
* Bearish divergences occur in uptrends identifying market tops. A classical or regular bearish divergence occurs when prices reach a new high and then pull back, with an oscillator (MACD histogram in this case) dropping below its zero line. Prices stabilize and rally to a higher high, but the oscillator reaches a lower peak than it did on a previous rally.
In the chart above (weekly charts of NKE, Nike, Inc.), in area X (around August 2021), NKE rallied to a new bull market high and MACD-Histogram rallied with it, rising above its previous peak and showing that bulls were extremely strong. In area Y, MACD-H fell below its centerline and at the same time prices punched below the zone between the two moving averages. In area Z, NKE rallied to a new bull market high, but the rally of MACD-H was feeble, reflecting the bulls’ weakness. Its downtick from peak Z completed a bearish divergence, giving a strong sell signal and auguring a nasty bear market.
* Bullish divergences , in the other hand, occur towards the ends of downtrends identifying market bottoms. A classical (also called regular) bullish divergence occurs when prices and an oscillator (MACD histogram in this case) both fall to a new low, rally, with the oscillator rising above its zero line, then both fall again. This time, prices drop to a lower low, but the oscillator traces a higher bottom than during its previous decline.
In the example in the chart above (weekly charts of NKE, Nike, Inc.), you see a bearish divergence that signaled the October 2022 bear market bottom, giving a strong buy signal right near the lows. In area A, NKE (weekly charts) appeared in a free fall. The record low A of MACD-H indicated that bears were extremely strong. In area B, MACD-H rallied above its centerline. Notice the brief rally of prices at that moment. In area C, NKE slid to a new bear market low, but MACD-H traced a much more shallow low. Its uptick completed a bullish divergence, giving a strong buy signal.
-----------------------------------------------------------------
Some cool features included in this indicator:
1. This indicator also includes the “ Impulse System ”. The Impulse System is based on two indicators, a 13-day exponential moving average and the MACD-Histogram, and identifies inflection points where a trend speeds up or slows down. The moving average identifies the trend, while the MACD-Histogram measures momentum. This unique indicator combination is color coded into the price bars for easy reference.
Calculation:
Green Price Bar: (13-period EMA > previous 13-period EMA) and
(MACD-Histogram > previous period's MACD-Histogram)
Red Price Bar: (13-period EMA < previous 13-period EMA) and
(MACD-Histogram < previous period's MACD-Histogram)
Price bars are colored blue when conditions for a Red Price Bar or Green Price Bar are not met. The MACD-Histogram is based on MACD(12,26,9).
The Impulse System works more like a censorship system. Green price bars show that the bulls are in control of both trend and momentum as both the 13-day EMA and MACD-Histogram are rising (you don't have permission to sell). A red price bar indicates that the bears have taken control because the 13-day EMA and MACD Histogram are falling (you don't have permission to buy). A blue price bar indicates mixed technical signals, with neither buying nor selling pressure predominating (either both buying or selling are permitted).
2. Another "extra feature" included here is the " Keltner Channels ". Keltner Channels are volatility-based envelopes set above and below an exponential moving average.
3. It were also included a couple of EMAs.
Everything can be removed from the chart any time.
-----------------------------------------------------------------
Options/adjustments for this indicator:
*Horizontal Distance (width) between two tops/bottoms criteria.
Refers to the horizontal distance between the MACH histogram peaks involved in the divergence
*Height of tops/bottoms criteria (for Histogram).
Refers to the difference/relation/vertical distance between the MACH HISTOGRAM peaks involved in the divergence: 1st Histogram Peak is X times the 2nd.
*Height/Vertical deviation of tops/bottoms criteria (for Price).
Deviation refers to the difference/relation/vertical distance between the PRICE peaks involved in the divergence.
*Plot Regular Bullish Divergences?.
*Plot Regular Bearish Divergences?.
*Delete Previous Cancelled Divergences?.
*Shows a pair of EMAs.
*Shows Keltner Channels (using ATR)
Keltner Channels are volatility-based envelopes set above and below an exponential moving average.
*This indicator also has the option to show the Impulse System over the price bars/candles.
METRIC-TREND-TRADERThis script is a Fully Automated trading script meant to be used with "Oanda" broker and the plug-ins for algorithmic trading automation.( FOREX ONLY)
This script is meant to capture "TREND FOLLOWING " for intraday charts (1hour) preferably and will hold for days / weeks .trading on forex markets.
(The combination of indicators includes a short high and low price channel and a longer term high and low price channel)
This script is original in description as being automated to try and capture dynamic trending markets with both long and short fractal price channels. although trend trading is not an original concept. trend trading with this dynamic indicator allows the user visualize both short term and longer term price action at the same time, helping to make better trading decisions. the channels are designed to buy breakouts in the direction of the longer term trend while trailing stop a built-in stop loss that allows normal market movement while attempting to lock in flexible profits.
The concept of this indicator is be able to quickly visualize trends by high lighting the large green areas beneath price "when trending long" which is the difference between the (user defined) short term lows and the (user defined) Long period price lows.
For "down trending" markets a large red area above price will be displayed and this is the difference between the (user defined) short term highs and the (user defined) long term highs.
This strategy uses a lower than reward profile to jump in direction of market moves for continuation,
(1 risk to 4 reward)
in the likelihood the instrument will continue (example) 200 pips before it reverts 50 pips in the counter direction.
This strategy should only be used in markets that you believe are "TRENDING" at the time of trading otherwise you risk trend trading a range market.
This script uses a (user defined period) of short term high and low price ( green/red color) and (user defined period) Long Term high and low price (green/red) chosen in the indicator settings menu.
The default parameters are 10 with a (minimum of 1 and maximum of 10000) for the short term channel and 50 with a (minimum of 1 and maximum of 10000) for the long term price channel , the default parameters = roughly 2 days "long term" and 10 hours "short term" of price action on the (1 hour) chart.
Strategy entries and exits , for Long trades the trade will be entered if the short term high crosses above the Long Term high and the Short term low is not equal to the Long term low . the trade will exit if profit or stop loss are hit or if the Short term low crosses under the long term low.
For Short trades the trade will enter short if , the short term low crosses under the long term low and the short term high is not equal to the long term high. the trade will exit if profit or stop loss are hit or the short term high crosses over the long term high
"The default parameters should be kept unless you fully understand the complete strategy"
There are two very important inputs to be selected at the user setting menu "Long Only " and "Short Only" if you are looking to place long trades only select "Long Only" or for short trades select " Short Only" it is not recommended to keep both selected as it will trade both sides!
When the trade is entered a red , a blue and green horizontal dotted line will appear on the chart.
the blue line is the strategy entry price , the red line is the stop loss price , and the green line is the take profit price . the colors will invert if the trade is long or short.
(Setting alerts should be done in the indicator settings menu, and the parameters you chose will determine the stop loss/target and the amount of "units = (position size)" you wish to trade for the (forex only) markets. using "alert() function calls only" is the only alert that should be used with this strategy.
(note : when "alert() function calls only" is set two messages will be sent, one closing any open position in the opposite direction and one placing the new order regardless if you are currently in a trade or not)
Trade targets , stoploss and trade position size are a user defined variables entered in the indicator settings menu. (target pips minimum 0 and a maximum of 1000)(stop pips minimum of 0 and maximum of 1000)
Back test date range is included in the script for back testing different data periods.
the back ground will be colored a transparent navy blue if the period you are looking trading is with in the date range( note: to place live trades the end date will need to be in the future)
this is also adjustable in the settings menu
The avoid spread filter is a user defined time in which the spread is typically higher than average, applying this filter avoids trades in the specified time. When this filter is applied there will be a transparent red back ground color in the specified time.
Back test default setting are equivocal to OANDA:USDJPY
at the time of this publication placing trades with the "Oanda" broker are as follows , USD units = 2000 equal 2000 USD position size . "Oanda" current leverage is 20 to 1 for this particular pair and commission is paid in spread (1.4) pips = 0.19 USD per trade , Margin required for the trade is 100.0 USD , Position sizing = 10% of a 1000 USD account.
OANDA:USDJPY
OnlyChannel - Trend and Channel DetectorHello Traders. :) I am Only Fibonacci.
This indicator I shared will create more meaningful channel lines for you. Suppositories were overused and logically manipulated.
What does it do?
In this script, both falling and ascending channels can be drawn on the hills. At the same time, both falling and rising channels can be drawn at the bottom levels.
When controlled simultaneously with momentum indicators, it helps us a lot in the mismatch detection phase.
Use
In the settings of this tool, you can enter sensitivity data about the detection of pivot points.
At the same time, you can write how many you want to appear for each kind of channel and how many channels you want to appear in the last few bars.
Highlights
You can enter the number of violations of the channel. In this way, even if the channel is broken 3 times, for example, it does not disappear. This number is up to you.
At the same time, you can continue to see the channel with the option of how many more bars this channel will appear after the channel violation rules are fulfilled. In this way, you can catch logical return points.
Visuality
You can adjust the color of each channel and the color of the line in the middle.
PRICE CHANNEL MEAN REVERSIONThis script is a Fully Automated trading script meant to be used with "Oanda" broker and the plug-ins for algorithmic trading automation.( FOREX ONLY)
This script is meant to capture "MEAN REVERSION " for intraday charts (1hour) preferably and will hold for days / weeks .trading on forex markets.
(The combination of indicators includes a high and low price channel along with a fast moving average)
This script is original in the description of Alan Hulls moving average combined with the high and low closing of price action.
The concept of this mean reversion strategy is to try and capture price exhaustive moves . The moving average is fast and most times remains in the channel. when the moving average overshoots the channel the average price of the instrument is thought to be rising or falling faster then average, indicating a possibility that the instrument may revert (pull back) this strategy aims to capture that pull back.
This strategy uses a higher risk than reward profile to jump in front of market moves (4 risk to 1 reward)
in the likelihood the instrument will revert back (example) 25 pips before it continues 100 pips in the current direction.
This strategy should only be used in markets that you believe are mean reverting at the time of trading otherwise you will be jumping Infront of a possible trend and the price can continue in the trending direction for an unknown specified amount of time.
This script uses a (user defined period) fast moving average ( green/red color) and (user defined period) price channel (White/Blue) chosen in the indicator settings menu.
The default parameters are 55 with a (minimum of 1 and maximum of 10000) for the moving average and 50 with a (minimum of 1 and maximum of 10000) for the price channel , the default parameters = roughly 2 days of price action on the (1 hour) chart.
"The default parameters should be kept unless you fully understand the complete strategy"
the upper band (white line) is the highest close of the specified period and the lower band (blue line) is the lowest close of the same period.
When the fast moving average over shoots the price channel (exits) then crosses back into the price channel (enters) it will trigger a long or short trade.
The long signal is given when the the moving average crosses below the low band then crosses back above the low band . The trade long trade will be entered and the trade will exit if the stop loss or profit targets are hit or if the short signal is given the trade will close then reverse.
The short trade will be entered if the fast moving average crosses above the upper band (white line) then crosses back down through the upper band (white line) The trade short trade will be entered and the trade will exit if the stop loss or profit targets are hit or if the long signal is given the trade will close then reverse.
When the trade is entered a red , a blue and green horizontal dotted line will appear on the chart.
the blue line is the strategy entry price , the red line is the stop loss price , and the green line is the take profit price . the colors will invert if the trade is long or short.
(Setting alerts should be done in the indicator settings menu, and the parameters you chose will determine the stop loss/target and the amount of "units = (position size)" you wish to trade for the (forex only) markets. using "alert() function calls only" is the only alert that should be used with this strategy.
(note : when "alert() function calls only" is set two messages will be sent, one closing any open position in the opposite direction and one placing the new order regardless if you are currently in a trade or not)
Trade targets , stoploss and trade position size are a user defined variables entered in the indicator settings menu. (target pips minimum 0 and a maximum of 1000)(stop pips minimum of 0 and maximum of 1000)
Back test date range is included in the script for back testing different data periods.
the back ground will be colored a transparent navy blue if the period you are looking trading is with in the date range( note: to place live trades the end date will need to be in the future)
this is also adjustable in the settings menu
The avoid spread filter is a user defined time in which the spread is typically higher than average, applying this filter avoids trades in the specified time. When this filter is applied there will be a transparent red back ground color in the specified time.
Back test default setting are equivocal to OANDA:NZDUSD
at the time of this publication placing trades with the "Oanda" broker are as follows , NZD units = 3250 equal 2000 USD position size . "Oanda" current leverage is 33.3 to 1 for this particular pair and commission is paid in spread (1.7) pips = 0.55 USD per trade , Margin required for the trade is 60.50 USD , Position sizing = 6.5% of a 1000 USD account. OANDA:NZDUSD
Volatility Compression Breakout - LeafAlgo Pro StrategyThe Volatility Compression Breakout strategy is designed to identify periods of low volatility followed by potential breakout opportunities in the market. It aims to capture moments when the price consolidates within a narrow range, indicating a decrease in volatility, and anticipates a subsequent expansion in price movement. This strategy is based on our indicator of the same name (), but differs by offering many more options for the band/channel type and trend filters in addition to implementing the ability to use this strategy with algorithmic plug-ins (see details at the bottom).
This strategy features six types of bands/channels and five types of trend filters, for a total of 30 combinations. The six band/channel types are the Adaptive Gaussian MA channel (based on the Adaptive Gaussian MA that we previously published ()), standard Bollinger Bands, smoothed Bollinger Bands (basis is an EMA of the typical Bollinger Basis), Keltner Channels, a Quadratic Regression Channel (based on the channel that we previously published in the LeafAlgo Pro indicator ()), and Volatility-Based Mean Reversion Bands (). The five trend filters include an EMA, SMA, Weighted MA, McGinley Dynamic, and the Adaptive Gaussian MA itself.
Examples of the different band/channel types (all with EMA as the trend filter):
Adaptive Gaussian MA Channel:
Bollinger Bands:
Smoothed Bollinger Bands:
Keltner Channels:
Quadratic Regression Channel:
Volatility-Based Mean Reversion Bands:
Examples of the different trend filters (all with Keltner Channels):
EMA:
SMA:
WMA:
McGinley Dynamic:
Adaptive Gaussian MA:
How the Long/Short Entry Signals are Calculated:
A breakout signal upwards, accompanied by a long entry, is created when the high is greater than the secondary upper band (the upper band plus a standard deviation or with a multiplier, depending on which band/channel type is selected), the latest close is above the trend filter line, and the previous close was below the trend filter line. A break downwards, accompanied by a short entry, is created when the low is below the secondary lower band, the close is below the trend filter line, and the previous close was above the trend filter line. These conditions, along with a confirmed barstate, make up the strategy entry signals.
Coloration:
When the close price is above both the middle/basis and the trend filter, the bars are colored lime green, indicating a potential bullish market sentiment. When the close price is positioned above the basis but below the trend filter, or below the basis but above the trend filter, the bars are colored yellow, signifying a neutral or indecisive market condition. Conversely, when the close price falls below both the basis and the trend filter, the bars are colored fuchsia, suggesting a potential bearish market sentiment. Additionally, the coloration of the middle/basis line and the trend filter provides further visual cues for assessing the trend. When the close price is above the basis, the line is colored lime green, indicating a bullish trend. Conversely, when the close price is below the basis, the line is colored fuchsia, highlighting a bearish trend. Similarly, the trend line is colored lime green when the close price is above it, representing a bullish trend, and fuchsia when the close price is below it, indicating a bearish trend. The fill between the primary and secondary upper bands is colored lime and the fill between the primary and secondary lower bands is colored fuchsia. These colorations can be toggled on/off in the strategy settings menu.
How Changing Parameters Can Be Beneficial:
Modifying the parameters allows you to adapt the indicator to different market conditions and trading styles. For example, with Keltner Channels, increasing the compression period can help identify broader volatility patterns and major market shifts. On the other hand, decreasing the compression period provides more precise and timely signals for short-term traders. Adjusting the compression multiplier affects the width of the Keltner Channels. Higher multipliers increase the breakout threshold, filtering out smaller price movements and providing more reliable signals during significant market shifts. Lower multipliers make the indicator more sensitive to smaller price ranges, generating more frequent but potentially less reliable signals.
Changing the type of trend filter can drastically change your results. Test out each trend filter type and determine which one will work best for your purposes. Further, the MA periods in the trend filter settings can help you align your trades with the prevailing market direction. Increasing the period smoothes out the trend, filtering out shorter-term fluctuations and focusing on more sustained moves. Decreasing the period allows for quicker responses to changes in trend, capturing shorter-term price swings.
By adjusting the parameters and incorporating additional analysis techniques, you can customize the strategy to suit your trading style and preferences. However, it is crucial to exercise caution, conduct thorough analysis, and practice proper risk management to increase the likelihood of successful trades. Remember that no strategy can guarantee profits, and continuous learning and adaptation are key to long-term trading success.
Take Profit/Stop Loss Settings:
Take profit, stop loss, and trailing percentages are also included, found at the bottom of the Input tab under “TT and TTP” as well as “Stop Loss”. The take profit and stop loss levels will be reflected as green and red lines respectively on the chart as they occur. Make sure to understand the TP/SL ratio that you desire before use, as the desired hit rate/profitability percentage will be affected accordingly. The option for adding in a trailing stop has also been included, with options to choose between an ATR-based trail or a percentage-based trail. This strategy does NOT guarantee future returns. Apply caution in trading regardless of discretionary or algorithmic. Understand the concepts of risk/reward and the intricacies of each strategy choice before utilizing them in your personal trading.
Profitview/Pineconnector Settings:
If you wish to utilize Profitview’s automation system, find the included “Profitview Settings” under the Input tab of the strategy settings menu. If not, skip this section entirely as it can be left blank. Options will be “OPEN LONG TITLE”, “OPEN SHORT TITLE”, “CLOSE LONG TITLE”, and “CLOSE SHORT TITLE”. If you wished to trade SOL, for example, you would put “SOL LONG”, “SOL SHORT”, “SOL CLOSE LONG”, and “SOL CLOSE SHORT” in these areas. Within your Profitview extension, ensure that your Alerts all match these titles. To set an alert for use with Profitview, go to the “Alerts” tab in TradingView, then create an alert. Make sure that your desired asset and timeframe are currently displayed on your screen when creating the alert. Under the “Condition” option of the alert, select the strategy, then select the expiration time. If using TradingView Premium, this can be open-ended. Otherwise, select your desired expiration time and date. This can be updated whenever desired to ensure the strategy does not expire. Under “Alert actions”, nothing necessarily needs to be selected unless so desired. Leave the “Alert name” option empty. For the “Message”, delete the generated message and replace it with {{strategy.order.alert_message}} and nothing else. If using Pineconnector, follow the same directions for setting up an alert, but use the ",buy,,risk=" syntax as noted in the tooltips.
Additional Sample Settings (for ETHUSDT-Binance 45M):
Band/Channel Type - Keltner Channels (Compression Period of 20, Multiplier of 1.8x)
Trend Filter - WMA (50 length, no offset, close as the source)
TP/SL - 3.0% TP / 2.0% SL, 0.005 trailed TP, no trailed SL
Fibonacci Trend Zone The "Fibonacci Trend Zone" indicator is a supplementary tool that helps identify the current trend based on Fibonacci zones. It utilizes Fibonacci levels (0.62, 0.705, and 0.79) to define long-term trend zones. The green zone indicates potential long trades, while the red zone suggests potential short trades. The indicator also includes the Triple Exponential Moving Average (TEMA), which helps confirm trend reversals. When the TEMA crosses the Fibonacci level of 0.5, it may signal a possible trend reversal. Use this indicator in conjunction with your primary trading strategy to make more informed trading decisions. Additionally, the indicator provides flexibility in customizing the styles, allowing you to change the color scheme or disable the display of certain elements to suit your preferences and requirements.
Индикатор "Fibonacci Trend Zone" является вспомогательным инструментом, который помогает определить текущий тренд на основе зон фибоначчи. Он использует уровни фибоначчи (0,62, 0,705 и 0,79) для определения зон долгосрочного тренда. Зеленая зона указывает на возможность лонг-сделок, а красная зона - на возможность шорт-сделок. Индикатор также включает Triple Exponential Moving Average (TEMA), который помогает подтвердить смену тренда. Когда TEMA пересекает уровень фибоначчи 0,5, это может сигнализировать о возможной смене тренда. Используйте данный индикатор в сочетании с вашей основной торговой стратегией для принятия более информированных решений. Индикатор также предоставляет гибкость в настройке стилей, позволяя вам изменить цветовую схему или отключить отображение некоторых элементов, чтобы соответствовать вашим предпочтениям и требованиям.
Anchored VWAP (Auto High & Low)OVERVIEW
This script plots, and auto-updates, 3 separate VWAPs: a traditional VWAP, a VWAP anchored to a trends high, and another anchored to a trends low.
VWAP and Anchored VWAPs are commonly used by institutions responsible for the majority of market volume on a given day. Citadel Trading, for example, accounts for approximately 35% of all U.S. listed retail volume , largely executed through program trades over the course of a day, week, or month.
Because VWAP is a prominent market maker tool for executing large trades, day traders can use it to better anticipate trends, mean reversion, and breakouts.
This is most useful on charts with intraday time frames (1 minute, 5 minute etc.) commonly used for day trading. This is not ideal for larger time frames (1 hour or greater) commonly used for swing trading or identifying larger trends.
INPUTS
You can configure:
The size, color, and visibility of 6 different plots (VWAP, High Anchor, Low Anchor, Average of Anchors, Quarter Values, Interim Bands)
How smooth the average displays
INSPIRATION
1. "How To Measure Anything" by Douglas W. Hubbard
2. "Maximum Trading Gains With Anchored VWAP" by Brian Shannon
Better understanding probability and how to analyze risk (first book), as well as the tools market makers use (second book), has completely reframed how I approach day trading.
Trend Channels With Liquidity Breaks [ChartPrime]Trend Channels
This simple trading indicator is designed to quickly identify and visualize support and resistance channels in any market. The primary purpose of the Trend Channels with Liquidity Breaks indicator is to recognize and visualize the dominant trend in a more intuitive and user-friendly manner.
Main Features
Automatically identifies and plots channels based on pivot highs and lows
Option to extend the channel lines
Display breaks of the channels where liquidity is deemed high
Inclusion of volume data within the channel bands (optional)
Market-friendly and customizable colors and settings for easy visual identification
Settings
Length: Adjust the length and lookback of the channels
Show Last Channel: Only shows the last channel
Volume BG: Shade the zones according to the volume detected
How to Interpret
Trend Channels with Liquidity Breaks indicator uses a combination of pivot highs and pivot lows to create support and resistance zones, helping traders to identify potential breakouts, reversals or continuations of a trend.
These support and resistance zones are visualized as upper and lower channel lines, with a dashed center line representing the midpoint of the channel. The indicator also allows you to see the volume data within the channel bands if you choose to enable this functionality. High volume zones can potentially signal strong buying or selling pressure, which may lead to potential breakouts or trend confirmations.
To make the channels more market-friendly and visually appealing, Trend Channels indicator also offers customizable colors for upper and lower lines, as well as the possibility to extend the line lengths for further analysis.
The indicator displays breaks of key levels in the market with higher volume.
Smart Trend EnvelopeThe "Smart Trend Envelope" indicator is a powerful tool that combines the "Nadaraya-Watson Envelope " indicator by LuxAlgo and the "Strongest Trendline" indicator by Julien_Eche.
This indicator provides valuable insights into price trends and projection confidence levels in financial markets. However, it's important to note that the indicator may repaint, meaning that the displayed results can change after the fact.
The "Strongest Trendline" indicator by Julien_Eche focuses on identifying the strongest trendlines using logarithmic transformations of price data. It calculates the slope, average, and intercept of each trendline over user-defined lengths. The indicator also provides standard deviation, Pearson's R correlation coefficient, and upper/lower deviation values to assess the strength and reliability of the trendlines.
In addition, the "Nadaraya-Watson Envelope " indicator developed by LuxAlgo utilizes the Nadaraya-Watson kernel regression technique. It applies a kernel function to smooth the price data and estimate future price movements. The indicator allows adjustment of the bandwidth parameter and multiplier to control the width of the envelope lines around the smoothed line.
Combining these two indicators, the "Smart Trend Envelope" indicator offers traders and investors a comprehensive analysis of price trends and projection confidence levels. It automatically selects the strongest trendline length based on the highest Pearson's R correlation coefficient. Traders can observe the trendlines on the price chart, along with upper and lower envelope lines generated by the Nadaraya-Watson smoothing technique.
The "Smart Trend Envelope" indicator has several qualities that make it a valuable tool for technical analysis:
1. Automatic Length Selection: The indicator dynamically selects the optimal trendline length based on the highest Pearson's R correlation coefficient, ensuring accurate trend analysis.
2. Projection Confidence Level: The indicator provides a projection confidence level ranging from "Ultra Weak" to "Ultra Strong." This allows traders to assess the reliability of the projected trend and make informed trading decisions.
3. Color-Coded Visualization: The indicator uses color schemes, such as teal and red, to highlight the direction of the trend and the corresponding envelope lines. This visual representation makes it easier to interpret the market trends at a glance.
4. Customizable Settings: Traders can adjust parameters such as bandwidth, multiplier, line color, and line width to tailor the indicator to their specific trading strategies and preferences.
The "Smart Trend Envelope" indicator has been specifically designed and coded to be used in logarithmic scale. It takes advantage of the logarithmic scale's ability to represent exponential price movements accurately. Therefore, it is highly recommended to use this indicator with the chart set to logarithmic scale for optimal performance and reliable trend analysis, especially on higher timeframes.
It's important to remember that the "Smart Trend Envelope" indicator may repaint, meaning that the displayed results can change after the fact. Traders should use this indicator as a tool for generating trade ideas and confirmation, rather than relying solely on its historical values. Combining the indicator with other technical analysis tools and considering fundamental factors can lead to more robust trading strategies.
EFFR Range VisualizerThis script takes the upper and lower target Effective Fed Funds Rate subtracted from 100 to allow the user to quickly visualize how these relate to STIR and Treasury markets.
QuantumBands - Tutor Metatrader🚀 QuantumBands - Tutor Metatrader 🚀
📖 Description:
QuantumBands is a powerful technical indicator designed to enhance your trading analysis. It combines the popular Bollinger Bands with a unique twist, providing you with valuable insights into market dynamics. This indicator is presented by the Tutor Metatrader channel, offering expert guidance and education on using the indicator effectively.
🔍 How it Works:
QuantumBands calculates the Bollinger Bands based on a defined period and multiplier. The indicator plots the middle band (basis), the upper band, and the lower band on your chart, visualizing potential price volatility and areas of support and resistance. Additionally, it generates buy and sell signals when the price crosses the bands, helping you identify potential entry and exit points in your trading strategy.
🎯 Key Features:
- Customizable period and multiplier for the Bollinger Bands.
- Clear visual representation of the bands for easy analysis.
- Buy and sell signals for potential trading opportunities.
- Backed by the expertise of Tutor Metatrader channel.
📚 How to Use:
1. Set the desired period and multiplier for the Bollinger Bands.
2. Look for price action near the bands and monitor for potential reversals or breakouts.
3. Pay attention to buy and sell signals generated when the price crosses the bands.
4. Consider additional factors and perform proper risk management before executing trades.
⚠️ Disclaimer: Trading involves risk, and this indicator should be used as a tool to support your analysis. Always perform your due diligence and combine the indicator with other technical and fundamental analysis methods.
🌟 Enjoy using QuantumBands for your trading analysis, and remember to check out the Tutor Metatrader channel for expert guidance and educational content!
💡 Share your feedback and trading experiences with QuantumBands - Tutor Metatrader in the comments below. Happy trading!
VOLD Ratio (Volume Difference Ratio) by TenozenAnother helpful indicator is here! VOLD Ratio is calculated by the net volume of a buying candle, divided by the net volume of a sell candle.
Formula:
buying net volume/selling net volume
It's a simple indicator, but don't underestimate this simplicity. It's a powerful indicator that would help you to decide whether the volume is getting interested in the direction that the market would take. So assume when the market is above the Bollinger Bands, it means that the volume is at a buying extreme, by that, we could expect the market to get back towards the mean, as there is a lot of buying demand that entered the market. How about below the Bollinger Bands? it means that the volume is at a selling extreme, we could expect that there is a lot of volume getting in toward the sellers, so we could take advantage of the opportunity to go for a long. Lastly, the Bollinger Bands would help you guys to determine the liquidity of the market, if the Bollinger Bands get smaller over time, it means there is no interest for the market to enter yet, and if the Bollinger Bands get bigger over time, it means there is interest for the market to enter in the session.
Tips & Reminder:
- We shouldn't use this indicator by itself, make sure to use an Indicator that would help you guys to determine the momentum and the liquidity of the market.
- The higher the timeframe, the slower this indicator would signal an entry, by that use a smaller timeframe... I suggest using a 15M chart for the execution.
- Always trade in the medium-longterm direction if you want to have a high probability trade.
- Be patient in your execution, it's more likely the market would go higher or lower after going in the extreme of the Bollinger Bands.
Well, that's it! Hope you guys enjoy using this indicator, let me know if there is any question or suggestion. Ciao...
Smoother Momentum Stops [Loxx]Smoother Momentum Stops (SMS) is a dynamic tool that combines the logic of momentum and moving averages to create an overlay of the market price and generate potential trade signals. The original idea for this indicator comes from the beloved and esteemed trading indicator guru Mladen Rakic.
Understanding the Framework
The SMS incorporates various aspects of technical analysis, including momentum calculation, several types of moving averages, and an intelligent stop-and-reverse system that determines when to enter and exit trades.
The indicator initiates by defining the color scheme for visualization, specifically green for bullish trends and red for bearish trends. It further utilizes the 'smmom' and 'fema' functions to calculate smoothed momentum and fast exponential moving averages, respectively. The values computed by these functions are central to the signal generation process.
Momentum Calculation
The 'smmom' function serves to calculate a smoother momentum by taking a source (such as the closing price) and a period as inputs. This function employs a complex algorithm involving exponential moving averages (EMA), wherein two EMAs are calculated with different smoothing factors, and the difference between the two results is returned as the output. This smooth momentum calculation assists in eliminating unnecessary noise from the market and delivers more reliable momentum readings.
Moving Averages Computation
One key feature of the SMS is the ability to select from five different moving average types: Exponential Moving Average (EMA), Fast Exponential Moving Average (FEMA), Linear Weighted Moving Average (LWMA), Simple Moving Average (SMA), and Smoothed Moving Average (SMMA). The 'variant' function assigns the chosen method to the '_avg' variable, which is then used in the trade signal logic.
Trade Signal Generation
SMS employs a complex yet robust mechanism for generating trade signals. A stop-and-reverse system is established, which works on the principle of momentum. If the smoothed momentum is positive, an upper stop is determined and if the momentum is negative, a lower stop is defined.
The process continues by defining long and short entry conditions. The indicator goes long when an upper stop exists, and the previous bar had a lower stop, signifying a shift in momentum. The short entry condition is the opposite: the indicator goes short when a lower stop exists, and the previous bar had an upper stop. Alerts are generated for each of these conditions, helping traders to take timely action.
Visual Representation and UI Options
In terms of visual representation, the indicator plots upper and lower stops, employing green color for upper and red for lower stops. If the option to color bars is chosen, the entire bar is colored green or red, based on whether an upper or lower stop exists. This feature allows traders to visually comprehend market conditions better. Support and reisstance levels are also provided for visual context.
Conclusion
The Smoother Momentum Stops indicator is a potent tool for traders seeking to optimize their trading strategies. It blends the fundamentals of momentum and moving averages, resulting in a robust system that provides clear, reliable, and timely trading signals. By adjusting the smoothing type and period parameters, traders can customize the indicator to fit various market conditions and asset types, thereby adding a layer of flexibility to their trading strategies.
The use of a stop-and-reverse system adds a layer of risk management by offering precise entry and exit points based on momentum shifts. These stops are not just mere levels of entries or exits, but they reflect the undercurrent of the market's momentum, thus providing a dynamic framework to make informed trading decisions.
Additionally, the SMS indicator offers visual simplicity. The color-coded bars and distinct symbols for long and short positions make it easier for traders to interpret the signals and market direction quickly. Combined with the alert system, it ensures that traders never miss an important trading opportunity.
Finally, the power of the SMS indicator lies in its adaptability and comprehensive approach. By providing a selection of moving averages and an intelligent momentum-based system, it encapsulates various aspects of market behavior. As such, it is a useful tool not just for momentum traders, but for any trader who understands the significance of moving averages and momentum in predicting market movements.
In conclusion, the Smoother Momentum Stops indicator stands as an innovative, adaptable, and powerful tool for the modern trader. Its blend of flexibility, dynamic risk management, and straightforward visualization offer a comprehensive solution for traders looking to navigate the complex world of financial markets. With a detailed understanding of its workings as presented in this essay, traders can harness its full potential to optimize their strategies, manage risk, and achieve their trading objectives.
Nexus Blast Trading Strategy [Kaspricci]Nexus Blast Trading Strategy - Kaspricci
This indicator shows the different sessions during the day (London session, New York AM session, New York PM session and Asian session) by adding vertical lines and draws horizontal lines for the high and low during each session. Furthermore those lines turn red once the price has taken this high or low. Blue lines indicate liquidity not yet taken.
On top the indicator draws boxes of different color to indicate bullish and bearish Fair Value Gaps (FVG).
Happy to receive your feedback. Please leave a comment for bugs as well as ideas for improvement.
General Settings
Time Zone - used for marking sessions and end of day.
Sessions
Sessions - start and end time for each session based on set time zone
Number of Days back - for how many days in the past the startegy will draw strategy highs and lows. Theres is a maximum of 50 days defined.
FVG Settings
Threshold in Ticks - you can hide very small FVGs by increasing this threshold
FVG Colors - colors used for the bearish and bullish FVG box
This script is for educational purposes only! It is not meant to be a financial advice.
PS: The former strategy script was removed by TV, as it would violate several rules according to them.
Machine Learning : Torben's Moving Median KNN BandsWhat is Median Filtering ?
Median filtering is a non-linear digital filtering technique, often used to remove noise from an image or signal. Such noise reduction is a typical pre-processing step to improve the results of later processing (for example, edge detection on an image). Median filtering is very widely used in digital image processing because, under certain conditions, it preserves edges while removing noise (but see the discussion below), also having applications in signal processing.
The main idea of the median filter is to run through the signal entry by entry, replacing each entry with the median of neighboring entries. The pattern of neighbors is called the "window", which slides, entry by entry, over the entire signal. For one-dimensional signals, the most obvious window is just the first few preceding and following entries, whereas for two-dimensional (or higher-dimensional) data the window must include all entries within a given radius or ellipsoidal region (i.e. the median filter is not a separable filter).
The median filter works by taking the median of all the pixels in a neighborhood around the current pixel. The median is the middle value in a sorted list of numbers. This means that the median filter is not sensitive to the order of the pixels in the neighborhood, and it is not affected by outliers (very high or very low values).
The median filter is a very effective way to remove noise from images. It can remove both salt and pepper noise (random white and black pixels) and Gaussian noise (randomly distributed pixels with a Gaussian distribution). The median filter is also very good at preserving edges, which is why it is often used as a pre-processing step for edge detection.
However, the median filter can also blur images. This is because the median filter replaces each pixel with the value of the median of its neighbors. This can cause the edges of objects in the image to be smoothed out. The amount of blurring depends on the size of the window used by the median filter. A larger window will blur more than a smaller window.
The median filter is a very versatile tool that can be used for a variety of tasks in image processing. It is a good choice for removing noise and preserving edges, but it can also blur images. The best way to use the median filter is to experiment with different window sizes to find the setting that produces the desired results.
What is this Indicator ?
K-nearest neighbors (KNN) is a simple, non-parametric machine learning algorithm that can be used for both classification and regression tasks. The basic idea behind KNN is to find the K most similar data points to a new data point and then use the labels of those K data points to predict the label of the new data point.
Torben's moving median is a variation of the median filter that is used to remove noise from images. The median filter works by replacing each pixel in an image with the median of its neighbors. Torben's moving median works in a similar way, but it also averages the values of the neighbors. This helps to reduce the amount of blurring that can occur with the median filter.
KNN over Torben's moving median is a hybrid algorithm that combines the strengths of both KNN and Torben's moving median. KNN is able to learn the underlying distribution of the data, while Torben's moving median is able to remove noise from the data. This combination can lead to better performance than either algorithm on its own.
To implement KNN over Torben's moving median, we first need to choose a value for K. The value of K controls how many neighbors are used to predict the label of a new data point. A larger value of K will make the algorithm more robust to noise, but it will also make the algorithm less sensitive to local variations in the data.
Once we have chosen a value for K, we need to train the algorithm on a dataset of labeled data points. The training dataset will be used to learn the underlying distribution of the data.
Once the algorithm is trained, we can use it to predict the labels of new data points. To do this, we first need to find the K most similar data points to the new data point. We can then use the labels of those K data points to predict the label of the new data point.
KNN over Torben's moving median is a simple, yet powerful algorithm that can be used for a variety of tasks. It is particularly well-suited for tasks where the data is noisy or where the underlying distribution of the data is unknown.
Here are some of the advantages of using KNN over Torben's moving median:
KNN is able to learn the underlying distribution of the data.
KNN is robust to noise.
KNN is not sensitive to local variations in the data.
Here are some of the disadvantages of using KNN over Torben's moving median:
KNN can be computationally expensive for large datasets.
KNN can be sensitive to the choice of K.
KNN can be slow to train.
Bollingersupport&resistance"When the price breaks through the Bollinger Bands' overbought zone, and the new candlestick's price returns to within the Bollinger Bands, resistance appears. The resistance level is set at the highest point of the previous candlestick. The close of the next candlestick determines whether the resistance is valid. If the second point is confirmed, the resistance is valid.
When the price breaks through the Bollinger Bands' oversold zone, and the new candlestick's price returns to within the Bollinger Bands, support appears. The support level is set at the lowest point of the previous candlestick. The close of the next candlestick determines whether the support is valid. If the second point is confirmed, the support is valid.
This indicator is useful for intuitively observing the emergence or confirmation of resistance and support signals, and it's helpful for intuitively reviewing past historical resistance and support."
Session Tick-BoxThe "Session Tick-Box" is designed to display session-related information on the chart (HIGH/LOW box). Here's a breakdown of its features and functionalities:
Session Settings:
You can specify different sessions such as the Cash Session, Asian Session, European Session, and Offset Session using the input.session() function.
The sat.session_tick() function is used to calculate the low, high, fill color, open bar status, and session open status for each session.
Display Settings:
You have the option to show a new daily session using the separateDays input. The background color for the new session can be customized using the Day_Bg input.
The colorDays input allows you to enable or disable coloring the background based on different days of the week.
You can customize the colors for the Cash, Asian, European, and Offset sessions using the respective color inputs.
Other Features:
The indicator calculates the percentage change between the low and high of each session using the sat.AbsPercentChange() function.
Labels are added to mark the high and low points of the sessions.
A vertical line is drawn between the low and high points of each session using the line.new() function.
The fill() function is used to create a shaded area between the low and high lines of each session.
Overall, the "Session Tick-Box" indicator provides visual representation and analysis of different sessions on the chart, including their respective ranges and percentage changes.
Bollinger Bands Lab - by InFinitoVariation of the Moving Average Lab that includes Bollinger Bands functionality for any manually created Moving Average. It includes:
- Standard Deviations for any MA
- Fixed Symmetrical Deviations for any MA that remain at a constant % away from the MA
- The same Moving Average creation settings from the Moving Average Lab
"The Moving Average Lab allows to create any possible combination of up to 3 given MAs. It is meant to help you find the perfect MA that fits your style, strategy and market type.
This script allows to average, weight, double and triple multiple types and lengths of Moving Averages
Currently supported MA types are:
SMA
EMA
VWMA
WMA
SMMA (RMA)
HMA
LSMA
DEMA
TEMA
Features:
- Double or Triple any type of Moving Average using the same logic used for calculating DEMAs and TEMAs
- Average 2 or 3 different types and lengths of Moving Average
- Weight each MA manually
- Average up to 3 personalized MAs
- Average different Moving Averages with different length each "
The preview screenshot shows:
- The combination of:
- 200 LSMA - Weight: 1
- 200 HMA - Weight: 2
- 200 VWMA - Weight: 1 - Double
- The regular Bollinger Band setting, 2 standard deviations
- Two fixed symmetrical deviations at 15% and 20% away from the XMA
actic-fibbA fibbonacci based bollinger band. Up and down trading arrows are generated based on crossover and crossunder of 200 day vma
Cuban's Range Reclaim [CE]Cuban's Range Reclaim is an indicator that minimizes the time that traders need to spend manually adjusting the range extremes and identifying range deviations.
By tracking the previous levels of the range, the indicator then signals to the trader when price trades back below that level, and assigns a 'Range High' or 'Range Low' print to the deviation. When there is a potential break in the trend, the indicator also prints a 'Pivot' label.
Among other features, the indicator tracks the midline of the range excluding the deviations, giving a far more accurate trend line with less signal noise than regular donchian channels.
There is also the option to view dynamic supply and demand within the channel, plus midlines for the supply and demand, and for a regular channel.
Within the user inputs, the indicator also allows the user to adjust the following:
Source input for range level confirmations
Period for range lookback
Supply and demand sensitivity
TO DO:
Allow for color changes within the Style menu
Gann Angles EnterpriseThe Gann Angles indicator is a tool based on the methods developed by William Delbert Gann. It is designed to analyze and forecast price movements in financial markets. The indicator automatically calculates the angle scale using Gann, Herzhik, Heliker, and Borovski methods. Additionally, users have the option to manually input their own angle scale.
The Gann methods and those of his followers are based on representing price movements as geometric shapes such as triangles, squares, and circles. Gann believed that price movements adhere to certain patterns and that future changes can be predicted based on these geometric forms.
The Gann Angle indicator allows users to identify the angles of trend and their strength. It plots template lines with different angles of inclination on the price chart, representing support and resistance levels. These levels can be used to determine entry and exit points in the market, as well as to set stop-loss and profit levels.
When automatically calculating the angle scale, the indicator takes into account various factors such as the current trend, market volatility, and the period of analyzed data. It applies relevant formulas and algorithms to determine optimal angles of inclination and create a fan-like pattern of angles.
However, the indicator also provides the option for users to manually input their own angle scale. This allows analysts or traders to customize the indicator according to their own preferences and strategies.
Overall, the Gann Angle indicator is a powerful tool for technical analysis in financial markets. It helps identify key support and resistance levels and provides information about the trend and its strength. Combining the automatic calculation of the angle scale with the option to input a manual scale gives users flexibility and adaptability in using the indicator. They can consider their own preferences, experience, and unique market conditions when determining angles of inclination and support/resistance levels.
It is important to note that the effectiveness of the Gann Angle indicator, whether using an automatic or manual scale, depends on proper analysis and interpretation of the results. Users should have knowledge and understanding of Gann's methods to make informed decisions based on the data provided by the indicator.
In conclusion, the Gann Angle indicator with automatic and manual angle scale calculation provides users with a powerful tool for analyzing and forecasting price movements in financial markets. It combines the fundamental principles of William Delbert Gann's methods with flexibility and customization to meet the needs of various traders and analysts.
The different methods of calculating the scale give traders the flexibility to choose the follower's school they prefer.
The features of the indicator include:
Mandatory knowledge of Gann's methods.
Use as a template for drawing angles and fan patterns.
Selection of scale calculation options:
Heliker
Herzhik
Gann
Borovski
Manual input of the scale
Working principle:
The indicator is used as a template.
After installing the indicator and configuring it, the trader needs to draw a trend line (or a pre-drawn fan) along the desired angle(s).
Without changing the inclination, the trader simply moves this line to the desired extreme for further analysis.
Bollinger Bands and SMA Channel Buy and Sell
This Indicator is a combination of a standard BB indicator incorporated with a SSL Channel by ErwinBeckers which is Simple Moving average with a length of set at 10 (Default) and calculates the high and low set for the default 10 to form a Channel.
The Settings for the Bollinger Band is the standard settings on a normal Bollinger Band - Length 20, source close and Standard dev 2
The setting for the SMA is length 10 and the high and low calculated or that length to form a channel.
The SMA Channel gives a green line for the Up channel and the Red line for the down Channel.
The basis of the indicator is that the Candle close above the Basis line of the BB and the SMA green line will give a buy indicator
and the same for Sell indicator the candle close below the basis BB and the SMA line Red will give a Sell indicator.
Please note that this indicator is a mix of 2 basic indicators found in Trading view, giving Buy and Sell indicators to make things easier to not look for this visually.
This code will be open source for anyone to use or back test or use it for whatever they want.
This code is for my own personal trading and cannot be relied upon. This indicator cannot be used and cannot guarantee anything, and caution should always be taken when trading. Use this with other indicators to give certanty.
Again use this for Paper Trading only.
I want to thank TradingView for its platform that facilitates development and learning.