TrendLineScalping-BasicDear Traders,
Here is the thought which came to my mind on the trendline break scalping. sometimes during the trade we do plot trendlines and we do anticipate for the line to break and take a trade. with the same thing in mind I had created this basic script to help you and other to create based on the logic used in the script.
This is just a logic based script and doesn't do any kind of wonders. Hence you may use it as necessary.
Regards....
In den Scripts nach "scalp" suchen
Nifty 1m EMA Pullback Scalper Signals
### **Master the Market with the Sniper Scalping Strategy for Nifty (1-Minute Timeframe)**  
Unlock the power of precision trading with this expertly crafted **Sniper Scalping Strategy**, designed specifically for the Nifty index on a lightning-fast 1-minute timeframe. Perfect for traders who thrive on quick decisions and small, consistent profits, this strategy combines multiple indicators to deliver razor-sharp entries and exits—ideal for India’s dynamic market.
#### **Why This Strategy Stands Out**  
- **Pinpoint Accuracy**: Harness the synergy of the **5 EMA and 10 EMA crossover** to lock onto the short-term trend, while the **Stochastic Oscillator (14,3,3)** times your entries and exits with surgical precision.  
- **Fast and Effective**: Tailored for the 1-minute chart, this strategy capitalizes on Nifty’s volatility, targeting **10-point profits** with a tight **5-point stop-loss**—keeping your risk low and rewards high.  
- **Trend + Momentum**: Blend trend-following (EMAs) with momentum signals (Stochastic) for a robust, multi-dimensional approach that cuts through market noise.
#### **How It Works**  
- **Buy Signal**: Enter long when the 5 EMA crosses above the 10 EMA and the Stochastic rises above 20—catching the uptrend at its sweet spot.  
- **Sell Signal**: Go short when the 5 EMA dips below the 10 EMA and the Stochastic falls below 80—riding the downtrend with confidence.  
- **Exit Like a Pro**: Take profits at 10 points or when the Stochastic hits overbought/oversold extremes, ensuring you’re in and out before the market shifts.
#### **Perfect for Nifty Scalpers**  
Built for the fast-paced world of Nifty trading, this strategy shines during high-volatility sessions like the market open or global overlaps. Whether you’re a beginner honing your skills or a seasoned trader seeking consistency, the Sniper Scalping Strategy offers a clear, actionable framework to scalp profits with discipline and precision.
#### **Get Started**  
Test it in a demo account, refine it to your style, and watch your scalping game soar. Trade smart, stay focused, and let the Sniper Scalping Strategy turn Nifty’s 1-minute moves into your edge!
 
RSI Divergence Strategywhat is "RSI Divergence Strategy"?
it is a RSI strategy based this indicator:   
what it does?
it gives buy or sell signals according to RSI Divergences. it also has different variables such as "take profit", "stop loss" and trailing stop loss.
how it does it? 
it uses the "RSI Divergence" indicator to give signal. For detailed information on how it works, you can visit the link above. The quantity of the inputs is proportional to the rsi values. Long trades are directly traded with "RSI" value, while short poses are traded with "100-RSI" value.
How to use it?
The default settings are for scalp strategy but can be used for any type of trading strategy. you can develop different strategies by changing the sections. It is quite simple to use.
RSI length is length of RSİ
source is source of RSİ
RSİ Divergence lenght is length of line on the RSI
The "take profit", "stop" and "trailing stop" parts used in the "buy" group only affect buys. The "sell" group is similarly independent of the variables in the "buy" group.
The "zoom" section is used to enlarge or reduce the indicator. it only changes the appearance, it does not affect the results of the strategy.
ATAI Volume analysis with price action V 1.00ATAI Volume Analysis with Price Action  
 1. Introduction 
 1.1 Overview 
ATAI Volume Analysis with Price Action is a composite indicator designed for TradingView. It combines  per‑side volume data —that is, how much buying and selling occurs during each bar—with standard price‑structure elements such as swings, trend lines and support/resistance. By blending these elements the script aims to help a trader understand which side is in control, whether a breakout is genuine, when markets are potentially exhausted and where liquidity providers might be active.
The indicator is built around TradingView’s up/down volume feed accessed via the TradingView/ta/10 library. The following excerpt from the script illustrates how this feed is configured:
import TradingView/ta/10 as tvta
// Determine lower timeframe string based on user choice and chart resolution
string lower_tf_breakout = use_custom_tf_input ? custom_tf_input :
     timeframe.isseconds  ? "1S" :
     timeframe.isintraday ? "1"  :
     timeframe.isdaily    ? "5"  : "60"
// Request up/down volume (both positive)
  = tvta.requestUpAndDownVolume(lower_tf_breakout)
 Lower‑timeframe selection.  If you do not specify a custom lower timeframe, the script chooses a default based on your chart resolution:  1 second  for second charts,  1 minute  for intraday charts,  5 minutes  for daily charts and  60 minutes  for anything longer. Smaller intervals provide a more precise view of buyer and seller flow but cover fewer bars. Larger intervals cover more history at the cost of granularity.
 Tick vs. time bars.  Many trading platforms offer  a tick / intrabar calculation  mode that updates an indicator on every trade rather than only on bar close. Turning on one‑tick calculation will give the most accurate split between buy and sell volume on the current bar, but it typically reduces the amount of historical data available. For the highest fidelity in live trading you can enable this mode; for studying longer histories you might prefer to disable it. When volume data is completely unavailable (some instruments and crypto pairs), all modules that rely on it will remain silent and only the price‑structure backbone will operate.
  
 Figure caption,  Each panel shows the indicator’s info table for a different volume sampling interval. In the left chart, the parentheses “(5)” beside the buy‑volume figure denote that the script is aggregating volume over five‑minute bars; the center chart uses “(1)” for one‑minute bars; and the right chart uses “(1T)” for a one‑tick interval. These notations tell you which lower timeframe is driving the volume calculations. Shorter intervals such as 1 minute or 1 tick provide finer detail on buyer and seller flow, but they cover fewer bars; longer intervals like five‑minute bars smooth the data and give more history.
   
 Figure caption, The values in parentheses inside the info table come directly from the Breakout — Settings. The first row shows the custom lower-timeframe used for volume calculations (e.g., “(1)”, “(5)”, or “(1T)”)
 2. Price‑Structure Backbone 
Even without volume, the indicator draws structural features that underpin all other modules. These features are always on and serve as the reference levels for subsequent calculations.
 2.1 What it draws 
•	 Pivots:  Swing  highs  and  lows  are detected using the pivot_left_input and pivot_right_input settings. A pivot high is identified when the high recorded pivot_right_input bars ago exceeds the highs of the preceding pivot_left_input bars and is also higher than (or equal to) the highs of the subsequent pivot_right_input bars; pivot lows follow the inverse logic. The indicator retains only a fixed number of such pivot points per side, as defined by point_count_input, discarding the oldest ones when the limit is exceeded.
•	 Trend lines:  For each side, the indicator connects the earliest stored pivot and the most recent pivot (oldest high to newest high, and oldest low to newest low). When a new pivot is added or an old one drops out of the lookback window, the line’s endpoints—and therefore its slope—are recalculated accordingly.
•	 Horizontal support/resistance:  The highest high and lowest low within the lookback window defined by length_input are plotted as horizontal dashed lines. These serve as short‑term support and resistance levels.
•	 Ranked labels:  If showPivotLabels is enabled the indicator prints labels such as “HH1”, “HH2”, “LL1” and “LL2” near each pivot. The ranking is determined by comparing the price of each stored pivot: HH1 is the highest high, HH2 is the second highest, and so on; LL1 is the lowest low, LL2 is the second lowest. In the case of equal prices the newer pivot gets the better rank. Labels are offset from price using  ½ × ATR × label_atr_multiplier,  with the ATR length defined by label_atr_len_input. A dotted connector links each label to the candle’s wick.
 2.2 Key settings 
•	 length_input:  Window length for finding the highest and lowest values and for determining trend line endpoints. A larger value considers more history and will generate longer trend lines and S/R levels.
•	 pivot_left_input, pivot_right_input:  Strictness of swing confirmation. Higher values require more bars on either side to form a pivot; lower values create more pivots but may include minor swings.
•	 point_count_input:  How many pivots are kept in memory on each side. When new pivots exceed this number the oldest ones are discarded.
•	 label_atr_len_input and label_atr_multiplier:  Determine how far pivot labels are offset from the bar using ATR. Increasing the multiplier moves labels further away from price.
•	 Styling inputs  for trend lines, horizontal lines and labels (color, width and line style).
  
 Figure caption,  The chart illustrates how the indicator’s price‑structure backbone operates. In this daily example, the script scans for bars where the high (or low) pivot_right_input bars back is higher (or lower) than the preceding pivot_left_input bars and higher or lower than the subsequent pivot_right_input bars; only those bars are marked as pivots.
     These pivot points are stored and ranked: the highest high is labelled “HH1”, the second‑highest “HH2”, and so on, while lows are marked “LL1”, “LL2”, etc. Each label is offset from the price by half of an ATR‑based distance to keep the chart clear, and a dotted connector links the label to the actual candle.
     The red diagonal line connects the earliest and latest stored high pivots, and the green line does the same for low pivots; when a new pivot is added or an old one drops out of the lookback window, the end‑points and slopes adjust accordingly. Dashed horizontal lines mark the highest high and lowest low within the current lookback window, providing visual support and resistance levels. Together, these elements form the structural backbone that other modules reference, even when volume data is unavailable.
 3. Breakout Module 
 3.1 Concept 
This module confirms that a price break beyond a recent high or low is supported by a genuine shift in buying or selling pressure. It requires price to clear the highest high (“HH1”) or lowest low (“LL1”) and, simultaneously, that the winning side shows a significant volume spike, dominance and ranking. Only  when all volume and price conditions pass  is a breakout labelled.
 3.2 Inputs 
•	 lookback_break_input :  This controls the number of bars used to compute moving averages and percentiles for volume. A larger value smooths the averages and percentiles but makes the indicator respond more slowly.
•	 vol_mult_input : The “spike” multiplier; the current buy or sell volume must be at least this multiple of its moving average over the lookback window to qualify as a breakout.
•	 rank_threshold_input (0–100) :  Defines a volume percentile cutoff: the current buyer/seller volume must be in the top (100−threshold)%(100−threshold)% of all volumes within the lookback window. For example, if set to 80, the current volume must be in the top 20 % of the lookback distribution.
•	 ratio_threshold_input (0–1) :  Specifies the minimum share of total volume that the buyer (for a bullish breakout) or seller (for bearish) must hold on the current bar; the code also requires that the cumulative buyer volume over the lookback window exceeds the seller volume (and vice versa for bearish cases).
•	 use_custom_tf_input / custom_tf_input :  When enabled, these inputs override the automatic choice of lower timeframe for up/down volume; otherwise the script selects a sensible default based on the chart’s timeframe.
•	 Label appearance settings :  Separate options control the ATR-based offset length, offset multiplier, label size and colors for bullish and bearish breakout labels, as well as the connector style and width.
 3.3 Detection logic 
 1.	Data preparation : Retrieve per‑side volume from the lower timeframe and take absolute values. Build rolling arrays of the last lookback_break_input values to compute simple moving averages (SMAs), cumulative sums and percentile ranks for buy and sell volume.
 2.	Volume spike:  A spike is flagged when the current buy (or, in the bearish case, sell) volume is at least vol_mult_input times its SMA over the lookback window.
 3.	Dominance test:  The buyer’s (or seller’s) share of total volume on the current bar must meet or exceed ratio_threshold_input. In addition, the cumulative sum of buyer volume over the window must exceed the cumulative sum of seller volume for a bullish breakout (and vice versa for bearish). A separate requirement checks the sign of delta: for bullish breakouts delta_breakout must be non‑negative; for bearish breakouts it must be non‑positive.
 4.	Percentile rank:  The current volume must fall within the top (100 – rank_threshold_input) percent of the lookback distribution—ensuring that the spike is unusually large relative to recent history.
 5.	Price test:  For a bullish signal, the closing price must close above the highest pivot (HH1); for a bearish signal, the close must be below the lowest pivot (LL1).
 6.	Labeling:  When all conditions above are satisfied, the indicator prints “Breakout ↑” above the bar (bullish) or “Breakout ↓” below the bar (bearish). Labels are offset using half of an ATR‑based distance and linked to the candle with a dotted connector.
  
 Figure caption,  (Breakout ↑ example) , On this daily chart, price pushes above the red trendline and the highest prior pivot (HH1). The indicator recognizes this as a valid breakout because the buyer‑side volume on the lower timeframe spikes above its recent moving average and buyers dominate the volume statistics over the lookback period; when combined with a close above HH1, this satisfies the breakout conditions. The “Breakout ↑” label appears above the candle, and the info table highlights that up‑volume is elevated relative to its 11‑bar average, buyer share exceeds the dominance threshold and money‑flow metrics support the move.
  
 Figure caption,  In this daily example, price breaks below the lowest pivot (LL1) and the lower green trendline. The indicator identifies this as a bearish breakout because sell‑side volume is sharply elevated—about twice its 11‑bar average—and sellers dominate both the bar and the lookback window. With the close falling below LL1, the script triggers a Breakout ↓ label and marks the corresponding row in the info table, which shows strong down volume, negative delta and a seller share comfortably above the dominance threshold.
 4. Market Phase Module (Volume Only) 
 4.1 Concept 
