Support Bands indicatorSupport Band to follow Trends.
We can see clear where price is Trading. Observe how moving averages are developing or aligning to change trend or continuation.
Green up trend  vs Red Down Trend
Band 1
8EMA Green Line vs 10SMA  Light blue Line 
Band 2
21EMA Orange Line vs 30 SMA Brown Line
Also includes 
1 SMA Gray line for closing when you're looking at weakly charts. 
40 SMA darker Gray
50 SMA Blue
100 SMA White
150 SMA Pink
200 SMA Yellow
300 SMA Dark Red
I hope it helps you to see when price is trending up and a set correctly your stop.
Cari skrip untuk "西班牙人VS奥萨苏纳"
CVD - Cumulative Volume Delta Candles█   OVERVIEW 
This indicator displays cumulative volume delta in candle form. It uses intrabar information to obtain more precise volume delta information than methods using only the chart's timeframe.
█   CONCEPTS 
 Bar polarity 
By  bar polarity , we mean the direction of a bar, which is determined by looking at the bar's  close  vs its  open .
 Intrabars 
 Intrabars  are chart bars at a lower timeframe than the chart's. Each 1H chart bar of a 24x7 market will, for example, usually contain 60 bars at the lower timeframe of 1min, provided there was market activity during each minute of the hour. Mining information from intrabars can be useful in that it offers traders visibility on the activity inside a chart bar.
 Lower timeframes (LTFs) 
A  lower timeframe  is a timeframe that is smaller than the chart's timeframe. This script uses a LTF to access intrabars. The lower the LTF, the more intrabars are analyzed, but the less chart bars can display CVD information because there is a limit to the total number of intrabars that can be analyzed.
 Volume delta 
The volume delta concept divides a bar's volume in "up" and "down" volumes. The delta is calculated by subtracting down volume from up volume. Many calculation techniques exist to isolate up and down volume within a bar. The simplest techniques use the polarity of interbar price changes to assign their volume to up or down slots, e.g.,  On Balance Volume  or the  Klinger Oscillator . Others such as  Chaikin Money Flow  use assumptions based on a bar's OHLC values. The most precise calculation method uses tick data and assigns the volume of each tick to the up or down slot depending on whether the transaction occurs at the bid or ask price. While this technique is ideal, it requires huge amounts of data on historical bars, which usually limits the historical depth of charts and the number of symbols for which tick data is available.
This indicator uses  intrabar analysis  to achieve a compromise between the simplest and most precise methods of calculating volume delta. In the context where historical tick data is not yet available on TradingView, intrabar analysis is the most precise technique to calculate volume delta on historical bars on our charts. Our  Volume Profile indicators  use it. Other volume delta indicators in our Community Scripts such as the  Realtime 5D Profile  use realtime chart updates to achieve more precise volume delta calculations, but that method cannot be used on historical bars, so those indicators only work in real time.
This is the logic we use to assign intrabar volume to up or down slots:
 • If the intrabar's  open  and  close  values are different, their relative position is used.
 • If the intrabar's  open  and  close  values are the same, the difference between the intrabar's  close  and the previous intrabar's  close  is used.
 • As a last resort, when there is no movement during an intrabar and it closes at the same price as the previous intrabar, the last known polarity is used.
Once all intrabars making up a chart bar have been analyzed and the up or down property of each intrabar's volume determined, the up volumes are added and the down volumes subtracted. The resulting value is volume delta for that chart bar.
█   FEATURES 
 CVD Candles 
Cumulative Volume Delta Candles present volume delta information as it evolves during a period of time.
This is how each candle's levels are calculated:
 •  open : Each candle's' open level is the cumulative volume delta for the current period at the start of the bar.
  This value becomes zero on the first candle following a CVD reset.
  The candles after the first one always open where the previous candle closed.
  The candle's high, low and close levels are then calculated by adding or subtracting a volume value to the open.
 •  high : The highest volume delta value found in intrabars. If it is not higher than the volume delta for the bar, then that candle will have no upper wick.
 •  low : The lowest volume delta value found in intrabars.  If it is not lower than the volume delta for the bar, then that candle will have no lower wick.
 •  close : The aggregated volume delta for all intrabars. If volume delta is positive for the chart bar, then the candle's close will be higher than its open, and vice versa.
The candles are plotted in one of two configurable colors, depending on the polarity of volume delta for the bar.
 CVD resets 
The "cumulative" part of the indicator's name stems from the fact that calculations accumulate during a period of time. This allows you to analyze the progression of volume delta across manageable chunks, which is often more useful than looking at volume delta cumulated from the beginning of a chart's history.
You can configure the reset period using the "CVD Resets" input, which offers the following selections:
 •  None : Calculations do not reset.
 •  On a fixed higher timeframe : Calculations reset on the higher timeframe you select in the "Fixed higher timeframe" field.
 •  At a fixed time  that you specify.
 •  At the beginning of the regular session .
 •  On a stepped higher timeframe : Calculations reset on a higher timeframe automatically stepped using the chart's timeframe and following these rules:
 
    Chart TF        HTF
     <  1min        1H
     <  3H          1D
     <= 12H         1W
     <  1W          1M
     >= 1W          1Y
 
The indicator's background shows where resets occur.
 Intrabar precision 
The precision of calculations increases with the number of intrabars analyzed for each chart bar. It is controlled through the script's "Intrabar precision" input, which offers the following selections:
 •  Least precise, covering many chart bars 
 •  Less precise, covering some chart bars  
 •  More precise, covering less chart bars 
 •  Most precise, 1min intrabars 
As there is a limit to the number of intrabars that can be analyzed by a script, a tradeoff occurs between the number of intrabars analyzed per chart bar and the chart bars for which calculations are possible.
 Total volume candles 
You can choose to display candles showing the total intrabar volume for the chart bar. This provides you with more context to evaluate a bar's volume delta by showing it relative to the sum of intrabar volume. Note that because of the reasons explained in the "NOTES" section further down, the total volume is the sum of all intrabar volume rather than the volume of the bar at the chart's timeframe.
Total volume candles can be configured with their own up and down colors. You can also control the opacity of their bodies to make them more or less prominent. This publication's chart shows the indicator with total volume candles. They are turned off by default, so you will need to choose to display them in the script's inputs for them to plot.
 Divergences 
Divergences occur when the polarity of volume delta does not match that of the chart bar. You can identify divergences by coloring the CVD candles differently for them, or by coloring the indicator's background.
 Information box 
An information box in the lower-left corner of the indicator displays the HTF used for resets, the LTF used for intrabars, and the average quantity of intrabars per chart bar. You can hide the box using the script's inputs.
█   INTERPRETATION 
The first thing to look at when analyzing CVD candles is the side of the zero line they are on, as this tells you if CVD is generally bullish or bearish. Next, one should consider the relative position of successive candles, just as you would with a price chart. Are successive candles trending up, down, or stagnating? Keep in mind that whatever trend you identify must be considered in the context of where it appears with regards to the zero line; an uptrend in a negative CVD (below the zero line) may not be as powerful as one taking place in positive CVD values, but it may also predate a movement into positive CVD territory. The same goes with stagnation; a trader in a long position will find stagnation in positive CVD territory less worrisome than stagnation under the zero line.
After consideration of the bigger picture, one can drill down into the details. Exactly what you are looking for in markets will, of course, depend on your trading methodology, but you may find it useful to:
  • Evaluate volume delta for the bar in relation to price movement for that bar.
  • Evaluate the proportion that volume delta represents of total volume.
  • Notice divergences and if the chart's candle shape confirms a hesitation point, as a Doji would.
  • Evaluate if the progress of CVD candles correlates with that of chart bars.
  • Analyze the wicks. As with price candles, long wicks tend to indicate weakness.
Always keep in mind that unless you have chosen not to reset it, your CVD resets for each period, whether it is fixed or automatically stepped. Consequently, any trend from the preceding period must re-establish itself in the next.
█   NOTES 
 Know your volume 
Traders using volume information should understand the volume data they are using: where it originates and what transactions it includes, as this can vary with instruments, sectors, exchanges, timeframes, and between historical and realtime bars. The information used to build a chart's bars and display volume comes from data providers (exchanges, brokers, etc.) who often maintain distinct feeds for intraday and end-of-day (EOD) timeframes. How volume data is assembled for the two feeds depends on how instruments are traded in that sector and/or the volume reporting policy for each feed. Instruments from crypto and forex markets, for example, will often display similar volume on both feeds. Stocks will often display variations because  block trades  or other types of trades may not be included in their intraday volume data. Futures will also typically display variations.
Note that as intraday vs EOD variations exist for historical bars on some instruments, differences may also exist between the realtime feeds used on intraday vs 1D or greater timeframes for those same assets. Realtime reporting rules will often be different from historical feed reporting rules, so variations between realtime feeds will often be different from the variations between historical feeds for the same instrument. The  Volume X-ray  indicator can help you analyze differences between intraday and EOD volumes for the instruments you trade.
 If every unit of volume is both bought by a buyer and sold by a seller, how can volume delta make sense? 
Traders who do not understand the mechanics of matching engines (the exchange software that matches orders from buyers and sellers) sometimes argue that the concept of volume delta is flawed, as every unit of volume is both bought and sold. While they are rigorously correct in stating that every unit of volume is both bought and sold, they overlook the fact that information can be mined by analyzing variations in the price of successive ticks, or in our case, intrabars.
Our calculations model the situation where, in fully automated order handling, market orders are generally matched to limit orders sitting in the order book. Buy market orders are matched to quotes at the ask level and sell market orders are matched to quotes at the bid level. As explained earlier, we use the same logic when comparing intrabar prices. While using intrabar analysis does not produce results as precise as when individual transactions — or ticks — are analyzed, results are much more precise than those of methods using only chart prices.
Not only does the concept underlying volume delta make sense, it provides a window on an oft-overlooked variable which, with price and time, is the only basic information representing market activity. Furthermore, because the calculation of volume delta also uses price and time variations, one could conceivably surmise that it can provide a more complete model than ones using price and time only. Whether or not volume delta can be useful in your trading practice, as usual, is for you to decide, as each trader's methodology is different.
 For Pine Script™ coders 
As our latest  Polarity Divergences  publication, this script uses the recently released  request.security_lower_tf()  Pine Script™ function discussed in  this blog post . It works differently from the usual  request.security()  in that it can only be used at LTFs, and it returns an array containing one value per intrabar. This makes it much easier for programmers to access intrabar information.
 Look first. Then leap.  
Numbers RenkoRenko with Volume and Time in the box was developed by David Weis (Authority on Wyckoff method) and his student.
I like this style (I don't know what it is officially called) because it brings out the potential of Wyckoff method and Renko, and looks beautiful.
I can't find this style Indicator anywhere, so I made something like it, then I named  "Numbers Renko" (数字 練行足 in Japanese).
 
Caution : This indicator only works exactly in Renko Chart.
////////// Numbers Renko General Settings //////////
Volume Divisor : To make good looking Volume Number.  
  ex) You set 100. When Volume is 0.056, 0.05 x 100 = 5.6. 6 is plotted in the box (Decimal are round off). 
