APEX - WaveTrend [v1]WaveTrend is a smoothed oscillator which enables it to detect true reversals in an extremely accurate manner. The beauty of this indicator is that does not generate signals during choppy sideways markets.
The basic settings are 10 / 3 / 4 these are very aggressive settings, that will generate a lot of signals in all even not so volatile markets. If you need high-quality signals you settings close to 10 / 3 /21. The strongest buy/sell signals are given when the cross occurs above or below the threshold. In the 10 / 3 / 4 you threshold for buy should be around -90 values. If you use the very smoothed variant the threshold will be around -45 to -50 values.
This indicator will be first available in APEX v1 currently being beta tested.
"腾讯10大股东"に関するスクリプトを検索
Schaff Trend Cycle 1.1 with signal codingThis is an edit of Lazy Bear's Schaff Trend Cycle original description here. I've added in the syntax so that you can generate an alert when it crosses the threshold in either direction. Just tick the box to show threshold crosses.
More background on the indicator is here.
www.investopedia.com
Other common settings are fast 23 slow 53 or 10/30, 3/10. I have also set it to 9/20 for test purposes. They have different pluses and minuses on different timeframes.
Double EMA & ALMA StrategyThe ALMA (50 period) acts as the main trend filter, meaning that long positions are taken above the ALMA and short positions are taken below the ALMA. For instance, the 5 and 10 period exponential moving averages are added on the chart to give early signals to the trend.
Therefore, when the 5/10 EMA triggers a bullish crossover, long signals are taken when price is above the ALMA, likewise, when the 5/10 EMA triggers a bearish crossover, short signals are taken when price is below the ALMA.
Find out optimal values by trying. May not produce accurate results in horizontal markets. Thank you.
Inverted Yield Curve with VIX Fear IndexUS 2 year and US 10 year comparison, inverted yield curve with VIX. I use this on a weekly chart with 2 moving averages, the 40 week (ma200 daily) and the 520 week (10 year median).
The bottom histogram is the VIX and the plot is the yield curve. When the VIX is above a certain level (you can set it in settings) and the ýield curve is close to or at inversion the background goes red.
The last seven recessions were preceded by an inverted yield curve. Here I combined the two main fear indexes, the VIX and the run for safe US treasuries (Inverted Yield Curve).
This is preset to the 2 year and 10 year US bond, weekly, and the normal VIX ticker but you can set it to whatever you like.
Published with source code for anyone to modify. Please comment below if you do so! This is the second in a series of indicators I intend to publish as a package of economic recoverty/recession symptom indicators.
Follow me for updates, next one up is commodities with dr Copper and oil!
Advanced Larry Williams 9.2- By EduHit rate greater than Setup 9.1
However, the stop of this setup becomes more expensive in certain situations.
PURCHASE SIGN
1 - Paper comes in a bullish trend in the operational term to be operated.
2 - Exponential moving average of 9 upward periods.
3 - Wait for a candle to make the largest closing (candle reference).
4 - If the next candle CLOSES below the minimum of the candle reference the setup is armed.
5 - Mark the candle maxim that closed below the reference. It's the trigger!
6 - If the next candle exceeds this maximum by 1 cent the trade is triggered. Put the stop loss at the low of the candle that closed below (0.01 to 0.10 below)
7 - If the next candle does not fire, let's lower the trigger to the lower maximums, SINCE the mm9exp does not turn down.
8 - It exceeded the maximum we will have the entrance.
9 - Original stop-loss in the minimum of the candle we set the maximum activated.
SIGN OF SALE
1 - Paper comes in a downtrend in the operating period to be operated.
2 - Exponential moving average of 9 periods descending.
3 - Wait for a candle that makes the lowest closing (candle reference).
4 - If the next candle CLOSE above the maximum of the reference candle the setup is armed.
5 - Bookmark the candle that closed above the reference. It's the trigger!
6 - If the next candle breaks this minimum, the trade is triggered.
7 - Place the stop-loss at the maximum of the candle that closed up.
8 - If the next candle does not trigger, we will raise the trigger to the highest minimums SINCE the exponential moving average of 9 periods does not turn upwards.
9 - It broke the minimum we will have the entrance.
10 - Stop-loss original in the maximum of the candle that we set the minimum activated.
*********************************************************************************************************************************************************
Índice de acerto Superior ao Setup 9.1
Porém o stop deste setup acaba se tornando mais caro em determinadas situações.
SINAL DE COMPRA
1 - Papel vem em tendência de alta no prazo operacional a ser operado.
2 - Média móvel exponencial de 9 períodos ascendente.
3 - Aguardar um candle que faça o maior fechamento (candle referência).
4 - Se o próximo candle FECHAR abaixo da mínima do candle referência o setup está armado.
5 - Marcar a máxima do candle que fechou abaixo do referência. É o gatilho!
6 - Se o próximo candle superar essa máxima em 1 centavo o trade é acionado. Colocar o stop-loss na mínima do candle que fechou abaixo (0,01 a 0,10 abaixo)
7 - Se o próximo candle não acionar, vamos abaixando o gatilho para as máximas menores DESDE QUE a mm9exp não vire para baixo.
8 - Superou a máxima teremos a entrada.
9 - Stop-loss original na mínima do candle que marcamos a máxima ativada.
SINAL DE VENDA
1 - Papel vem em tendência de baixa no prazo operacional a ser operado.
2 - Média móvel exponencial de 9 períodos descendente.
3 - Aguardar um candle que faça o menor fechamento (candle referência).
4 - Se o próximo candle FECHAR acima da máxima do candle referência o setup está armado.
5 - Marcar a mínima do candle que fechou acima do referência. É o gatilho!
6 - Se o próximo candle romper essa mínima o trade é acionado.
7 - Colocar o stop-loss na máxima do candle que fechou acima.
8 - Se o próximo candle não acionar, vamos levantando o gatilho para as mínimas maiores DESDE QUE a média móvel exponencial de 9 períodos não vire para cima.
9 - Rompeu a mínima teremos a entrada.
10 - Stop-loss original na máxima do candle que marcamos a mínima ativada.
Reset Every (Price)Someone requested a high/low price indicator that would reset the "remembered" prices daily. I started out doing just that, and then decided to make it much more configurable.
Choose the units (minutes, hours, days, weeks, months) and the number of those units, and this will reset the highest/lowest value remembered to the current values on your chosen time interval.
This should work with any time interval you desire, within reason...asking for resets every 4000 hours on a monthly chart will probably not work.
GE, monthly, every 7 months:
Ford, weekly, every 18 months:
Dow Jones Industrial Average, weekly, every 90 days:
LTCBTC, daily, every 10 days:
ETHUSD, 30 minutes, every 10 days:
BTCUSD, 1 minute, every 10 hours:
EURUSD, 1 minute, every 50 minutes:
Also, I am about to publish another version of this with just one source input that can be applied to any indicator...stay tuned!
XPloRR MA-Trailing-Stop StrategyXPloRR MA-Trailing-Stop Strategy
Long term MA-Trailing-Stop strategy with Adjustable Signal Strength to beat Buy&Hold strategy
None of the strategies that I tested can beat the long term Buy&Hold strategy. That's the reason why I wrote this strategy.
Purpose: beat Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
My buy strategy is triggered by the fast buy EMA (blue) crossing over the slow buy SMA curve (orange) and the fast buy EMA has a certain up strength.
My sell strategy is triggered by either one of these conditions:
the EMA(6) of the close value is crossing under the trailing stop value (green) or
the fast sell EMA (navy) is crossing under the slow sell SMA curve (red) and the fast sell EMA has a certain down strength.
The trailing stop value (green) is set to a multiple of the ATR(15) value.
ATR(15) is the SMA(15) value of the difference between the high and low values.
The scripts shows a lot of graphical information:
The close value is shown in light-green. When the close value is lower then the buy value, the close value is shown in light-red. This way it is possible to evaluate the virtual losses during the trade.
the trailing stop value is shown in dark-green. When the sell value is lower then the buy value, the last color of the trade will be red (best viewed when zoomed)(in the example, there are 2 trades that end in gain and 2 in loss (red line at end))
the EMA and SMA values for both buy and sell signals are shown as a line
the buy and sell(close) signals are labeled in blue
How to use this strategy?
Every stock has it's own "DNA", so first thing to do is tune the right parameters to get the best strategy values voor EMA , SMA, Strength for both buy and sell and the Trailing Stop (#ATR).
Look in the strategy tester overview to optimize the values Percent Profitable and Net Profit (using the strategy settings icon, you can increase/decrease the parameters)
Then keep using these parameters for future buy/sell signals only for that particular stock.
Do the same for other stocks.
Important : optimizing these parameters is no guarantee for future winning trades!
Here are the parameters:
Fast EMA Buy: buy trigger when Fast EMA Buy crosses over the Slow SMA Buy value (use values between 10-20)
Slow SMA Buy: buy trigger when Fast EMA Buy crosses over the Slow SMA Buy value (use values between 30-100)
Minimum Buy Strength: minimum upward trend value of the Fast SMA Buy value (directional coefficient)(use values between 0-120)
Fast EMA Sell: sell trigger when Fast EMA Sell crosses under the Slow SMA Sell value (use values between 10-20)
Slow SMA Sell: sell trigger when Fast EMA Sell crosses under the Slow SMA Sell value (use values between 30-100)
Minimum Sell Strength: minimum downward trend value of the Fast SMA Sell value (directional coefficient)(use values between 0-120)
Trailing Stop (#ATR): the trailing stop value as a multiple of the ATR(15) value (use values between 2-20)
Example parameters for different stocks (Start capital: 1000, Order=100% of equity, Period 1/1/2005 to now) compared to the Buy&Hold Strategy(=do nothing):
BEKB(Bekaert): EMA-Buy=12, SMA-Buy=44, Strength-Buy=65, EMA-Sell=12, SMA-Sell=55, Strength-Sell=120, Stop#ATR=20
NetProfit: 996%, #Trades: 6, %Profitable: 83%, Buy&HoldProfit: 78%
BAR(Barco): EMA-Buy=16, SMA-Buy=80, Strength-Buy=44, EMA-Sell=12, SMA-Sell=45, Strength-Sell=82, Stop#ATR=9
NetProfit: 385%, #Trades: 7, %Profitable: 71%, Buy&HoldProfit: 55%
AAPL(Apple): EMA-Buy=12, SMA-Buy=45, Strength-Buy=40, EMA-Sell=19, SMA-Sell=45, Strength-Sell=106, Stop#ATR=8
NetProfit: 6900%, #Trades: 7, %Profitable: 71%, Buy&HoldProfit: 2938%
TNET(Telenet): EMA-Buy=12, SMA-Buy=45, Strength-Buy=27, EMA-Sell=19, SMA-Sell=45, Strength-Sell=70, Stop#ATR=14
NetProfit: 129%, #Trade
Renko Price Bars Overlay// Shows the price renko bars (or range bars) instead of the PERIOD renko
// bars that are integrated into Trading View. The normal renko bars that
// Trading View offers only consider the drawing of a new brick when the
// price closes above or below the required brick size. This can produce
// misleading charts since depending on the time interval of a chart, new
// bricks may or may not be drawn. True price renko bars will draw a new
// brick immediately upon the price exceeding the next target brick size.
// When running this script in "Traditional" mode, the painting of the
// brick overlay band is INDEPENDENT of the chart interval. If price
// exceeds the required target price for the next brick, the band is
// updated immediately, instead of waiting for the price bar on the chart
// interval to close first. The brick starting anchor point will attempt
// to be a "nice number" at a round interval for the chart ticker. For
// example, if viewing EURUSD with the box size equal to 50 ticks/pips,
// the open and close prices will take the form of 1.2100, 1.2150, 1.2200,
// 1.2250, and so on. This is the same behavior as the normal traditional
// Renko bars in Trading View and other major trading platforms such as
// Meta Trader.
// Use the tick size in traditional mode to specify the block size, in
// ticks. This may give interesting results in FOREX pairs... as the tick
// size in Trading View may be 0.00001 instead of the normal pip size of
// 0.0001, so a 10 pip block size may be '100', and not the expected '10'.
// FOREX futures should work in the manner expected, a 10 pip block size
// will indeed equal 0.0010.
// The "ATR" mode functions differently than the Trading View built in
// version. The block size is updated each time the range is exceeded.
// In Trading View, when using the ATR mode, the ATR is the last ATR
// value calculated on the ENTIRE data interval, and is applied to all
// past data. You can see this when you press the '+' sign of the ticker
// in the top left of the chart window and you will see the brick size
// as a constant, the brick size is not a function of the ever changing
// ATR value of the price action. The block size of this script is not
// updated for each price candle (i.e. each 1HR on a 1HR chart), instead
// it is updated only when the price thresholds are exceeded requiring a
// the band to be updated. At that point the current ATR is considered
// and the brick size is updated.
// Options exist to show the current high and low of the brick, and to
// show the required levels that the price must exceed to draw a new
// brick and update the band.
Please leave comments if you notice any bugs or would like any new features added. I don't find much use for plotting the H/L of the current renko candle, but I have seen some request it in the past.
Cheers.
EMA Indicators with BUY sell SignalCombine 3 EMA indicators into 1. Buy and Sell signal is based on
- Buy signal based on 20 Days Highest High resistance
- Sell signal based on 10 Days Lowest Low support
Input :-
1 - Short EMA (20), Mid EMA (50) and Long EMA (200)
2 - Resistance (20) = 20 Days Highest High line
3 - Support (10) = 10 Days Lowest Low line
Volume Range EventsChanges in the feelings (positive, negative, neutral) in the market concerning the valuation of an instrument are often preceded with sudden outbursts of buying and selling frenzies. The aim of this indicator is to report such outbursts. We can see them as expansions of volume, sometimes 10 times more than usual. and as extensions of the trading range, also sometimes 10 times more than usual (e.g. usual range is 10 cent suddenly a whole dollar.) The changes are calculated in such a way that these fit between plus and minus 100 percent, the bars are scaled in some sort of logarithmic way. The Emoline is the same as the one in the True Balance of Power indicator, which I already published
ONLY RISES ARE EVENTS
Sometimes analysts are tempted to give meaning to low volume or small ranges. These simply mean that the market has little interest in trading this instrument. I believe that in such cases the trader needs to wait for expansion and extension events to happen, then he can make a better guess of where the market is heading. As events often mark the beginning or ending of a trend, this indicator provides an early and clear signal, because it doesn’t bother us about non-events.
WHAT IS USUAL?
If the algorithm would use an average as a normal to scale volume or range events, then previous peaks will act as spoilers by making the average so high that a following peak is scaled too small. I developed a function, usual() , that kicks out all extremes of a ‘population of values’ and which returns the average of the non-extreme values. It can be called with any serial. This function is called by both algorithms that report volume and range peaks, which guarantees that the results are really comparable. As this function has a fixed look back of 8 periods, we might state that ‘usual’ is a short lived relative value. I think this doesn’t matter for the practical use of the indicator.
COLORING AND INTERPRETATION
I follow the categories in the ‘Better Volume Indicator’, published by LeazyBear, these are:
1. Climactic Volumes, event >40 % (this means peak is 1.5 X usual)
LIME: Climax Buying Volume, direction up, range event also > 30 %
RED: Climax Selling Volume, direction down, range event also > 30 %
AQUA: Climax Churning Volume, both directions, range event < 30%
2. Smaller Volumes, event <40 %
GREEN: Supportive Volume, both directions, if combined with range event
BLUE: Churning Volume, both directions, if not combined with range event (Professional Trading)
3. Just Range Events
BLACK histogram bars (Amateurish Trading)
Forex Master v4.0 (EUR/USD Mean-Reversion Algorithm)DESCRIPTION
Forex Master v4.0 is a mean-reversion algorithm currently optimized for trading the EUR/USD pair on the 5M chart interval. All indicator inputs use the period's closing price and all trades are executed at the open of the period following the period where the trade signal was generated.
There are 3 main components that make up Forex Master v4.0:
I. Trend Filter
The algorithm uses a version of the ADX indicator as a trend filter to trade only in certain time periods where price is more likely to be range-bound (i.e., mean-reverting). This indicator is composed of a Fast ADX and a Slow ADX, both using the same look-back period of 50. However, the Fast ADX is smoothed with a 6-period EMA and the Slow ADX is smoothed with a 12-period EMA. When the Fast ADX is above the Slow ADX, the algorithm does not trade because this indicates that price is likelier to trend, which is bad for a mean-reversion system. Conversely, when the Fast ADX is below the Slow ADX, price is likelier to be ranging so this is the only time when the algorithm is allowed to trade.
II. Bollinger Bands
When allowed to trade by the Trend Filter, the algorithm uses the Bollinger Bands indicator to enter long and short positions. The Bolliger Bands indicator has a look-back period of 20 and a standard deviation of 1.5 for both upper and lower bands. When price crosses over the lower band, a Long Signal is generated and a long position is entered. When price crosses under the upper band, a Short Signal is generated and a short position is entered.
III. Money Management
Rule 1 - Each trade will use a limit order for a fixed quantity of 50,000 contracts (0.50 lot). The only exception is Rule
Rule 2 - Order pyramiding is enabled and up to 10 consecutive orders of the same signal can be executed (for example: 14 consecutive Long Signals are generated over 8 hours and the algorithm sends in 10 different buy orders at various prices for a total of 350,000 contracts).
Rule 3 - Every order will include a bracket with both TP and SL set at 50 pips (note: the algorithm only closes the current open position and does not enter the opposite trade once a TP or SL has been hit).
Rule 4 - When a new opposite trade signal is generated, the algorithm sends in a larger order to close the current open position as well as open a new one (for example: 14 consecutive Long Signals are generated over 8 hours and the algorithm sends in 10 different buy orders at various prices for a total of 350,000 contracts. A Short Signal is generated shortly after the 14th Long Signal. The algorithm then sends in a sell order for 400,000 contracts to close the 350,000 contracts long position and open a new short position of 50,000 contracts).
My5min1. Follow the instructions for entry and exit exactly as above. Don’t second guess, or assume/presume anything.
2. Avoid entering the trade when the price is temporarily above /below 10 day MA, but the price candle hasn’t fully formed yet. Enter the trade only after the price candle closes above/below the 10 day MA.
3. Exit the trade immediately when the price candle closes above/below 10 day MA in the direction opposite to the trade. Don’t remain in the trade wishing it to turn in your favor.
4. Never ever trade in the opposite direction of the market. i.e. don’t buy when the price is below 200 day MA and sell when the price is above 200 day MA.
5. Take profits when limit is reached. Don’t be greedy and keep on increasing the target. Remember- A bird in hand is worth two in the bush.
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.
EMA Stack Background HighlighterThis is a simple script that highlights my backround when my criteria for my context timeframe is met, specifically, price is above the 10 EMA, the 10 is above the 20, and the 20 is above the 50 for green and vice versa for red. I use this in a multi timeframe approach similar to mentfx's EVC criteria
LiquidityPulse RSI Candle Strength MomentumLiquidity-Pulse RSI Candle Strength Momentum is a multifunctional and original candle-analysis tool designed to highlight the potential internal strength of each candle using a combination of body size and volume.
To view the candle-strength scores clearly: right-click on the chart, go to Settings, and in the Symbol tab untick Body, Borders and Wicks.
Candle Strength Scores
The indicator calculates the average body size and average volume over a user-defined lookback period. Each candle is then compared to these averages, and the indicator combines relative body expansion and relative volume expansion with a square-root calculation to create a (normalised) candle-strength score from 1 to 10.
10 – exceptionally strong compared to the lookback average (large body size and volume)
1 – very weak compared to the lookback average (small body size and volume)
Bullish and bearish candles are evaluated independently, producing separate bull-strength and bear-strength scores.
Optional ATR and volume floors can be enabled to restrict strength scoring to candles that exceed a minimum volatility or participation threshold. This helps users who prefer to filter out low-impact candles during quiet market periods. This option can be enabled or adjusted in the settings but is turned off by default.
Candle Colours
This tool also shows candles coloured based on the candle-strength scores (10 colours in each theme), which makes it easier to visualise the scores and see whether the candle score was high or not. There are several options in the 'colour theme' dropdown menu in the settings. Users can also customise all colours manually.
RSI Candle Strength Arrows
The Relative Strength Index is a long-established momentum tool that calculates the ratio of average upward moves to average downward moves over a defined period, allowing traders to identify potential overbought and oversold market conditions where momentum may be stretched. As well as this, strong early momentum and participation are often associated with more sustained moves.
This indicator combines this methodology and provides optional arrows that appear only when candle strength and RSI conditions align:
– A candle meets or exceeds a chosen strength threshold
– RSI has recently reached an overbought or oversold level
– The candle direction matches the expected momentum shift
For example, if price has reached an oversold RSI level and a strong bullish candle forms (high candle-strength number), an upside arrow may plot.
Users can customise the RSI oversold and overbought thresholds, the minimum candle-strength threshold, and how many bars back the RSI condition must have occurred in the settings.
These arrows are not buy or sell signals but instead highlight rare moments where strong candle behaviour aligns with meaningful RSI extremes. This is useful to users because it allows the candle-strength logic to be applied only when momentum is genuinely stretched, filtering out noise and focusing attention on the most statistically significant market moves.
This indicator brings together a quantitative candle-strength model and a momentum-based RSI filter to give users a clearer view of how individual candles behave relative to their recent environment, while also highlighting when those movements occur during meaningful shifts in market momentum. By combining both forms of analysis, the tool helps traders distinguish ordinary price changes from potentially significant structural behaviour.
How traders can use this indicator
– Stronger candle scores in the trend direction can confirm continuation pressure.
– Powerful opposing candles appearing at RSI extremes may signal potential reversals or exhaustion points.
– If breakouts occur with high candle scores, price may be more likely to follow through.
– Weak candles with low scores help traders avoid false signals or low-quality setups.
– Candle-strength scoring helps users quickly interpret both volume and candle-body behaviour without manual analysis.
Open source, if anyone has any ideas on how to make the script better or have any questions please let me know :)
Disclaimer
This indicator is provided for educational and analytical purposes only and should not be interpreted as financial advice or a recommendation to buy or sell any asset. The candle-strength values displayed by this tool are not literal or definitive measures of market strength; they are derived from a custom mathematical model designed to highlight relative differences in candle behaviour. These values should be viewed as a simplified representation of candle dynamics, not as an objective or universal measure of strength.
Users should be aware that this calculation does not replace the importance of analysing real traded volume, order flow, liquidity conditions, or broader market context. As with any technical tool, results should be considered alongside other forms of analysis, and past performance does not guarantee future outcomes. Use at your own discretion and risk.
Regime [CHE] Regime — Minimal HTF MACD histogram regime marker with a simple rising versus falling state.
Summary
Regime is a lightweight overlay that turns a higher-timeframe-style MACD histogram condition into a simple regime marker on your chart. It queries an imported core module to determine whether the histogram is rising and then paints a consistent marker color based on that boolean state. The output is intentionally minimal: no lines, no panels, no extra smoothing visuals, just a repeated marker that reflects the current regime. This makes it useful as a quick context filter for other signals rather than a standalone system.
Motivation: Why this design?
A common problem in discretionary and systematic workflows is clutter and over-interpretation. Many regime tools draw multiple plots, which can distract from price structure. This script reduces the regime idea to one stable question: is the MACD histogram rising under a given preset and smoothing length. The core logic is delegated to a shared module to keep the indicator thin and consistent across scripts that rely on the same definition.
What’s different vs. standard approaches?
Reference baseline: A standard MACD histogram plotted in a separate pane with manual interpretation.
Architecture differences:
Uses a shared library call for the regime decision, rather than re-implementing MACD logic locally.
Uses a single boolean output to drive marker color, rather than plotting histogram bars.
Uses fixed marker placement at the bottom of the chart for consistent visibility.
Practical effect:
You get a persistent “context layer” on price without dedicating a separate pane or reading histogram amplitude. The chart shows state, not magnitude.
How it works (technical)
1. The script imports `chervolino/CoreMACDHTF/2` and calls `core.is_hist_rising()` on each bar.
2. Inputs provide the source series, a preset string for MACD-style parameters, and a smoothing length used by the library function.
3. The library returns a boolean `rising` that represents whether the histogram is rising according to the library’s internal definition.
4. The script maps that boolean to a color: yellow when rising, blue otherwise.
5. A circle marker is plotted on every bar at the bottom of the chart, colored by the current regime state. Only the most recent five hundred bars are displayed to limit visual load.
Notes:
The exact internal calculation details of `core.is_hist_rising()` are not shown in this code. Any higher timeframe mechanics, security usage, or confirmation behavior are determined by the imported library. (Unknown)
Parameter Guide
Source — Selects the price series used by the library call — Default: close — Tips: Use close for consistency; alternate sources may shift regime changes.
Preset — Chooses parameter preset for the library’s MACD-style configuration — Default: 3,10,16 — Trade-offs: Faster presets tend to flip more often; slower presets tend to react later.
Smoothing Length — Controls smoothing used inside the library regime decision — Default: 21 — Bounds: minimum one — Trade-offs: Higher values typically reduce noise but can delay transitions. (Library behavior: Unknown)
Reading & Interpretation
Yellow markers indicate the library considers the histogram to be rising at that bar.
Blue markers indicate the library considers it not rising, which may include falling or flat conditions depending on the library definition. (Unknown)
Because markers repeat on every bar, focus on transitions from one color to the other as regime changes.
This tool is best read as context: it does not express strength, only direction of change as defined by the library.
Practical Workflows & Combinations
Trend following:
Use yellow as a condition to allow long-side entries and blue as a condition to allow short-side entries, then trigger entries with your primary setup such as structure breaks or pullback patterns. (Optional)
Exits and stops:
Consider tightening management after a color transition against your position direction, but do not treat a single flip as an exit signal without price-based confirmation. (Optional)
Multi-asset and multi-timeframe:
Keep `Source` consistent across assets.
Use the slower preset when instruments are noisy, and the faster preset when you need earlier context shifts. The best transferability depends on the imported library’s behavior. (Unknown)
Behavior, Constraints & Performance
Repaint and confirmation:
This script itself uses no forward-looking indexing and no explicit closed-bar gating. It evaluates on every bar update.
Any repaint or confirmation behavior may come from the imported library. If the library uses higher timeframe data, intrabar updates can change the state until the higher timeframe bar closes. (Unknown)
security and HTF:
Not visible here. The library name suggests HTF behavior, but the implementation is not shown. Treat this as potentially higher-timeframe-driven unless you confirm the library source. (Unknown)
Resources:
No loops, no arrays, no heavy objects. The plotting is one marker series with a five hundred bar display window.
Known limits:
This indicator does not convey histogram magnitude, divergence, or volatility context.
A binary regime can flip in choppy phases depending on preset and smoothing.
Sensible Defaults & Quick Tuning
Starting point:
Source: close
Preset: 3,10,16
Smoothing Length: 21
Tuning recipes:
Too many flips: choose the slower preset and increase smoothing length.
Too sluggish: choose the faster preset and reduce smoothing length.
Regime changes feel misaligned with your entries: keep the preset, switch the source back to close, and tune smoothing length in small steps.
What this indicator is—and isn’t
This is a minimal regime visualization and a context filter. It is not a complete trading system, not a risk model, and not a prediction engine. Use it together with price structure, execution rules, and position management. The regime definition depends on the imported library, so validate it against your market and timeframe before relying on it.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
MACD HTF Hardcoded
Liquidity Structure & Sweeps [Visualized]Liquidity Structure & Sweeps | 流动性结构与猎杀
1. Design Philosophy & Logic
This indicator is designed based on Smart Money Concepts (SMC) and Market Microstructure principles. Unlike traditional indicators that rely on lagging averages or repainting fractals, this script focuses on "Objective Structure" and "Liquidity Grabs".
The core design philosophy rests on three pillars:
Zero Repainting (Real-time Integrity): We utilize a strict "Left-Side Confirmation" algorithm. A structure level is only stored in memory when the candle is fully closed (barstate.isconfirmed). This ensures that the historical signals you see are exactly what happened in real-time.
Institutional Memory (Visualized): Markets "remember" key levels. This script draws dashed lines extending from valid pivot points. These lines represent "resting liquidity" (Stop Orders). They remain on the chart until the price interacts with them.
Sweep vs. Breakout: Not all breaches are equal. We specifically look for "Sweeps" (Liquidity Grabs) — where price pierces a level but closes back inside. This is a classic sign of absorption and potential reversal, distinct from a structural breakout.
2. Key Features
Visualized Order Blocks: Automatically draws potential support (Green Dotted) and resistance (Red Dotted) lines based on fractal points.
Wick Detection: Filters out strong momentum breakouts. Signals are only generated when a specific "Wick Ratio" is met, indicating a rejection.
Clean Charts: Features a "Garbage Collection" mechanism. Once a level is swept, the line is removed, and a signal dot is placed. Old, untouched levels are automatically cycled out to prevent chart clutter.
3. How to Use
The Lines (Context):
Red Dotted Line: Buy-side Liquidity (Resistance). Expect potential shorts or breakouts here.
Green Dotted Line: Sell-side Liquidity (Support). Expect potential longs or breakdowns here.
The Signals (Action):
Red Dot (Bearish Sweep): Price spiked above a Resistance Line but closed below it. This suggests long stops were hunted, and bears are stepping in.
Green Dot (Bullish Sweep): Price spiked below a Support Line but closed above it. This suggests short stops were hunted, and bulls are stepping in.
Configuration:
Structure Length: Adjusts sensitivity. Higher values (e.g., 20-50) find major swing points; lower values (e.g., 5-10) find scalping setups.
Wick Filter %: The minimum size of the wick relative to the breakout. Increase this to filter for only the most dramatic rejections.
4. Developer Notes & Considerations
Why do lines disappear? In this logic, liquidity is treated as "Fuel". Once a level is swept (the stop orders are triggered), the fuel is consumed. Keeping the line would clutter the chart with invalid data.
Why is the dot small? The indicator is designed to be part of a toolchain, not a standalone signal. The minimalist design prevents visual interference with price action or other indicators.
1. 设计思路与核心逻辑
本指标基于 聪明钱概念 (SMC) 与 市场微观结构 原理设计。不同于依赖滞后均线或存在重绘问题的传统分形指标,本脚本专注于捕捉 “客观结构” 与 “流动性猎杀 (Liquidity Grabs)”。
核心设计哲学包含三大支柱:
零重绘 (Zero Repainting): 我们采用了严格的“左侧确认”算法。所有的结构位仅在K线完全收盘 (barstate.isconfirmed) 后才会被记录。这保证了您回测看到的信号与实盘完全一致,杜绝“未来函数”陷阱。
可视化的机构记忆: 市场是有记忆的。本脚本会从有效的波段高低点引出虚线。这些虚线代表了“沉睡的流动性”(止损盘聚集区)。它们会一直延伸,直到价格触碰它们。
区分“猎杀”与“突破”: 并不是所有的破位都是一样的。我们专注于识别“扫损(Sweep)”——即价格刺破了关键位,但收盘价收回了关键位内部。这是典型的吸筹或派发信号,与趋势延续的真突破有本质区别。
2. 主要功能
结构可视化: 自动基于分形点绘制潜在的支撑线(绿色虚线)和阻力线(红色虚线)。
插针检测: 过滤掉强势的实体突破。只有当价格出现明显的“长影线”拒绝行为时,才会触发信号。
图表自清洁: 内置“垃圾回收”机制。一旦某个关键位的流动性被猎杀(触发信号),该线条会被自动删除。过旧且未被触碰的线条也会被自动替换,保持图表整洁。
3. 使用指南
线条 (市场语境):
红色虚线: 买方流动性池(阻力位)。
绿色虚线: 卖方流动性池(支撑位)。
信号点 (交易动作):
红色圆点 (看跌猎杀): 价格刺破了红色阻力线,但收盘价回落到线下方。这暗示多头止损被触发,主力可能正在建立空单。
绿色圆点 (看涨猎杀): 价格刺破了绿色支撑线,但收盘价反弹到线上方。这暗示空头止损被触发,主力可能正在建立多单。
参数设置建议:
Structure Length (结构周期): 调整灵敏度。数值越大(如 20-50)锁定大级别波段;数值越小(如 5-10)适合短线剥头皮。
Wick Filter % (影线过滤): 设置影线占价格波动的最小比例。调大该数值可以只看最剧烈的反转信号。
4. 开发者注记与潜在考量
为什么线条会消失? 在本逻辑中,流动性被视为“燃料”。一旦发生猎杀(止损单成交),该位置的燃料即被消耗。移除线条是为了防止无效数据干扰判断。
为什么圆点设计得很小? 该指标旨在成为您交易工具链的一部分,而非唯一的决策依据。极简设计是为了避免干扰裸K形态或其他指标的观察。
===============================================================
这个脚本(我们称之为 Liq Structure Script)本质上是一个基于价格行为(Price Action)的结构猎杀探测器。
以下是详细的深度对比分析:
1. 如何使用? (实战操作手册)
不要把它当作“红灯停绿灯行”的傻瓜指标。把它当作一个**“战场地图”**。
第一阶段:观察结构 (The Setup)
图表上会自动画出 红色虚线(上方压力)和 绿色虚线(下方支撑)。
解读:告诉自己,“这里埋着很多人的止损单”。不要在这里盲目追涨杀跌。
第二阶段:等待猎杀 (The Trigger)
耐心等待价格冲向这些虚线。
关键动作:价格刺破虚线,然后迅速收回。
信号确认:虚线消失,留下一个 红点(顶部猎杀)或 绿点(底部猎杀)。
第三阶段:进场逻辑 (The Execution)
做空逻辑:出现红点 + K线留长上影线 → 说明多头试图突破失败,被主力“倒了一盆冷水”。此时可尝试做空,止损设在刚刚那个最高点上方一点点。
做多逻辑:出现绿点 + K线留长下影线 → 说明空头试图砸盘失败,被主力接住了。
传统爆量是“燃料”,Liq 脚本是“引爆点”。没有引爆点的爆量可能是空转;没有爆量的引爆点可能是假摔。Liq 脚本是一个免费、轻量级、基于K线逻辑的替代品。它不需要你买昂贵的数据服务,它利用的是“图表形态学”中的流动性共识。
结论:如何定位这个工具?
这个脚本不是“预测未来的水晶球”,而是一个**“高胜率区域提示器”**。
用它来找位置(哪里有陷阱?)。
用成交量来做确认(是不是真的有主力介入?)。
用宏观逻辑来定方向(现在该做多还是做空?)。
它是你交易工具链中负责**“微观入场时机(Timing)”**的那一环。
Bull Flag & Flat Top Breakout DetectorBull Flag & Flat Top Detector - Quick Reference Guide
Pattern Overview
🚩 Bull Flag
╱╲
╱ ╲ ← Pullback (2-5 red candles)
╱ ╲
╱ ╲____
╱ ╲
│ │
│ THE POLE │ ← Strong upward move (3+ green candles)
│ │
└──────────────┘
What to look for:
Strong initial move (the "pole") - 3+ green candles, 3%+ move
Brief pullback - 2-5 candles, less than 50% retracement
Pullback should "drift" lower, not crash
Entry on first candle to make new high after pullback
📊 Flat Top Breakout
════════════════ ← Resistance (multiple touches)
↑ ↑ ↑
╱╲ ╱╲ ╱╲
╱ ╲╱ ╲╱ ╲ ← Consolidation
╱ ╲
╱ ╲
What to look for:
Multiple touches of same resistance level (2+)
Tight consolidation range
Each failed breakout builds pressure
Entry on convincing break above resistance with volume
Signal Types
SignalShapeColorMeaningBull Flag Breakout▲ TriangleLimeEntry signal - go longFlat Top Breakout◆ DiamondAquaEntry signal - go longBear Flag Breakout▼ TriangleRedShort entry (if enabled)Pattern Forming🚩 FlagFaded GreenBull flag developingPattern Forming■ SquareFaded BlueFlat top developing
Level Lines Explained
LineColorStyleMeaningEntryLimeSolidBreakout trigger priceStop LossRedDashedExit if price falls hereTarget 1AquaDottedFirst profit target (2R)Target 2YellowDottedSecond profit target (3R)
Info Table Reference
FieldWhat It ShowsBull FlagScanning / Forming 🚩 / Breakout ✓Flat TopScanning / Forming 📊 / Breakout ✓PullbackCandle count + retracement %Rel VolumeCurrent bar vs averageEMA 20Above ✓ or Below ✗VWAPAbove ✓ or Below ✗Green StreakConsecutive green candles (pole)ResistanceTouch count for flat top
Trading Checklist
Before Entry ✅
Pattern status shows "FORMING" or "BREAKOUT"
Price above EMA (table shows ✓)
Price above VWAP (table shows ✓)
Relative volume 1.5x+ (ideally 2x+)
Stock is in play (up 5%+ on day, has catalyst)
Market direction supportive (not fighting trend)
Entry Execution
Wait for breakout candle to form
Confirm volume spike on breakout
Enter as close to entry line as possible
Set stop loss at red dashed line
Know your target levels
Trade Management
If no immediate follow-through → consider exit ("breakout or bailout")
Take 50% off at Target 1
Move stop to breakeven
Let remainder run toward Target 2
Exit fully if price returns below entry
Bull Flag Quality Checklist
Pole Quality:
FactorIdealAcceptableAvoidGreen candles5+3-4Less than 3Move size10%+3-10%Less than 3%VolumeIncreasingSteadyDecliningCandle bodiesLargeMediumSmall/doji
Pullback Quality:
FactorIdealAcceptableAvoidCandle count2-34-56+RetracementUnder 38%38-50%Over 50%VolumeDecliningSteadyIncreasingCharacterOrderly driftChoppySharp drop
Flat Top Quality Checklist
FactorGood SetupWeak SetupTouches3+ at same levelOnly 2, widely spacedToleranceVery tight (0.2%)Loose (1%+)Duration5-15 barsToo short or too longVolumeDrying upErraticPrior trendUpSideways/down
Common Mistakes to Avoid
❌ Entering too early
Wait for actual breakout, not anticipation
"Forming" ≠ "Breakout"
❌ Ignoring volume
No volume = likely false breakout
Require 1.5x+ relative volume minimum
❌ Fighting the trend
Check EMA and VWAP status
Both should be ✓ for high probability
❌ Wide stops
Stop should be below pullback low
If stop is too wide, skip the trade
❌ Holding losers
"Breakout or bailout" - if it doesn't work, exit
Failed breakouts often reverse hard
❌ Chasing extended moves
If you missed entry, wait for next pattern
Don't chase 5+ candles after breakout
Risk Management Rules
Position Sizing
Risk Amount = Account × Risk % (typically 1-2%)
Position Size = Risk Amount ÷ (Entry - Stop)
Example:
Account: $25,000
Risk: 1% = $250
Entry: $5.00
Stop: $4.70
Risk per share: $0.30
Position Size: $250 ÷ $0.30 = 833 shares
Risk-Reward Targets
TargetR MultipleExample (risk $0.30)Target 12:1+$0.60 ($5.60)Target 23:1+$0.90 ($5.90)
Timeframe Guide
TimeframeProsConsBest For1-minMore patterns, precise entryNoisy, false signalsScalping5-minGood balance, cleaner patternsFewer signalsDay trading15-minHigh quality patternsMiss fast movesSwing entries
Settings Quick Reference
Default Settings (Balanced)
Pole: 3 candles, 3% move
Pullback: 2-5 candles, 50% max retrace
Volume: 1.5x required
Filters: EMA + VWAP ON
Aggressive Settings
Pole: 2 candles, 2% move
Pullback: 2-6 candles, 60% max retrace
Volume: 1.2x required
Filters: VWAP OFF
Conservative Settings
Pole: 4 candles, 5% move
Pullback: 2-4 candles, 40% max retrace
Volume: 2.0x required
Filters: Both ON
Alert Setup
Recommended Alerts
"Bull Flag Forming"
Get early warning as pattern develops
Prepare your position size and levels
"Bull Flag Breakout"
Primary entry alert
React quickly when triggered
"Any Bullish Breakout"
Catch both bull flags and flat tops
Good for watchlist scanning
Alert Setup Steps
Right-click chart → Add Alert
Condition: Select "Bull Flag & Flat Top Breakout Detector"
Choose alert type from dropdown
Set expiration and notification method
Troubleshooting
Q: Patterns not detecting?
Lower the Min Pole Move % setting
Reduce Min Pole Candles requirement
Check that price is in acceptable range
Q: Too many false signals?
Increase volume multiplier to 2.0x
Enable both EMA and VWAP filters
Increase Min Pole Move %
Q: Levels not showing?
Enable "Show Entry Line", "Show Stop Loss", "Show Targets"
Check "Max Patterns to Display" setting
Q: Info table not visible?
Enable "Show Info Table" in settings
Try different table position
Pattern Combinations
Best Setups (A+ Quality)
Bull flag on a gap day (Gap & Go → Bull Flag)
Flat top at pre-market high resistance
Pattern forming above VWAP with 5x+ volume
Avoid These
Bull flag below VWAP
Flat top in downtrending stock
Low volume patterns
Patterns late in the day (after 2pm)
Daily Routine
Pre-Market (7-9am)
Build watchlist of gappers (5%+, high volume)
Apply indicator to top 3-5 candidates
Note pre-market levels
Market Open (9:30-10:30am)
Watch for "FORMING" status on watchlist
Prepare entries as patterns develop
Execute on breakout signals
Manage trades according to plan
Midday (10:30am-2pm)
Look for second-wave patterns
Be more selective (less momentum)
Consider tighter stops
Close (2-4pm)
Generally avoid new patterns
Manage existing positions
Review day's trades
Liquidity LayoutLiquidity Layout
The Liquidity Layout is a comprehensive macroeconomic indicator that tracks global liquidity conditions by aggregating multiple financial data streams from major economies (US, EU, China, Japan, UK, Canada, Switzerland). It provides traders with a macro view of market liquidity to help identify favorable conditions for risk assets
⚠️ Important: Timeframe Settings
This indicator is designed for the 1W (weekly) timeframe. If you use other timeframes, you must adjust the offset parameter in the settings to properly align the data with price action. The default offset of 12 is calibrated for weekly charts.
What It Measures
This indicator combines seven key components of global liquidity:
1. Global M2 Money Supply - Tracks broad money supply (M2) plus 10% of narrow money supply (M1) across major economies, weighted by currency strength. This represents the total amount of money circulating in the private sector.
2. Central Bank Balance Sheets (CBBS) - Monitors the combined balance sheets of major central banks (Fed, ECB, BoJ, PBoC, etc.), reflecting quantitative easing and monetary expansion policies.
3. Foreign Exchange Reserves (FER) - Aggregates forex reserves held by central banks, indicating international liquidity buffers and capital flows.
4. Current Account + Capital Flows (CA) - Combines current account balances with capital flows to measure cross-border money movement and trade liquidity.
5. Government Spending (GSP) - Tracks government expenditure minus a portion of federal expenses, representing fiscal stimulus and public sector liquidity injection.
6. World Currency Unit (WCU) - A custom forex composite that weights major and emerging market currencies to capture global currency strength dynamics.
7. Bond Market Conditions - Analyzes yield curves, spreads, and bond indices to assess credit conditions and risk appetite in fixed income markets.
The Formula
The indicator uses two main calculation modes:
ADJ Global Liquidity (Default):
×
This multiplies liquidity components by currency and bond market factors to capture the interactive effects between monetary conditions and market sentiment.
TPI (Trend Power Index) Mode:
A normalized version that combines all components with optimized weights:
Global Liquidity Index: 10%
Bonds: 17.5%
Bond Yields: 25%
Currency Strength: 25%
Government Spending: 5%
Current Account: 5%
M2: 2.5%
Central Bank Balance Sheets: 2.5%
Forex Reserves: 5%
Oil (macro risk indicator): 2.5%
How to Use It
Visualization Modes:
Background Mode (default): Orange background appears when TPI is positive (favorable liquidity conditions)
Line Mode: Displays the indicator as an orange line with customizable offset
Interpreting the Signal:
Positive/Rising = Expanding liquidity, generally bullish for risk assets
Negative/Falling = Contracting liquidity, risk-off environment
TPI > 1 = Extremely favorable conditions (upper threshold)
TPI < -1 = Severe liquidity stress (lower threshold)
Best Practices:
Use on higher timeframes (daily, weekly) for macro trend analysis
Combine with price action - liquidity often leads market moves by weeks or months
Watch for divergences between liquidity and asset prices
Particularly relevant for Bitcoin, equities, and risk assets
Data Sources
The indicator pulls real-time economic data from TradingView's ECONOMICS database and major market indices, including central bank statistics, government reports, and forex rates across G7 and major emerging markets.
Settings
Data Plot: Choose which liquidity component to display
Plot Type: Switch between raw Index values or normalized TPI
Offset: Shift the plot forward/backward for alignment (default: 12 for weekly charts)
Style: Background shading or line plot
Notes
This is a macro-level indicator best suited for understanding the broader liquidity environment rather than short-term trading signals. It helps answer the question: "Is the global financial system expanding or contracting liquidity?"
Moving VWAP-KAMA CloudMoving VWAP-KAMA Cloud
Overview
The Moving VWAP-KAMA Cloud is a high-conviction trend filter designed to solve a major problem with standard indicators: Noise. By combining a smoothed Volume Weighted Average Price (MVWAP) with Kaufman’s Adaptive Moving Average (KAMA), this indicator creates a "Value Zone" that identifies the true structural trend while ignoring choppy price action.
Unlike brittle lines that break constantly, this cloud is "slow" by design—making it exceptionally powerful for spotting genuine trend reversals and filtering out fakeouts.
How It Works
This script uses a unique "Double Smoothing" architecture:
The Anchor (MVWAP): We take the standard VWAP and smooth it with a 30-period EMA. This represents the "Fair Value" baseline where volume has supported price over time.
The Filter (KAMA): We apply Kaufman's Adaptive Moving Average to the already smoothed MVWAP. KAMA is unique because it flattens out during low-volatility (choppy) periods and speeds up during high-momentum trends.
The Cloud:
Green/Teal Cloud: Bullish Structure (MVWAP > KAMA)
Purple Cloud: Bearish Structure (MVWAP < KAMA)
🔥 The "Reversal Slingshot" Strategy
Backtests reveal a powerful behavior during major trend changes, particularly after long bear markets:
The Resistance Phase: During a long-term downtrend, price will repeatedly rally into the Purple Cloud and get rejected. The flattened KAMA line acts as a "concrete ceiling," keeping the bearish trend intact.
The Breakout & Flip: When price finally breaks above the cloud with conviction, and the cloud flips Green, it signals a structural regime change.
The "Slingshot" Retest: Often, immediately after this flip, price will drop back into the top of the cloud. This is the "Slingshot" moment. The old resistance becomes new, hardened support.
The Rally: From this support bounce, stocks often launch into a sustained, multi-month bull run. This setup has been observed repeatedly at the bottom of major corrections.
How to Use This Indicator
1. Dynamic Support & Resistance
The KAMA Wall: When price retraces into the cloud, the KAMA line often flattens out, acting as a hard "floor" or "wall." A break of this wall usually signals a genuine trend change, not just a stop hunt.
2. Trend Confirmation (Regime Filter)
Bullish Regime: If price is holding above the cloud, only look for Long setups.
Bearish Regime: If price is holding below the cloud, only look for Short setups.
No-Trade Zone: If price is stuck inside the cloud, the market is traversing fair value. Stand aside until a clear winner emerges.
3. Multi-Timeframe Versatility
While designed for trend confirmation on higher timeframes (4H, Daily), this indicator adapts beautifully to lower timeframes (5m, 15m) for intraday scalping.
On Lower Timeframes: The cloud reacts much faster, acting as a dynamic "VWAP Band" that helps intraday traders stay on the right side of momentum during the session.
Settings
Moving VWAP Period (30): The lookback period for the base VWAP smoothing.
KAMA Settings (10, 10, 30): Controls the sensitivity of the adaptive filter.
Cloud Transparency: Adjust to keep your chart clean.
Alerts Included
Price Cross Over/Under MVWAP
Price Cross Over/Under KAMA
Cloud Flip (Bullish/Bearish Trend Change)
Tip for Traders
This is not a signal entry indicator. It is a Trend Conviction tool. Use it to filter your entries from faster indicators (like RSI or MACD). If your fast indicator signals "Buy" but the cloud is Purple, the probability is low. Wait for the Cloud Flip
Smart RSI MTF [DotGain]Summary
Are you tired of constantly switching between timeframes to check the RSI, only to miss the bigger picture?
The Smart RSI MTF (Multi-Timeframe) is designed to solve this exact problem. It is a streamlined chart overlay that monitors RSI conditions across up to 10 different timeframes simultaneously —from the 1-minute chart all the way up to the Monthly view.
This indicator removes the need for multiple open tabs and declutters your analysis by plotting signals directly on your main chart using a smart "visual hierarchy" system based on transparency.
⚙️ Core Components and Logic
The Smart RSI MTF relies on a sophisticated 3-layer logic to deliver clear, actionable context:
Multi-Timeframe Engine: The script runs 10 independent RSI calculations in the background. It checks standard intervals (5m, 15m, 1h, 4h, Daily, Weekly, Monthly) to ensure you never miss a momentum extreme on any scale.
Classic RSI Thresholds:
Overbought (> 70): Indicates price may be extended to the upside.
Oversold (< 30): Indicates price may be extended to the downside.
Smart Visibility System (The "Secret Sauce"): Not all signals are equal. A 5-minute Overbought signal is "noise" compared to a Weekly Overbought signal. This indicator automatically applies Transparency to differentiate importance:
Minutes = High Transparency (Faint).
Hours = Medium Transparency.
Days/Weeks/Months = No Transparency (Solid/Bold).
🚦 How to Read the Indicator
The indicator plots shapes (Labels by default) directly above or below the candles. The appearance tells you the direction and the timeframe significance:
🟥 RED SIGNALS (Overbought Condition)
Trigger: RSI is above 70 on a specific timeframe.
Location: Placed above the candle bar.
Meaning: Potential bearish reversal or pullback.
🟩 GREEN SIGNALS (Oversold Condition)
Trigger: RSI is below 30 on a specific timeframe.
Location: Placed below the candle bar.
Meaning: Potential bullish reversal or bounce.
👻 TRANSPARENCY (Signal Strength)
Faint/Ghostly: The signal comes from a lower timeframe (e.g., 5m, 15m). Use for scalping or entry timing.
Solid/Bright: The signal comes from a major timeframe (e.g., Daily, Weekly). Use for swing trading and identifying major market turns.
Visual Elements
Symbol Shapes: Fully customizable (Label, Diamond, Circle, Triangle, etc.) via settings.
Stacking: If multiple timeframes trigger at once, symbols will overlay, creating a visually denser and darker color, indicating Confluence .
Key Benefit
The goal of the Smart RSI MTF is to help traders instantly spot Confluence . When you see a faint short-term signal align with a solid long-term signal, you have identified a high-probability reversal zone without leaving your chart.
Have fun :)
Disclaimer
This "Smart RSI MTF" indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
The signals generated by this tool (both "Buy" and "Sell" indications) are the result of a specific set of algorithmic conditions. They are not a direct recommendation to buy or sell any asset. All trading and investing in financial markets involves substantial risk of loss. You can lose all of your invested capital.
Past performance is not indicative of future results. The signals generated may produce false or losing trades. The creator (© DotGain) assumes no liability for any financial losses or damages you may incur as a result of using this indicator.
You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR) and consider your personal risk tolerance before making any trades.
Ultimate Multi-Asset Correlation System by able eiei Ultimate Multi-Asset Correlation System - User Guide
Overview
This advanced TradingView indicator combines WaveTrend oscillator analysis with comprehensive multi-asset correlation tracking. It helps traders understand market relationships, identify regime changes, and spot high-probability trading opportunities across different asset classes.
Key Features
1. WaveTrend Oscillator
Main Signal Lines: WT1 (blue) and WT2 (red) plot momentum and its moving average
Overbought/Oversold Zones: Default levels at +60/-60
Cross Signals:
🟢 Bullish: WT1 crosses above WT2 in oversold territory
🔴 Bearish: WT1 crosses below WT2 in overbought territory
Higher Timeframe (HTF) Analysis: Shows WT1 from 4H, Daily, and Weekly timeframes for trend confirmation
2. Multi-Asset Correlation Tracking
Monitors relationships between:
Major Assets: Gold (XAUUSD), Dollar Index (DXY), US 10-Year Yield, S&P 500
Crypto Assets: Bitcoin, Ethereum, Solana, BNB
Cross-Asset Analysis: Correlation between traditional markets and crypto
3. Market Regime Detection
Automatically identifies market conditions:
Risk-On: High correlation + positive sentiment (🟢 Green background)
Risk-Off: High correlation + negative sentiment (🔴 Red background)
Crypto-Risk-On: Strong crypto correlations (🟠 Orange background)
Low-Correlation: Divergent market behavior (⚪ Gray background)
Neutral: Mixed signals (🟡 Yellow background)
How to Use
Basic Setup
Add to Chart: Apply the indicator to any chart (works on all timeframes)
Choose Display Mode (Display Options):
All: Shows everything (recommended for comprehensive analysis)
WaveTrend Only: Focus on momentum signals
Correlation Only: View market relationships
Heatmap Only: Simplified correlation view
Enable Asset Groups:
✅ Major Assets: Traditional markets (stocks, bonds, commodities)
✅ Crypto Assets: Digital currencies
Mix and match based on your trading focus
Reading the Charts
WaveTrend Section (Bottom Panel)
Above 0 = Bullish momentum
Below 0 = Bearish momentum
Above +60 = Overbought (potential reversal)
Below -60 = Oversold (potential bounce)
Lighter lines = Higher timeframe trends
Correlation Histogram (Colored Bars)
Blue bars: Major asset correlations
Orange bars: Crypto correlations
Purple bars: Cross-asset correlations
Bar height: Correlation strength (-50 to +50 scale)
Background Color
Intensity reflects correlation strength
Color shows market regime
Dashboard Elements
🎯 Market Regime Analysis (Top Left)
Current Regime: Overall market condition
Average Correlation: Strength of relationships (0-1 scale)
Risk Sentiment: -100% (risk-off) to +100% (risk-on)
HTF Alignment: Multi-timeframe trend agreement
Signal Quality: Confidence level for current signals
📊 Correlation Matrix (Top Right)
Shows correlation values between asset pairs:
1.00: Perfect positive correlation
0.75+: Strong correlation (🟢 Green)
0.50+: Medium correlation (🟡 Yellow)
0.25+: Weak correlation (🟠 Orange)
Below 0.25: Negative/no correlation (🔴 Red)
🔥 Correlation Heatmap (Bottom Right)
Visual matrix showing:
Gold vs. DXY, BTC, ETH
DXY vs. BTC, ETH
BTC vs. ETH
Color-coded strength
📈 Performance Tracker (Bottom Left)
Tracks individual asset momentum:
WT1 Values: Current momentum reading
Status: OB (overbought) / OS (oversold) / Normal
Trading Strategies
1. High-Probability Trend Following
✅ Entry Conditions:
WaveTrend bullish/bearish cross
HTF Alignment matches signal direction
Signal Quality > 70%
Correlation supports direction
2. Regime Change Trading
🎯 Watch for regime shifts:
Risk-Off → Risk-On = Consider long positions
High correlation → Low correlation = Reduce position size
Crypto-Risk-On = Focus on crypto longs
3. Divergence Trading
🔍 Look for:
Strong correlation breakdown = Potential volatility
Cross-asset correlation surge = Follow the leader
Volume-price correlation extremes = Trend confirmation
4. Overbought/Oversold Reversals
⚡ Trade reversals when:
WT crosses in extreme zones (-60/+60)
HTF alignment shows opposite trend weakening
Correlation confirms mean reversion setup
Customization Tips
Fine-Tuning Parameters
WaveTrend Core:
Channel Length (10): Lower = more sensitive, Higher = smoother
Average Length (21): Adjust for your timeframe
Correlation Settings:
Length (50): Longer = more stable, Shorter = more responsive
Smoothing (5): Reduce noise in correlation readings
Market Regime:
Risk-On Threshold (0.6): Lower = earlier regime signals
High Correlation Threshold (0.75): Adjust sensitivity
Custom Asset Selection
Replace default symbols with your preferred markets:
Major Assets: Any forex, indices, bonds
Crypto: Any digital currencies
Must use correct exchange prefix (e.g., BINANCE:BTCUSDT)
Alert System
Enable "Advanced Alerts" to receive notifications for:
✅ Market regime changes
✅ Correlation breakdowns/surges
✅ Strong signals with high correlation
✅ Extreme volume-price correlation
✅ Complete HTF alignment
Correlation Interpretation Guide
ValueMeaningTrading Implication+0.75 to +1.0Strong positiveAssets move together+0.5 to +0.75Moderate positiveGenerally aligned+0.25 to +0.5Weak positiveLoose relationship-0.25 to +0.25No correlationIndependent movements-0.5 to -0.25Weak negativeSlight inverse relationship-0.75 to -0.5Moderate negativeTend to move opposite-1.0 to -0.75Strong negativeStrongly inversely correlated
Best Practices
Use Multiple Timeframes: Check HTF alignment before trading
Confirm with Correlation: Strong signals work best with supportive correlations
Watch Regime Changes: Adjust strategy based on market conditions
Volume Matters: Enable volume-price correlation for confirmation
Quality Over Quantity: Trade only high-quality setups (>70% signal quality)
Common Patterns to Watch
🔵 Risk-On Environment:
Gold-BTC positive correlation
DXY negative correlation with risk assets
High crypto correlations
🔴 Risk-Off Environment:
Flight to safety (Gold up, stocks down)
DXY strength
Correlation breakdowns
🟡 Transition Periods:
Low correlation across assets
Mixed HTF signals
Use caution, reduce position sizes
Technical Notes
Calculation Period: Uses HLC3 (average of high, low, close)
Correlation Window: Rolling correlation over specified length
HTF Data: Accurately calculated using security() function
Performance: Optimized for real-time calculation on all timeframes
Support
For optimal performance:
Use on 15-minute to daily timeframes
Enable only needed asset groups
Adjust correlation length based on trading style
Combine with your existing strategy for confirmation
Enjoy comprehensive multi-asset analysis! 🚀
Average Directional Index infoAverage Directional Index (ADX) is a technical indicator created by J. Welles Wilder that measures trend strength (not direction!). Values range from 0 to 100.
This indicator is a supplementary tool for assessing whether trend strategies are worthwhile, monitoring changes in trend strength and avoiding weak, choppy movements
Value Interpretation:
0-25: Weak trend or sideways market
25-50: Moderate to strong trend
50-75: Very strong trend
75-100: Extremely strong trend (rare)
Important: ADX does not indicate trend direction (up/down), only its strength!
This script indicator includes additional features:
1. ADX Plot (purple line)
Basic ADX value showing current trend strength.
2. ADX Trend Analysis (arrows)
The script compares current ADX with its 10-period moving average with ±5% tolerance:
↑ (green): ADX rising → trend strengthening
↓ (red): ADX falling → trend weakening
⮆ (gray): ADX stable → trend strength unchanged
3. Information Table
Displays current ADX value with trend arrow in the top-right corner.
Parameters to Configure
Smoothing (default: 14) - Indicator smoothing period
Lower values (e.g., 7): more sensitive, more signals
Higher values (e.g., 21): more stable, less noise
Indicator Length (default: 14) - Period for calculating directional movement (+DI/-DI)
Wilder's standard value is 14
Trend Length (default: 10) - Period for moving average to analyze ADX dynamics
Determines how quickly changes in trend strength are detected
Practical Application
✅ Strategy 1: Trend Strength Filter
1. ADX > 25 → look for positions aligned with the trend
2. ADX < 25 → avoid trend strategies, consider oscillators
✅ Strategy 2: Entries on Strengthening Trend
1. ADX crosses above 25 + arrow ↑ → trend gaining momentum
2. Combine with other indicators (e.g., EMA) for direction confirmation
✅ Strategy 3: Exhaustion Warning
1. ADX > 50 + arrow ↓ → strong trend may be exhausting
2. Consider profit protection or trailing stop






















