Hull Kaufman SuperTrend Cloud (HKST Cloud)TLDR: This is a long only trend following system that uses highest and lowest values of three trend following indicators to form a "cloud". Enter when the candle high crosses above the highest band. Close if the low or close crosses below the lowest band.
3 indicators
1. Kaufman Adaptive moving Average - set at 20
2. Hull Moving Average (of the Kaufman Adaptive moving average) - set at 20
3. SuperTrend - I believe this is set at 5 periods and 3*atr but this can be changed
Cloud
the upper band is the highest of the 3 indicators
the lower band is the lowest of the 3 indicators
Entry and Exit:
Enter when the high crosses above the upper band of the cloud.
(This means you will only get a long signal if the high was previously below the upper band of the cloud and then crosses over.)
Exit when the low crosses below the lower band of the cloud .
(This means that this rule will only close if the low was previously above the upper band and then crosses under)
The "Exit" may not trigger if the low (the wick) never gets above the band. In this case the long order will close if the closing price is below the cloud.
Logic
Kaufamn is the best moving average i have found at responding to changes in volatility. This means it moves up or down quickly during expansive moves but becoming very flat during relative choppiness. However, getting flat causes the the Kaufman AMA to trigger a lot of false signals when volatility is transitioning from high to low. This is why the Hull moving average (with its rounded turns) keeps a lot of the false continuations contained because usually prices need to decisively move higher in order to over come the Hull moving average which continues to increase/decrease during the candles after an expansive move.
The super trend places a stagnant floor and ceiling which acts as a great stoploss or trigger as price action attempts to trend in a certain direction. The super trend allows for the user to adjust the likely hood of this cloud indicator changing from bullish to bearish based on the volatility of the asset that is being analyzed.
individually all of these are great. Together the trader can use this cloud to create a trend following or anlysis system that captures the bulk of moves.
Not my best explanation but this indicator is actually pretty simple.
Hope this helps. Happy Trades
-Snarky Puppy
Bands and Channels
Dual Bollinger Band Mean ReversionSimple but solid mean reversion indicator with sl and tp levels. Most of the code is based on the built in bollinger bands script. Designed for scalping 1-5 minute timeframes.
The indicator consists of two sets of bollinger bands.
Price has to close below the lower (fast) bollinger band, above the moving average of the (slower) bollinger band.
If price now closes above the lower (fast) bb, the indicator draws a label at the open of the next candle (which would be a potential entry point). Take profit becomes the upper bollinger band, stop loss the same distance below the open of the candle.
I've built in a simple backtesting function that calculates the potential win/loss-ratio. Loss and profit levels are 1:1. Exit strategy could be improved on.
Adjusting the lengths depending on the asset proves to be a good idea.
The slower bollinger bands can help to identify ranging markets and/or trends following regular bollinger bands theory.
Feel free to comment with any changes that you'd like to be made.
Donchian Cloud Score w/ TableThis indicator contains a set of 5 Donchian channels (upper, lower, and basis plotted) defaulted to lengths of 25, 50, 100, 150, and 200. A set of conditions associated with the channels aims to determine ranging versus trending markets. Weights are given to these conditions accordingly, then tallied up to determine the "cloud score", ranging between -25 and 25. For the purposes of this indicator, a ranging market is determined by a cloud score between -10 and 10, while a positive trending market has a score higher than 10 and a negative trending market has a score lower than -10. This score is accompanied by altered bar color to reflect the score - gray for ranging markets, green for positive trending markets, and red for negative trending markets. Breaking of upper or lower Donchian bands is typically a good indication of a potential breakout. Having a weighted system for these conditions will provide more insight and layers of confirmation into a Donchian breakout trading strategy. The table will reflect these values through positive, negative, and neutral coloration.
The list of conditions and their associated weights for this indicator are as follows:
- Broke the 25-length DC (DC(25)) upper band in the previous 3 bars - +1 if true, 0 if false
- Broke the DC(50) upper band in the previous 3 bars - +2 if true, 0 if false
- Broke the DC(100) upper band in the previous 3 bars - +3 if true, 0 if false
- Broke the DC(150) upper band in the previous 3 bars - +4 if true, 0 if false
- Broke the DC(200) upper band in the previous 3 bars - +5 if true, 0 if false
- Broke the DC(25) lower band in the previous 3 bars - -1 if true, 0 if false
- Broke the DC(50) lower band in the previous 3 bars - -2 if true, 0 if false
- Broke the DC(100) lower band in the previous 3 bars - -3 if true, 0 if false
- Broke the DC(150) lower band in the previous 3 bars - -4 if true, 0 if false
- Broke the DC(200) lower band in the previous 3 bars - -5 if true, 0 if false
- DC(25) basis line above the DC(50) basis line - +1 if true, -1 if false
- DC(25) basis line above the DC(100) basis line - +1 if true, -1 if false
- DC(25)basis line above the DC(150) basis line - +1 if true, -1 if false
- DC(25) basis line above the DC(200) basis line - +1 if true, -1 if false
- DC(50) basis line above the DC(100) basis line - +1 if true, -1 if false
- DC(50) basis line above the DC(150) basis line - +1 if true, -1 if false
- DC(50) basis line above the DC(200) basis line - +1 if true, -1 if false
- DC(100) basis line above the DC(150) basis line - +1 if true, -1 if false
- DC(100) basis line above the DC(200) basis line - +1 if true, -1 if false
- DC(150) basis line above the DC(200) basis line - +1 if true, -1 if false
Ichimoku Cloud and ADX with Trailing Stop Loss (by Coinrule)The Ichimoku Cloud is a collection of technical indicators that show support and resistance levels, as well as momentum and trend direction. It does this by taking multiple averages and plotting them on a chart. It also uses these figures to compute a “cloud” that attempts to forecast where the price may find support or resistance in the future.
The Ichimoku Cloud was developed by Goichi Hosoda, a Japanese journalist, and published in the late 1960s. It provides more data points than the standard candlestick chart. While it seems complicated at first glance, those familiar with how to read the charts often find it easy to understand with well-defined trading signals.
The Ichimoku Cloud is composed of five lines or calculations, two of which comprise a cloud where the difference between the two lines is shaded in.
The lines include a nine-period average, a 26-period average, an average of those two averages, a 52-period average, and a lagging closing price line.
The cloud is a key part of the indicator. When the price is below the cloud, the trend is down. When the price is above the cloud, the trend is up.
The above trend signals are strengthened if the cloud is moving in the same direction as the price. For example, during an uptrend, the top of the cloud is moving up, or during a downtrend, the bottom of the cloud is moving down.
DMI is simple to interpret. When +DI > - DI, it means the price is trending up. On the other hand, when -DI > +DI, the trend is weak or moving on the downside. The ADX does not give an indication of the direction but about the strength of the trend.
Typically values of ADX above 25 mean that the trend is steeply moving up or down, based on the -DI and +DI positioning. This script aims to capture swings in the DMI, and thus, in the trend of the asset, using a contrarian approach.
Trading on high values of ADX, the strategy tries to spot extremely oversold and overbought conditions. Values of ADX above 45 may suggest that the trend has overextended and is maybe about to reverse.
This strategy combines the Ichimoku Cloud with the ADX indicator to better enter trades.
Long orders are placed when these basic signals are triggered.
Long Position:
Tenkan-Sen is above the Kijun-Sen
Chikou-Span is above the close of 26 bars ago
Close is above the Kumo Cloud
MACD line crosses over the signal line
-DI is greater than +DI
ADX is greater than 45
Close Position:
3% increase trailing
3% decrease trailing
The script is backtested from December 2022 and provides good returns.
A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
Reversal pickerIs a tool used to determine market reversals, this tool is built of RSI and Moving Averages. Main aim of this tool is to help make market analysis easier by catching market reversal zones and alerting traders and investors about the market reversing and whether they should buy or sell.
What the tool do
- The tool catches market reversals
- The tool draw new support and resistance line for that period
- The tool alert you whether to buy or sell
How to use the tool
- Sell below resistance line and buy above support line
- The labels will guide you whether to buy or sell
- By default a red line is a resistance line and a green line is a support line
- By default a red label tells you to place a sell position and a green label tells you to place a buy position
Cuban's Quick Action ChannelCuban's Quick Action Channel
Cuban's Quick Action Channel, is an indicator designed to predict likely areas of price reversion, using a tighter channel mechanism with a lower time preference in comparison to Cuban's Reversion Bands.
It has been developed through extensive research and development over the last two years and has evolved into a tool that can also identify momentum across multiple timeframes using a two-tier coloring system based on a combination of proprietary signals.
With multiple color granularity settings, this coloring can be expanded for use as a background coloring system if you wish to use it in tandem with your own channel system.
The indicator utilizes unique band logic that is highly customizable to fit your use. When price moves beyond the boundaries of the channel, it has been frequently observed to correlate with liquidations and forced buying or selling.
The band logic uses a combination of pivot points, volatility metrics, and previous periods of price over-extension.
The EQ of the channel line is calculated by using the mid of the inner most channels, this EQ can be used as confluence for determining the trend direction of lower time preference price action.
Within the user inputs, the user gains the ability to customize:
channel width
channel sensitivity
volatility lookback
pivot points source
and coloring settings
To-do for future updates:
add alerts
add tooltips to each user input
An example of the background coloring:
Cuban's Reversion Bands V2Cuban's Reversion Bands V2
Cubans Reversion Bands, are a great indication of price overextension by using specified standard deviations, extended from a moving average basis line, the Volume Weighted Average Trend.
Reversion Bands V2 builds off the original foundation in a big way but utilizes completely new band logic and a more stable basis line, the stability leads to a more consistent band reversion zones.
The basis line is calculated with volatility metrics and long term range determinants.
The band extension points are then weighted on this basis line with the asset's average extensions taken into consideration to fit each asset individually.
Users gain the ability to customize:
EQ Sensitivity
Band Sensitivity
EQ sensitivity will control the reaction time of the basis line e.g. a comparison of the default 1, and below an increase EQ to 100:
1 EQ Sensitivity (Default)
100 EQ Sensitivity
Band Sensitivity will control the distance of deviation from the basis point, this can be used to fine tune the reversion location which could be useful in higher beta environments.
1 Band Sensitivity
100 Band Sensitivity
As a result of overextension we can take this as a means for a potential market shift, for example, in range bound conditions we expect the market to revert at the given reversion zones in the Cuban Reversion Bands V2.
Failure to revert at a band level, and extension above could signify a change in market structure and lead to a trending environment thus giving us the ability to determine a trending environment.
To Do:
alerts
implement additional confluence via other proprietary tools to increase the signal ratio
Variation analysis 1.1Plots lines on the graph in the upper and lower regions ( 0.25% 0.5% 0.75%).
Based on the previous day's closing price or by entering a base value.
Trading Channel for BTCThe goal is to visualize, through basic but robust information, a channel that frames the price action, whose referenced limits and lines are indicative of potential entries and exits.
It is a simple but enormously reliable base for the development of different strategies.
The parameters for the script have been optimized for BTC. It shows good results in all time frames.
Red lines: support of closures and lows (indicative of potential points of purchase).
Green lines: resistance of closures and highs (indicative of potential points of sale).
Orange-gray line: proposed stop loss for long positions, at a ratio of 2:1.
Yellow line: midpoint of channel (as a reference for trend change detection or even possible take-profits).
White line: 8-period simple moving average (SMA).
Gray line: 21-period SMA.
Pink line: standard pivot.
Purple line: 3-period simple moving average pivot.
Blue lines (deactivated by default): standard range of support and resistance pivots (according to the studies of John L. Person).
A channel of support and resistance indicative of potential entry points is shown, both for short and long positions. The channel is based on the closures and the lowest and highest lows and highs of the last 21 periods, shifted one period.
In addition to showing the channel of support and resistance, the script also includes the display of two SMAs (simple moving averages) of 8 and 21 periods, as well as standard and 3-period simple moving average pivots, which can be used as support for entry decisions.
The script allows the user to develop more or less aggressive strategies, conditioning the entries to the price's contact, closure, or distance from the different proposed support and resistance lines, and confirming the same entries through possible SMA and/or pivot crosses, and exits in the same way.
The standard range of support and resistance lines, deactivated by default, is a consultation tool for the higher time frames (month, week, day) for the location of strong supports and resistances that may recommend or, on the contrary, discourage the execution of entries.
The strong point of the script is the visualization of a reliable channel within which the price action develops with basic and repetitive behavior: when the price touches one of the limits, it then goes to the opposite one. Based on that foundation, with the help of the indicators that are most familiar and/or reliable for the user, an infinity of strategies suitable for all types of traders can be developed.
This script is just a consultation tool with didactic goals, it should not be used as an investment recommendation and the information provided should not be relied upon as such.
----------
Se pretende visualizar por medio de información básica pero robusta, un canal que enmarca la acción del precio, cuyos límites y líneas referenciadas son indicativos de potenciales entradas y salidas.
Resulta una base simple pero enormemente confiable para el desarrollo de diferentes estrategias.
Los parámetros para el script han sido optimizados para BTC. Muestra buenos resultados en todos los marcos temporales.
Líneas rojas: soportes de cierres y mínimos (indicativas de puntos potenciales de compra).
Líneas verdes: resistencias de cierres y mínimos (indicativas de puntos potenciales de venta).
Línea gris anaranjada: propuesta de stop loss para posiciones en largo, a razón de 2:1.
Línea amarilla: punto medio de canal (como referencia para detección de cambios de tendencia o incluso posibles take-profit).
Línea blanca: SMA (promedio móvil simple) de 8 periodos.
Línea gris: SMA de 21 periodos.
Línea rosa: pivote estándar.
Línea morada: pivote de media simple de 3 periodos.
Líneas azules (desactivadas por defecto): abanico de pivotes de soportes y resistencias estándar (según los estudios de John L. Person).
Se muestra un canal de soportes y resistencias indicativas de puntos potenciales de entradas tanto en corto como en largo. El canal se basa en los cierres y los mínimos y máximos más bajos y más altos de los últimos 21 periodos, desplazados un periodo.
Además de mostrar el canal de soportes y resistencias, el script incluye también la visualización de dos SMA's (promedios móviles simples) de 8 y 21 periodos, así como pivotes estándar y de media simple de 3 periodos, que se pueden utilizar como apoyo para las decisiones de entrada.
El script permite al usuario desarrollar diferentes estrategias más o menos agresivas, condicionando las entradas al contacto, al cierre o al alejamiento del precio respecto a las diferentes líneas de soporte y resistencia propuestas, pudiendo confirmar las mismas entradas por posibles cruces de SMA's y/o pivotes, y las salidas de igual manera.
El abanico de soportes y resistencias estándar, desactivadas por defecto, son herramienta de consulta para los marcos temporales más altos (mes, semana, día) para localización de resistencias y soportes fuertes, que pudieran recomendar o, por el contrario, desaconsejar la ejecución de entradas.
El punto fuerte del script es la visualización de un canal confiable dentro del que se desarrolla la acción del precio con un comportamiento básico y repetitivo: al tocar el precio uno de los límites, se dirige después al opuesto. Sobre esa base, con la ayuda de los indicadores que resulten más conocidos y/o confiables para el usuario, se pueden desarrollar infinidad de estrategias adecuadas para todos los tipos de trader.
Este script es solo una herramienta de consulta con objetivos didácticos, no debe ser utilizado como recomendación de inversión y no se debe confiar en ella como tal.
Morogan's Cloud Construction KitThis script allows you to build your own customized ribbon/cloud out of a combination of up to 10 moving averages of various lengths/types. The maximum and minimum of all the moving averages considered simultaneously at each period define the envelope of the cloud. Each moving average can be plotted or invisible and selectable for inclusion in the construction of the cloud. The defaults provide an example of a simple cloud plus individual moving averages.
Available Moving Average Algorithms:
SMA
EMA
SMMA (RMA)
WMA
VWMA
LSMA
T3
TEMA
The cloud color defaults to green when price closes above the cloud, red when price closes below, and gray when price closes within the cloud. You can disable the coloring of the cloud so that the cloud is a uniform color if that is your preference. There is also an option to highlight the boundaries of the cloud (default: OFF).
I have spent many hours testing clouds build upon various combinations of moving averages with this script. I suspect that you will, too. Enjoy!
MA Grid StrategyThis trading script uses adjusted 5 min MA40 bands.
The bands are the MA value adjusted by a percentage.
When the symbol closes below the lower bands it buys in increments.
When the symbol closes above the upper bands it sells percentages of the open positions.
Theoretically, this script will work best in bullish price movements, for this reason, ADX and DI were implemented to only trade when the current time frame shows bullish signals.
The returns on this script are minimal, If you have any improvement ideas I would love to hear them, I have only started looking into grid trading.
Trop BandsTrop Bands is a tool that uses an exponential moving average (EMA) as its central trendline and upper and lower bands to identify potential buying and selling opportunities in the market. The bands are calculated based on recent moves away from the EMA, and they are plotted around the central trendline to provide a visual representation of market trends and conditions. When the price moves outside of these bands, it can be seen as a signal that the security is overbought or oversold and may be ready for a reversal, just like Bollinger Bands.
In addition to providing signals when the price moves outside of the bands, the indicator can also show triangles outside/inside the bands. These triangles are based on the Demand Index developed by James Sibbet and are intended to provide additional confirmation of potential trading opportunities. They can be used in conjunction with other technical analysis tools to help identifying potential trading opportunities in the market.
Cosmic Channel LiteCosmic Channel Lite ( CC Lite) draws dynamic non-repainting trendlines and helps
⭐ know when a breakout is about to begin
⭐ predict the position and timing of the next swing reversal
⭐ predict sudden changes in volatility
⭐ recognize whether the price is in bearish or bullish territory
👀 HOW IT WORKS
Cosmic Channel Lite draws a dynamic channel consisting of a support line, basis line and resistance line. These are calculated by applying the Reduced Median Method to groups of moving averages of different type over several periods each, effectively taking 20 data points and reducing them to 3. In between, 6 internal levels are left to give context inside the channel with stable levels, the extremes of which help highlight the SR lines (see chart). The basis line color is determined by its smoothed angle with positive angles in green and negative in purple. The aim of this indicator is to provide a consistent and generic price context that works out-of-the-box and accordingly the settings have been stripped to the bare minimum with no need to continually adjust them.
📗 HOW TO USE IT
The Cosmic Channel Lite plots are meant to be used as a guide for entering and exiting positions and setting stop-loss and take profit levels. The indicator is deemed effective for any particular timeframe as long as the price stays within the maximum bounds of the indicator's plots. For this reason it is recommended to use Cosmic Channel Lite in a multi-chart layout where each chart has a different timeframe. The 5 primary strategies are:
long when the price reverses off of the support line and short when the price reverses off of the resistance line
long when the support line is highlighted and short when the resistance line is highlighted
long when the price breaks above the resistance line and short when the price breaks below the support line
long when the price moves above the basis line after being below it for a prolonged period and visa-versa (short when the price moves below the basis line)
long/short in the direction the price takes after a stable level ends
🔔 SMART ALERTS
Get notified at the most critical times by settings just one alert. Simply select CC Lite and Any alert() function call as the conditions when creating an alert and you will be tipped-off on bar-close as follows:
R─ (resistance line is highlighted)
S─ (support line is highlighted)
For example, an alert such as CC Lite 6h R─ would mean that during the last 6-hour bar the resistance line has been highlighted. The highlight lasts at least 15 bars from the first highlight bar regardless of price action.
Range Band (Expo)█ Overview
Range Band (Expo) measures an asset's volatility and price movements to plot the most relevant price range. Identifying ranges in trading is extremely important for traders to assess the current market and make informed decisions about when to enter and exit positions.
By identifying ranges, traders can identify support and resistance levels , and use these levels to determine when to enter and exit a trade. Ranges also help traders to identify potential entry and exit points and set stop-loss and take-profit levels. Additionally, ranges can help traders to identify potential trends and reversals .
█ How to use
Identify potential trading opportunities
For example, if the price is bouncing between the upper and lower range bands, it may indicate that traders could potentially profit from short-term contrarian trades. Similarly, if the price is trading near the upper or lower range band, it may indicate that traders could potentially profit from long-term trend trades.
Price Ranges and SR Levels
Range bands help traders identify price ranges that are likely to be profitable. It is a graphical representation of price movement and is typically used to identify support and resistance levels. Range bands are also used to identify potential entry and exit points.
Trends
Range bands are used in to identify trends.
Reversals
Range bands are used in technical analysis to identify potential reversal points.
Overbought and Oversold
When the price reaches the upper range band, it may indicate that the asset is overbought and that the price is likely to fall. When the price reaches the lower range band, it may indicate that the asset is oversold and that the price is likely to rise.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
AQ ema200 Use this indicator as a one-week top or bottom forecaster
Time frame: 15m
Buy when the indicator is below the 0 lines and the price is in the yellow-red zone
Sell when the indicator is above the 0 lines and the price is in the yellow-red zone
The stop loss of 200 pips from the entry point
Take profit at line 0
Double RSI + BBRSI stands for Relative Strength Index.
Bollinger Bands stands for a channel open by standard deviation values plotting upper, lower lines.
Double RSI with Bollinger bands adapted Bollinger bands to RSI not using overlay mode. It tries to filter fake signals while giving more good signals according to volatility even below overbought areas or above oversold areas. This way you can use greater values for RSI, like 25 and 100, increasing smoothness with less market noise.
We added an extra gap spacer to smooth Bollinger bands while widening the channel with a lower multiplier.
I found better results when Fast RSI crosses back into Bollinger bands channel.
You can play with the following settings:
• Source
Close is the most used
• Fast RSI length
Default to 25
• Slow RSI length
Default to 100
• RSI Smoothing
To filter out some graphic noise
• RSI Overbought, Oversold
Regular overbought, oversold lines handled by a single value. For 70/30, set it to 20 although with longer RSI something around 15 is enough.
• Bollinger Spacer
Ads thickness to the channel with lower multiplier
• Bollinger Length
Regular Bollinger length applied to slow RSI
• Bollinger Multiplier
Regular Bollinger multiplier applied to slow RSI
Disclaimer:
For study purposes only, trading without a good risk management can be regrettable, do your own research, always add confirmations, use it as is, at your own risk.
B4Signals Indicator Premium Addon SqueezeB4 Squeeze is a chop zone indicator that finds potential breakouts in Realtime. It filters price action to Identify and draw a squeeze threshold (chop zone) live on your upper chart. It identifies both Squeeze Zones and Breakouts/Breakdowns.
How it works?
- The script finds highest/lowest bars during the SQZ according to the ”B4Signals Indicator“.
- By using the direction and highest/lowest bar info it calculates SQZ Zones in realtime .
- The Indicator helps you stay out of the chop during the SQZ and allows you to exploit explosive moves when it breaks out.
- When price exits the SQZ threshold, price will usually explode up or down changing the color of the box to indicate breakout direction.
- Then SQZ Zone extends automatically if there is no breakout.
Bollinger-Bands.Multi_Choice(BBMC) "Bollinger-Bands.Multi_Choice" indicator gives the end user a choice of which Moving Average they want to use.
The MA choices available are:
SMA = simple moving average
EMA = exponentially weighted moving average
RMA = moving average used in RSI
WMA = weighted moving average
VWMA = volume weighted moving average
VWAP = volume weighted average price
HMA = Hull moving average
SWMA = symmetrically weighted moving average
ALMA = Arnaud Legoux moving average
The default setting inputs are:
source = OHLC4
length = 13
ALMA offset = 0.89
ALMA sigma = 5
Moving average type = VWMA
Level 1 standard deviation = 1.0
Level 2 standard deviation = 2.0
Level 3 standard deviation = 3.0
Level 3 standard deviation = 4.0
The default setting colors are:
Top = white
R3 = green
R2 = orange
R1 = blue
pivot = white
(track pivot line = bullish is green, bearish is red)
S1 = purple
S2 = yellow
S3 = red
Bottom = white
I made this indicator from an idea I had for a few months with the help of pine coder scripts before me. Kudos to @TradingView & @Madrid.
* This script uses altered pieces of code from @TradingView "Intrabar Efficiency Ratio indicator" & @Madrid "Bollinger Bands indicator" *
Band Based Trend FilterSimilar to RelativeBandwidthFilter , this script is also a simple trend filter which can be used to define your trading zone.
🎲 Concept
On contrary to reversal mindset, we define trend when price hits either side of the band. If close price hits upper band then it is considered as bullish and if close price hits lower band, then it is considered bearish. Further, trend strength is measured in terms of how many times the price hits one side of the band without hitting other side. Hit is counted only if price has touched middle line in between the touches. This way price walks on the bands are considered as just one hit.
🎲 Settings
Settings are minimal and details can be found in the tooltips against each parameters
🎲 Usage
This can be used with your own strategy to filter your trading/non-trading zones based on trend . Script plots a variable called "Trend" - which is not shown on chart pane. But, it is available in the data window. This can be used in another script as external input and apply logic.
Trend values can be
1 : Allow only Long
-1 : Allow only short
0 : Do not allow any trades
ka66: Alpha-Configurable EMAAllows directly modifying the Alpha/Smoothing Factor parameter of an EMA. This can allow for very close fits to price movement, instead of the more standard coarse-grained approach of adjusting smoothing via the look-back period.
Furthermore, we allow smoothing this EMA further by passing the original EMA through the EMA function again, and the output of this, yet again, to as many smoothing iterations are desired. For efficiency and practicality, limited to 10 iterations. This is inspired by indicators such as the DEMA.
Finally, we allow producing bands, with a configurable multiplier, around the final EMA. Useful for dynamic S/R levels, e.g. to use as trailing stop zones.
Volume Weighted Hull Moving Average Bollinger Bands (VWHBB)Title: "Volume Weighted Hull Moving Average Bollinger Bands Indicator for TradingView"
Abstract: This script presents a TradingView indicator that displays Bollinger Bands based on the volume weighted Hull Moving Average (VEHMA) of a financial asset. The VEHMA is a technical analysis tool that combines the reduced lag of the Hull Moving Average (HMA) with volume weighting to provide a more sensitive indicator of market trends and dynamics. The Bollinger Bands are a volatility indicator that plot upper and lower bands around a moving average, which can help traders identify potential trend changes and overbought or oversold conditions. The script allows the user to customize the VEHMA length and Bollinger Band deviation parameters.
Introduction: Bollinger Bands are a popular technical analysis tool used to identify potential trend changes and overbought or oversold conditions in the market. They are constructed by plotting upper and lower bands around a moving average, with the width of the bands determined by the volatility of the asset. The VEHMA is a variant of the Hull Moving Average (HMA) that combines the reduced lag of the HMA with volume weighting to provide a more sensitive indicator of market trends and dynamics.
Methodology: The VEHMA is calculated using a weighted average of two exponential moving averages (EMAs), with the weighting based on the volume of the asset and the length of the moving average. The Bollinger Bands are calculated by plotting the VEHMA plus and minus a standard deviation of the asset's price over a specified period. The standard deviation is a measure of the volatility of the asset and helps to adjust the width of the bands based on market conditions.
Implementation: The script is implemented in TradingView's PineScript language and can be easily added to any chart on the platform. The user can customize the VEHMA length and Bollinger Band deviation parameters to suit their trading strategy. The VEHMA, Bollinger Bands, and fill colors are plotted on the chart to provide a visual representation of the indicator.
Conclusion: The VEHMA Bollinger Bands indicator is a useful tool for traders looking to identify potential trend changes and overbought or oversold conditions in the market. This script provides a convenient and customizable implementation of the indicator for use in TradingView.
Volume Weighted Exponential Moving Average Suite (VWEMA)This is a volume weighted exponential moving average (EMA) script that allows users to customize various parameters to fit their specific needs.
The script includes four different EMA styles: EMA, DEMA, TEMA, and EHMA. Users can choose which style they would like to use by selecting it in the input field. The script also allows users to customize the length of the EMA, with options for both a maximum and minimum length. Users can also choose to use a manual length or to use the dominant cycle within a range as the length.
In addition to these options, the script also includes the ability to turn on or off volume weighting and a daily reset feature that resets the EMA every day. There is also an option to turn on deviation bands, which show the standard deviation of the selected EMA.
Overall, this script offers a wide range of customization options to help users find the best EMA settings for their needs. It is an advanced tool that can be very helpful for traders looking to optimize their EMA strategy.
Cumulative length instead of cycle length
Double EMA Volume Weighted
Triple EMA Volume Weighted
EHMA Volume Weighted
Higher time frame
Deviation Bands
Kioseff Trading - AI-Powered Strategy Optimizer Introducing the Kioseff Trading AI-Powered Strategy Optimizer
Optimize and build your trading strategy with ease, no matter your experience level. The Kioseff Trading AI-Powered Strategy Optimizer allows traders to efficiently test and refine strategies with thousands of different profit targets and stop loss settings. Integrated with TradingView's backtester, this tool simplifies strategy optimization, strategy testing, and alert setting, enabling you to enhance your strategy with AI-driven insights.
Key Features:
Comprehensive Testing : Simultaneously test thousands of profit targets and stop losses to fine-tune your strategy.
Dual Strategy Optimization : Adjust and optimize both long and short strategies for balanced performance.
AI Integration : Elevate your strategy with heuristic-based adaptive learning, turning it into a smart, AI-assisted system.
Detailed Analysis : View critical metrics like profit factor, win rate, max drawdown, and equity curve, presented in a strategy script format.
Customizable Alerts : Set alerts for the best version of your strategy.
Flexible Risk Management : Optimize various stop loss types, including profit targets, limit orders, OCO orders, trailing stops, and fixed stops.
Targeted Goals : Choose optimization goals like highest win rate, maximum net profit, or most efficient profit.
Indicator Compatibility : Integrate any strategy/indicator, whether it’s your creation, a favorite author’s, or any public TradingView indicator.
Accessible Design : Navigate a user-friendly interface suitable for traders of all skill levels. No code required.
Precision Lock-In : “Lock” your optimal profit target or stop loss to drill down into precision testing of other variables.
How it works
It's important to remember that merely having the AI-Powered Strategy Optimizer on your chart doesn't automatically provide you with the best strategy. You need to follow the AI's guidance through an iterative process to discover the optimal settings for your strategy.
The Trading Strategy Optimizer is a versatile tool tailored for both non-coding traders and seasoned algorithmic trading professionals. Let's start with no-code-required instructions on how to use the optimizer.
Instructions: How To Optimize Your Strategy Without Code
1. Build your strategy in the settings
The image above shows explanations for each key setting.
Note: This example uses the RSI indicator to initiate a long trade whenever it dips below the 30 mark.
Ensure that the indicator you wish to optimize is already applied to your chart . This enables the Trading Strategy Optimizer to interact with the indicator and finetune profit targets and stop losses effectively.
Because the indicator is plotted on the chart I can access the indicator with the Trading Strategy Optimizer and optimize profit targets and stop losses for it.
2. Leverage AI Recommendations
Optimization Prompt: After you load your strategy, the tool advises you on new TP and SL levels that could be more profitable.
When your strategy is set, the tool gives you tips for where to set your profit goal (TP) and your stop loss to help you optimize your strategy. It'll tell you if there's a better range for these settings based on past results.
Follow Suggestions: Keep updating your TP and SL according to the tool's suggestions until it says "Best Found".
Final Result: The last image shows the best settings found by the indicator.
(Optional Step 3)
3. Lock the profit target or stop loss to further fine tune your strategy
Continue following the AI’s suggestion until “Best Found” is displayed.
Note: you can select lock either your stop loss or profit target for fine tuning. For this demonstration we will lock our profit target.
Code-Required Instructions (Optional)
You can backtest more code-intensive strategies, such as harmonic patterns, traditional chart patterns, candlestick patterns, Elliot wave, etc., by coding the entry condition in your own script and loading it into the Trading Strategy Optimizer. Let's dial in on how to achieve this!
1. You must create an integer variable in your script with an initial value of "0".
2. Define your entry condition in the code. Once complete, assign the value "1" to the variable you created if the entry condition is fulfilled.
3. Plot your variable.
4. Select the plotted variable in the settings for the Trading Strategy Optimizer
The image above shows a coded entry condition for the linear regression channel (which can be any indicator). When price crosses under and closes below the lower line our variable "strategyEntryVariable" is assigned the value "1".
The Trading Strategy Optimizer will treat this change in value from "0" to "1" as an entry signal and enter long/short up to 1000 times at the price where the entry condition was fulfilled.
5. Test Your Strategy
The image above shows the completion of the process! Keep applying the steps we described. Stick with the AI's recommendations until you see “Best Found” show up.
By following these instructions, you can build, test, and optimize almost any trading indicator or strategy!
So, just note that the Trading Strategy Optimizer considers a change in value of a plotted variable from "0" to "1" as an entry signal! So long as you follow this rule you should be able to test and optimize any conceivable, Pine Script compatible strategy!
AI Mode
AI Mode incorporates Heuristic-Based Adaptive Learning to fine-tune trading strategies in a continuous manner. This feature consists of two main components:
Heuristic-Based Decision Making: The algorithm evaluates multiple versions of your strategy using specific metrics such as Profit and Loss (PNL), Win Rate, and Most Efficient Profit. These metrics act as heuristics to assist the algorithm in identifying suitable profit targets and stop losses for trade execution.
Online Learning: The algorithm updates the performance evaluations of each strategy based on incoming market data. This enables the system to adapt to current market conditions.
Incorporating both heuristic-based decision-making and online learning, this feature aims to provide a framework for trading strategy optimization.
Settings
AI Mode Aggressiveness:
Description: The "AI Mode Aggressiveness" setting allows you to fine-tune the AI's trading behavior. This setting ranges from "Low" To "High, with higher aggressiveness indicating a more assertive trading approach.
Functionality: This feature filters trading strategies based on a proprietary evaluation method. A higher setting narrows down the strategies that the AI will consider, leaning towards more aggressive trading. Conversely, a lower setting allows for a more conservative approach by broadening the pool of potential strategies.
Adaptive Learning Aggressiveness:
Description: When Adaptive Learning is enabled, the "Adaptive Learning Aggressiveness" setting controls how dynamically the AI adapts to market conditions using selected performance metrics.
Functionality: This setting impacts the AI's responsiveness to shifts in strategy performance. By adjusting this setting, you can control how quickly the AI moves away from strategies that may have been historically successful but are currently underperforming, towards strategies that are showing current promise.
Additional Settings
Optimization
Trading system optimization is immensely advantageous when executed with prudence.
Technical-oriented, mechanical trading systems work when a valid correlation is methodical to the extent that an objective, precisely-defined ruleset can consistently exploit it. If no such correlation exists, or a technical-oriented system is erroneously designed to exploit an illusory correlation (absent predictive utility), the trading system will fail.
Evaluate results practically and test parameters rigorously after discovery. Simply mining the best-performing parameters and immediately trading them is unlikely a winning strategy. Put as much effort into testing strong-performing parameters and building an accompanying system as you would any other trading strategy. Automated optimization involves curve fitting - it's the responsibility of the trader to validate a replicable sequence or correlation and the trading system that exploits it.