Show Only Large Renko Volume : show only Renko Volume which is larger than Average Renko Volume  (it is calculated by user selected moving average, option below).
Show Renko Time : "Only Large Renko Time"  show only Renko Time which is larger than Average Renko Time (it is calculated by user selected moving average, option below).
EMA period for calculation : This is used to calculate Average Renko Time and Average Renko Volume (These are used to decide Numbers colors and Candles colors). Default is EMA, You can choice SMA.
////////// Numbers Renko Coloring //////////
The Numbers in the box are color coded by compared the current Renko Volume with the Average Renko Volume.
If the current Renko Volume is 2 times larger than the ARV, Color2 will be used. If the current Renko Volume is 1.5 times larger than the ARV, Color1.5 will be used. Color1 If the current Renko Volume is larger than the ARV . Color0.5 is larger than half Athe RV and Color0 is  less than or equal to half the ARV. Color1, Color1.5 and Color2 are Large Value, so only these colored Numbers are showed when use "Show Only ~ " option.
Default is Renko Volume based Color coding, You can choice Renko Time based Color coding. Therefore you can use two type coloring at the same time. ex) The Numbers Colors are Renko Volume based. Candle body, border and wick Colors are Renko Time based.
////////// Weis Wave Volume //////////
Show Effort vs Result : Weis Wave Volume divided by Wave Length.
   ex) If 100 Up WWV is accumulated between 30 Up Renko Box, 100 / 30 = 3.33...  will be 3.3 (Second decimal will be rounded off).
No Result Ratio : If current "Effort vs Result" is "No Result Ratio" times larger than Average Effort vs Result, Square Mark will be show. AEvsR is calculated by 5SMA. 
  ex) You set 1.5. If Current EvsR is 20 and AEvsR is 10, 20 > 10 x 1.5 then Square Mark will be show.
  If the left and right arrows are in the same direction, the right arrow is omitted.
Show Comparison Marks : Show left side arrow by compare current value to previous previous value and show right side small arrow by compare current value to previous value. 
ex) Current Up WWV is 17 and Previous Up WWV (previous previous value) is 12, left side arrow is Up. Previous Dn WWV is 20, right side small arrow is Dn. 
Large Volume Ratio : If current WWV is "Large Volume Ratio" times larger than Average WWV, Large WWV color is used.
Sample layout 
  
  
  
DailyDeviationLibrary   "DailyDeviation" 
Helps in determining the relative deviation from the open of the day compared to the high or low values.
 hlcDeltaArrays(daysPrior, maxDeviation, spec, res)  Retuns a set of arrays representing the daily deviation of price for a given number of days.
  Parameters:
     daysPrior : Number of days back to get the close from.
     maxDeviation : Maximum deviation before a value is considered an outlier. A value of 0 will not filter results.
     spec : session.regular (default), session.extended or other time spec.
     res : The resolution (default = '1440').
  Returns:   Where OH = Open vs High, OL = Open vs Low, and OC = Open vs Close
 fromOpen(daysPrior, maxDeviation, comparison, spec, res)  Retuns a value representing the deviation from the open (to the high or low) of the current day given number of days to measure from.
  Parameters:
     daysPrior : Number of days back to get the close from.
     maxDeviation : Maximum deviation before a value is considered an outlier. A value of 0 will not filter results.
     comparison : The value use in comparison to the current open for the day.
     spec : session.regular (default), session.extended or other time spec.
     res : The resolution (default = '1440').
Modified ATR Indicator [KL]Modified Average True Range (ATR) Indicator 
This indicator displays the ATR with  relative highs  and  relative lows  statistically determined.
 What is ATR: 
To know what ATR is, we need to understand what a True Range (TR) is.
- TR at a given bar is the highest distance between points: a) High vs low, b) High vs Close, and c) Low vs Close. 
- ATR is the moving average of TRs over a predefined lookback period; 14 is the most commonly used.
- ATR can be mathematically expressed as:
  
 Why is ATR Important 
ATR often used to measure volatility; high volatility is indicated by high ATR, vice versa for low. This is a versatile tool allowing traders to determine entry/exit points, as well as the size of stop losses and when to take profits relative to it. 
 
This is an opinion: Through observations, I have noticed that ATR can also indirectly tell us the levels of relative volume. This intuitively makes sense because in order to increase length of TR, high amounts of capital inflow/outflow is required (graphically speaking, high volume is required in order to make lengths of candle sticks longer). The relationship between ATR and relative volume should hold unless the market is illiquid to the extreme that there is no relationship between volume and price.
That said, knowing the relative lows/highs of ATR is very useful. It can be interpreted as:
- Relative high = high volatility, usually during sell offs
- Relative low = decreasing volume, could indicate price consolidation 
Instead of arbitrarily determining whether ATR is high/low, this indicator will determine  relative highs  and  relative lows  using a simple statistical model.
 How relative high/low is determined by this model 
This indicator applies two-tailed hypothesis testing to test whether ATR (ie. say lookback of 14) has greatly deviated from a larger sample size (ie. lookback of 50). Assuming ATR is normally distributed and variance is known, then test statistic (z) can be used to determine whether ATR14 is within the critical area under Null Hypothesis: ATR14 == ATR50. If z falls below/above the left/right critical values (ie. 1.645 for a 90% confidence interval), then this is shown by the indicator through using different colors to plot the ATR line.
Volume X-ray [LucF]█  OVERVIEW 
This tool analyzes the relative size of volume reported on intraday vs EOD (end of day) data feeds on historical bars. If you use volume data to make trading decisions, it can help you improve your understanding of its nature and quality, which is especially important if you trade on intraday timeframes.
I often mention, when discussing volume analysis, how it's important for traders to understand the volume data they are using: where it originates, what it includes and does not include. By helping you spot sizeable differences between volume reported on intraday and EOD data feeds for any given instrument, "Volume X-ray" can point you to instruments where you might want to research the causes of the difference.
█  CONCEPTS 
The information used to build a chart's historical bars originates from data providers (exchanges, brokers, etc.) who often maintain distinct historical feeds for intraday and EOD timeframes. How volume data is assembled for intraday and EOD feeds varies with instruments, brokers and exchanges. Variations between the two feeds — or their absence — can be due to how instruments are traded in a particular sector and/or the volume reporting policy for the feeds you are using. Instruments from crypto and forex markets, for example, will often display similar volume on both feeds. Stocks will often display variations because  block trades  or other types of trades may not be included in their intraday volume data. Futures will also typically display variations. It is even possible that volume from different feeds may not be of the same nature, as you can get trade volume (market volume) on one feed and tick volume (transaction counts) on another. You will sometimes be able to find the details of what different feeds contain from the technical information provided by exchanges/brokers on their feeds. This is an example for the  NASDAQ feeds . Once you determine which feeds you are using, you can look for the reporting specs for that feed. This is all research you will need to do on your own; "Volume X-ray" will not help you with that part.
You may elect to forego the deep dive in feed information and simply rely on the figure the indicator will calculate for the instruments you trade. One simple — and unproven — way to interpret "Volume X-ray"  values is to infer that instruments with larger percentages of intraday/EOD volume ratios are more "democratic" because at intraday timeframes, you are seeing a greater proportion of the actual traded volume for the instrument. This could conceivably lead one to conclude that such volume data is more reliable than on an instrument where intraday volume accounts for only 3% of EOD volume, let's say.
Note that as intraday vs EOD variations exist for historical bars on some instruments, there will typically also be differences between the realtime feeds used on intraday vs 1D or greater timeframes for those same assets. Realtime reporting rules will often be different from historical feed reporting rules, so variations between realtime feeds will often be different from the variations between historical feeds for the same instrument. A deep dive in reporting rules will quickly reveal what a jungle they are for some instruments, yet it is the only way to really understand the volume information our charts display.
█  HOW TO USE IT 
The script is very simple and has no inputs. Just add it to 1D charts and it will calculate the proportion of volume reported on the intraday feed over the EOD volume. The plots show the daily values for both volumes: the teal area is the EOD volume, the orange line is the intraday volume. A value representing the average, cumulative intraday/EOD volume percentage for the chart is displayed in the upper-right corner. Its background color changes with the percentage, with brightness levels proportional to the percentage for both the bull color (% >= 50) or the bear color (% < 50). When abnormal conditions are detected, such as missing volume of one kind or the other, a yellow background is used.
Daily and cumulative values are displayed in indicator values and the Data Window.
The indicator loads in a pane, but you can also use it in overlay mode by moving it on the chart with "Move to" in the script's "More" menu, and disabling the plot display from the "Settings/Style" tab.
█  LIMITATIONS 
 • The script will not run on timeframes >1D because it cannot produce useful values on them.
 • The calculation of the cumulative average will vary on different intraday timeframes because of the varying number of days covered by the dataset.
  Variations can also occur because of irregularities in reported volume data. That is the reason I recommend using it on 1D charts.
 • The script only calculates on historical bars because in real time there is no distinction between intraday and EOD feeds.
 • You will see plenty of special cases if you use the indicator on a variety of instruments:
   • Some instruments have no intraday volume, while on others it's the opposite.
   • Missing information will sometimes appear here and there on datasets.
   • Some instruments have higher intraday than EOD volume.
  Please do not ask me the reasons for these anomalies; it's your responsibility to find them. I supply a tool that will spot the anomalies for you — nothing more.
█  FOR PINE CODERS 
 • This script uses a little-known feature of  request.security() , which allows us to specify `"1440"` for the `timeframe` argument. 
  When you do, data from the 1min intrabars of the historical intraday feed is aggregated over one day, as opposed to the usual EOD feed used with `"D"`.
 • I use gaps on my  request.security()  calls. This is useful because at intraday timeframes I can cumulate non- na  values only.
 • I use  fixnan()  on some values. For those who don't know about it yet, it eliminates  na  values from a series, just like not using gaps will do in a  request.security()  call.
 • I like how the new  switch  structure makes for more readable code than equivalent  if  structures.
 • I wrote my script using the revised recommendations in the  Style Guide  from the Pine v5 User Manual.
 • I use the new  runtime.error()  to throw an error when the script user tries to use a timeframe >1D. 
  Why? Because then, my  request.security()  calls would be returning values from the last 1D intrabar of the dilation of the, let's say, 1W chart bar.
  This of course would be of no use whatsoever — and misleading. I encourage all Pine coders fetching HTF data to protect their script users in the same way.
  As tool builders, it is our responsibility to shield unsuspecting users of our scripts from contexts where our calcs produce invalid results.
 • While we're on the subject of accessing intrabar timeframes, I will add this to the intention of coders falling victim to what appears to be 
  a new misconception where the mere fact of using intrabar timeframes with  request.security()  is believed to provide some sort of edge.
  This is a fallacy unless you are sending down functions specifically designed to mine values from  request.security() 's intrabar context.
  These coders do not seem to realize that:
   • They are only retrieving information from the last intrabar of the chart bar.
   • The already flawed behavior of their scripts on historical bars will not improve on realtime bars. It will actually worsen because in real time, 
    intrabars are not yet ordered sequentially as they are on historical bars.
   • Alerts or strategy orders using intrabar information acquired through  request.security()  will be using flawed logic and data most of the time.
  The situation reminds me of the mania where using Heikin-Ashi charts to backtest was all the rage because it produced magnificent — and flawed — results.
  Trading is difficult enough when doing the right things; I hate to see traders infected by lethal beliefs.
  Strive to sharpen your "herd immunity", as Lionel Shriver calls it. She also writes: "Be leery of orthodoxy. Hold back from shared cultural enthusiasms." 
  Be your own trader.