Not all markets trend; many cycle between periods of  accumulation  (buying pressure building up),  distribution  (selling pressure dominating) and  neutral  behavior. This module classifies the current bar into one of these phases  without using ATR , relying solely on buyer and seller volume statistics. It looks at net flows, ratio changes and an OBV‑like cumulative line with dual‑reference (1‑ and 2‑bar) trends. The result is displayed both as on‑chart labels and in a dedicated row of the info table.
 4.2 Inputs 
•	 phase_period_len:  Number of bars over which to compute sums and ratios for phase detection.
•	 phase_ratio_thresh : Minimum buyer share (for accumulation) or minimum seller share (for distribution, derived as 1 − phase_ratio_thresh) of the total volume.
•	 strict_mode:  When enabled, both the 1‑bar and 2‑bar changes in each statistic must agree on the direction (strict confirmation); when disabled, only one of the two references needs to agree (looser confirmation).
•	 Color customisation  for info table cells and label styling for accumulation and distribution phases, including ATR length, multiplier, label size, colors and connector styles.
•	 show_phase_module:  Toggles the entire phase detection subsystem.
•	 show_phase_labels:  Controls whether on‑chart labels are drawn when accumulation or distribution is detected.
 4.3 Detection logic 
The module computes three families of statistics over the volume window defined by phase_period_len:
 1.	Net sum (buyers minus sellers):  net_sum_phase = Σ(buy) − Σ(sell). A positive value indicates a predominance of buyers. The code also computes the differences between the current value and the values 1 and 2 bars ago (d_net_1, d_net_2) to derive up/down trends.
 2.	Buyer ratio:  The instantaneous ratio TF_buy_breakout / TF_tot_breakout and the window ratio Σ(buy) / Σ(total). The current ratio must exceed phase_ratio_thresh for accumulation or fall below 1 − phase_ratio_thresh for distribution. The first and second differences of the window ratio (d_ratio_1, d_ratio_2) determine trend direction.
 3.	OBV‑like cumulative net flow:  An on‑balance volume analogue obv_net_phase increments by TF_buy_breakout − TF_sell_breakout each bar. Its differences over the last 1 and 2 bars (d_obv_1, d_obv_2) provide trend clues.
The algorithm then combines these signals:
•	For  strict mode , accumulation requires: (a) current ratio ≥ threshold, (b) cumulative ratio ≥ threshold, (c) both ratio differences ≥ 0, (d) net sum differences ≥ 0, and (e) OBV differences ≥ 0. Distribution is the mirror case.
•	For  loose mode , it relaxes the directional tests: either the 1‑ or the 2‑bar difference needs to agree in each category.
If all conditions for accumulation are satisfied, the phase is labelled  “Accumulation” ; if all conditions for distribution are satisfied, it’s labelled  “Distribution” ; otherwise the phase is  “Neutral” .
 4.4 Outputs 
•	 Info table row : Row 8 displays “Market Phase (Vol)” on the left and the detected phase (Accumulation, Distribution or Neutral) on the right. The text colour of both cells matches a user‑selectable palette (typically green for accumulation, red for distribution and grey for neutral).
•	 On‑chart labels : When show_phase_labels is enabled and a phase persists for at least one bar, the module prints a label above the bar ( “Accum” ) or below the bar ( “Dist” ) with a dashed or dotted connector. The label is offset using ATR based on phase_label_atr_len_input and phase_label_multiplier and is styled according to user preferences.
  
 Figure caption, The chart displays a red “Dist” label above a particular bar, indicating that the accumulation/distribution module identified a distribution phase at that point. The detection is based on seller dominance: during that bar, the net buyer-minus-seller flow and the OBV‑style cumulative flow were trending down, and the buyer ratio had dropped below the preset threshold. These conditions satisfy the distribution criteria in strict mode. The label is placed above the bar using an ATR‑based offset and a dashed connector. By the time of the current bar in the screenshot, the phase indicator shows “Neutral” in the info table—signaling that neither accumulation nor distribution conditions are currently met—yet the historical “Dist” label remains to mark where the prior distribution phase began.
  
 Figure caption, In this example the market phase module has signaled an Accumulation phase. Three bars before the current candle, the algorithm detected a shift toward buyers: up‑volume exceeded its moving average, down‑volume was below average, and the buyer share of total volume climbed above the threshold while the on‑balance net flow and cumulative ratios were trending upwards. The blue “Accum” label anchored below that bar marks the start of the phase; it remains on the chart because successive bars continue to satisfy the accumulation conditions. The info table confirms this: the “Market Phase (Vol)” row still reads Accumulation, and the ratio and sum rows show buyers dominating both on the current bar and across the lookback window.
 5. OB/OS Spike Module 
 5.1 What overbought/oversold means here 
In many markets, a rapid extension up or down is often followed by a period of consolidation or reversal. The indicator interprets overbought (OB) conditions as abnormally strong selling risk at or after a price rally and oversold (OS) conditions as unusually strong buying risk after a decline. Importantly, these are not direct trade signals; rather they flag areas where caution or contrarian setups may be appropriate.
 5.2 Inputs 
•	 minHits_obos (1–7):  Minimum number of oscillators that must agree on an overbought or oversold condition for a label to print.
•	 syncWin_obos:  Length of a small sliding window over which oscillator votes are smoothed by taking the maximum count observed. This helps filter out choppy signals.
•	 Volume spike criteria:  kVolRatio_obos (ratio of current volume to its SMA) and zVolThr_obos (Z‑score threshold) across volLen_obos. Either threshold can trigger a spike.
•	 Oscillator toggles and periods:  Each of RSI, Stochastic (K and D), Williams %R, CCI, MFI, DeMarker and Stochastic RSI can be independently enabled; their periods are adjustable.
•	 Label appearance:  ATR‑based offset, size, colors for OB and OS labels, plus connector style and width.
 5.3 Detection logic 
 1.	Directional volume spikes:  Volume spikes are computed separately for buyer and seller volumes. A sell volume spike (sellVolSpike) flags a potential OverBought bar, while a buy volume spike (buyVolSpike) flags a potential OverSold bar. A spike occurs when the respective volume exceeds kVolRatio_obos times its simple moving average over the window or when its Z‑score exceeds zVolThr_obos.
 2.	Oscillator votes:  For each enabled oscillator, calculate its overbought and oversold state using standard thresholds (e.g., RSI ≥ 70 for OB and ≤ 30 for OS; Stochastic %K/%D ≥ 80 for OB and ≤ 20 for OS; etc.). Count how many oscillators vote for OB and how many vote for OS.
 3.	Minimum hits:  Apply the smoothing window syncWin_obos to the vote counts using a maximum‑of‑last‑N approach. A candidate bar is only considered if the smoothed OB hit count ≥ minHits_obos (for OverBought) or the smoothed OS hit count ≥ minHits_obos (for OverSold).
 4.	Tie‑breaking:  If both OverBought and OverSold spike conditions are present on the same bar, compare the smoothed hit counts: the side with the higher count is selected; ties default to OverBought.
 5.	Label printing:  When conditions are met, the bar is labelled as “OverBought X/7” above the candle or “OverSold X/7” below it. “X” is the number of oscillators confirming, and the bracket lists the abbreviations of contributing oscillators. Labels are offset from price using half of an ATR‑scaled distance and can optionally include a dotted or dashed connector line.
  
 Figure caption,  In this chart the overbought/oversold module has flagged an OverSold signal. A sell‑off from the prior highs brought price down to the lower trend‑line, where the bar marked “OverSold 3/7 DeM” appears. This label indicates that on that bar the module detected a buy‑side volume spike and that at least three of the seven enabled oscillators—in this case including the DeMarker—were in oversold territory. The label is printed below the candle with a dotted connector, signaling that the market may be temporarily exhausted on the downside. After this oversold print, price begins to rebound towards the upper red trend‑line and higher pivot levels.
  
 Figure caption, This example shows the overbought/oversold module in action. In the left‑hand panel you can see the OB/OS settings where each oscillator  (RSI, Stochastic, Williams %R, CCI, MFI, DeMarker and Stochastic RSI)  can be enabled or disabled, and the ATR length and label offset multiplier adjusted. On the chart itself, price has pushed up to the descending red trendline and triggered an “OverBought 3/7” label. That means the sell‑side volume spiked relative to its average and three out of the seven enabled oscillators were in overbought territory. The label is offset above the candle by half of an ATR and connected with a dashed line, signaling that upside momentum may be overextended and a pause or pullback could follow.
 6. Buyer/Seller Trap Module 
 6.1 Concept 
A bull trap occurs when price appears to break above resistance, attracting buyers, but fails to sustain the move and quickly reverses, leaving a long upper wick and trapping late entrants. A bear trap is the opposite: price breaks below support, lures in sellers, then snaps back, leaving a long lower wick and trapping shorts. This module detects such traps by looking for price structure sweeps, order‑flow mismatches and dominance reversals. It uses a scoring system to differentiate risk from confirmed traps.
 6.2 Inputs 
•	 trap_lookback_len:  Window length used to rank extremes and detect sweeps.
•	 trap_wick_threshold:  Minimum proportion of a bar’s range that must be wick (upper for bull traps, lower for bear traps) to qualify as a sweep.
•	 trap_score_risk:  Minimum aggregated score required to flag a trap risk. (The code defines a trap_score_confirm input, but confirmation is actually based on price reversal rather than a separate score threshold.)
•	 trap_confirm_bars:  Maximum number of bars allowed for price to reverse and confirm the trap. If price does not reverse in this window, the risk label will expire or remain unconfirmed.
•	 Label settings:  ATR length and multiplier for offsetting, size, colours for risk and confirmed labels, and connector style and width. Separate settings exist for bull and bear traps.
•	 Toggle inputs:  show_trap_module and show_trap_labels enable the module and control whether labels are drawn on the chart.
 6.3 Scoring logic 
The module assigns points to several conditions and sums them to determine whether a trap risk is present. For bull traps, the score is built from the following (bear traps mirror the logic with highs and lows swapped):
 1.	Sweep (2 points):  Price trades above the high pivot (HH1) but fails to close above it and leaves a long upper wick at least trap_wick_threshold × range. For bear traps, price dips below the low pivot (LL1), fails to close below and leaves a long lower wick.
 2.	Close break (1 point):  Price closes beyond HH1 or LL1 without leaving a long wick.
 3.	Candle/delta mismatch (2 points):  The candle closes bullish yet the order flow delta is negative or the seller ratio exceeds 50%, indicating hidden supply. Conversely, a bearish close with positive delta or buyer dominance suggests hidden demand.
 4.	Dominance inversion (2 points):  The current bar’s buyer volume has the highest rank in the lookback window while cumulative sums favor sellers, or vice versa.
 5.	Low‑volume break (1 point):  Price crosses the pivot but total volume is below its moving average.
The total score for each side is compared to trap_score_risk. If the score is high enough, a  “Bull Trap Risk”  or  “Bear Trap Risk”  label is drawn, offset from the candle by half of an ATR‑scaled distance using a dashed outline. If, within trap_confirm_bars, price reverses beyond the opposite level—drops back below the high pivot for bull traps or rises above the low pivot for bear traps—the label is upgraded to a solid  “Bull Trap”  or  “Bear Trap” . In this version of the code, there is no separate score threshold for confirmation: the variable trap_score_confirm is unused; confirmation depends solely on a successful price reversal within the specified number of bars.
  
 Figure caption, In this example the trap module has flagged a Bear Trap Risk. Price initially breaks below the most recent low pivot (LL1), but the bar closes back above that level and leaves a long lower wick, suggesting a failed push lower. Combined with a mismatch between the candle direction and the order flow (buyers regain control) and a reversal in volume dominance, the aggregate score exceeds the risk threshold, so a dashed “Bear Trap Risk” label prints beneath the bar. The green and red trend lines mark the current low and high pivot trajectories, while the horizontal dashed lines show the highest and lowest values in the lookback window. If, within the next few bars, price closes decisively above the support, the risk label would upgrade to a solid “Bear Trap” label.
  
 Figure caption, In this example the trap module has identified both ends of a price range. Near the highs, price briefly pushes above the descending red trendline and the recent pivot high, but fails to close there and leaves a noticeable upper wick. That combination of a sweep above resistance and order‑flow mismatch generates a Bull Trap Risk label with a dashed outline, warning that the upside break may not hold. At the opposite extreme, price later dips below the green trendline and the labelled low pivot, then quickly snaps back and closes higher. The long lower wick and subsequent price reversal upgrade the previous bear‑trap risk into a confirmed Bear Trap (solid label), indicating that sellers were caught on a false breakdown. Horizontal dashed lines mark the highest high and lowest low of the lookback window, while the red and green diagonals connect the earliest and latest pivot highs and lows to visualize the range.
 7. Sharp Move Module 
 7.1 Concept 