█  THANKS 
This indicator would not exist without the invaluable insights from Tim, a member of the Pine team. Thanks Tim!
Relative StrengthThis indicator is called Relative Strength and is no way related to RSI ( Relative strength indicator).
It is simply a ratio of asset A to asset B plotted. Usually it is used to look for strength vs a particular index. Since it is a ratio, all the trendlines work on it. The default index is NIFTY. You can change it any index/script you want to compare:
1. Script vs Index
2. Index vs Index
Market BuySell RatioA script using 1m small candle size (configurable) to compute the volume of buy (up) vs sell (down) candles (instead of actual market buy vs sell orders which are not available in pine script).
It then plots the buy vs sell ratio as an oscillator below the cart.
This gives traders an idea of current order flow in the market.
To compute the small candles this script uses the "Smart Volume" script which can be found here: 
Weis Wave Volume MTF 🎯 Indicator Name
Weis Wave Volume (Multi‑Timeframe) — adapted from the original “Weis Wave Volume by LazyBear.”
This version adds multi‑timeframe (MTF) readings, configurable colors, font size, and screen position for clear dashboard‑style display.
🧠 Concept Background — What is Weis Wave Volume (WWV)?
The Weis Wave Volume indicator originates from Wyckoff and David Weis’ techniques.
Its purpose is to link price movement “waves” with the amount of traded volume to reveal how strong or weak each wave is.
Instead of showing bars one by one, WWV accumulates the total volume while price keeps moving in the same direction.
When price direction changes (up → down or down → up), it:
Finishes the previous wave volume total.
Starts a new wave and begins accumulating again.
Those wave volumes help traders see:
Effort vs Result: Big volume with small price move ⇒ absorption; low volume with big move ⇒ weak participation.
Trend confirmation or exhaustion: High volume waves in trend direction strengthen it, while low‑volume waves hint exhaustion.
⚙️ How this Script Works
Trend & Wave Detection
Compares close with the previous bar to determine up or down movement (mov).
Detects trend reversals (when mov direction changes).
Builds “waves,” each representing a continuous run of bars in one direction.
Volume Accumulation
While price keeps the same direction, the script adds each bar’s volume to the running total (vol).
When direction flips, it resets that total and starts a new wave.
Multi‑Timeframe Computation
Calculates these wave volumes on three timeframes at once, chosen dynamically:
Active Chart Timeframe	Displays WWV for:
1 min	 1 min  
5 min	 5 min  
15 min	 15 min  
Any other	 Chart TF  
It uses request.security() to pull each timeframe’s latest WWV value and current wave direction.
Visual Output
Instead of plotting histogram bars, it shows a table with three numeric values:
WWV (1): 25.3 M | (15): 312 M | (240): 2.46 B
Each value is color‑coded:
user‑selected Uptrend Color when price wave = up
user‑selected Downtrend Color when wave = down
You can position this small table in any corner/center (top / bottom × left / center / right).
Font size is user‑adjustable (Tiny → Huge).
📈 How Traders Use It
Quickly gauge buying vs selling effort across multiple horizons.
Compare short‑term wave volume to higher‑timeframe waves to spot:
Alignment → all up and big volumes = strong trend
Divergence → small or opposite‑colored higher‑TF wave = potential reversal or pause
Combine with Wyckoff, VSA, or standard trend analysis to judge if a breakout or pullback has real participation.
🧩 Key Features of This Version
Feature	Description
Multi‑Timeframe Panel	Displays WWV values for 3 selected TFs at once
Dynamic TF Mapping	Auto‑adjusts which TFs to use based on chart
Up/Down Color Coding	Customizable colors for wave direction
Adjustable Font and Placement	Set font size (Tiny→Huge) and screen corner/center
No Histograms	Keeps chart clean; acts as a compact WWV dashboard
Cora Combined Suite v1 [JopAlgo]Cora Combined Suite v1   (CCSV1)
This is an 2 in 1 indicator (Overlay & Oscillator) the Cora Combined Suite v1  .
CCSV1 combines a price-pane Overlay for structure/trend with a compact Oscillator for timing/pressure. It’s designed to be clear, beginner-friendly, and largely automatic: you pick a profile (Scalp / Intraday / Swing), choose whether to run as Overlay or Oscillator, and CCSV1 tunes itself in the background.
What’s inside — at a glance
1) Overlay (price pane)
CoRa Wave: a smooth trend line based on a compound-ratio WMA (CRWMA).
Green when the slope rises (bull bias), Red when it falls (bear bias).
Asymmetric ATR Cloud around the CoRa Wave
Width expands more up when buyer pressure dominates and more down when seller pressure dominates.
Fill is intentionally light, so candlesticks remain readable.
Chop Guard (Range-Lock Gate)
When the cloud stays very narrow versus ATR (classic “dead water”), pullback alerts are muted to avoid noise.
Visuals don’t change—only the alerting logic goes quiet.
Typical Overlay reads
Trend: Follow the CoRa color; green favors long setups, red favors shorts.
Value: Pullbacks into/through the cloud in trend direction are higher-quality than chasing breaks far outside it.
Dominance: A visibly asymmetric cloud hints which side is funding the move (buyers vs sellers).
2) Oscillator (subpane or inline preview)
Stretch-Z (columns): how far price is from the CoRa mean (mean-reversion context), clipped to ±clip.
Near 0 = equilibrium; > +2 / < −2 = stretched/extended.
Slope-Z (line): z-score of CoRa’s slope (momentum of the trend line).
Crossing 0 upward = potential bullish impulse; downward = potential bearish impulse.
VPO (stepline): a normalized Volume-Pressure read (positive = buyers funding, negative = sellers).
Rendered as a clean stepline to emphasize state changes.
Event Bands ±2 (subpane): thin reference lines to spot extension/exhaustion zones fast.
Floor/Ceiling lines (optional): quiet boundaries so the panel doesn’t feel “bottomless.”
Inline vs Subpane
Inline (overlay): the oscillator auto-anchors and scales beneath price, so it never crushes the price scale.
Subpane (raw): move to a new pane for the classic ±clip view (with ±2 bands). Recommended for systematic use.
Why traders like it
Two in one: Structure on the chart, timing in the panel—built to complement each other.
Retail-first automation: Choose Scalp / Intraday / Swing and let CCSV1 auto-tune lengths, clips, and pressure windows.
Robust statistics: On fast, spiky markets/timeframes, it prefers outlier-resistant math automatically for steadier signals.
Optional HTF gate: You can require higher-timeframe agreement for oscillator alerts without changing visuals.
Quick start (simple playbook)
Run As
Overlay for structure: assess trend direction, where value is (the cloud), and whether chop guard is active.
Oscillator for timing: move to a subpane to see Stretch-Z, Slope-Z, VPO, and ±2 bands clearly.
Profile
Scalp (1–5m), Intraday (15–60m), or Swing (4H–1D). CCSV1 adjusts length/clip/pressure windows accordingly.
Overlay entries
Trade with CoRa color.
Prefer pullbacks into/through the cloud (trend direction).
If chop guard is active, wait; let the market “breathe” before engaging.
Oscillator timing
Look for Funded Flips: Slope-Z crossing 0 in the direction of VPO (i.e., momentum + funded pressure).
Use ±2 bands to manage risk: stretched conditions can stall or revert—better to scale or wait for a clean reset.
Optional HTF gate
Enable to green-light only those oscillator alerts that align with your chosen higher timeframe.
What each signal means (plain language)
CoRa turns green/red (Overlay): trend bias shift on your chart.
Cloud width tilts asymmetrically: one side (buyers/sellers) is dominating; extensions on that side are more likely.
Stretch-Z near 0: fair value around CoRa; pullback timing zone.
Stretch-Z > +2 / < −2: extended; watch for slowing momentum or scale decisions.
Slope-Z cross up/down: new impulse starting; combine with VPO sign to avoid unfunded crosses.
VPO positive/negative: net buying/selling pressure funding the move.
Alerts included
Overlay
Pullback Long OK
Pullback Short OK
Oscillator
Funded Flip Up / Funded Flip Down (Slope-Z crosses 0 with VPO agreement)
Pullback Long Ready / Pullback Short Ready (near equilibrium with aligned momentum and pressure)
Exhaustion Risk (Long/Short) (Stretch-Z beyond ±2 with weakening momentum or pressure)
Tip: Keep chart alerts concise and use strategy rules (TP/SL/filters) in your trade plan.
Best practices
One glance workflow
Read Overlay for direction + value.
Use Oscillator for trigger + confirmation.
Pairing
Combine with S/R or your preferred execution framework (e.g., your JopAlgo setups).
The suite is neutral: it won’t force trades; it highlights context and quality.
Markets
Works on crypto, indices, FX, and commodities.
Where real volume is available, VPO is strongest; on synthetic volume, treat VPO as a soft filter.
Timeframes
Use the Profile preset closest to your style; feel free to fine-tune later.
For multi-TF trading, enable the HTF gate on the oscillator alerts only.
Inputs you’ll actually use (the rest can stay on Auto)
Run As: Overlay or Oscillator.
Profile: Scalp / Intraday / Swing.
Oscillator Render: “Subpane (raw)” for a classic panel; “Inline (overlay)” only for a quick preview.
HTF gate (optional): require higher-timeframe Slope-Z agreement for oscillator alerts.
Everything else ships with sensible defaults and auto-logic.
Limitations & tips
Not a strategy: CCSV1 is a decision support tool; you still need your entry/exit rules and risk management.
Non-repainting design: Signals finalize on bar close; intrabar graphics can adjust during the bar (Pine standard).
Very flat sessions: If price and volume are extremely quiet, expect fewer alerts; that restraint is intentional.
Who is this for?
Beginners who want one clean overlay for structure and one simple oscillator for timing—without wrestling settings.
Intermediates seeking a coherent trend/pressure framework with HTF confirmation.
Advanced users who appreciate robust stats and clean engineering behind the visuals.
Disclaimer: Educational purposes only. Not financial advice. Trading involves risk. Use at your own discretion.
HalfTrend Adaptive Pro v3half trend version 3.1//@version=6
indicator("Candlestick Recognizer v1 (Praveen Edition)", overlay=true, max_labels_count=500)
// ──────────────────────────────
// Inputs: toggles & thresholds
// ──────────────────────────────
grpUse = "Enable Patterns"
useEngulf     = input.bool(true,  "Engulfing (Bull/Bear)", group=grpUse)
usePiercing   = input.bool(true,  "Piercing Line / Dark Cloud", group=grpUse)
useMarubozu   = input.bool(true,  "Marubozu (Bull/Bear)", group=grpUse)
useHammers    = input.bool(true,  "Hammer / Hanging Man", group=grpUse)
useInverted   = input.bool(true,  "Inverted Hammer / Shooting Star", group=grpUse)
useDoji       = input.bool(true,  "Doji", group=grpUse)
useStars      = input.bool(true,  "Morning/Evening Star", group=grpUse)
useThree      = input.bool(true,  "Three Soldiers / Three Crows", group=grpUse)
grpThr = "Thresholds"
minBodyPct         = input.float(0.6, "Min Body vs Range (0-1) for 'strong body'", step=0.05, group=grpThr)
maxDojiBodyPct     = input.float(0.1, "Max Body vs Range (0-1) for Doji", step=0.02, group=grpThr)
minEngulfFactor    = input.float(1.02, "Engulf body size factor", step=0.01, group=grpThr)
wickRatioHammer    = input.float(2.0, "Hammer lower wick ≥ body ×", step=0.1, group=grpThr)
wickRatioShooting  = input.float(2.0, "Shooting Star upper wick ≥ body ×", step=0.1, group=grpThr)
gapTolerance       = input.float(0.15, "Star gap tolerance as % of ATR", step=0.01, group=grpThr)
grpVis = "Visuals"
showLabels         = input.bool(true, "Show Labels", group=grpVis)
labelSize          = input.string("normal", "Label Size", options= , group=grpVis)
onlyConfirmed      = input.bool(true, "Only on bar close (confirmed)", group=grpVis)
// Colors
bullCol  = color.new(color.green, 0)
bearCol  = color.new(color.red, 0)
warnCol  = color.new(color.yellow, 0)
textCol  = color.black
// Helper to gate by confirmation
confirmed = onlyConfirmed ? barstate.isconfirmed : true
// ──────────────────────────────
// Candle math helpers
// ──────────────────────────────
body(o, c) => math.abs(c - o)
range(h, l) => h - l
isBull(o, c) => c > o
isBear(o, c) => c < o
upperW(h, o, c) => h - math.max(o, c)
lowerW(l, o, c) => math.min(o, c) - l
safeDiv(x, y) => y == 0.0 ? 0.0 : x / y
// Current and previous (p1, p2)
o = open, c = close, h = high, l = low
o1 = open , c1 = close , h1 = high , l1 = low 
o2 = open , c2 = close , h2 = high , l2 = low 
b  = body(o, c)
r  = range(h, l)
ub = upperW(h, o, c)
lb = lowerW(l, o, c)
b1  = body(o1, c1)
r1  = range(h1, l1)
b2  = body(o2, c2)
r2  = range(h2, l2)
bull  = isBull(o, c)
bear  = isBear(o, c)
bull1 = isBull(o1, c1)
bear1 = isBear(o1, c1)
bull2 = isBull(o2, c2)
bear2 = isBear(o2, c2)
bodyVsRange  = safeDiv(b,  r)
bodyVsRange1 = safeDiv(b1, r1)
bodyVsRange2 = safeDiv(b2, r2)
atr = ta.atr(14)
// ──────────────────────────────
/* Pattern logic */
// ──────────────────────────────
// 1) Engulfing
bullEngulf = useEngulf and confirmed and bear1 and bull and (b >= b1 * minEngulfFactor) and (o <= c1) and (c >= o1)
bearEngulf = useEngulf and confirmed and bull1 and bear and (b >= b1 * minEngulfFactor) and (o >= c1) and (c <= o1)
// 2) Piercing Line / Dark Cloud Cover
piercing = usePiercing and confirmed and bear1 and bull and c > (o1 + c1)/2 and o <= l1 + (h1 - l1)*0.25 // open near/below prior low, close into upper half
darkCloud = usePiercing and confirmed and bull1 and bear and c < (o1 + c1)/2 and o >= h1 - (h1 - l1)*0.25 // open near/above prior high, close into lower half
// 3) Marubozu (strong body, tiny wicks)
maruBull = useMarubozu and confirmed and bull and bodyVsRange >= minBodyPct and ub <= b * 0.1 and lb <= b * 0.1
maruBear = useMarubozu and confirmed and bear and bodyVsRange >= minBodyPct and ub <= b * 0.1 and lb <= b * 0.1
// 4) Hammer / Hanging Man (small body, long lower wick)
hammer     = useHammers and confirmed and bull and lb >= b * wickRatioHammer and ub <= b * 0.5
hangingMan = useHammers and confirmed and bear and lb >= b * wickRatioHammer and ub <= b * 0.5
// 5) Inverted Hammer / Shooting Star (small body, long upper wick)
invHammer    = useInverted and confirmed and bull and ub >= b * wickRatioShooting and lb <= b * 0.5
shootingStar = useInverted and confirmed and bear and ub >= b * wickRatioShooting and lb <= b * 0.5
// 6) Doji
doji = useDoji and confirmed and bodyVsRange <= maxDojiBodyPct
// 7) Morning Star
Custom Two Sessions H/L/50% LevelsTrack high/low/midpoint levels across two customizable time sessions. Perfect for monitoring H4 blocks, session ranges, or any custom time periods as reference levels for lower timeframe trading.
  
What This Indicator Does:
Tracks and projects High, Low, and 50% Midpoint levels for two fully customizable time sessions. Unlike fixed-session indicators, you define EXACTLY when each session starts and ends.
Key Features:
• Two independent sessions with custom start/end times (hour and minute)
• High/Low/50% midpoint tracking for each session
• Visual session boxes showing calculation periods
• Horizontal lines projecting levels into the future
• Historical session levels remain visible for reference
• Works on any chart timeframe (M1, M5, M15, H1, H4, etc.)
• Full visual customization (colors, line styles, widths)
• DST timezone support
Common Use Cases:
H4 Candle Tracking - Set sessions to 4-hour blocks (e.g., 6-10am, 10am-2pm) to track individual H4 highs/lows
H1 Candle Tracking - 1-hour blocks for scalping reference levels
Session Trading - ETH vs RTH, London vs NY, Asian session, etc.
Custom Time Periods - Any time range you want to monitor
How to Use:
The indicator identifies key price levels from higher timeframe periods. Use previous session H/L/50% as reference levels for:
Identifying sweep and reclaim setups
Lower timeframe structural flip confirmations
Support/resistance zones for entries
Delivery targets after breaks of structure
Settings:
Configure each session's start/end times independently. The indicator automatically triggers at the first bar crossing into your specified time, making it compatible with all chart timeframes.
MTF 20 SMA Table - DXY**MTF 20 SMA Table - Multi-Timeframe Trend Analysis Dashboard**
**Overview:**
This indicator provides a comprehensive multi-timeframe analysis dashboard that displays the relationship between price and the 20-period Simple Moving Average (SMA) across four key timeframes: 15-minute, 1-hour, 4-hour, and Daily. It's designed to help traders quickly identify trend alignment and potential trading opportunities across multiple timeframes at a glance.  It's definitely not perfect but has helped me speed up my backtesting efforts as it's worked well for me eliminating flipping back and forth between timeframes excpet when I have confluence on the table, then I check the HTF.
**How It Works:**
The indicator creates a table overlay on your chart showing three critical metrics for each timeframe:
1. **Price vs SMA (Row 1):** Shows whether price is currently above (bullish) or below (bearish) the 20 SMA
   - Green = Price Above SMA
   - Red = Price Below SMA
2. **SMA Direction (Row 2):** Indicates the trend direction of the SMA itself over a lookback period
   - Green (↗ Rising) = Uptrend
   - Red (↘ Falling) = Downtrend
   - Gray (→ Flat) = Ranging/Consolidation
3. **Strength (Row 3):** Displays the distance between current price and the SMA in pips
   - Purple background = Strong move (>50 pips away)
   - Orange background = Moderate move (20-50 pips)
   - Gray background = Weak/consolidating (<20 pips)
   - Text color: Green for positive distance, Red for negative
**Key Features:**
- **Customizable Table Position:** Place the table anywhere on your chart (9 position options)
- **Adjustable SMA Lengths:** Modify the SMA period for each timeframe independently (default: 20)
- **Direction Lookback Settings:** Fine-tune how far back the indicator looks to determine SMA direction for each timeframe
- **Flat Threshold:** Set the pip threshold for determining when an SMA is "flat" vs trending (default: 5 pips)
- **DXY Optimized:** Calculations are calibrated for the US Dollar Index (1 pip = 0.01)
**Best Use Cases:**
1. **Trend Alignment:** Identify when multiple timeframes align in the same direction for higher probability trades
2. **Divergence Spotting:** Detect when lower timeframes diverge from higher timeframes (potential reversals)
3. **Entry Timing:** Use lower timeframe signals while higher timeframes confirm overall trend
4. **Strength Assessment:** Gauge how extended price is from the mean (SMA) to avoid overextended entries
**Settings Guide:**
- **SMA Settings Group:** Adjust the SMA period for each timeframe (15M, 1H, 4H, Daily)
- **SMA Direction Group:** Control lookback periods to determine trend direction
  - 15M: Default 5 candles
  - 1H: Default 10 candles
  - 4H: Default 15 candles
  - Daily: Default 20 candles