Markets sometimes display absorption or climax behavior—periods when one side steadily gains the upper hand before price breaks out with a sharp move. This module evaluates several order‑flow and volume conditions to anticipate such moves. Users can choose how many conditions must be met to flag a risk and how many (plus a price break) are required for confirmation.
 7.2 Inputs 
 •	sharp Lookback:  Number of bars in the window used to compute moving averages, sums, percentile ranks and reference levels.
 •	sharpPercentile:  Minimum percentile rank for the current side’s volume; the current buy (or sell) volume must be greater than or equal to this percentile of historical volumes over the lookback window.
 •	sharpVolMult:  Multiplier used in the volume climax check. The current side’s volume must exceed this multiple of its average to count as a climax.
 •	sharpRatioThr:  Minimum dominance ratio (current side’s volume relative to the opposite side) used in both the instant and cumulative dominance checks.
 •	sharpChurnThr:  Maximum ratio of a bar’s range to its ATR for absorption/churn detection; lower values indicate more absorption (large volume in a small range).
 •	sharpScoreRisk:  Minimum number of conditions that must be true to print a risk label.
 •	sharpScoreConfirm:  Minimum number of conditions plus a price break required for confirmation.
 •	sharpCvdThr:  Threshold for cumulative delta divergence versus price change (positive for bullish accumulation, negative for bearish distribution).
 •	Label settings:  ATR length (sharpATRlen) and multiplier (sharpLabelMult) for positioning labels, label size, colors and connector styles for bullish and bearish sharp moves.
 •	Toggles:  enableSharp activates the module; show_sharp_labels controls whether labels are drawn.
 7.3 Conditions (six per side) 
For each side, the indicator computes six boolean conditions and sums them to form a score:
 1.	Dominance (instant and cumulative): 
–	 Instant dominance:  current buy volume ≥ sharpRatioThr × current sell volume.
–	 Cumulative dominance:  sum of buy volumes over the window ≥ sharpRatioThr × sum of sell volumes (and vice versa for bearish checks).
 2.	Accumulation/Distribution divergence:  Over the lookback window, cumulative delta rises by at least sharpCvdThr while price fails to rise (bullish), or cumulative delta falls by at least sharpCvdThr while price fails to fall (bearish).
 3.	Volume climax:  The current side’s volume is ≥ sharpVolMult × its average and the product of volume and bar range is the highest in the lookback window.
 4.	Absorption/Churn:  The current side’s volume divided by the bar’s range equals the highest value in the window and the bar’s range divided by ATR ≤ sharpChurnThr (indicating large volume within a small range).
 5.	Percentile rank:  The current side’s volume percentile rank is ≥ sharp Percentile.
 6.	Mirror logic for sellers:  The above checks are repeated with buyer and seller roles swapped and the price break levels reversed.
Each condition that passes contributes one point to the corresponding side’s score (0 or 1). Risk and confirmation thresholds are then applied to these scores.
 7.4 Scoring and labels 
 •	Risk:  If scoreBull ≥ sharpScoreRisk, a “Sharp ↑ Risk” label is drawn above the bar. If scoreBear ≥ sharpScoreRisk, a “Sharp ↓ Risk” label is drawn below the bar.
 •	Confirmation:  A risk label is upgraded to “Sharp ↑” when scoreBull ≥ sharpScoreConfirm and the bar closes above the highest recent pivot (HH1); for bearish cases, confirmation requires scoreBear ≥ sharpScoreConfirm and a close below the lowest pivot (LL1).
 •	Label positioning:  Labels are offset from the candle by ATR × sharpLabelMult (full ATR times multiplier), not half, and may include a dashed or dotted connector line if enabled.
  
 Figure caption, In this chart both bullish and bearish sharp‑move setups have been flagged. Earlier in the range, a  “Sharp ↓ Risk”  label appears beneath a candle: the sell‑side score met the risk threshold, signaling that the combination of strong sell volume, dominance and absorption within a narrow range suggested a potential sharp decline. The price did not close below the lower pivot, so this label remains a “risk” and no confirmation occurred. Later, as the market recovered and volume shifted back to the buy side, a  “Sharp ↑ Risk”  label prints above a candle near the top of the channel. Here, buy‑side dominance, cumulative delta divergence and a volume climax aligned, but price has not yet closed above the upper pivot (HH1), so the alert is still a risk rather than a confirmed sharp‑up move.
  
 Figure caption, In this chart a Sharp ↑ label is displayed above a candle, indicating that the sharp move module has confirmed a bullish breakout. Prior bars satisfied the risk threshold — showing buy‑side dominance, positive cumulative delta divergence, a volume climax and strong absorption in a narrow range — and this candle closes above the highest recent pivot, upgrading the earlier “Sharp ↑ Risk” alert to a full Sharp ↑ signal. The green label is offset from the candle with a dashed connector, while the red and green trend lines trace the high and low pivot trajectories and the dashed horizontals mark the highest and lowest values of the lookback window.
 8. Market‑Maker / Spread‑Capture Module 
 8.1 Concept 
Liquidity providers often  “capture the spread”  by buying and selling in almost equal amounts within a very narrow price range. These bars can signal temporary congestion before a move or reflect algorithmic activity. This module flags bars where  both buyer and seller volumes are high,  the price range is only a few ticks and the buy/sell split remains close to 50%. It helps traders spot potential liquidity pockets.
 8.2 Inputs 
 •	scalpLookback:  Window length used to compute volume averages.
 •	scalpVolMult:  Multiplier applied to each side’s average volume; both buy and sell volumes must exceed this multiple.
 •	scalpTickCount:  Maximum allowed number of ticks in a bar’s range (calculated as (high − low) / minTick). A value of 1 or 2 captures ultra‑small bars; increasing it relaxes the range requirement.
 •	scalpDeltaRatio:  Maximum deviation from a perfect 50/50 split. For example, 0.05 means the buyer share must be between 45% and 55%.
 •	Label settings:  ATR length, multiplier, size, colors, connector style and width.
 •	Toggles :  show_scalp_module and show_scalp_labels to enable the module and its labels.
 8.3 Signal 
When, on the current bar, both TF_buy_breakout and TF_sell_breakout exceed scalpVolMult times their respective averages and (high − low)/minTick ≤ scalpTickCount and the buyer share is within scalpDeltaRatio of 50%, the module prints a  “Spread ↔”  label above the bar. The label uses the same ATR offset logic as other modules and draws a connector if enabled.
  
 Figure caption, In this chart the spread‑capture module has identified a potential liquidity pocket. Buyer and seller volumes both spiked above their recent averages, yet the candle’s range measured only a couple of ticks and the buy/sell split stayed close to 50 %. This combination met the module’s criteria, so it printed a grey “Spread ↔” label above the bar. The red and green trend lines link the earliest and latest high and low pivots, and the dashed horizontals mark the highest high and lowest low within the current lookback window.
 9. Money Flow Module 
 9.1 Concept 
To translate volume into a monetary measure, this module multiplies each side’s volume by the closing price. It tracks buying and selling system money default currency on a per-bar basis and sums them over a chosen period. The difference between buy and sell currencies (Δ$) shows net inflow or outflow.
 9.2 Inputs 
 •	mf_period_len_mf:  Number of bars used for summing buy and sell dollars.
 •	Label appearance settings:  ATR length, multiplier, size, colors for up/down labels, and connector style and width.
 •	Toggles:  Use enableMoneyFlowLabel_mf and showMFLabels to control whether the module and its labels are displayed.
 9.3 Calculations 
 •	Per-bar money:  Buy $ = TF_buy_breakout × close; Sell $ = TF_sell_breakout × close. Their difference is Δ$ = Buy $ − Sell $.
 •	Summations:  Over mf_period_len_mf bars, compute Σ Buy $, Σ Sell $ and ΣΔ$ using math.sum().
 •	Info table entries:  Rows 9–13 display these values as texts like “↑ USD 1234 (1M)” or “ΣΔ USD −5678 (14)”, with colors reflecting whether buyers or sellers dominate.
 •	Money flow status:  If Δ$ is positive the bar is marked  “Money flow in” ; if negative,  “Money flow out” ; if zero, “Neutral”. The cumulative status is similarly derived from ΣΔ.Labels print at the bar that changes the sign of ΣΔ, offset using ATR × label multiplier and styled per user preferences.
  
 Figure caption, The chart illustrates a steady rise toward the highest recent pivot (HH1) with price riding between a rising green trend‑line and a red trend‑line drawn through earlier pivot highs. A green Money flow in label appears above the bar near the top of the channel, signaling that net dollar flow turned positive on this bar: buy‑side dollar volume exceeded sell‑side dollar volume, pushing the cumulative sum ΣΔ$ above zero. In the info table, the  “Money flow (bar)”  and  “Money flow Σ”  rows both read In, confirming that the indicator’s money‑flow module has detected an inflow at both bar and aggregate levels, while other modules (pivots, trend lines and support/resistance) remain active to provide structural context.
  
In this example the Money Flow module signals a net outflow. Price has been trending downward: successive high pivots form a falling red trend‑line and the low pivots form a descending green support line. When the latest bar broke below the previous low pivot (LL1), both the bar‑level and cumulative net dollar flow turned negative—selling volume at the close exceeded buying volume and pushed the cumulative Δ$ below zero. The module reacts by printing a red  “Money flow out”  label beneath the candle; the info table confirms that the “Money flow (bar)” and “Money flow Σ” rows both show Out, indicating sustained dominance of sellers in this period.
 10. Info Table 
 10.1 Purpose 
When enabled, the Info Table appears in the lower right of your chart. It summarises key values computed by the indicator—such as buy and sell volume, delta, total volume, breakout status, market phase, and money flow—so you can see at a glance which side is dominant and which signals are active.
 10.2 Symbols 
•	↑ / ↓ — Up (↑) denotes buy volume or money; down (↓) denotes sell volume or money.
•	MA — Moving average. In the table it shows the average value of a series over the lookback period.
•	Σ (Sigma) — Cumulative sum over the chosen lookback period.
•	Δ (Delta) — Difference between buy and sell values.
•	B / S — Buyer and seller share of total volume, expressed as percentages.
•	Ref. Price — Reference price for breakout calculations, based on the latest pivot.
•	Status — Indicates whether a breakout condition is currently active (True) or has failed.
 10.3 Row definitions 
1.	Up volume / MA up volume – Displays current buy volume on the lower timeframe and its moving average over the lookback period.
2.	Down volume / MA down volume – Shows current sell volume and its moving average; sell values are formatted in red for clarity.
3.	Δ / ΣΔ – Lists the difference between buy and sell volume for the current bar and the cumulative delta volume over the lookback period.
4.	Σ / MA Σ (Vol/MA) – Total volume (buy + sell) for the bar, with the ratio of this volume to its moving average; the right cell shows the average total volume.
5.	B/S ratio – Buy and sell share of the total volume: current bar percentages and the average percentages across the lookback period.
6.	Buyer Rank / Seller Rank – Ranks the bar’s buy and sell volumes among the last (n) bars; lower rank numbers indicate higher relative volume.
7.	Σ Buy / Σ Sell – Sum of buy and sell volumes over the lookback window, indicating which side has traded more.
8.	Breakout UP / DOWN – Shows the breakout thresholds (Ref. Price) and whether the breakout condition is active (True) or has failed.
9.	Market Phase (Vol) – Reports the current volume‑only phase: Accumulation, Distribution or Neutral.
10.	Money Flow – The final rows display dollar amounts and status:
–	↑ USD / Σ↑ USD – Buy dollars for the current bar and the cumulative sum over the money‑flow period.
–	↓ USD / Σ↓ USD – Sell dollars and their cumulative sum.
–	Δ USD / ΣΔ USD – Net dollar difference (buy minus sell) for the bar and cumulatively.
–	Money flow (bar) – Indicates whether the bar’s net dollar flow is positive (In), negative (Out) or neutral.
–	Money flow Σ – Shows whether the cumulative net dollar flow across the chosen period is positive, negative or neutral.
  
The chart above shows a sequence of different signals from the indicator. A Bull Trap Risk appears after price briefly pushes above resistance but fails to hold, then a green Accum label identifies an accumulation phase. An upward breakout follows, confirmed by a Money flow in print. Later, a Sharp ↓ Risk warns of a possible sharp downturn; after price dips below support but quickly recovers, a Bear Trap label marks a false breakdown. The highlighted info table in the center summarizes key metrics at that moment, including current and average buy/sell volumes, net delta, total volume versus its moving average, breakout status (up and down), market phase (volume), and bar‑level and cumulative money flow (In/Out).
 11. Conclusion & Final Remarks 