- **Flat Threshold:** Set sensitivity for "flat" detection (lower = more sensitive to ranging markets)
**Trading Strategy Examples:**
1. **Trend Following:** Look for all timeframes showing the same direction (all green or all red)
2. **Pullback Trading:** When Daily/4H are green but 15M/1H show red, wait for lower timeframes to flip green for entry
3. **Ranging Markets:** When multiple SMAs show "flat", consider range-bound strategies
**Important Notes:**
- This is a reference tool only, not a standalone trading system
- Always use proper risk management and combine with other analysis methods
- Best suited for trending instruments like indices and major forex pairs
- Calculations are optimized for DXY but can be used on other instruments (pip calculations may need adjustment)
**Credits:**
Feel free to modify and improve this code! Suggestions for enhancements are welcome in the comments.
---
**Installation Instructions:**
1. Add the indicator to your TradingView chart
2. Adjust the table position via settings to avoid overlap with price action
3. Customize SMA lengths and lookback periods to match your trading style
4. Monitor the table for timeframe alignment and trend confirmation
---
This indicator is published as open source for the community to learn from and improve upon. Happy trading! 📈
Ichimoku MultiTF WillyArt v1.0.0What this indicator does
Ichimoku WillyArt turns the Ichimoku lines into angle-based momentum across multiple timeframes (W, D, 4H, 1H, 30m, 5m).
For each TF it computes the slope (angle in degrees) of:
Tenkan-sen
Kijun-sen
Senkou Span A
Senkou Span B
Angles are normalized so they’re comparable across assets and scales. You get a table with the angle per line and a quick emoji direction (↑, →, ↓), optional plots of the chosen line, and ready-to-use alerts.
Why angle?
Slope-as-degrees is an intuitive proxy for momentum/impulse:
Positive angle → line rising (bullish impulse).
Negative angle → line falling (bearish impulse).
Near zero → flat/indecisive.
Two normalization modes
ATR (default): slope / ATR. Robust across instruments; less sensitive to price level.
%Price: slope / price. More sensitive; can highlight subtle turns on low-volatility symbols.
Inputs you’ll actually care about
Timeframes: W, D, 4H, 1H, 30m, 5m (all fetched MTF, independent of chart TF).
Ichimoku lengths: Tenkan (9), Kijun (26), Span B (52) — standard defaults.
Bars for slope (ΔN): How many bars back the slope is measured. Higher = smoother, slower.
Threshold (°) for “strong”: Angle magnitude that qualifies as strong ↑/↓.
What you’ll see
Matrix/Table (top-right): For each TF, the angle (°) of Tenkan, Kijun, Span A, Span B + an emoji:
↑ above threshold, ↓ below −threshold, → in between.
Optional plots: Toggle “Plot angles” to visualize the chosen series’ angle across TFs.
Alerts included (ready to pick in “Create Alert”)
Sustained state: e.g., “Kijun 4H: strong ↑ angle” triggers while angle > threshold.
Threshold cross (one-shot): e.g., “Kijun 1H: upward threshold cross” fires on crossing.
Consensus (multi-TF): “Kijun consensus ↑ (D/4H/1H/30m/5m)” when all selected TFs align up (and the symmetric down case).
Messages are constant strings (TradingView requirement), so they compile cleanly. If you want dynamic text (current angle, threshold value, etc.), enable your own alert() calls—this script structure supports adding them.
How to use it (workflow)
Add to chart. No need to switch chart TF; the script pulls W/D/4H/1H/30m/5m internally.
Pick normalization. Start with ATR. Switch to %Price if you want more sensitivity.
Set ΔN & threshold.
Intraday momentum: try ΔN = 3–5 and threshold ≈ 4–8°.
Swing/position: ΔN = 5–9 and threshold ≈ 3–6° (with ATR).
Scan the table. Look for alignment (multiple TFs with ↑ or ↓ on Kijun/Spans).
Kijun + Span A up together → trending push.
Span B up/down → cloud baseline tilting (trend quality).
Turn on alerts that match your style: reactive cross for entries, sustained for trend follow, consensus to filter noise.
Reading tips
Kijun angle: great “trend backbone.” Strong ↑ on several TFs = higher-probability pullback buys.
Span A vs. Span B:
Span A reacts faster (momentum).
Span B is slower (structure).
When both tilt the same way, the cloud is genuinely rotating.
Mixed signals? Use higher TFs (W/D/4H) as bias, lower TFs (1H/30m/5m) for timing.
Good to know (limits & best practices)
Angles measure rate of change, not overbought/oversold. Combine with price structure and risk rules.
Extremely low volatility or illiquid symbols can produce tiny angles—%Price mode may help.
ΔN and thresholds are contextual: adapt per market (crypto vs FX vs equities).
Want me to bundle a “pro template” of alert presets (intraday / swing) and a heatmap color scale for the table? Happy to ship v2. 🚀
Dual Table Dashboard - Correct V3add RSI Data## 📈 Trading Applications
### 1. Trend Following Strategy
```
1. Check TABLE 1 for trend direction (AnEMA29 + PDMDR)
2. If both green → Look for longs
3. If both red → Look for shorts
4. Use TABLE 2 for entry levels
```
### 2. Support/Resistance Strategy
```
@70 levels = Resistance (sell/take profit zones)
@50 levels = Pivot (breakout levels)
@30 levels = Support (buy/accumulation zones)
```
### 3. Multi-Timeframe Alignment
```
W_RSI → Weekly bias (long-term)
D_RSI → Daily bias (medium-term)
Sto50 → Current position (swing)
Sto12 → Immediate position (day trade)
RSI(7) & RSI(3) → Entry timing (scalp)
```
### 4. Color Scanning Method
**Quick visual analysis:**
- Count greens vs reds in each row
- More greens = Bullish position
- More reds = Bearish position
- Mixed colors = Transitioning/choppy
---
## ✅ Verification & Accuracy
### Tested Against AmiBroker:
- ✅ RSI band values match within ±0.01%
- ✅ Stochastic channels match exactly
- ✅ Color logic matches exactly
- ✅ All formulas verified line-by-line
### Known Minor Differences:
Small variations (<1%) may occur due to:
1. **Platform calculation precision** - Different floating-point engines
2. **Historical data feeds** - Slight variations in past prices
3. **Weekly bar boundaries** - TradingView vs AmiBroker week definitions
4. **Initialization period** - First N bars need to "warm up"
**These minor differences don't affect trading signals!**
---
## ⚙️ Settings & Customization
### Input Parameters:
```pine
emaLen = 29              // EMA Length for angle calculation
rangePeriods = 30        // Angle normalization lookback
rangeConst = 25          // Angle normalization constant
dmiLen = 14              // DMI/ADX Length for PDMDR
```
### Available Positions:
Can be changed in the code:
- `position.top_left`
- `position.top_center`
- `position.top_right`
- `position.middle_left` (Table 2 default)
- `position.middle_center`
- `position.middle_right`
- `position.bottom_left` (Table 1 default)
- `position.bottom_center`
- `position.bottom_right`
### Text Sizes:
- `size.tiny`
- `size.small` (current default)
- `size.normal`
- `size.large`
- `size.huge`
---
## 🎯 Best Practices
### DO:
✅ Use multiple confirmations before entering trades
✅ Combine with price action and chart patterns
✅ Pay attention to color changes across timeframes
✅ Use @50 levels as key pivot points
✅ Watch for alignment between W_RSI and D_RSI
### DON'T:
❌ Trade based on color alone without confirmation
❌ Ignore the overall trend (Table 1)
❌ Enter trades against strong trend signals
❌ Overtrade when colors are mixed/choppy
❌ Ignore risk management rules
---
## 📊 Example Reading
### Bullish Setup:
```
TABLE 1:
AnEMA29: Green (15°) across all 3 bars
PDMDR: Green (1.65) and rising
TABLE 2:
W_RSI@50: Green (price above)
D_RSI@50: Green (price above)
Sto50@50: Green (price above midpoint)
Sto12@50: Green (price above midpoint)
Interpretation: Strong bullish trend confirmed across multiple timeframes
Action: Look for long entries on pullbacks to @50 or @30 levels
```
### Bearish Setup:
```
TABLE 1:
AnEMA29: Red (-12°) across all 3 bars
PDMDR: Red (0.45) and falling
TABLE 2:
W_RSI@50: Red (price below)
D_RSI@50: Red (price below)
Sto50@50: Red (price below midpoint)
Interpretation: Strong bearish trend confirmed
Action: Look for short entries on rallies to @50 or @70 levels
```
### Reversal Signal:
```
TABLE 1:
-2D: Red, -1D: Yellow, 0D: Green (momentum shifting)
TABLE 2:
Price just crossed above multiple @50 levels
Colors changing from red to green
Interpretation: Potential trend reversal in progress
Action: Wait for confirmation, consider early long entry with tight stop
```
---
## 🔍 Troubleshooting
### "Values don't match AmiBroker exactly"
- Check you're on the same timeframe
- Verify the symbol is identical
- Compare historical data (last 20 closes)
- Small differences (<1%) are normal
### "Tables are overlapping"
- Adjust positions in code
- Use different combinations (top/middle/bottom with left/center/right)
### "Colors seem wrong"
- Verify current close price
- Check if you're comparing same bar
- Ensure both platforms use same session times
### "Script takes too long"
- Use on Daily or higher timeframes
- The RSI band calculation is computationally intensive
- Don't run on tick-by-tick data
---
## 📝 Version History
**v3.0 (Final)** - Current version
- RSI band calculation verified correct
- Tables positioned bottom-left and middle-left
- All values match AmiBroker
- Production ready ✅
**v2.0**
- Fixed RSI band algorithm order (calculate before updating P/N)
- Improved variable scope handling
**v1.0**
- Initial implementation
- Had incorrect RSI band calculation
---
## 📄 Files in Package
Stock Fundamental Overlay [DarwinDarma]Stock Fundamental Overlay  
 Stock Fundamental Overlay  is a comprehensive valuation indicator that displays multiple fundamental analysis metrics directly on your price chart.
 Key Features: 
• Graham Number - Benjamin Graham's intrinsic value formula
• Book Value Per Share (BVPS) - Net asset value baseline
• DCF Valuation - Discounted Cash Flow analysis (non-financial stocks)
• DDM Valuation - Dividend Discount Model (dividend-paying stocks)
• Visual Value Zones - Color-coded undervalued/overvalued regions
• Real-time Fundamental Table - Live metrics and valuations
• Price vs Graham Comparison - Quick valuation assessment
• Built-in Alerts - Notification when price crosses key levels
 Valuation Models: 
• Graham Number: √(22.5 × EPS × BVPS)
• DCF: Customizable discount rate, growth rate, and forecast period
• DDM: Gordon Growth Model for dividend analysis
 Visual Elements: 
• Plot lines for BVPS, Graham Number, and DCF values
• Shaded value zone between BVPS and Graham Number
• Background coloring: Deep value (below BVPS), Undervalued (below Graham), Overvalued (>1.5x Graham)
• Dynamic table showing all metrics with theme-aware text colors
 Special Handling: 
• Financial sector detection - DCF disabled for banks/financials where FCF metrics are distorted
• Automatic light/dark theme adaptation
• TTM (Trailing Twelve Months) data for current metrics
 How to Use - Value Investing Approach: 
 1. Identifying Undervalued Stocks: 
• Look for price trading BELOW the Graham Number (green zone) - potential value opportunity
• Deep value: Price below BVPS indicates trading below net asset value
• Check "Price vs Graham" % in table - negative values suggest undervaluation
• Compare multiple models: When price is below Graham, DCF, and BVPS simultaneously, stronger buy signal
 2. Margin of Safety: 
• Benjamin Graham recommended buying at 2/3 of intrinsic value (33% margin of safety)
• Monitor the gap between current price and valuation lines
• Larger gaps = greater margin of safety = lower downside risk
• Use the shaded "Value Zone" as your target buying range
 3. Setting Alerts: 
• "Price Below Graham Number" - Notifies when stock enters value territory
• "Price Below Book Value" - Extreme value alert for deep value hunters
• "Price Below DCF Value" - Cash flow-based value signal
• Set alerts on watchlist stocks to catch value opportunities
 4. Customizing for Your Strategy: 
• Conservative investors: Use lower growth rates (3-4%) and higher discount rates (12-15%)
• Growth-value investors: Adjust growth rate (6-8%) for quality compounders
• Dividend investors: Focus on DDM value and Div/Share metrics
• Adjust forecast years based on business predictability (stable = 10 years, cyclical = 5 years)
 5. Red Flags to Avoid: 
• Negative EPS or FCF (red values in table) - proceed with caution
• Financial sector stocks - Use DDM and Graham, ignore DCF
• Price far above Graham (>1.5x) with red background = overvalued territory
• No fundamental data = "N/A" in table - stock may lack reporting or be too small
• Stock persistently below BVPS for extended periods - potential value trap or business in distress
• Price significantly above ALL models (BVPS, Graham, DCF) - sentiment-driven, lacks intrinsic value foundation (fragile)
 ⚠️ Important Value Investing Warnings: 
•  Value Trap Alert:  A stock staying below BVPS for months/years may signal fundamental deterioration, asset impairments, or dying industry - not just "cheap." Investigate WHY it's cheap before buying
•  Sentiment Bubble Risk:  When price trades far above BVPS, Graham Number, AND DCF simultaneously, the stock has no intrinsic value basis. Examples: commodity stocks during boom cycles (gold miners in gold rallies), meme stocks, hype-driven sectors. These are highly fragile and vulnerable to mean reversion
•  Cyclical Trap:  Commodity/cyclical stocks can appear "cheap" at peak earnings (low P/E, high FCF) but are actually expensive. Normalize earnings across the cycle before valuing
•  Quality Matters:  Some excellent businesses (asset-light, high ROIC) naturally trade above book value. Don't avoid quality - adjust expectations for business model
 6. Monitoring Positions: 
• Watch for price approaching or exceeding Graham Number - consider taking profits
• Track EPS and FCF trends quarter-to-quarter in the table
• If fundamentals deteriorate (falling BVPS, negative FCF), reassess thesis
• Use background colors for quick visual check: green = hold/buy, red = overvalued
 Perfect for: 
Value investors seeking multi-model fundamental analysis, long-term investors comparing intrinsic value to market price, dividend investors evaluating yield stocks, and fundamental traders looking for entry/exit signals.
 Note:  Only works with stocks that have financial data available. Not applicable to crypto, forex, or futures. This indicator provides analysis tools; always conduct thorough research and due diligence before investing.
WorldCup Dashboard + Institutional Sessions© 2025 NewMeta™ — Educational use only.
# Full, Premium Description 
## WorldCup Dashboard + Institutional Sessions
**A trade-ready, intraday framework that combines market structure, real flow, and institutional timing.**
This toolkit fuses **Institutional Sessions** with a **price–volume decision engine** so you can see *who is active*, *where value sits*, and *whether the drive is real*. You get: **CVD/Delta**, volume-weighted **Momentum**, **Aggression** spikes, **FVG (MTF)** with nearest side, **Daily Volume Profile (VAH/POC/VAL)**, **ATR regime**, a **24h position gauge**, classic **candle patterns**, IBH/IBL + **first-hour “true close”** lines, and a **10-vote confluence scoreboard**—all in one view.
---
## What’s inside (and how to trade it)
### 🌍 Institutional Sessions (Sydney • Tokyo • London • New York)
* Session boxes + a highlighted **first hour**.
* Plots the **true close** (first-hour close) as a running line with a label.
  **Use:** Many desks anchor risk to this print. Above = bullish bias; below = bearish. **IBH/IBL** breaks during London/NY carry the most signal.
### 📊 CVD / Delta (Flow)
* Net buyer vs seller pressure with smooth trend state.
  **Use:** **Rising CVD + acceptance above mid/POC** confirms continuation. Bearish price + rising CVD = caution (possible absorption).
### ⚡ Volume-Weighted Momentum
* Momentum adjusted by participation quality (volume).
  **Use:** Momentum>MA and >0 → trend drive is “real”; <0 and falling → distribution risk.
### 🔥 Aggression Detector
* ROC × normalized volume × wick factor to flag **forceful** candles.
  **Use:** On spikes, avoid fading blindly—wait for pullbacks into **aligned FVG** or for aggression to cool.
### 🟦🟪 Fair Value Gaps (with MTF)
* Detects up to 3 recent FVGs and marks the **nearest** side to price.
  **Use:** Trend pullbacks into **bullish FVG** for longs; bounces into **bearish FVG** for shorts. Optional threshold to filter weak gaps.
### 🧭 24h Gauge (positioning)
* Shows current price across the 24h low⇢high with a mid reference.
  **Use:** Above mid and pushing upper third = momentum continuation setups; below mid = sell the rips bias.
### 🧱 Daily Volume Profile (manual per day)
* **VAH / POC / VAL** derived from discretized rows.
  **Use:** **POC below** supports longs; **POC above** caps rallies. Fade VAH/VAL in ranges; treat them as break/hold levels in trends.
### 📈 ATR Regime
* **ATR vs ATR-avg** with direction and regime flag (**HIGH / NORMAL / LOW**).
  **Use:** HIGH ⇒ give trades room & favor trend following. LOW ⇒ fade edges, scale targets.
### 🕯️ Candle Patterns (contextual, not standalone)
* Engulfings, Morning/Evening Star, 3 Soldiers/Crows, Harami, Hammer/Shooting Star, Double Top/Bottom.
  **Use:** Only with session + flow + momentum alignment.
### 🤝 Price–Volume Classification
* Labels each bar as **continuation**, **exhaustion**, **distribution**, or **healthy pullback**.
  **Use:** Align continuation reads with trend; treat “Price↑ + Vol↓” as a caution flag.
### 🧪 Confluence Scoreboard & B/S Meter
* Ten elements vote: 🔵 bull, ⚪ neutral, 🟣 bear.
  **Use:** Execution filter—take setups when the board’s skew matches your trade direction.
---
## Playbooks (actionable)
**Trend Pullback (Long)**
1. London/NY active, Momentum↑, CVD↑, price above 24h mid & POC.
2. Pullback into **nearest bullish FVG**.
3. Invalidate under FVG low or **true-close** line.
4. Targets: IBH → VAH → 24h high.
**Range Fade (Short)**
1. Asia/quiet regime, **Price↑ + Vol↓** into **VAH**, ATR low.
2. Nearest FVG bearish or scoreboard skew bearish.
3. Invalidate above VAH/IBH.
4. Targets: POC → VAL.
**News/Impulse**
Aggression spike? Don’t chase. Let it pull back into the aligned FVG; require CVD/Momentum agreement before entry.
---
## Alerts (included)
* **Bull/Bear Confluence ≥ 7/10**
* **Intraday Target Achieved** / **Daily Target Achieved**
* **Session True-Close Retests** (Sydney/Tokyo/London/NY)
*(Keep alerts “Once per bar” unless you specifically want intrabar triggers.)*
---
## Setup Tips
* **UTC**: Choose the reference that matches how you track sessions (default UTC+2).
* **Volume threshold**: 2.0× is a strong baseline; raise for noisy alts, lower for majors.
* **CVD smoothing**: 14–24 for scalps; 24–34 for slower markets.
* **ATR lengths**: Keep defaults unless your asset has a persistent regime shift.
---
## Why this framework?
Because **timing (sessions)**, **truth (flow)**, and **location (value/FVG)** together beat any single signal. You get *who is trading*, *how strong the push is*, and *where risk lives*—on one screen—so execution is faster and cleaner.
---
**Disclaimer**: Educational use only. Not financial advice. Markets are risky—backtest and size responsibly.
VBE Pro - Advanced Volatility Bands with Zero Lag & PredictionVBE Pro: Zero-Lag Predictive Bands
A next-gen volatility envelope that blends zero-lag smoothing with forward-looking volatility models (EWMA/GARCH/HAR/ML) to keep bands tight in calm markets, responsive in shocks, and adaptive across regimes.
What it does
Builds volatility from multiple methods (ATR, StDev, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang).
Projects near-term vol with your choice of predictor, then blends it via a weight slider.
Applies zero-lag smoothing (ZLEMA/ZLMA/DEMA/TEMA/HMA/JMA/Ehlers/Kalman/T3) to cut delay without over-shoot.
Auto-adapts band width by regime (high/low/normal) and can expand dynamically with price acceleration.
Optional displacement to align with your execution style.
On-chart
Upper/Lower zero-lag bands with optional fill.
Middle line (ZL-smoothed source).
Regime-tinted background (High/Low).
Displacement marker (if used).
Compact top-right info table: current vs predicted vol, regime, squeeze, multiplier, methods, ZL gain, est. lag reduction.
Signals & Alerts
Break↑ / Break↓ when price crosses the bands.
Vol↑ / Vol↓ expansion/contraction sequences.
“Squeeze” when band width compresses vs its ZL average.
“ZL” marker when significant zero-lag is active.
Prediction divergence ⚠ when projected vol deviates > threshold.
Built-in alertconditions for all of the above.
Quick start
Method: ATR or Hybrid for robustness.
Smoothing: ZLEMA, length 5–8, ZL gain 2–3 (push higher only if you accept more projection).
Bands: Multiplier 2.0, Adaptive on, Dynamic off to start.
Prediction: EWMA, weight 0.25–0.35. Move to GARCH in mean-reverty tapes; HAR-RV for mixed regimes.
Regime lookback: 50.
PulseRPO Zero-Lag BandsPulseRPO is a momentum and volatility timing suite built on a zero-lag Relative Price Oscillator. It pairs an RPO (fast vs slow MA spread, in %) with adaptive volatility envelopes that tighten or widen as conditions change, so you can spot true momentum bursts, exhaustion and “quiet-before-the-move” squeezes—without the usual MA lag.
What it shows
Zero-Lag RPO: Choose EMA, SMA, WMA, RMA, HMA or ZLEMA for the base, then apply ZLEMA/DEMA/TEMA/HMA zero-lag smoothing to cut delay.
Adaptive Bands: StdDev, ATR, Range or Hybrid volatility; bands auto-tighten in high vol and widen in quiet regimes.
Dynamic OB/OS: Levels scale with current regime so extremes mean something even as volatility shifts.
Signal & Histogram: Classic signal cross plus histogram for quick read of acceleration vs deceleration.
Squeeze Paint: Subtle background highlight when band width compresses below its average.
Divergences & Triggers: Optional bullish/bearish divergence tags, plus band-cross and signal-cross alerts out of the box.
How to use it (general guide)
Momentum entries: Look for RPO crossing up its signal from below or snapping out of a squeeze; extra weight if it also re-enters from below the lower band.
Trend continuation: RPO riding outside the upper (or lower) band with rising histogram = power move; trail risk on pullbacks to the signal line.
Exhaustion / fades: Taps beyond dynamic OB/OS or band re-entries can mark mean-revert windows—confirm with price/volume.
Risk filter: During squeeze, size down and prepare for expansion; after expansion, respect extremes.
Tweak the MA type, band method and zero-lag strength to match your timeframe. PulseRPO is designed to be a self-contained read: regime → setup → trigger → alert.
Real Relative Strength Breakout & BreakdownReal Relative Strength Breakout & Breakdown Indicator
What It Does
Identifies high-probability trading setups by combining:
Technical Breakouts/Breakdowns - Price breaking support/resistance zones
Real Relative Strength (RRS) - Volatility-adjusted performance vs benchmark (SPY)
Key Insight: The strongest signals occur when price action contradicts market direction—breakouts during market weakness or breakdowns during market strength show exceptional buying/selling pressure.
Real Relative Strength (RRS) Calculation
RRS measures outperformance/underperformance on a volatility-adjusted basis:
Power Index = (Benchmark Price Move) / (Benchmark ATR)
RRS = (Stock Price Move - Power Index × Stock ATR) / Stock ATR
RRS (smoothed) = 3-period SMA of RRS
Interpretation:
RRS > 0 = Relative Strength (outperforming)
RRS < 0 = Relative Weakness (underperforming)
Signal Types
🟢 Large Green Triangle (Premium Long)
Condition: Breakout + RRS > 0
Meaning: Stock breaking resistance WHILE outperforming benchmark
Best when: Market is weak but stock breaks out anyway = exceptional strength
Use: High-conviction long entries
🔵 Small Blue Triangle (Standard Breakout)
Condition: Breakout + RRS ≤ 0
Meaning: Breaking resistance but underperforming benchmark
Typical: "Rising tide lifts all boats" scenario during market rally
Use: Lower conviction—may just be following market
🟠 Large Orange Triangle (Premium Short)
Condition: Breakdown + RRS < 0
Meaning: Stock breaking support WHILE underperforming benchmark
Best when: Market is strong but stock breaks down anyway = severe weakness
Use: High-conviction short entries
🔴 Small Red Triangle (Standard Breakdown)
Condition: Breakdown + RRS ≥ 0
Meaning: Breaking support but outperforming benchmark
Typical: Stock falling less than market during selloff
Use: Lower conviction—may recover when market does
Why Large Triangles Matter
Large signals show divergence = genuine institutional flow:
Stock breaking out while market falls → Aggressive buying despite headwinds
Stock breaking down while market rallies → Aggressive selling despite tailwinds
These setups reveal where real conviction lies, not just momentum-following behavior.
Quick Settings
RRS: 12-period lookback, 3-bar smoothing, vs SPY
Breakouts: 5-period pivots, 200-bar lookback, 3% zone width, 2 minimum tests
Diwali Lights Pro — 7-Diyas Signal Matrix [KedArc Quant]🎯 Overview
“Diwali Lights Pro — 7-Diyas Signal Matrix” is a precision-built trend-sentiment indicator that blends the glow of seven technical “diyas” — each representing a different momentum or strength dimension — into one intuitive signal matrix. It was designed to celebrate light, discipline, and clarity in trading — helping traders filter noise, identify strong trend shifts, and take trades with conviction. Each diya is powered by a proven indicator component: RSI, Stochastic, EMA trend strength, and momentum slopes.Together, they light up your chart with buy/sell signals only when technical confluence aligns — like the diyas of Diwali shining in harmony.
💡 Core Concept
The indicator computes a composite score (–9 to +9) by evaluating seven key parameters:
| # | Diya           | Logic                 | Interpretation                 |
| 1 | RSI            | Overbought / Oversold | Short-term momentum exhaustion |
| 2 | Stochastic     | Direction & zones     | Confirmation of RSI            |
| 3 | Price vs EMA20 | Position of price     | Near-term trend bias           |
| 4 | EMA20 Slope    | Short-term momentum   | Strength confirmation          |
| 5 | EMA50 Slope    | Mid-term trend        | Trend stability                |
| 6 | EMA100 Slope   | Medium-term sentiment | Institutional bias             |
| 7 | EMA200 Slope   | Long-term sentiment   | Market direction baseline      |
The total of these 7 diyas creates a signal matrix that dynamically adapts to trend conditions.
⚙️ Inputs & Configuration
| RSI Length                  | 14               | Standard RSI window                  |
| Stochastic Length           | 14               | Measures momentum oscillation        |
| EMA Periods                 | 20, 50, 100, 200 | Multi-layer trend structure          |
| Overbought / Oversold Zones | 70 / 30          | Configurable thresholds              |
| Show Buy/Sell Labels        | ✅                | Toggle signal markers                |
| Show Banner                 | ✅                | Festive Diwali header with fireworks |
| Twinkle Interval            | 10 bars          | Animation timing                     |
| Fireworks Count             | 18               | Visual celebration intensity         |
| Background Opacity          | 100%             | Style preference                     |
🧭 Entry & Exit Logic
# ✅ Buy Signal (🪔)
A Buy triggers when:
* The total diya score crosses above zero,
* And at least four of seven components turn bullish.
This indicates that short-term oscillators, price action, and moving averages are all turning in unison — a strong entry zone after a pullback.
# 🔥 Sell Signal (🔥)
A Sell triggers when:
* The total diya score crosses below zero,
* And multiple slopes or price conditions flip bearish.
This flags weakening momentum and possible trend exhaustion.
# 💬 Suggested Usage
* Works beautifully on 5-min to 1-hour charts.
* Best when used with trend confirmation tools (volume, price structure).
* Avoid entering trades when signals flip rapidly within narrow ranges (sideways zones).
🧪 Mathematical Formulae
1. RSI Bucket (p₁):
p₁ = 
  2  if RSI < Very Oversold  
  1  if RSI < Oversold  
  0  if neutral  
 -1  if RSI > Overbought  
 -2  if RSI > Very Overbought