This indicator was developed as a holistic study of market structure and order flow. It brings together several well‑known concepts from technical analysis—breakouts, accumulation and distribution phases, overbought and oversold extremes, bull and bear traps, sharp directional moves, market‑maker spread bars and money flow—into a single Pine Script tool. Each module is based on widely recognized trading ideas and was implemented after consulting reference materials and example strategies, so you can see in real time how these concepts interact on your chart.
A distinctive feature of this indicator is its reliance on per‑side volume: instead of tallying only total volume, it separately measures buy and sell transactions on a lower time frame. This approach gives a clearer view of who is in control—buyers or sellers—and helps filter breakouts, detect phases of accumulation or distribution, recognize potential traps, anticipate sharp moves and gauge whether liquidity providers are active. The money‑flow module extends this analysis by converting volume into currency values and tracking net inflow or outflow across a chosen window.
Although comprehensive, this indicator is intended solely as a guide. It highlights conditions and statistics that many traders find useful, but it does not generate trading signals or guarantee results. Ultimately, you remain responsible for your positions. Use the information presented here to inform your analysis, combine it with other tools and risk‑management techniques, and always make your own decisions when trading.
Smart Money Precision Structure [BullByte]Smart Money Precision Structure  
Advanced Market Structure Analysis Using Institutional Order Flow Concepts
---
 OVERVIEW 
Smart Money Precision Structure (SMPS) is a comprehensive market analysis indicator that combines six analytical frameworks to identify high-probability market structure patterns. The indicator uses multi-dimensional scoring algorithms to evaluate market conditions through institutional order flow concepts, providing traders with professional-grade market analysis.
---
 PURPOSE AND ORIGINALITY 
 Why This Indicator Was Developed 
• Addresses the gap between retail and institutional analysis methods
• Consolidates multiple analysis techniques that professionals use separately
• Automates complex market structure evaluation into actionable insights
• Eliminates the need for multiple indicators by providing comprehensive analysis
 What Makes SMPS Original 
•  Six-Layer Confluence System  - Unique combination of market regime, structure, volume flow, momentum, price action, and adaptive filtering
•  Institutional Pattern Recognition  - Identifies smart money accumulation and distribution patterns
•  Adaptive Intelligence  - Parameters automatically adjust based on detected market conditions
•  Real-Time Market Scoring  - Proprietary algorithm rates market quality from 0-100%
•  Structure Break Detection  - Advanced pivot analysis identifies trend reversals early
---
 HOW IT WORKS - TECHNICAL METHODOLOGY 
 1. Market Regime Analysis Engine 
The indicator evaluates five core market dimensions:
•  Volatility Score  - Measures current volatility against 50-period historical baseline
•  Trend Score  - Analyzes alignment between 8, 21, and 50-period EMAs
•  Momentum Score  - Combines RSI divergence with MACD signal alignment
•  Structure Score  - Evaluates pivot point formation clarity
•  Efficiency Score  - Calculates directional movement efficiency ratio
These scores combine to classify markets into five regimes:
•  TRENDING  - Strong directional movement with aligned indicators
•  RANGING  - Sideways movement with mixed directional signals
•  VOLATILE  - Elevated volatility with unpredictable price swings
•  QUIET  - Low volatility consolidation periods
•  TRANSITIONAL  - Market shifting between different regimes
 2. Market Structure Analysis 
Advanced pivot point analysis identifies:
• Higher Highs and Higher Lows for bullish structure
• Lower Highs and Lower Lows for bearish structure
• Structure breaks when established patterns fail
• Dynamic support and resistance from recent pivot points
• Key level proximity detection using ATR-based buffers
 3. Volume Flow Decoding 
Institutional activity detection through:
• Volume surge identification when volume exceeds 2x average
• Buy versus sell pressure analysis using price-volume correlation
• Flow strength measurement through directional volume consistency
• Divergence detection between volume and price movements
• Institutional threshold alerts when unusual volume patterns emerge
 4. Multi-Period Momentum Synthesis 
Weighted momentum calculation across four timeframes:
• 1-period momentum weighted at 40%
• 3-period momentum weighted at 30%
• 5-period momentum weighted at 20%
• 8-period momentum weighted at 10%
Result smoothed with 6-period EMA for noise reduction.
 5. Price Action Quality Assessment 
Each bar evaluated for:
• Range quality relative to 20-period average
• Body-to-range ratio for directional conviction
• Wick analysis for rejection pattern identification
• Pattern recognition including engulfing and hammer formations
• Sequential price movement analysis
 6. Adaptive Parameter System 
Parameters automatically adjust based on detected regime:
• Trending markets reduce sensitivity and confirmation requirements
• Volatile markets increase filtering and require additional confirmations
• Ranging markets maintain neutral settings
• Transitional markets use moderate adjustments
---
 COMPLETE SETTINGS GUIDE 
 Section 1: Core Analysis Settings 
 Analysis Sensitivity (0.3-2.0) 
• Default: 1.0
• Lower values require stronger price movements
• Higher values detect more subtle patterns
• Scalpers use 0.8-1.2, swing traders use 1.5-2.0
 Noise Reduction Level (2-7) 
• Default: 4
• Controls filtering of false patterns
• Higher values reduce pattern frequency
• Increase in volatile markets
 Minimum Move % (0.05-0.50) 
• Default: 0.15%
• Sets minimum price movement threshold
• Adjust based on instrument volatility
• Forex: 0.05-0.10%, Stocks: 0.15-0.25%, Crypto: 0.20-0.50%
 High Confirmation Mode 
• Default: True (Enabled)
• Requires all technical conditions to align
• Reduces frequency but increases reliability
• Disable for more aggressive pattern detection
 Section 2: Market Regime Detection 
 Enable Regime Analysis 
• Default: True (Enabled)
• Activates market environment evaluation
• Essential for adaptive features
• Keep enabled for best results
 Regime Analysis Period (20-100) 
• Default: 50 bars
• Determines regime calculation lookback
• Shorter for responsive, longer for stable
• Scalping: 20-30, Swing: 75-100
 Minimum Market Clarity (0.2-0.8) 
• Default: 0.4
• Quality threshold for pattern generation
• Higher values require clearer conditions
• Lower for more patterns, higher for quality
 Adaptive Parameter Adjustment 
• Default: True (Enabled)
• Enables automatic parameter optimization
• Adjusts based on market regime
• Highly recommended to keep enabled
 Section 3: Market Structure Analysis 
 Enable Structure Validation 
• Default: True (Enabled)
• Validates patterns against support/resistance
• Confirms trend structure alignment
• Essential for reliability
 Structure Analysis Period (15-50) 
• Default: 30 bars
• Period for structure pattern analysis
• Affects support/resistance calculation
• Match to your trading timeframe
 Minimum Structure Alignment (0.3-0.8) 
• Default: 0.5
• Required structure score for valid patterns
• Higher values need stronger structure
• Balance with desired frequency
 Section 4: Analysis Configuration 
 Minimum Strength Level (3-5) 
• Default: 4
• Minimum confirmations for pattern display
• 5 = Maximum reliability, 3 = More patterns
• Beginners should use 4-5
 Required Technical Confirmations (4-6) 
• Default: 5
• Number of aligned technical factors
• Higher = fewer but better patterns
• Works with High Confirmation Mode
 Pattern Separation (3-20 bars) 
• Default: 8 bars
• Minimum bars between patterns
• Prevents clustering and overtrading
• Increase for cleaner charts
 Section 5: Technical Filters 
 Momentum Validation 
• Default: True (Enabled)
• Requires momentum alignment
• Filters counter-trend patterns
• Essential for trend following
 Volume Confluence Analysis 
• Default: True (Enabled)
• Requires volume confirmation
• Identifies institutional participation
• Critical for reliability
 Trend Direction Filter 
• Default: True (Enabled)
• Only shows patterns with trend
• Reduces counter-trend signals
• Disable for reversal hunting
 Section 6: Volume Flow Analysis 
 Institutional Activity Threshold (1.2-3.5) 
• Default: 2.0
• Multiplier for unusual volume detection
• Lower finds more institutional activity
• Stock: 2.0-2.5, Forex: 1.5-2.0, Crypto: 2.5-3.5
 Volume Surge Multiplier (1.8-4.5) 
• Default: 2.5
• Defines significant volume increases
• Adjust per instrument characteristics
• Higher for stocks, lower for forex
 Volume Flow Period (12-35) 
• Default: 18 bars
• Smoothing for volume analysis
• Shorter = responsive, longer = smooth
• Match to timeframe used
 Section 7: Analysis Frequency Control 
 Maximum Analysis Points Per Hour (1-5) 
• Default: 3
• Limits pattern frequency
• Prevents overtrading
• Scalpers: 4-5, Swing traders: 1-2
 Section 8: Target Level Configuration 
 Target Calculation Method 
• Default: Market Adaptive
• Three modes available:
  - Fixed: Uses set point distances
  - Dynamic: ATR-based calculations
  - Market Adaptive: Structure-based levels
 Minimum Target/Risk Ratio (1.0-3.0) 
• Default: 1.5
• Minimum acceptable reward vs risk
• Higher filters lower probability setups
• Professional standard: 1.5-2.0
 Fixed Mode Settings: 
• Fixed Target Distance: 50 points default
• Fixed Invalidation Distance: 30 points default
• Use for consistent instruments
 Dynamic Mode Settings: 
• Dynamic Target Multiplier: 1.8x ATR default
• Dynamic Invalidation Multiplier: 1.0x ATR default
• Adapts to volatility automatically
 Market Adaptive Settings: 
• Use Structure Levels: True (default)
• Structure Level Buffer: 0.1% default
• Places levels at actual support/resistance
 Section 9: Visual Display Settings 
 Color Theme Options 