2. Stochastic Bucket (p₂): Similar to RSI bucketing.
3. Price vs EMA20 (p₃):
p₃ = sign(close - EMA20)
4–7. Slope Sign (EMA20, 50, 100, 200):
p₄₋₇ = sign(EMA  - EMA )
Total Score = Σ(p₁…p₇)
→ Crossover(total_score, 0) → Buy Signal
→ Crossunder(total_score, 0) → Sell Signal
📊 Why It’s Not Just a Mash-Up
Diwali Lights Pro uses:
* A unified scoring engine with weighted logic rather than conflicting triggers.
* Each component (diya) contributes equally, creating a normalized sentiment index.
* Smart signal filtering prevents repetitive false flips by enforcing trend alignment across multiple time frames.
* A dynamic, responsive structure optimized for clarity and minimal repainting.
 🎆 Unique Add-Ons
* Top-Right Diwali Banner: Festive “Happy Diwali” with animated fireworks 🎇 and diyas 🪔.
* Signal Filtering: Reduces noise in volatile ranges.
* EMA Cloud Context: Visual clarity of multi-layer trend zones.
* Optional Light Mode: Change fireworks opacity for a subtle or bright effect.
 📘 FAQ
Q1: Does this repaint?
No — it uses confirmed values (RSI, Stochastic, EMA slopes). Signals appear only after the bar closes.
Q2: Which timeframes work best?
Between 5m and 1h, depending on your strategy.
Use higher EMAs for swing setups.
Q3: Can I use it with alerts?
Yes, both Buy and Sell triggers come with built-in `alertcondition()` for instant notifications.
Q4: Can it be combined with other indicators?
Absolutely — it pairs well with volume profiles, volatility bands, or order-flow systems.
 🪔 Glossary
| Diya          | Candle or light — here, each diya = one technical indicator         |
| EMA           | Exponential Moving Average — measures smoothed trend bias           |
| RSI           | Relative Strength Index — momentum overbought/oversold oscillator   |
| Stochastic    | Momentum oscillator measuring closing levels relative to highs/lows |
| Slope Sign    | Direction of EMA movement — rising or falling                       |
| Signal Matrix | The combined system of all seven diyas generating a unified score   |
🧭 Final Note
> *Diwali Lights Pro* is not just a trading tool — it’s a visual celebration of confluence and discipline.
> When the diyas align, trends shine. Use it to trade in harmony with light, not against it. 🌟
⚠️ Disclaimer 
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Lorentzian Harmonic Flow - Temporal Market Dynamic Lorentzian Harmonic Flow - Temporal Market Dynamic  (⚡LHF) 
By: DskyzInvestments
 What this is 
 LHF Pro  is a research‑grade analytical instrument that models  market time as a compressible medium , extracts  directional flow in curved time  using heavy‑tailed kernels, and consults a  history‑based memory bank  for context before synthesizing a final, bounded  probabilistic score . It is  not  a mashup; each subsystem is mathematically coupled to a single clock (time dilation via gamma) and a single lens (Lorentzian heavy‑tailed weighting). This script is  dense in logic  (and therefore heavy) because it prioritizes rigor, interpretability, and visual clarity.
 Intended use 
 Education and research.  This tool expresses state recognition and regime context—not guarantees. It does not place orders. It is fully functional as published and contains no placeholders. Nothing herein is financial advice.
 Why this is original and useful 
 Curved time:  Markets do not move at a constant pace. LHF Pro computes a Lorentz‑style  gamma (γ)  from relative speed so its analytical windows contract when the tape accelerates and relax when it slows.
 Heavy‑tailed lens:  Lorentzian kernels weight information with fat tails to respect rare but consequential extremes (unlike Gaussian decay).
 Memory of regimes:  A K‑nearest‑neighbors engine works in a multi‑feature space using Lorentz kernels per dimension and  exponential age fade , returning a  memory bias  (directional expectation) and  assurance  (confidence mass).
 One ecosystem:  Squeeze, TCI, flow, acceleration, and memory live on the same clock and blend into a single  final_score —visualized and documented on the dashboard.
 Cognitive map:  A 2D heat map projects memory resonance by age and flow regime, making “where the past is speaking” visible.
 Shadow portfolio metaphor:  Neighbor outcomes act like tiny hypothetical positions whose weighted average forms an  educational pressure gauge  (no execution, purely didactic).
 Mathematical framework (full transparency) 
 1) Returns, volatility, and speed‑of‑market 
 Log return:  rₜ = ln(closeₜ / closeₜ₋₁)
 Realized vol:  rv = stdev(r, vol_len);  vol‑of‑vol:  burst = |rv − rv |
 Speed‑of‑market (analog to c):  c = c_multiplier × (EMA(rv) + 0.5 × EMA(burst) + ε)
 2) Trend velocity and Lorentz gamma (time dilation) 
 Trend velocity:  v = |close − close | / (vel_len × ATR)
 Relative speed:  v_rel = v / c
 Gamma:  γ = 1 / √(1 − v_rel²), stabilized by caps (e.g., ≤10)
Interpretation:  γ > 1  compresses market time → use shorter effective windows.
 3) Adaptive temporal scale 
 Adaptive length:  L = base_len / γ^power (bounded for safety)
 Harmonic horizons:  Lₛ = L × short_ratio, Lₘ = L × mid_ratio, Lₗ = L × long_ratio
 4) Lorentzian smoothing and Harmonic Flow 
 Kernel weight per lag i:  wᵢ = 1 / (1 + (d/γ)²), d = i/L
 Horizon baselines:  lw_h = Σ wᵢ·price  / Σ wᵢ
 Z‑deviation:  z_h = (close − lw_h)/ATR
 Harmonic Flow (HFL):  HFL = (w_short·zₛ + w_mid·zₘ + w_long·zₗ) / (w_short + w_mid + w_long)
 5) Flow kinematics 
 Velocity:  HFL_vel = HFL − HFL 
 Acceleration (curvature):  HFL_acc = HFL − 2·HFL  + HFL 
 6) Squeeze and temporal compression 
 Bollinger width  vs  Keltner width  using L
 Squeeze:  BB_width < KC_width × squeeze_mult
 Temporal Compression Index:  TCI = base_len / L; TCI > 1 ⇒ compressed time
 7) Entropy (regime complexity) 
Shannon‑inspired proxy on |log returns| with numerical safeguards and smoothing. Higher entropy → more chaotic regime.
 8) Memory bank and Lorentzian k‑NN 
 Feature vector (5D):   
 Outcomes stored:  forward returns at H5, H13, H34
 Per‑dimension similarity:  k(Δ) = 1 / (1 + Δ²), weighted by user’s feature weights
 Age fading:  weight_age = mem_fade^age_bars
 Neighbor score:  sᵢ = similarityᵢ × weight_ageᵢ
 Memory bias:  mem_bias = Σ sᵢ·outcomeᵢ / Σ sᵢ
 Assurance:  mem_assurance = Σ sᵢ (confidence mass)
 Normalization:  mem_bias normalized by ATR and clamped into   band
 Shadow portfolio metaphor:  neighbors behave like micro‑positions; their weighted net forward return becomes a continuous, adaptive expectation.
 9) Blended score and breakout proxy 
 Blend factor:  α_mem = 0.45 + 0.15 × (γ − 1)
 Final score:  final_score = (1−α_mem)·tanh(HFL / (flow_thr·1.5)) + α_mem·tanh(mem_bias_norm)
 Breakout probability (bounded):  energy = cap(TCI−1) + |HFL_acc|×k + cap(γ−1)×k + cap(mem_assurance)×k; breakout_prob = sigmoid(energy). Caps avoid runaway “100%” readings.
 Inputs — every control, purpose, mechanics, and tuning 
 🔮 Lorentz Core 
 Auto‑Adapt (Vol/Entropy):  On = L responds to γ and entropy (breathes with regime), Off = static testing.
 Base Length:  Calm‑market anchor horizon. Lower (21–28) for fast tapes; higher (55–89+) for slow.
 Velocity Window (vel_len):  Bars used in v. Shorter = more reactive γ; longer = steadier.
 Volatility Window (vol_len):  Bars used for rv/burst (c). Shorter = more sensitive c.
 Speed‑of‑Market Multiplier (c_multiplier):  Raises/lowers c. Lower values → easier γ spikes (more adaptation). Aim for strong trends to peak around γ ≈ 2–4.
 Gamma Compression Power:  Exponent of γ in L. <1 softens; >1 amplifies adaptation swings.
 Max Kernel Span:  Upper bound on smoothing loop (quality vs CPU).
 🎼 Harmonic Flow 
 Short/Mid/Long Horizon Ratios:  Partition L into fast/medium/slow views. Smaller short_ratio → faster reaction; larger long_ratio → sturdier bias.
 Weights (w_short/w_mid/w_long):  Governs HFL blend. Higher w_short → nimble; higher w_long → stable.
 📈 Signals 
 Squeeze Strictness:  Threshold for BB1 = compressed (coiled spring); <1 = dilated.
 v/c:  Relative speed; near 1 denotes extreme pacing. Diagnostic only.
 Entropy:  Regime complexity; high entropy suggests caution, smaller size, or waiting for order to return.
 HFL:  Curved‑time directional flow; sign and magnitude are the instantaneous bias.
 HFL_acc:  Curvature; spikes often accompany regime ignition post‑squeeze.
 Mem Bias:  Directional expectation from historical analogs (ATR‑normalized, bounded). Aligns or conflicts with HFL.
 Assurance:  Confidence mass from neighbors; higher → more reliable memory bias.
 Squeeze:  ON/RELEASE/OFF from BB
Advanced Speedometer Gauge [PhenLabs]Advanced Speedometer Gauge  
Version: PineScript™v6
 📌 Description 
The Advanced Speedometer Gauge is a revolutionary multi-metric visualization tool that consolidates 13 distinct trading indicators into a single, intuitive speedometer display. Instead of cluttering your workspace with multiple oscillators and panels, this gauge provides a unified interface where you can switch between different metrics while maintaining consistent visual interpretation.
Built on PineScript™ v6, the indicator transforms complex technical calculations into an easy-to-read semi-circular gauge with color-coded zones and a precision needle indicator. Each of the 13 available metrics has been carefully normalized to a 0-100 scale, ensuring that whether you’re analyzing RSI, volume trends, or volatility extremes, the visual interpretation remains consistent and intuitive.
The gauge is designed for traders who value efficiency and clarity. By consolidating multiple analytical perspectives into one compact display, you can quickly assess market conditions without the visual noise of traditional multi-indicator setups. All metrics are non-overlapping, meaning each provides unique insights into different aspects of market behavior.
 🚀 Points of Innovation 
 
  13 selectable metrics covering momentum, volume, volatility, trend, and statistical analysis, all accessible through a single dropdown menu
  Universal 0-100 normalization system that standardizes different indicator scales for consistent visual interpretation across all metrics
  Semi-circular gauge design with 21 arc segments providing smooth precision and clear visual feedback through color-coded zones
  Non-redundant metric selection ensuring each indicator provides unique market insights without analytical overlap
  Advanced metrics including MFI (volume-weighted momentum), CCI (statistical deviation), Volatility Rank (extended lookback), Trend Strength (ADX-style), Choppiness Index, Volume Trend, and Price Distance from MA
  Flexible positioning system with 5 chart locations, 3 size options, and fully customizable color schemes for optimal workspace integration
 
 🔧 Core Components 
 
   Metric Selection Engine:  Dropdown interface allowing instant switching between 13 different technical indicators, each with independent parameter controls
   Normalization System:  All metrics converted to 0-100 scale using indicator-specific algorithms that preserve the statistical significance of each measurement
   Semi-Circular Gauge:  Visual display using 21 arc segments arranged in curved formation with two-row thickness for enhanced visibility
   Color Zone System:  Three distinct zones (0-40 green, 40-70 yellow, 70-100 red) providing instant visual feedback on metric extremes
   Needle Indicator:  Dynamic pointer that positions across the gauge arc based on precise current metric value
   Table Implementation:  Professional table structure ensuring consistent positioning and rendering across different chart configurations
 
 🔥 Key Features 
 
   RSI (Relative Strength Index):  Classic momentum oscillator measuring overbought/oversold conditions with adjustable period length (default 14)
   Stochastic Oscillator:  Compares closing price to price range over specified period with smoothing, ideal for identifying momentum shifts
   MFI (Money Flow Index):  Volume-weighted RSI that combines price movement with volume to measure buying and selling pressure intensity
   CCI (Commodity Channel Index):  Measures statistical deviation from average price, normalized from typical -200 to +200 range to 0-100 scale
   Williams %R:  Alternative overbought/oversold indicator using high-low range analysis, inverted to match 0-100 scale conventions
   Volume %:  Current volume relative to moving average expressed as percentage, capped at 100 for extreme spikes
   Volume Trend:  Cumulative directional volume flow showing whether volume is flowing into up moves or down moves over specified period
   ATR Percentile:  Current Average True Range position within historical range using specified lookback period (default 100 bars)
   Volatility Rank:  Close-to-close volatility measured against extended historical range (default 252 days), differs from ATR in calculation method
   Momentum:  Rate of change calculation showing price movement speed, centered at 50 and normalized to 0-100 range
   Trend Strength:  ADX-style calculation using directional movement to quantify trend intensity regardless of direction
   Choppiness Index:  Measures market choppiness versus trending behavior, where high values indicate ranging markets and low values indicate strong trends
   Price Distance from MA:  Measures current price over-extension from moving average using standard deviation calculations
 
 🎨 Visualization 
 
   Semi-Circular Arc Display:  Curved gauge spanning from 0 (left) to 100 (right) with smooth progression and two-row thickness for visibility
   Color-Coded Zones:  Green zone (0-40) for low/oversold conditions, yellow zone (40-70) for neutral readings, red zone (70-100) for high/overbought conditions
   Needle Indicator:  Downward-pointing triangle (▼) positioned precisely at current metric value along the gauge arc
   Scale Markers:  Vertical line markers at 0, 25, 50, 75, and 100 positions with corresponding numerical labels below
   Title Display:  Merged cell showing “𓄀 PhenLabs” branding plus currently selected metric name in monospace font
   Large Value Display:  Current metric value shown with two decimal precision in large text directly below title
   Table Structure:  Professional table with customizable background color, text color, and transparency for minimal chart obstruction
 
 📖 Usage Guidelines 
 Metric Selection 
 
   Select Metric:  Default: RSI | Options: RSI, Stochastic, Volume %, ATR Percentile, Momentum, MFI (Money Flow), CCI (Commodity Channel), Williams %R, Volatility Rank, Trend Strength, Choppiness Index, Volume Trend, Price Distance | Choose the technical indicator you want to display on the gauge based on your current analytical needs
 
 RSI Settings 
 
   RSI Length:  Default: 14 | Range: 1+ | Controls the lookback period for RSI calculation, shorter periods increase sensitivity to recent price changes
 
 Stochastic Settings 
 
   Stochastic Length:  Default: 14 | Range: 1+ | Lookback period for stochastic calculation comparing close to high-low range
   Stochastic Smooth:  Default: 3 | Range: 1+ | Smoothing period applied to raw stochastic value to reduce noise and false signals
 
 Volume Settings 
 
   Volume MA Length:  Default: 20 | Range: 1+ | Moving average period used to calculate average volume for comparison with current volume
   Volume Trend Length:  Default: 20 | Range: 5+ | Period for calculating cumulative directional volume flow trend
 
 ATR and Volatility Settings 
 
   ATR Length:  Default: 14 | Range: 1+ | Period for Average True Range calculation used in ATR Percentile metric
   ATR Percentile Lookback:  Default: 100 | Range: 20+ | Historical range used to determine current ATR position as percentile
   Volatility Rank Lookback (Days):  Default: 252 | Range: 50+ | Extended lookback period for Volatility Rank metric using close-to-close volatility
 
 Momentum and Trend Settings 
 
   Momentum Length:  Default: 10 | Range: 1+ | Lookback period for rate of change calculation in Momentum metric
   Trend Strength Length:  Default: 20 | Range: 5+ | Period for directional movement calculations in ADX-style Trend Strength metric
 
 Advanced Metric Settings 
 
   MFI Length:  Default: 14 | Range: 1+ | Lookback period for Money Flow Index calculation combining price and volume
   CCI Length:  Default: 20 | Range: 1+ | Period for Commodity Channel Index statistical deviation calculation
   Williams %R Length:  Default: 14 | Range: 1+ | Lookback period for Williams %R high-low range analysis
   Choppiness Index Length:  Default: 14 | Range: 5+ | Period for calculating market choppiness versus trending behavior
   Price Distance MA Length:  Default: 50 | Range: 10+ | Moving average period used for Price Distance standard deviation calculation
 
 Visual Customization 
 
   Position:  Default: Top Right | Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Right | Controls gauge placement on chart for optimal workspace organization
   Size:  Default: Normal | Options: Small, Normal, Large | Adjusts overall gauge dimensions and text size for different monitor resolutions and preferences
   Low Zone Color (0-40):  Default: Green (#00FF00) | Customize color for low/oversold zone of gauge arc
   Medium Zone Color (40-70):  Default: Yellow (#FFFF00) | Customize color for neutral/medium zone of gauge arc
   High Zone Color (70-100):  Default: Red (#FF0000) | Customize color for high/overbought zone of gauge arc
   Background Color:  Default: Semi-transparent dark gray | Customize gauge background for contrast and chart integration
   Text Color:  Default: White (#FFFFFF) | Customize all text elements including title, value, and scale labels
 
 ✅ Best Use Cases 
 
  Quick visual assessment of market conditions when you need instant feedback on whether an asset is in extreme territory across multiple analytical dimensions
  Workspace organization for traders who monitor multiple indicators but want to reduce chart clutter and visual complexity
  Metric comparison by switching between different indicators while maintaining consistent visual interpretation through the 0-100 normalization
  Overbought/oversold identification using RSI, Stochastic, Williams %R, or MFI depending on whether you prefer price-only or volume-weighted analysis
  Volume analysis through Volume %, Volume Trend, or MFI to confirm price movements with corresponding volume characteristics
  Volatility monitoring using ATR Percentile or Volatility Rank to identify expansion/contraction cycles and adjust position sizing
  Trend vs range identification by comparing Trend Strength (high values = trending) against Choppiness Index (high values = ranging)
  Statistical over-extension detection using CCI or Price Distance to identify when price has deviated significantly from normal behavior
  Multi-timeframe analysis by duplicating the gauge on different timeframe charts to compare metric readings across time horizons
  Educational purposes for new traders learning to interpret technical indicators through consistent visual representation
 
 ⚠️ Limitations 
 
  The gauge displays only one metric at a time, requiring manual switching to compare different indicators rather than simultaneous multi-metric viewing
  The 0-100 normalization, while providing consistency, may obscure the raw values and specific nuances of each underlying indicator
  Table-based visualization cannot be exported or saved as an image separately from the full chart screenshot
  Optimal parameter settings vary by asset type, timeframe, and market conditions, requiring user experimentation for best results
 
 💡 What Makes This Unique 
 
   Unified Multi-Metric Interface:  The only gauge-style indicator offering 13 distinct metrics through a single interface, eliminating the need for multiple oscillator panels
   Non-Overlapping Analytics:  Each metric provides genuinely unique insights—MFI combines volume with price, CCI measures statistical deviation, Volatility Rank uses extended lookback, Trend Strength quantifies directional movement, and Choppiness Index measures ranging behavior
   Universal Normalization System:  All metrics standardized to 0-100 scale using indicator-appropriate algorithms that preserve statistical meaning while enabling consistent visual interpretation
   Professional Visual Design:  Semi-circular gauge with 21 arc segments, precision needle positioning, color-coded zones, and clean table implementation that maintains clarity across all chart configurations
   Extensive Customization:  Independent parameter controls for each metric, five position options, three size presets, and full color customization for seamless workspace integration
 
 🔬 How It Works 
 1. Metric Calculation Phase: 
 
  All 13 metrics are calculated simultaneously on every bar using their respective algorithms with user-defined parameters
  Each metric applies its own specific calculation method—RSI uses average gains vs losses, Stochastic compares close to high-low range, MFI incorporates typical price and volume, CCI measures deviation from statistical mean, ATR calculates true range, directional indicators measure up/down movement, and statistical metrics analyze price relationships
 
 2. Normalization Process: 
 
  Each calculated metric is converted to a standardized 0-100 scale using indicator-appropriate transformations
  Some metrics are naturally 0-100 (RSI, Stochastic, MFI, Williams %R), while others require scaling—CCI transforms from ±200 range, Momentum centers around 50, Volume ratio caps at 2x for 100, ATR and Volatility Rank calculate percentile positions, and Price Distance scales by standard deviations
 
 3. Gauge Rendering: 
 
  The selected metric’s normalized value determines the needle position across 21 arc segments spanning 0-100
  Each arc segment receives its color based on position—segments 0-8 are green zone, segments 9-14 are yellow zone, segments 15-20 are red zone
  The needle indicator (▼) appears in row 5 at the column corresponding to the current metric value, providing precise visual feedback
 
 4. Table Construction: 
 
  The gauge uses TradingView’s table system with merged cells for title and value display, ensuring consistent positioning regardless of chart configuration
  Rows are allocated as follows: Row 0 merged for title, Row 1 merged for large value display, Row 2 for spacing, Rows 3-4 for the semi-circular arc with curved shaping, Row 5 for needle indicator, Row 6 for scale markers, Row 7 for numerical labels at 0/25/50/75/100
  All visual elements update on every bar when barstate.islast is true, ensuring real-time accuracy without performance impact
 
 💡 Note: 
This indicator is designed for visual analysis and market condition assessment, not as a standalone trading system. For best results, combine gauge readings with price action analysis, support and resistance levels, and broader market context. Parameter optimization is recommended based on your specific trading timeframe and asset class. The gauge works on all timeframes but may require different parameter settings for intraday versus daily/weekly analysis. Consider using multiple instances of the gauge set to different metrics for comprehensive market analysis without switching between settings.






