•  Professional  (Teal/Red)
  - Bullish: Teal (#26a69a)
  - Bearish: Red (#ef5350)
  - Neutral: Gray (#78909c)
  - Best for: Traditional traders, clean appearance
•  Dark  (Neon Green/Pink)
  - Bullish: Neon Green (#00ff88)
  - Bearish: Hot Pink (#ff0044)
  - Neutral: Dark Gray (#333333)
  - Best for: Dark theme users, high contrast
•  Light  (Green/Red Classic)
  - Bullish: Green (#4caf50)
  - Bearish: Red (#f44336)
  - Neutral: Light Gray (#9e9e9e)
  - Best for: Light backgrounds, traditional colors
•  Vibrant  (Cyan/Magenta)
  - Bullish: Cyan (#00ffff)
  - Bearish: Magenta (#ff00ff)
  - Neutral: Medium Gray (#888888)
  - Best for: High visibility, modern appearance
 Dashboard Position 
• Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Left, Middle Right
• Default: Top Right
• Choose based on chart layout preference
 Dashboard Size 
• Full: Complete information display (desktop)
• Mobile: Compact view for small screens
• Default: Full
 Analysis Display Style 
•  Arrows : Simple directional markers
•  Labels : Detailed text information
•  Zones : Colored areas showing pattern regions
• Default: Labels (most informative)
 Display Options: 
• Display Analysis Strength: Shows star rating
• Display Target Levels: Shows target/invalidation lines
• Display Market Regime: Shows regime in pattern labels
---
 HOW TO USE SMPS - DETAILED GUIDE 
 Understanding the Dashboard 
 Top Row - Header 
• SMPS Dashboard title
• VALUE column: Current readings
• STATUS column: Condition assessments
 Market Regime Row 
• Shows: TRENDING, RANGING, VOLATILE, QUIET, or TRANSITIONAL
• Color coding: Green = Favorable, Red = Caution
• Status: FAVORABLE or CAUTION trading conditions
 Market Score Row 
• Percentage from 0-100%
• Above 60% = Strong conditions
• 40-60% = Moderate conditions
• Below 40% = Weak conditions
 Structure Row 
• Direction: BULLISH, BEARISH, or NEUTRAL
• Status: INTACT or BREAK
• Orange BREAK indicates structure failure
 Volume Flow Row 
• Direction: BUYING or SELLING
• Intensity: STRONG or WEAK
• Color indicates dominant pressure
 Momentum Row 
• Numerical momentum value
• Positive = Upward pressure
• Negative = Downward pressure
 Volume Status Row 
• INST = Institutional activity detected
• HIGH = Above average volume
• NORM = Normal volume levels
 Adaptive Mode Row 
• ACTIVE = Parameters adjusting
• STATIC = Fixed parameters
• Shows required confirmations
 Analysis Level Row 
• Minimum strength level setting
• Pattern separation in bars
 Market State Row 
• Current analysis: BULLISH, BEARISH, NEUTRAL
• Shows analysis price level when active
 T:R Ratio Row 
• Current target to risk ratio
• GOOD = Meets minimum requirement
• LOW = Below minimum threshold
 Strength Row 
• BULL or BEAR dominance
• Numerical strength value 0-100
 Price Row 
• Current price
• Percentage change
 Last Analysis Row 
• Previous pattern direction
• Bars since last pattern
 Reading Pattern Signals 
 Bullish Structure Pattern 
• Upward triangle or "Bullish Structure" label
• Star rating shows strength (★★★★★ = strongest)
• Green line = potential target level
• Red dashed line = invalidation level
• Appears below price bars
 Bearish Structure Pattern 
• Downward triangle or "Bearish Structure" label
• Star rating indicates reliability
• Green line = potential target level
• Red dashed line = invalidation level
• Appears above price bars
 Pattern Strength Interpretation 
• ★★★★★ = 6 confirmations (exceptional)
• ★★★★☆ = 5 confirmations (strong)
• ★★★☆☆ = 4 confirmations (moderate)
• ★★☆☆☆ = 3 confirmations (minimum)
• Below minimum = filtered out
 Visual Elements on Chart 
 Lines and Levels: 
• Gray Line = 21 EMA trend reference
• Green Stepline = Dynamic support level
• Red Stepline = Dynamic resistance level
• Green Solid Line = Active target level
• Red Dashed Line = Active invalidation level
 Pattern Markers: 
• Triangles = Arrow display mode
• Text Labels = Label display mode
• Colored Boxes = Zone display mode
 Target Completion Labels: 
• "Target" = Price reached target level
• "Invalid" = Pattern invalidated by price
---
 RECOMMENDED USAGE BY TIMEFRAME 
 1-Minute Charts (Scalping) 
• Sensitivity: 0.8-1.2
• Noise Reduction: 3-4
• Pattern Separation: 3-5 bars
• High Confirmation: Optional
• Best for: Quick intraday moves
 5-Minute Charts (Precision Intraday) 
• Sensitivity: 1.0 (default)
• Noise Reduction: 4 (default)
• Pattern Separation: 8 bars
• High Confirmation: Enabled
• Best for: Day trading
 15-Minute Charts (Short Swing) 
• Sensitivity: 1.0-1.5
• Noise Reduction: 4-5
• Pattern Separation: 10-12 bars
• High Confirmation: Enabled
• Best for: Intraday swings
 30-Minute to 1-Hour (Position Trading) 
• Sensitivity: 1.5-2.0
• Noise Reduction: 5-7
• Pattern Separation: 15-20 bars
• Regime Period: 75-100
• Best for: Multi-day positions
 Daily Charts (Swing Trading) 
• Sensitivity: 1.8-2.0
• Noise Reduction: 6-7
• Pattern Separation: 20 bars
• All filters enabled
• Best for: Long-term analysis
---
 MARKET-SPECIFIC SETTINGS 
 Forex Pairs 
• Minimum Move: 0.05-0.10%
• Institutional Threshold: 1.5-2.0
• Volume Surge: 1.8-2.2
• Target Mode: Dynamic or Market Adaptive
 Stock Indices (ES, NQ, YM) 
• Minimum Move: 0.10-0.15%
• Institutional Threshold: 2.0-2.5
• Volume Surge: 2.5-3.0
• Target Mode: Market Adaptive
 Individual Stocks 
• Minimum Move: 0.15-0.25%
• Institutional Threshold: 2.0-2.5
• Volume Surge: 2.5-3.5
• Target Mode: Dynamic
 Cryptocurrency 
• Minimum Move: 0.20-0.50%
• Institutional Threshold: 2.5-3.5
• Volume Surge: 3.0-4.5
• Target Mode: Dynamic
• Increase noise reduction
---
 PRACTICAL APPLICATION EXAMPLES 
 Example 1: Strong Trending Market 
 Dashboard Reading: 
• Market Regime: TRENDING
• Market Score: 75%
• Structure: BULLISH, INTACT
• Volume Flow: BUYING, STRONG
• Momentum: +0.45
 Interpretation: 
• Strong uptrend environment
• Institutional buying present
• Look for bullish patterns as continuation
• Higher probability of success
• Consider using lower sensitivity
 Example 2: Range-Bound Conditions 
 Dashboard Reading: 
• Market Regime: RANGING
• Market Score: 35%
• Structure: NEUTRAL
• Volume Flow: SELLING, WEAK
• Momentum: -0.05
 Interpretation: 
• No clear direction
• Low opportunity environment
• Patterns are less reliable
• Consider waiting for regime change
• Or switch to a range-trading approach
 Example 3: Structure Break Alert 
 Dashboard Reading: 
• Previous: BULLISH structure
• Current: Structure BREAK
• Volume: INST flag active
• Momentum: Shifting negative
 Interpretation: 
• Trend reversal potentially beginning
• Institutional participation detected
• Watch for bearish pattern confirmation
• Adjust bias accordingly
• Increase caution on long positions
 Example 4: Volatile Market 
 Dashboard Reading: 
• Market Regime: VOLATILE
• Market Score: 45%
• Adaptive Mode: ACTIVE
• Confirmations: Increased to 6
 Interpretation: 
• Choppy conditions
• Parameters auto-adjusted
• Fewer but higher quality patterns
• Wider stops may be needed
• Consider reducing position size
Below are a few chart examples of the Smart Money Precision Structure (SMPS) indicator in action.
• Example 1 – Bullish Structure Detection on SOLUSD 5m
  
• Example 2 – Bearish Structure Detected with Strong Confluence on SOLUSD 5m
  
---
 TROUBLESHOOTING GUIDE 
 No Patterns Appearing 
 Check these settings: 
• High Confirmation Mode may be too restrictive
• Minimum Strength Level may be too high
• Market Clarity threshold may be too high
• Regime filter may be blocking patterns
• Try increasing sensitivity
 Too Many Patterns 
 Adjust these settings: 
• Enable High Confirmation Mode
• Increase Minimum Strength Level to 5
• Increase Pattern Separation
• Reduce Sensitivity below 1.0
• Enable all technical filters
 Dashboard Shows "CAUTION" 
 This indicates: 
• Market conditions are unfavorable
• Regime is RANGING or QUIET
• Market score is low
• Consider waiting for better conditions
• Or adjust expectations accordingly
 Patterns Not Reaching Targets 
 Consider: 
• Market may be choppy
• Volatility may have changed
• Try Dynamic target mode
• Reduce target/risk ratio requirement
• Check if regime is VOLATILE
---
 ALERTS CONFIGURATION 
 Alert Message Format 
Alerts include:
• Pattern type (Bullish/Bearish)
• Strength rating
• Market regime
• Analysis price level
• Target and invalidation levels
• Strength percentage
• Target/Risk ratio
• Educational disclaimer
 Setting Up Alerts 
• Click Alert button on TradingView
• Select SMPS indicator
• Choose alert frequency
• Customize message if desired
• Alerts fire on pattern detection
---
 DATA WINDOW INFORMATION 
The Data Window displays:
• Market Regime Score (0-100)
• Market Structure Bias (-1 to +1)
• Bullish Strength (0-100)
• Bearish Strength (0-100)
• Bull Target/Risk Ratio
• Bear Target/Risk Ratio
• Relative Volume
• Momentum Value
• Volume Flow Strength
• Bull Confirmations Count
• Bear Confirmations Count
---
 BEST PRACTICES AND TIPS 
 For Beginners 
• Start with default settings
• Use High Confirmation Mode
• Focus on TRENDING regime only
• Paper trade first
• Learn one timeframe thoroughly
 For Intermediate Users 
• Experiment with sensitivity settings
• Try different target modes
• Use multiple timeframes
• Combine with price action analysis
• Track pattern success rate
 For Advanced Users 
• Customize per instrument
• Create setting templates
• Use regime information for bias
• Combine with other indicators
• Develop systematic rules
---
 IMPORTANT DISCLAIMERS 
• This indicator is for educational and informational purposes only
• Not financial advice or a trading system
• Past performance does not guarantee future results
• Trading involves substantial risk of loss
• Always use appropriate risk management
• Verify patterns with additional analysis
• The author is not a registered investment advisor
• No liability accepted for trading losses
---
 VERSION NOTES 
 Version 1.0.0 - Initial Release 
• Six-layer confluence system
• Adaptive parameter technology
• Institutional volume detection
• Market regime classification
• Structure break identification
• Real-time dashboard
• Multiple display modes
• Comprehensive settings
##  My Final Thoughts 
Smart Money Precision Structure represents an advanced approach to market analysis, bringing institutional-grade techniques to retail traders through intelligent automation and multi-dimensional evaluation. By combining six analytical frameworks with adaptive parameter adjustment, SMPS provides comprehensive market intelligence that single indicators cannot achieve.
The indicator serves as an educational tool for understanding how professional traders analyze markets, while providing practical pattern detection for those seeking to improve their technical analysis. Remember that all trading involves risk, and this tool should be used as part of a complete analysis approach, not as a standalone trading system.
- BullByte
Dynamic Buy/Sell VisualizationDynamic Trend Visualization Indicator 
 Description: 
This simple and easy to use indicator has helped me stay in trades longer. 
This indicator is designed to visually represent potential buy and sell signals based on the crossover of two Simple Moving Averages (SMA). It's crafted to assist traders in identifying trend directions in a straightforward manner, making it an excellent tool for both beginners and experienced traders.
 Features: 
Customizable Moving Averages: Users can adjust the period length for both short-term (default: 10) and long-term (default: 50) SMAs to suit their trading strategy.
Visual Signals: Dynamic lines appear at the points of SMA crossover, with labels to indicate 'BUY' or 'SELL' opportunities.
Color and Style Customization: Customize the appearance of the buy and sell lines for better chart readability.
Alert Functionality: Alerts are set up to notify users when a crossover indicating a buy or sell condition occurs.
 How It Works: 
 
 A 'BUY' signal is generated when the short-term SMA crosses above the long-term SMA, suggesting an upward trend.
 A 'SELL' signal is indicated when the short-term SMA crosses below the long-term SMA, pointing to a potential downward trend.
 
 Use Cases: 
 
 Trend Following: Ideal for markets with clear trends. For example, if trading EUR/USD on a daily chart, setting the short SMA to 10 days and the long SMA to 50 days might help in capturing longer-term trends.
 Scalping: In a volatile market, setting shorter periods (e.g., 5 for short SMA and 20 for long SMA) might catch quicker trend changes, suitable for scalping.
 
 Examples of how to use 
* Short-term for Quick Trades:
SMA 5 and SMA 21:
Purpose: This combination is tailored for day traders or those looking to engage in scalping. The 5 SMA will react rapidly to price changes, providing early signals for buy or sell opportunities. The 21 SMA, being a Fibonacci number, offers a slightly longer-term view to confirm the short-term trend, helping to filter out minor fluctuations that might lead to false signals.
* Middle-term for Swing Trading:
SMA 10 and SMA 50:
Purpose: Suited for swing traders who aim to capitalize on medium-term trends. The 10 SMA picks up on immediate market movements, while the 50 SMA gives insight into the medium-term direction. This setup helps in identifying when a short-term trend aligns with a longer-term trend, providing a good balance for trades that might last several days to a couple of weeks.
* Long-term Trading:
SMA 50 and SMA 200:
Purpose: Investors focusing on long-term trends would benefit from this pair. The crossover of the 50 SMA over the 200 SMA can indicate the beginning or end of major market trends, ideal for making decisions about long-term holdings that might span months or years.
 Example Strategy if not using the Buy / Sell Label Alerts: 
Entry Signal: Enter a long position when the shorter SMA crosses above the longer SMA. For example:
SMA 10 crosses above SMA 50 for a medium-term bullish signal.
Exit Signal: Consider exiting or initiating a short position when:
SMA 10 crosses below SMA 50, suggesting a bearish turn in the medium-term trend.
Confirmation: Use these crossovers in conjunction with other indicators like volume or momentum indicators for better confirmation. For instance, if you're using the 5/21 combination, look for volume spikes on crossovers to confirm the move's strength.
 When Not to Use: 
 
 Sideways or Range-Bound Markets: The indicator might generate many false signals in a non-trending market, leading to potential losses.
 High Volatility Without Clear Trends: Rapid price movements without a consistent direction can result in misleading crossovers.
 As a Standalone Tool: It should not be used in isolation. Combining with other indicators like RSI or MACD for confirmation can enhance trading decisions.
 
 Practical Example: 
 
 Buy Signal: If you're watching Apple Inc. (AAPL) on a weekly chart, a crossover where the 10-week SMA moves above the 50-week SMA could suggest a buying opportunity, especially if confirmed by volume increase or other technical indicators.
 Sell Signal: Conversely, if the 10-week SMA dips below the 50-week SMA, it might be time to consider selling, particularly if other bearish signals are present.
 
 Conclusion: 
The "Dynamic Trend Visualization" indicator provides a visual aid for trend-following strategies, offering customization and alert features to streamline the trading process. However, it's crucial to use this in conjunction with other analysis methods to mitigate the risks of false signals or market anomalies.
 Legal Disclaimer: 
This indicator is for educational purposes only. It does not guarantee profits or provide investment advice. Trading involves risk; please conduct thorough or consult with a financial advisor. The creator is not responsible for any losses incurred. By using this indicator, you agree to these terms.  
Ehlers Alternate Signal To Noise Ratio [CC]The Alternate Signal To Noise Ratio was created by John Ehlers (Rocket Science For Traders pgs 84-85) and this is a variation of his signal to noise ratio that some scalpers might find more useful than his default signal to noise ratio. You would want to buy and sell when the indicator is above the dotted line because that means the stock is volatile enough to maximize any movement of the trade in either direction. Buy when the indicator line is green and sell when it is red.
Let me know if there are other indicators you would like to see me publish or if you want something custom done!
Pro Scalper - Kalman Supertrend with Dynamic OB/OS Zones═══════════════════════════════════════════════════════════════════
PRO SCALPER - KALMAN SUPERTREND WITH DYNAMIC OB/OS ZONES
Developed by Zakaria Safri
═══════════════════════════════════════════════════════════════════
A powerful day trading and scalping indicator designed for the 30-minute 
timeframe, combining advanced Kalman filtering with Supertrend analysis 
and VWMA-based overbought/oversold detection for stocks and cryptocurrencies.
🎯 KEY FEATURES
═══════════════════════════════════════════════════════════════════
✅ Kalman-Filtered Supertrend
   • Advanced noise reduction using Kalman Filter mathematics
   • Reduces false signals by filtering market noise
   • Adaptive trend-following with dynamic support/resistance
✅ Clear Buy/Sell Signals
   • Green "BUY" labels for long entries
   • Red "SELL" labels for short entries
   • Signals trigger on confirmed trend reversals
   • Matrix-style candle coloring (Green=Bull, Red=Bear)
✅ Dynamic Overbought/Oversold Zones
   • VWMA-based adaptive zones
   • Automatically adjusts to market volatility
   • Visual zone highlighting with fills
✅ Reversal Signal Detection
   • "R" markers identify potential reversals
   • Vertical lines highlight reversal bars
   • Based on price rejection from OB/OS zones
✅ Smart Take Profit System
   • Automatic TP levels at OB/OS zones
   • "X" markers when targets are hit
   • Based on higher-high/lower-low logic
✅ Live Entry Price Table
   • Shows current trend direction
   • Displays last signal type (BUY/SELL)
   • Real-time entry price tracking
✅ Comprehensive Alert System
   • Buy/Sell signal alerts
   • Reversal detection alerts
   • Take profit hit notifications
   • All alerts are non-repainting
📊 HOW IT WORKS
═══════════════════════════════════════════════════════════════════
1. KALMAN FILTER
   The indicator applies Kalman filtering to price and ATR data, using
   mathematical equations derived from Rudolf E. Kalman's work. This 
   advanced filtering technique:
   
   • Smooths price data while maintaining responsiveness
   • Removes outliers and reduces market noise
   • Adapts to changing market conditions
   • Improves signal accuracy and reliability
2. MODIFIED SUPERTREND
   A customized Supertrend calculation that uses:
   
   • Kalman-filtered HL2 price instead of raw prices
   • Filtered ATR for volatility measurement
   • Adaptive trailing bands that follow price
   • Trend detection with minimal lag
3. VWMA DYNAMIC ZONES
   Volume-Weighted Moving Average bands that:
   
   • Calculate from highest/lowest prices over lookback period
   • Adapt to current volatility and price range
   • Identify true overbought/oversold conditions
   • Provide logical take-profit targets
4. SIGNAL GENERATION
   • BUY: When price breaks above Supertrend (trend flips bullish)
   • SELL: When price breaks below Supertrend (trend flips bearish)
   • REVERSAL: When price rejects from OB/OS zones
   • TAKE PROFIT: When price reaches target zones or forms HH/LL
⚙️ SETTINGS GUIDE
═══════════════════════════════════════════════════════════════════
🔧 KALMAN FILTER SETTINGS
┌─────────────────────────────────────────────────────────────┐
│ Gain (0.7)      → Higher = More responsive, Less smooth    │
│ Momentum (0.3)  → Higher = More momentum, Less filtering   │
└─────────────────────────────────────────────────────────────┘
📈 SUPERTREND SETTINGS
┌─────────────────────────────────────────────────────────────┐
│ ATR Period (10)      → Lookback for volatility calculation │
│ ATR Multiplier (3.0) → Distance of bands (lower = more sigs)│
└─────────────────────────────────────────────────────────────┘
📊 VWMA BANDS (OB/OS ZONES)
┌─────────────────────────────────────────────────────────────┐
│ VWMA Length (20)            → Smoothing period            │
│ Overbought Multiplier (1.5) → OB zone distance            │
│ Oversold Multiplier (1.5)   → OS zone distance            │
│ Band Lookback (20)          → Range calculation period    │
└─────────────────────────────────────────────────────────────┘
💡 USAGE INSTRUCTIONS
═══════════════════════════════════════════════════════════════════
RECOMMENDED SETUP:
• Timeframe: 30 minutes (optimized for intraday trading)
• Markets: Stocks, Cryptocurrencies, Forex
• Risk Management: Always use stop losses
• Confirmation: Combine with volume and support/resistance
ENTRY SIGNALS:
1. Wait for BUY/SELL label to appear
2. Check trend direction (candle color)
3. Confirm entry on next candle open
4. Set stop loss below/above Supertrend line
EXIT SIGNALS:
1. Take profit at "X" markers
2. Exit on opposite signal
3. Exit on reversal "R" if against your position
4. Manual exit at predetermined R:R ratio
REVERSAL TRADING:
1. Wait for "R" marker in OB/OS zone
2. Confirm with candlestick pattern
3. Enter counter-trend trade
4. Target middle VWMA or opposite zone
🎨 VISUAL ELEMENTS
═══════════════════════════════════════════════════════════════════
• GREEN LINE    → Bullish Supertrend (support)
• RED LINE      → Bearish Supertrend (resistance)
• CYAN LINE     → VWMA baseline
• RED ZONE      → Overbought area
• GREEN ZONE    → Oversold area
• GREEN CANDLES → Bullish trend active
• RED CANDLES   → Bearish trend active
• BUY LABEL     → Long entry signal
• SELL LABEL    → Short entry signal
• R MARKER      → Reversal signal
• X MARKER      → Take profit hit
⚠️ IMPORTANT NOTES
═══════════════════════════════════════════════════════════════════
✓ NON-REPAINTING: All signals are confirmed on candle close
✓ BACKTESTING: Test on your specific market before live trading
✓ RISK MANAGEMENT: Use proper position sizing and stop losses
✓ MARKET CONDITIONS: Works best in trending and range-bound markets
✓ CONFLUENCE: Combine with other analysis for best results
⚡ Best Performance:
• Trending markets with clear momentum
• Moderate to high volatility environments
• 30-minute to 1-hour timeframes
• Liquid markets with tight spreads
⚠️ Avoid Using:
• During major news events (high slippage)
• In extremely choppy/sideways markets
• On illiquid assets with wide spreads
• Without proper risk management
📚 METHODOLOGY
═══════════════════════════════════════════════════════════════════
This indicator combines three proven technical analysis methods:
1. TREND FOLLOWING (Supertrend)
   Captures major price movements and momentum
2. MEAN REVERSION (VWMA Zones)
   Identifies extremes and potential reversals
3. NOISE FILTERING (Kalman)
   Reduces false signals and improves accuracy
By integrating these approaches with volume weighting and adaptive
calculations, the Pro Scalper provides a comprehensive trading system
suitable for active traders and scalpers.
⚖️ DISCLAIMER
═══════════════════════════════════════════════════════════════════
This indicator is provided for educational and informational purposes 
only. It does not constitute financial advice, and past performance 
does not guarantee future results. 
Trading carries substantial risk of loss and is not suitable for all
investors. Always:
• Do your own research and analysis
• Use proper risk management
• Never risk more than you can afford to lose
• Test thoroughly before live trading
• Consult a financial advisor if needed
The creator (Zakaria Safri) assumes no liability for trading losses 
incurred using this indicator.
📞 ABOUT THE DEVELOPER
═══════════════════════════════════════════════════════════════════
Developer: Zakaria Safri
Specialization: Advanced algorithmic trading indicators
Focus: Noise reduction, signal filtering, and trend analysis
• Regular updates and improvements
• Community feedback integration
• Bug fixes and optimization
• Feature requests welcome
📋 VERSION INFO
═══════════════════════════════════════════════════════════════════
Version: 1.0
Created: 2024
License: Mozilla Public License 2.0
Author: Zakaria Safri
═══════════════════════════════════════════════════════════════════
Happy Trading! 📈
Developed with precision by Zakaria Safri
═══════════════════════════════════════════════════════════════════
NQ Phantom Scalper Pro# 👻 NQ Phantom Scalper Pro
**Advanced VWAP Mean Reversion Strategy with Volume Confirmation**
## 🎯 Strategy Overview
The NQ Phantom Scalper Pro is a sophisticated mean reversion strategy designed specifically for Nasdaq 100 (NQ) futures scalping. This strategy combines Volume Weighted Average Price (VWAP) bands with intelligent volume spike detection to identify high-probability reversal opportunities during optimal market hours.
## 🔧 Key Features
### VWAP Band System
- **Dynamic VWAP Bands**: Automatically adjusting standard deviation bands based on intraday volatility
- **Multiple Band Levels**: Configurable Band #1 (entry trigger) and Band #2 (profit target reference)
- **Flexible Anchoring**: Choose from Session, Week, Month, Quarter, or Year-based VWAP calculations
### Volume Intelligence
- **Volume Spike Detection**: Only triggers entries when volume exceeds SMA by configurable multiplier
- **Relative Volume Display**: Real-time volume strength indicator in info panel
- **Optional Volume Filter**: Can be disabled for testing alternative setups
### Advanced Time Management
- **12-Hour Format**: User-friendly time inputs (9 AM - 4 PM default)
- **Lunch Filter**: Automatically avoids low-liquidity lunch period (12-2 PM)
- **Visual Time Zones**: Color-coded background for active/inactive periods
- **Market Hours Focus**: Optimized for peak NQ trading sessions
### Smart Risk Management
- **ATR-Based Stops**: Volatility-adjusted stop losses using Average True Range
- **Dual Exit Strategy**: VWAP mean reversion + fixed profit targets
- **Adjustable Risk-Reward**: Configurable target ratio to opposite VWAP band
- **Position Sizing**: Percentage-based equity allocation
### Optional Trend Filter
- **EMA Trend Alignment**: Optional trend filter to avoid counter-trend trades
- **Configurable Period**: Adjustable EMA length for trend determination
- **Toggle Functionality**: Enable/disable based on market conditions
## 📊 How It Works
### Entry Logic
**Long Entries**: Triggered when price touches lower VWAP band + volume spike during active hours
**Short Entries**: Triggered when price touches upper VWAP band + volume spike during active hours
### Exit Strategy
1. **VWAP Mean Reversion**: Early exit when price returns to VWAP center line
2. **Profit Target**: Fixed target based on percentage to opposite VWAP band
3. **Stop Loss**: ATR-based protective stop
### Visual Elements
- **VWAP Center Line**: Blue line showing volume-weighted fair value
- **Green Bands**: Entry trigger levels (Band #1)
- **Red Bands**: Extended levels for target reference (Band #2)
- **Orange EMA**: Trend filter line (when enabled)
- **Background Colors**: Yellow (lunch), Gray (after hours), Clear (active trading)
- **Info Panel**: Real-time metrics display
## ⚙️ Recommended Settings
### Timeframes
- **Primary**: 1-5 minute charts for scalping
- **Validation**: Test on 15-minute for swing applications
### Market Conditions
- **Best Performance**: Ranging/choppy markets with good volume
- **Trend Markets**: Enable trend filter to avoid counter-trend trades
- **High Volatility**: Increase ATR multiplier for stops
### Session Optimization
- **Pre-Market**: Generally avoided (low volume)
- **Morning Session**: 9:30 AM - 12:00 PM (high activity)
- **Lunch Period**: 12:00 PM - 2:00 PM (filtered by default)
- **Afternoon Session**: 2:00 PM - 4:00 PM (good volume)
- **After Hours**: Generally avoided (wide spreads)
## ⚠️ Risk Disclaimer
This strategy is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Trading futures involves substantial risk of loss and is not suitable for all investors. Users should:
- Thoroughly backtest on historical data
- Start with small position sizes
- Understand the risks of leveraged trading
- Consider transaction costs and slippage
- Never risk more than you can afford to lose
## 📈 Performance Tips
1. **Volume Threshold**: Adjust volume multiplier based on average NQ volume patterns
2. **Band Sensitivity**: Modify band multipliers for different volatility regimes  
3. **Time Filters**: Customize trading hours based on your timezone and preferences
4. **Trend Alignment**: Use trend filter during strong directional markets
5. **Risk Management**: Always maintain consistent position sizing and risk parameters
**Version**: 6.0 Compatible
**Asset**: Optimized for NASDAQ 100 Futures (NQ)
**Style**: Mean Reversion Scalping
**Frequency**: High-Frequency Trading Ready
Ehlers BandPass Filter [CC]The BandPass Filter was created by John Ehlers (Cycle Analytics For Traders pgs 56-57) and this indicator only works well in choppy markets so I figured it would be useful for the scalpers out there. As you will notice it correctly identifies the peaks and valleys in the underlying stock data but it doesn't work as well when the stock is trending. The black line is a leading signal for the indicator and so I use that as the basis for the buy and sell signals. Make sure to experiment with this one and let me know if you find any better buy and sell signals to work with since I believe this is the first time I have seen this script published. Buy when the line turns green and sell when it turns red.
Let me know if there are other indicators you would like to see me publish or if you want something custom done!
TTM Scalper AlertTTM Scalper Alert  — Real-Time Pivot Detector
 Description: 
This is a custom implementation of the classic TTM Scalper Alert, adapted to show early pivot detection and trend structure tracking in real-time. The script identifies potential highs and lows before the full pivot confirmation—giving traders an early edge—and removes outdated signals once pivots are confirmed.
 It supports two levels of detection: 
 Fast Alert Pivots : Identified after Alert Period candles confirm a local reversal.
 Confirmed Pivots : Validated only after Pivot Period candles on both sides ensure a true swing high/low.
 How It Works: 
 Fast Detection (Early Pivots): 
Detected after Alert Period (AP) candles. These are provisional signals, shown as triangle labels (▲▼) near current price. Only the latest signal is shown; previous fast pivots are deleted to avoid clutter.
 Confirmed Pivots: 
Detected with a full lookback of Pivot Period (PP) on both sides of the candle. Shown using plotshape with triangle markers (▲▼). Serve as anchors for price structure analysis (HH-HL or LL-LH tracking).
 Custom Source Option: 
Users can choose to base pivots on High/Low or Close/Open range. Helps adjust sensitivity depending on volatility or bar structure.
 How to Interpret: 
 Trend & Market Structure: 
Use Confirmed Pivots (plotshapes) to analyze market structure:
 
  HH → HL: Uptrend
  LL → LH: Downtrend
 
Watch for breaks in structure for possible reversals
 Early Alerts: 
The floating labels (▲▼) represent early warnings of a potential pivot. Use them to anticipate:
 
  Short-term exhaustion
  Quick scalping entries
  Divergence setups
 
 Inputs: 
 Source : Choose from High/Low or Close/Open — affects how pivots are calculated
 Alert Period : How fast the script detects an early reversal pattern (used for entry timing)
 Pivot Period : How many candles before/after to confirm a full pivot (used for structural analysis)
 Best For: 
 
  Traders who follow price action and structure
  Scalpers and intraday traders who want early signals
  Anyone using pivot highs/lows for confluence with other tools (like RSI divergence, Bollinger Bands, VWAP, etc.)
 
 Pro Tips: 
 Combine this with: 
 
  Trend Magic or Supertrend for directional bias
  Volume spike filters to confirm reversal intent
  RSI/CCI divergence to strengthen reversal pivots
 
Adjust Alert Period to tune early signal sensitivity (lower = faster but noisier)
Improved Scalping Consolidation and Squeeze IndicatorThe Improved Scalping Consolidation and Squeeze Indicator (Improved Scalp C&S) is a custom TradingView indicator designed for short-term trading, specifically scalping. It detects price consolidation and potential breakout scenarios using a combination of technical analysis tools, such as the Rate of Change (ROC), Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), Bollinger Bands, and Keltner Channels. To reduce the number of false signals, this improved version introduces a "consolidation strength" parameter, which represents the minimum number of consecutive bars required for a valid consolidation or squeeze signal.
How it works:
Consolidation Detection:
The indicator identifies price consolidation when the following conditions are met:
a. RSI is between 45 and 55, indicating a lack of strong momentum.
b. The absolute value of the MACD histogram is less than 0.1% of the closing price, suggesting a lack of directional movement.
c. The Rate of Change (ROC) is less than 1.5%, indicating relatively stable prices over the specified period.
Squeeze Detection:
The indicator detects a squeeze (a potential breakout scenario) when the Bollinger Bands are within the Keltner Channels, represented by the following conditions:
a. The lower Bollinger Band is above the lower Keltner Channel.
b. The upper Bollinger Band is below the upper Keltner Channel.
Consolidation Strength:
The consolidation strength parameter filters out weaker signals by requiring a minimum number of consecutive bars for a valid consolidation or squeeze signal. By adjusting this parameter, traders can control the sensitivity of the indicator to short-term price movements and potentially reduce the number of false signals.
When the consolidation strength criteria are met, the indicator colors the price bars within the pattern yellow for consolidation and orange for a squeeze, signaling potential trading opportunities.
Trading Strategy:
The Improved Scalping Consolidation and Squeeze Indicator can be used in various ways, depending on the trader's strategy and risk appetite. Here are some suggestions:
Range trading: During consolidation (yellow bars), traders can buy at support levels and sell at resistance levels within the range, using stop-loss orders to manage risk. However, this approach might not work well in the case of a sudden breakout.
Breakout trading: When a squeeze is detected (orange bars), traders can wait for a confirmed breakout from the consolidation pattern before entering a trade. A breakout can be confirmed by a strong price move accompanied by increased volume, a significant change in momentum, or a breach of important support or resistance levels.
Momentum-based strategies: Traders can use other momentum-based indicators (e.g., Stochastic Oscillator, On Balance Volume) in conjunction with the Improved Scalp C&S indicator to identify potential entry and exit points during consolidation or breakout scenarios.
Fine-tuning the consolidation strength: Adjust the "consolidation strength" input to find the optimal balance between the number of signals and their accuracy. A higher value will result in fewer signals, potentially reducing the number of false signals, but it may also make the indicator less sensitive to short-term price movements.
Intraday Pivot Highs & Lows (Asia London NY)Intraday Pivot Highs & Lows (Asia London NY) 
 Script Description 
 This TradingView indicator is optimized for Forex, scalping, intraday, and day trading strategies. It accurately plots Pivot Points and levels, high/low, support and resistance levels. These are clearly identified to aid the trader during killzone sessions and session opens. Ideal for scalp trading, intraday sessions, and leveraging SMT (Smart Money Techniques). Utilize these Price Levels effectively during London Open, NY Open, and the Asia Session, utilizing Market Structure to pinpoint key levels and reversal zones for successful trading. Improve your Trade Setups, recognize reliable Chart Patterns, identify critical Price Pivots, and trade confidently off Institutional Levels. 
This script marks the intraday pivot highs, lows and midpoints retracement levels for 
 
 Asia
 London 
 New York 
 
It also plots the previous day's high, low, midpoint, and 0.618 Fibonacci retracement levels, providing traders with critical price reference points for making intraday trading decisions.
 Originality & Usefulness 
This indicator uniquely integrates pivot calculations across three major Forex sessions (Asia, London, NY), clearly delineating session boundaries. 
It enhances visibility by using distinct styling 
 
 solid for New York
 dashed for London
 dotted lines for Asia
 
And colour co-ordinated labeling, improving traders' ability to identify important intraday price action zones efficiently. Unlike standard pivot indicators, this script emphasizes session-specific trading dynamics.
### Key Features ###
 Session-Based Levels:  Automatically plots high, low, midpoint, and Fibonacci (.618) levels for each major session (Asia, London, NY).
 Distinct Visual Cues:  Lines and labels use session-specific styles and colors to easily differentiate between sessions.
 Previous Day Reference:  Clearly plots and labels yesterday's high, low, midpoint, and Fibonacci levels.
 Flexible Visibility:  Traders can set timeframe visibility to maintain clean charts on higher timeframes.
### How It Works
At the start of next day's session, previous session lines are cleared, ensuring the chart remains uncluttered.
High, low, midpoint, and Fibonacci retracement levels (.618) are dynamically calculated and displayed at the close of each session.
All session levels remain visible until the start of the next respective session, providing continuous actionable insights.
 Trading Application: 
 
 Session highs and lows act as strong intraday support and resistance zones.
 Midpoints and Fibonacci levels are effective for identifying potential reversal zones and retracements.
 Daily levels provide a broader context, useful for gauging intraday volatility and range.
 
### Limitations and Considerations ##
Best used on liquid assets with clear session-based price action, such as Forex major pairs, if used on indexes make sure they contain 24 hour price action not just New York session.
This indicator is designed to streamline intraday trading by clearly marking essential pivot points and session-based levels, significantly improving traders' market context and decision-making accuracy. Can be used to enhance SMT decision making when scalping killzones.
TrendSync Pro (SMC)📊 TrendSync Pro (SMC) – Advanced Trend-Following Strategy with HTF Alignment 
Created by  Shubham Singh 
 🔍 Strategy Overview 
TrendSync Pro (SMC) is a precision-based smart trend-following strategy inspired by Smart Money Concepts (SMC). It combines:     Real-time pivot-based trendline detection
  Higher Time Frame (HTF) filtering to align trades with dominant trend
  Risk management via adjustable Stop Loss (SL) and Take Profit (TP)
  Directional control — trade only bullish, bearish, or both setups
  Realistic backtesting using commissions and slippage
  Pre-optimized profiles for scalpers, intraday, swing, and long-term traders
 
 🧠 How It Works: 
 🔧 Strategy Settings Image:   
 beeimg.com 
The strategy dynamically identifies trend direction by using swing high/low pivots. When a new pivot forms:     It draws a trendline from the last significant pivot
  Detects whether the trend is up (based on pivot lows) or down (based on pivot highs)
  Waits for price to break above/below the trendline
  Confirms with HTF price direction (HTF close > previous HTF close = bullish)
  Only then it triggers a long or short trade
  It exits either at TP, SL, or a manual trendline break
 
 🛠️ Adjustable Parameters: 
     Trend Period:  Length for pivot detection (affects sensitivity of trendlines)
   HTF Timeframe:  Aligns lower timeframe entries with higher timeframe direction
   SL% and TP%:  Customize your risk-reward profile
   Commission & Slippage:  Make backtests more realistic
   Trade Direction:  Choose to trade:  Long only, Short only, or Both 
 
 🎛️ Trade Direction Control: 
In settings, you can choose:      Bullish Only:  Executes only long entries
   Bearish Only:  Executes only short entries
   Both:  Executes both long and short entries when conditions are met
 
 This allows you to align trades with your own market bias or external analysis. 
 📈 Entry Logic:       Long Entry: 
 • Price crosses above trendline
 • HTF is bullish (HTF close > previous close)
 • Latest pivot is a  low  (trend is considered up)
   Short Entry: 
 • Price crosses below trendline
 • HTF is bearish (HTF close < previous close)
 • Latest pivot is a  high  (trend is considered down)
 
 📉 Exit Logic:      Hit Take Profit or Stop Loss
  Manual trendline invalidation: If price crosses opposite of the trend direction
 
 ⏰ Best Timeframes & Recommended Settings: 
   Scalping (1m to 5m): 
 HTF = 15m | Trend Period = 7
 SL = 0.5% | TP = 1% to 2%
 Intraday (15m to 30m): 
 HTF = 1H | Trend Period = 10–14
 SL = 0.75% | TP = 2% to 3%
 6 Hour Trading (30m to 1H): 
 HTF = 4H | Trend Period = 20
 SL = 1% | TP = 4% to 6%
 Swing Trading (4H to 1D): 
 HTF = 1D | Trend Period = 35
 SL = 2% | TP = 8% to 12%
 Long-Term Investing (1D+): 
 HTF = 1W | Trend Period = 50
 SL = 3% | TP = 15%+
 
 Note: These are recommended base settings. Adjust based on volatility, asset class, or personal trading style. 
 📸 Testing Note: 
 beeimg.com 
TradingView limits test length to 20k bars (~40 trades on smaller timeframes). To show long-term results:     Test on higher timeframes (e.g., 1H, 4H, 1D)
  Share images of backtest result in description
  Host longer test result screenshots on Imgur or any public drive
 
 📍 Asset Behavior Insight: 
This strategy works on multiple assets, including BTC, ETH, etc.
Performance varies by trend strength:
    Sometimes BTC performs better than ETH
  Other times ETH gives better results
  That’s normal as both assets follow different volatility and trend behavior
 
 It’s a trend-following setup. Longer and clearer the trend → better the results. 
 ✅ Best Practices:      Avoid ranging markets
  Use proper SL/TP for each timeframe
  Use directional filter if you already have a directional bias
  Always forward test before going live
 
 ⚠️ Trading Disclaimer: 
This script is for educational and backtesting purposes only. Trading involves risk. Always use risk management and never invest more than you can afford to lose.
VWAP BANDS [qrsq]Description 
This indicator is used to find support and resistance utilizing both buying and selling volume. It can be used on lower and higher time frames to understand where price is likely to reject or bounce.
 How it works 
Instead of calculating the VWAP using the total volume, this script estimates the buying/selling volume and respectively calculates their individual VWAP's. The standard deviations of these are then calculated to create the set of two bands. The top bands being the VWAP from buying volume and bottom bands are from selling volume, with the option to use a double band on either pair.
 How to use it 
I like to use the bands for LTF scalping as well as HTF swings, I also like to use it alongside my SMA VWAP BANDS.
For scalping:
 
  I tend to use either the 5m or 15m TF
  I then set the indicator's TF to 1m
  I will take a scalp based on the bands confluence with other PA methods, if price is being either supported or rejected.
 
For swings:
 
  I tend to use a variety of TFs, including: 30m, 1H, 4H, D
  I then set the indicator's TF to "Chart"
  I will take a swing based on the bands confluence with other PA methods, if price is being either supported or rejected.
 
I also tend to use them on perpetual contracts as the volume seems to be more consistent and hence results in more accurate support and resistance.
SMA VWAP BANDS [qrsq]Description 
This indicator is used to find support and resistance utilizing both SMA and VWAP. It can be used on lower and higher time frames to understand where price is likely to reject or bounce.
 How it works 
Rather than using the usual calculation for the VWAP, instead this script smooths the volume first with the SMA and then respectively calculates the smoothed multiplication of high, low and close price with the volume individually. These values are then divided by the smoothed volume to find individual VWAP's for each of the sources. The standard deviations of these are calculated, resulting in an upper, lower and middle band. It is essentially VWAP bands with some smoothed calculations in the middle.
 How to use it 
I like to use the bands for LTF scalping as well as HTF swings.
For scalping:
 
  I tend to use either the 5m or 15m TF
  I then set the indicator's TF to 1m
  I will take a scalp based on the bands confluence with other PA methods, if price is being either supported or rejected.
 
For swings:
 
  I tend to use a variety of TFs, including: 30m, 1H, 4H, D
  I then set the indicator's TF to "Chart"
  I will take a swing based on the bands confluence with other PA methods, if price is being either supported or rejected.
 
I also tend to use them on perpetual contracts as the volume seems to be more consistent and hence results in more accurate support and resistance.
EMA 21,13,8 - scalping3 EMAs will help identify and predict uptrends and downtrends
-If EMAs are all above the candles it a sign to sell & if the EMAs are below its a sign to buy 
- If the Green-8 EMA crosses or touches red candle then flips under the other EMAs  & candles then it's time to sell
-If the Green-8 EMA crosses or touches green candle then flips above the other EMAs  & candles then it's time to buy 
- how far is the EMAs from the candle it'll show how strong the trend. combine this strategy with the stochastic oscillator & RSI to get the maximum benefit
VWAP-RSI Scalper FINAL v1Description
This script implements a robust, battle-tested intraday scalping strategy designed for prop firm challenges, funded trader programs, and serious futures scalpers.
It combines VWAP, RSI, EMA trend, and ATR-based risk management to capture high-probability mean reversion and momentum moves during the most liquid hours of the trading day.
Core Logic
RSI (Relative Strength Index):
Trades are triggered when the RSI is either oversold or overbought using a short lookback (default: 3). This ensures only the strongest intraday reversals or exhaustion moves are considered.
VWAP Filter:
Longs are only taken above VWAP, shorts only below VWAP, aligning trades with the session’s dominant bias.
EMA Filter:
Additional trend quality filter—longs require price above EMA, shorts below EMA.
Session Control:
Only trades between user-defined session hours (default: US cash session), eliminating overnight/illiquid action.
ATR-based Dynamic Stops & Targets:
Every trade uses a stop loss at 1x ATR and a take profit at 2x ATR for a positive risk/reward ratio.
Max Trades Per Day:
Prevents overtrading and controls risk exposure (default: 3).
Performance (Sample Backtest)
Profit Factor: 1.37+ (prop-firm quality)
Drawdown: <1% (very conservative risk)
Win Rate: 37–48% (RR > 1, so high edge)
Consistency: Smooth, steady equity curve over hundreds of trades.
Best For:
ES/NQ/CL/GC intraday traders
Prop firm evaluation challenges (Tradeify, Topstep, Apex, etc.)
Anyone needing robust, no-nonsense systematic edge for futures or indices.
How to Use & Tune
Apply to 3min, 5min, or 15min charts of liquid futures or indices.
Change parameters in the settings panel to suit your asset, volatility, or session hours.
Use “Strategy Tester” to validate P&L, win rate, and drawdown.
How to Optimize
Raise/lower RSI length or bands to make signals more/less frequent.
Adjust stop/target multiples for your preferred risk/reward profile.
Change session hours to match your broker or market.
Disclaimer
This is not financial advice. Use on a demo or sim account first. Results will vary by market, slippage, and execution speed. Past performance does not guarantee future results.
If you find this useful, please give it a like, follow for more strategies, and comment your results or questions!
Good luck and safe trading!
RSI with Bollinger Bands Scalp Startegy (1min)  
------------------------------------------------------------------------------
The "RSI with Bollinger Bands Scalp Strategy (1min)" is a highly effective tool designed for traders who engage in short-term scalping on the 1-minute chart. This indicator combines the strengths of the RSI (Relative Strength Index) and Bollinger Bands to generate precise buy signals, helping traders make quick and informed decisions in fast-moving markets.
How It Works:
RSI (Relative Strength Index):
The RSI is a widely-used momentum oscillator that measures the speed and change of price movements. It operates on a scale of 0 to 100 and helps identify overbought and oversold conditions in the market.
This strategy allows customization of the RSI's lower and upper bands (default settings: 30 for the lower band and 70 for the upper band) and the RSI length (default: 14).
Bollinger Bands:
Bollinger Bands consist of a central moving average (the basis) and two bands that represent standard deviations above and below the basis. These bands expand and contract based on market volatility.
In this strategy, the Bollinger Bands are used to identify potential buy and sell signals based on the price's relationship to the upper and lower bands.
Signal Generation:
Buy Signal: A buy signal is triggered when two conditions are met:
The RSI value falls below the specified lower band, indicating an oversold condition.
The price crosses below the lower Bollinger Band.
The buy signal is then issued on the first positive candle (where the closing price is greater than or equal to the opening price) after these conditions are met.
Sell Signal: In this version of the strategy, the sell signal is currently disabled to focus solely on generating and optimizing the buy signals for scalping.
Strategy Highlights:
This indicator is particularly effective for traders who focus on 1-minute charts and want to capitalize on rapid price movements.
The combination of RSI and Bollinger Bands ensures that buy signals are only generated during significant oversold conditions, helping to filter out false signals.
Customization:
Users can adjust the RSI length, Bollinger Bands length, and the standard deviation multiplier to better fit their specific trading style and the asset they are trading.
The moving average type for Bollinger Bands can be selected from various options, including SMA, EMA, SMMA, WMA, and VWMA, allowing further customization based on individual preferences.
Usage:
Use this indicator on a 1-minute chart to identify potential buy opportunities during short-term price dips.
Since the sell signals are disabled, this strategy is best used in conjunction with other indicators or strategies to manage exit points effectively.
This "RSI with Bollinger Bands Scalp Strategy (1min)" indicator is a valuable tool for traders looking to enhance their short-term trading performance by focusing on high-probability entry points in volatile market conditions.
Entry helperHello traders,
This is a script I use daily as a scalper and it helps me a lot, maybe it can help you, this is why I am sharing it!
PART 1 - DESCRIPTION
This program is specifically designed to help scalpers but can be used for all types of trading but won't be as useful.
This script is what I call an entry helper as it calculates dynamically the position size, stop loss and take profit levels and more.
When scalping and placing market entry orders, the price can move significantely while you are calculating your position size according to your stop loss, capital, risk and especially close price that changes very quickly, this results in a risk that is not ideally controlled and personally was a source of frustration and stress. I wanted to enter my quantity and stop loss values as fast as possible and make the process easier.
This script automates the calculation of the position size, stop loss and take profit levels according the the users input and prints the data visibly on the screen so it is easy to copy by the trader. It allows the trader to be confident that his risk is as controlled as possible.
The script is easy to use and set up, this guide will help you if you have any difficulies or questions.
PART 2 - HOW TO USE THE SCRIPT
	- SET THE CAPITAL SETTINGS
		1 - Set your capital value in $
	- SET THE TRADE SETTINGS
		2 - Set your trade side (BUY or SELL)
		3 - Set you desired risk in % of your capital
	- ENTRY SETTINGS
		4 - Set your entry from 2 different options
			|MARKET| (default option)
			This option will place the entry level at the last available price
			|LIMIT|
			This option allows you to input a fixed price level for the entry
	- STOP LOSS SETTINGS
		5 - Select your stop loss placement from 4 different options
			|EXTREMA STOP LOSS| (default option)
			This option will place the stop loss at the highest/lowest (extrema) price level within the last N candles
			|ATR EXTREMA|
			This option uses the same price level as the EXTREMA STOP LOSS but will add/soustract the last ATR value (calculated on the N last candles) multiplied by a coefficient that you input
			|TICKS EXTREMA|
			This option uses the same price level as the EXTREMA STOP LOSS but will add/soustract a number of ticks that you input
			|PRICE LEVEL|
			This option allows you to input a fixed price level for the stop loss
	- TAKE PROFIT SETTINGS
		6 - Select your take profit from 3 different options
			|NONE| (default option)
			This option will not display any take profit level, I have added this option as I don't have take profit targets
			|RR|
			This option uses a risk to reward ratio (reward/risk) that you input, it will automatically calculate the take profit level that corresponds
			|PRICE LEVEL|
			This option allows you to input a fixed price level for the take profit
	- QUANTITY AND FEE SETTINGS
		7 - Set the quantity settings, it represents the quantity in a lot (usually 100 000 in forex, 100 in stocks 1 for crypto currencies)
		8 - Set the fee per quantity (turning lot)
	- VISUAL SETTINGS
		9 - Show or remove the tab
	- TAB SETTINGS
		10 - Select the data that you want to display in the tab (the tab will adapt automatically)
NOTES:
The vertical dashed line shows what candle has been used for the calculation of the stop loss, it allows you to visualize what candle the script has selected in case of an EXTREMA stop loss option.
I hope this helps you out! Any suggestions are welcome and I hope that the guide is clear enough.
Happy trading!
Swing ComparatorHere I bring you an array of methods to compare the swings and consistency between assets. 
This indicator is excellent for swing traders and scalpers looking to maximize their profits by examining which of two closely related pairs provides greater price fluctuation during given period. 
 This indicator works against two assets, which are to be configured in settings. 
 
This indicator has 5 particular plots for you to examine, each which can be considered for you to contemplate which pair for you to next perform a trade on. 
First off, let's start with the blue. 
The blue is simply a pearson correlation coefficient, thankfully now included in tradingview.  This provides a value of 1 as values show to be close correlation, 0 showing no correlation, and -1 showing negative correlation - meaning an increase in one pair correlates to a decrease in another pair. This will turn green when greater than 0.975, showing a very strong relationship between the two pairs, and red when below -0.975. This is the only plot to be interpreted on a scale from -1 to +1.
 Next, we have the purple and yellow background plots, followed by the white and green moving averages.  Though similar, these are all slightly different. 
For each of these 4 plots,   a value greater than 0 indicates greater price swings for your Symbol #1, while a value less than 0 indicates greater price swings for Symbol #2.  
These calculations are performed on a  per bar  basis, meaning you're likely going to be examining bars longer than what you'll normally be trading on. Use confluence, as well as your own judgement for this. 
For example, if symbol #1 provides a bar with an open value 1% greater  or less than  close, providing a 1% swing on a given bar, but  symbol #2 provides 2%, the indicator will fall down toward the negative, as Symbol #2 had the greater swing.  
First, yellow focuses on only open/close bar values, and thus the body of the candlestick. 
Purple, on the other hand, focuses on the wicks of the candle - thus, the high/low values. I've opted to make these two different values as a wick focuses on the embodiment within the time period, and body focuses on the open/close instant.
Next, the green is an  extended EMA  of the purple - High/Low ratio. This is important to examine trend overtime, and reduce unneeded noise. 
Lastly, the white is simply difference in the standard deviation of the particular bars, between the two symbols you have selected. The tends to usually tie up with the green pretty well. 
Considering this is going to by nature be very noisy datasets, I have included in settings the option to extend an EMA for everything. They have their default settings, but if you'd like to examine the trend without an EMA, feel free to set it to 1 to eliminate its effects. 
I have additionally added the ability to introduce clipping, as well as scale the correlation coefficient to remain visible when examining very short term time scales. In the future, I hope to properly normalize all plots to remain within a -1 to +1 basis. Please be patient as I have multiple projects ongoing.
Suggestions and constructive criticism are very well encouraged.
Anyone is welcome to utilize this in their code, as well, i just ask you provide credit. 
 As you reduce to time frames less than a day, you will likely have to reduce the coefficient min/max closer to 0.025, or just hide it entirely. 
 
TODO: 
 
  Make it look better. Sorry, folks.
  Introduce latency between pairs. 
  Examine significance of a coefficient of determination
  Remove static weights and introduce z-score and linear normalization.
  Consider adding room for a 3rd pair. This could get ugly, however.
Ehlers Super PassBand Filter [CC]The Super PassBand Filter was created by John Ehlers (Stocks & Commodities V. 34:07 (10–13)) and this is a pretty useful indicator to let you know how volatile the market is right now. This is useful for scalpers because this lets you avoid the choppy markets (usually when the rms is 1.50 or less but feel free to choose your own level) and gives you good entry and exit points. Buy when the indicator line is green and sell when it is red.
Let me know if there are other indicators you would like to see me publish or if you want something custom done!
[blackcat] L3 Bias ScalperLevel: 3
Background
Bias alone is a powerful tool for trading. I use SMA3, SMA10, SMA20, SMA30 to cover short and middle term of the trend for scalping. Multiple biases can be introduced for long and short entries.
Function
Use SMAs and biases for scalping with whale move alert (banker fund flow detection)
Key Signal
buy --> entry signal for long
strongbuy --> entry signal for long
add --> buy more or re-entry signal  for long
reduce --> partial exit for long
exit --> complete exit for long
sell --> short entry signal
whalemove --> banker fund move detection
Pros and Cons
This script provides entry signal together with whale detection by bias algorithms, you can use whale move to predict next move of trend in large time frame. However, trading signal should be further filtered out for more precise entry signal.
Remarks
At beginning, I want to make it simple and it looks very complex at the end...
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.






















