Indicador Pine Script®
Média Móvel Simples (MMS)
LBR Cinderella Electric Curfew Session Capital ControlLinda Bradford Raschke's Cinderella Electric Curfew – Session Capital Control
Overview
This strategy demonstrates structured session-based trading with capital protection rules and volatility-adjusted risk management.
The core idea is simple:
Trade only during a defined exchange session, and automatically close all open positions once the session ends — enforcing a strict “capital curfew.”
The script includes configurable session templates for major global markets and applies risk-based position sizing using ATR-derived stop distance.
Core Features:
Session-Based Trading
Users can select a predefined exchange session (e.g., New York, London, Frankfurt, Tokyo, Hong Kong, Sydney).
Trades are only allowed during the selected session window.
Electric Curfew Logic
All open positions are automatically closed when the session ends (with optional grace period in minutes).
This prevents overnight exposure and reduces gap risk.
Risk-Based Position Sizing
Position size is calculated as:
Risk Amount ÷ Stop Distance
Where:
Risk Amount = % of current equity
Stop Distance = ATR × Multiplier
This ensures consistent capital allocation regardless of volatility regime.
ATR-Based Stops & Targets
Optional stop-loss and take-profit levels are volatility-adjusted.
Example Signal Logic
A simple SMA crossover is included as a placeholder.
Users are encouraged to replace it with their own entry logic.
Intended Use
This strategy is designed for:
• Intraday traders
• Session-based systems
• Traders avoiding overnight risk
• Prop-style capital discipline models
The session control framework can be integrated into any strategy logic.
Past performance does not guarantee future results.
Estratégia Pine Script®
[TL5 SMA] SMA-ALMA Momentum SystemA structured multi-moving-average framework designed to identify trend alignment, momentum shifts, and directional bias using a clean and intuitive visual system.
This indicator combines short-term responsiveness with medium- and long-term structure to help traders quickly assess market conditions without clutter.
🔍 What This Indicator Does
This script plots:
• SMA 8 → Short-term momentum
• ALMA 30 → Adaptive smoothing filter to reduce noise
• SMA 20 → Short-term structure level
• SMA 50 → Medium-term trend reference
• SMA 77 → Long-term filter (colored by smoothed RSI momentum)
• RSI Background Bias → Visual bullish/bearish environment filter
🎯 Core Concept
The framework is built around trend stacking and momentum confirmation:
• When 8 > 20 > 50 > 77 → Strong bullish structure
• When 8 < 20 < 50 < 77 → Strong bearish structure
• RSI above 50 → Bullish market bias
• RSI below 50 → Bearish market bias
• SMA 77 color reflects smoothed RSI momentum direction
This allows traders to:
Identify trend continuation zones
Avoid counter-trend trades
Quickly assess structural alignment
Filter noise using ALMA
📊 How It Can Be Used
✔ Intraday trading
✔ Swing trading
✔ Trend continuation entries
✔ Pullback setups within dominant trend
✔ Bias confirmation tool
Works well on indices, forex, crypto, and commodities.
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always use proper risk management.
Indicador Pine Script®
Indicador Pine Script®
EMA/SMA RibbonThis indicator plots a two-line moving-average ribbon built from:
15-period EMA calculated on OHLC4 (Open+High+Low+Close)/4, with no offset
22-period SMA calculated on OHLC4, plotted with an offset of +6 bars
The space between the two averages is filled to form a ribbon:
Green ribbon when the EMA is above the SMA (using the SMA’s plotted/offset position so the color matches what you see on the chart)
Red ribbon when the SMA is above the EMA
Notes / Behavior:
The indicator uses the chart timeframe (no custom timeframe logic).
Because the SMA is intentionally shifted forward by 6 bars, the ribbon color is calculated against the visually aligned SMA so the color reflects the displayed relationship between the two lines.
No crossover markers or dots are plotted (ribbon-only).
How to use:
Use the ribbon color as a quick visual trend bias:
Green generally suggests bullish bias (EMA leading above the shifted SMA)
Red generally suggests bearish bias (EMA below the shifted SMA)
Indicador Pine Script®
MTF 9 SMA of High (W/M/3M/6M/Year)MTF SMA is a powerful multi‑timeframe indicator that plots higher‑timeframe Simple Moving Averages (SMA) on any lower timeframe chart.
It helps traders clearly identify higher‑timeframe trend, dynamic resistance, and support levels without switching charts.
This indicator is especially useful for intraday and swing traders who want higher‑timeframe context while trading on lower timeframes.
✅ Key Features
📐 Multi‑Timeframe SMA Plotting
Default timeframes:
Weekly
Monthly
3‑Monthly
6‑Monthly
Yearly (12M)
Plus 2 additional custom timeframe placeholders
All SMAs are visible on any chart timeframe (1m, 5m, 1H, Daily, etc.)
🎯 Source Selection (Dropdown)
Choose one common source for all SMAs:
High
Close
Open
Low
This makes the indicator flexible for different trading styles:
High → resistance mapping
Low → support mapping
Close → trend confirmation
Open → session bias analysis
🏷️ Smart Labels (Optional)
Enable/disable labels per timeframe
Labels show:
Timeframe
SMA length
Optional live SMA value
Labels update only on the last bar (clean & clutter‑free)
Automatic vertical offset to avoid overlap
🎛️ Full Customization
Show / hide each SMA line individually
Custom colors and line width
Label position offset (right side)
Works seamlessly on all instruments (Equities, Indices, Crypto, Forex)
🧠 How to Use
Use Weekly / Monthly SMAs as major trend direction
Watch for price reaction near HTF SMAs on lower timeframes
Combine with:
Breakouts
Pullbacks
VWAP / RSI / Price Action
Ideal for top‑down analysis
⚙️ Technical Notes
Built using Pine Script v6
Uses request.security() for accurate higher‑timeframe values
Non‑repainting (no future data leakage)
Optimized label handling (v6‑safe, no mutable arguments)
📌 Best For
Swing traders
Positional traders
Anyone using multi‑timeframe analysis
🚀 Summary
MTF SMA brings higher‑timeframe structure directly onto your trading chart with clean visuals, flexible source selection, and precise labeling—making it easier to trade with the trend, not against it.
Indicador Pine Script®
Clouds and Diamonds════════════════════════════════════════════════════════════════════════════════
CLOUDS AND DIAMONDS INDICATOR
════════════════════════════════════════════════════════════════════════════════
OVERVIEW
--------
A visual trend analysis tool displaying four moving average "clouds" on your
chart, each representing a different time horizon. Helps identify trend
direction and current trend state at a glance.
THE CLOUDS
----------
Each cloud is formed by the space between an EMA and SMA of the same period.
Color-coded by "metal" for quick timeframe identification:
Cloud | Default | Color | Purpose
------------|---------|--------|----------------------
Period 1 | 21 | Pink | Short-term trends
Period 2 | 50 | Bronze | Medium-term trends
Period 3 | 100 | Silver | Longer-term trends
Period 4 | 200 | Gold | Major long-term trends
Cloud border colors indicate trend direction:
- Green border = Bullish (EMA above SMA)
- Red border = Bearish (EMA below SMA)
THE SIGNALS
-----------
At the end of the chart, each cloud displays its current trend state:
Signal | Shape | Meaning
----------|-------|----------------------------------------
Diamond | * | Currently bullish (EMA above SMA)
X-Cross | X | Currently bearish (EMA below SMA)
Note: Markers appear only on the last bar, providing a clean summary of current
trend conditions across all timeframes. Signal sizes increase with period
length — larger signals represent longer-term trends.
HOW TO USE IT
-------------
1. Identify the trend — Look at cloud border colors. Multiple green = strong
uptrend; multiple red = downtrend.
2. Check the end-of-chart signals — Diamonds = bullish, X = bearish. Multiple
diamonds across timeframes = strong bullish alignment.
3. Weigh by timeframe — A diamond on Gold (200) carries more weight than
Pink (21). Look for multi-timeframe confirmation.
4. Gauge trend strength — Price above all clouds = strong trend. Clouds
converging or price entering them = momentum slowing.
QUICK REFERENCE
---------------
Green cloud borders Bullish trend for that timeframe
Red cloud borders Bearish trend for that timeframe
Diamond (at end) Currently bullish
X-Cross (at end) Currently bearish
Larger marker Longer-term timeframe
All diamonds Strong bullish alignment
All X-crosses Strong bearish alignment
Mixed signals Consolidation or transition
════════════════════════════════════════════════════════════════════════════════
Indicador Pine Script®
Oliver Velez System Visual Helper [CocoChoco]Not endorsed by or related to Oliver Velez himself.
🐘 Oliver Velez System Visual Helper
🎯 Overview
Unlock the power of Institutional Trading with this precision tool designed for followers of the Oliver Velez (OV) methodology. This indicator specializes in identifying the "Narrow State"—the coiled spring of the market—and highlighting the high-probability entry candles that signal institutional participation.
Unlike standard indicators that lag, this helper focuses on the transition from low to high volatility, giving you a front-row seat to the moves that matter.
🧩 The Core Philosophy: The Narrow State
According to Oliver Velez, the most explosive moves in the market occur when the 20 SMA and the 200 SMA converge into a Narrow State. This represents a moment of equilibrium where both short-term and long-term traders are in agreement, and the next move is likely to be a significant expansion.
This indicator automates that discovery by:
Measuring Distance: It calculates the exact percentage gap between the SMAs to find the "coil."
Verifying Parallelism: It ensures the SMAs are moving "somewhat horizontal" and parallel, filtering out chaotic crossovers.
Multi-Timeframe Confirmation: It checks your higher timeframe (e.g., 15m) to ensure the big players are aligned before you take a trade on the smaller timeframe.
⚡ Power Entry Highlights
Once a Narrow State is confirmed, the indicator "paints" the chart with specific Velez-style entry patterns. These bars only highlight when Price > 20 SMA > 200 SMA (Bullish) or Price < 20 SMA < 200 SMA (Bearish), ensuring you never trade against the trend.
EB (Elephant Bar): The "Institutional Footprint." Large, solid-bodied bars that represent massive buying or selling.
TB (Tail Bar): Bottoming and Topping tails that show clear rejection of the SMAs, signaling a reversal into the main trend.
180 (Bull/Bear 180): A two-bar reversal pattern where the current bar completely engulfs the body of the previous bar, effectively "flipping" the momentum.
🛠️ Key Features
Dynamic Cloud Ribbon: A solid visual zone between the 20 and 200 SMAs that appears only when the Narrow State and MTF alignment are perfect.
Smart Bar Coloring: Only the specific institutional breakout bars change color, keeping your chart clean and professional.
Dual Alert System:
Narrow State Start: Get notified the second the market begins to coil.
Entry Candle Close: Get a ping exactly when a valid EB, TB, or 180 closes.
Consolidated Style: A clean UI that allows you to manage all pattern colors with a single picker.
🚀 How to Use
Wait for the Cloud: When the ribbon appears between the SMAs, the market is in a Narrow State.
Look for the Color: Watch for an Aqua (default) candle to form.
Check the Label: Verify the entry type (EB, TB, or 180).
Execute: Per OV's rules, enter on the break of the entry bar’s high/low with a stop at the tail/low of the bar.
Disclaimer: Trading involves significant risk. This tool is a visual aid, and may be significantly different from Oliver Velez system, and does not constitute financial advice. Always practice proper risk management.
Indicador Pine Script®
Capital Rotational Event CRE As A Multi Pair ScannerCapital Rotational Event (CRE) – Multi Pair Rotation Scanner
This open-source, non-overlay indicator scans for **capital rotation signals** across one lead/benchmark asset and up to four receiver/target assets simultaneously.
It detects when capital appears to be rotating **into** one or more of the receiver assets relative to the lead asset — a classic macro/rotation concept used in intermarket analysis.
Core Concept
In regime-shifting or macro-driven markets, money flows between asset classes or correlated instruments (risk-on → risk-off, equities → bonds, growth → value, etc.). When one asset class starts consistently outperforming another — and that outperformance is accelerating — it can signal a change in investor preference, risk appetite, or sector leadership.
This scanner visualizes that rotation in real time by calculating relative strength + momentum for multiple pairs at once.
How It Works
1. User selects:
- One Lead/ Benchmark asset (default: SPY – equities proxy)
- Up to four Receiver assets (defaults: GLD, TLT, USO, XLE)
2. For each receiver pair:
- Relative Strength (RS) = SMA( Receiver Close / Lead Close , RS Length )
- RS Momentum = SMA( change(RS) , Momentum Length )
3. Rotation Signal per pair:
- Bullish CRE (+1): RS > its own SMA **and** RS momentum > 0
→ Receiver outperforming Lead **and** the outperformance is accelerating
- Bearish CRE (-1): RS < its own SMA **and** RS momentum < 0
→ Receiver underperforming Lead **and** the underperformance is accelerating
- Neutral (0): otherwise
4. Visual Output:
- Four separate lines (green, blue, orange, purple) showing CRE signal for each receiver
→ +1 = bullish rotation into that asset
→ -1 = bearish rotation away from that asset
→ 0 = no clear rotation
- Background tint: light green when **at least one** receiver shows bullish CRE (+1)
Why this multi-pair scanner?
- Single-pair RS tools only show one relationship at a time.
- Monitoring multiple receivers simultaneously reveals **which** asset class or sector is currently receiving capital flows — very useful for macro traders, sector rotation strategies, or risk-on/off positioning.
- The momentum filter reduces lag and false signals compared to raw RS crossovers alone.
Typical Use Cases
- Risk-on/Risk-off: SPY (lead) vs GLD + TLT + USO (safe havens/commodities)
- Sector leadership: SPY vs XLE (energy) + XLK (tech) + XLV (healthcare) + XLF (financials)
- Macro themes: SPY vs TLT (equities vs bonds), DXY vs GLD, etc.
- Timeframes: Daily/weekly for macro swings, 4h/1h for tactical rotations
How to Use
1. Apply to any chart (timeframe of your choice — the indicator is timeframe-agnostic).
2. Set your preferred Lead asset and up to 4 Receivers in the inputs.
3. Adjust RS Length (default 14) and Momentum Length (default 9) to match your horizon.
4. Interpretation:
- Green line above zero → capital rotating into that receiver
- Multiple green lines rising → strong multi-sector rotation
- Light green background → at least one bullish rotation detected
- Use in combination with price action on the actual assets — this is a relative bias tool, not a direct trade signal.
5. Best in trending or regime-shifting markets; less useful when all assets move in strong correlation.
Inputs
- Lead Asset: benchmark (default SPY)
- Receiver 1–4: assets to monitor rotation into (defaults GLD, TLT, USO, XLE)
- RS Length: smoothing for relative strength (default 14)
- Momentum Length: smoothing for RS change (default 9)
Publishing Recommendation
- Publish with a clean chart (e.g., daily or 4h SPY, or any index/ETF)
- The indicator is non-overlay — it plots in a separate pane below price
- No other indicators needed for basic use
This script is fully open-source for transparency and learning. It highlights relative rotation patterns — not guaranteed future performance. Trading and investing involve significant risk of loss.
Feedback welcome — especially suggestions for other useful receiver pairs!
Indicador Pine Script®
SMA + RSI Strategy [Entry/Exit at Next Open]Entry Condition: Close is ABOVE SMA and RSI is BELOW 35
Exit Condition: Close is BELOW SMA and RSI is ABOVE 65
Estratégia Pine Script®
Super SMA Quartet (20/50/100/200)A combination of the 20-period, 50-period, 100-period, and 200-period SMAs. Use any or all of the SMAs at once for added convenience in technical analysis.
Indicador Pine Script®
Super SMA Quartet (20, 50, 100, 200)An indicator that combines the 20, 50, 100, and 200-period SMAs. No strategies here. You can freely select which of the four you want to see, if not all of them.
Indicador Pine Script®
Anchor-Point AverageAnchor-Point Average (APA) - Pine Script Indicator
Overview
The Anchor-Point Average (APA) is a unique technical indicator that calculates the average price from a user-defined starting point to the present. Unlike traditional Simple Moving Averages (SMA) that use a rolling window of fixed periods, APA uses a fixed anchor point in time, creating a cumulative average that grows with each new bar.
Key Features
Interactive Time Selection
Click-to-Select: Simply click on any bar in the chart to set your anchor point
Visual Markers: Clear labels show the start point with date/time and current average price
Flexible Analysis: Anchor to any significant event, price level, or time period
Multiple Price Types
Choose from 7 different price calculations:
Close: Standard closing price
Open: Opening price for gap analysis
High/Low: Track resistance and support levels
HL2: Midpoint price (High + Low) / 2
HLC3: Typical price (High + Low + Close) / 3
OHLC4: Average price (Open + High + Low + Close) / 4
Customizable Display
Color Settings: Customize both anchor point and current label colors
Clean Interface: Minimalist design with essential information only
Professional Labels: Display average price, sample count, and timestamps
Smart Alerts
Cross Above Alert: Notifies when price crosses above the anchor-point average
Cross Below Alert: Notifies when price drops below the anchor-point average
Visual Markers: Green triangles (bullish cross) and red triangles (bearish cross)
Why Anchor-Point Average?
Different from Traditional SMA
Traditional moving averages use a rolling window (e.g., last 20 bars), which means older data constantly drops out. APA maintains all data from your chosen anchor point, providing a true cumulative average that represents the mean price since that specific moment.
Use Cases
Long-Term Investment Analysis
Calculate average entry cost from your first purchase date
Track performance against your initial investment timing
Identify if current price is above or below your historical average
Event-Based Analysis
Anchor to product launches, earnings reports, or policy announcements
Measure price behavior after significant market events
Compare current price to post-event average levels
Support/Resistance Identification
The anchor-point average often acts as dynamic support or resistance
As more data accumulates, the line becomes increasingly stable
Price reactions to this level can signal trend continuation or reversal
Volatility Assessment
Increasing distance from anchor average indicates growing volatility
Convergence suggests consolidation or equilibrium
Track how current price deviates from long-term mean
Technical Advantages
Stability Over Time
As the sample size grows, the anchor-point average becomes progressively smoother and less sensitive to short-term volatility, providing a robust reference level.
Historical Context
Unlike moving averages that "forget" old data, APA preserves the entire price history from your chosen point, offering complete context for your analysis.
Psychological Significance
Often traders anchor mentally to specific dates or events. This indicator makes that psychological level visible and quantifiable.
How to Use
Add to Chart: Apply the indicator to any TradingView chart
Select Anchor Point: Click on the bar where you want to begin calculation
Choose Price Type: Select which price component to average (default: Close)
Customize Colors: Adjust label colors to match your chart theme
Set Alerts: Create alerts for price crossovers to stay informed
Perfect For
Long-term investors tracking cost basis
Swing traders analyzing from key pivot points
Event-driven traders measuring post-announcement trends
Anyone seeking a stable, cumulative price reference
Technical Notes
Built on Pine Script v5
Overlay indicator (plots directly on price chart)
Real-time calculation with bar-by-bar updates
Supports all timeframes and instruments
Zero repainting - calculations are final once bar closes
Indicador Pine Script®
MA Labels v8Display moving averages for different timeframes simultaneously. Possible to display only minimalist mono text labels or full, graphed color MAs. Fully configurable. Useful for getting full overview without changing chart timeframes.
By default it skips MA for current TF (possible to change).
Indicador Pine Script®
VWAP + Stoch + Macro Panel - Dale M.G. EditionThis indicator will allow you to get VWAP Buy or Sell signals in 5m or 15m timeframes. It filters the signals using the 1H 200 SMA.
Indicador Pine Script®
NYX08green bar color when market breaks above 13 ,25 and 30 ema
red bar color when market breaks below 13 ,25 and 30 ema
updated signal has to be above / below EMA200 ,SMA100 AND SMA300
with alerts
requested script feel free to make requests
Indicador Pine Script®
BULLRIDER INDICATORSENGLISH:
This is a compilation of indicators used by BULLRIDER (Yusuf Benli), combined with the time periods he uses. It's designed to allow users to easily enable and disable indicators with a single click, eliminating the need to deal with multiple indicators individually. Hopefully, it will be useful...
Indicador Pine Script®
DCA Zones: MA100 Buffer (Buy-the-Dip Highlight)Highlights potential DCA buy zones when price drops X% below the 100-period MA.
Indicador Pine Script®
Triple SMA3 customizable SMAs with adjustable lengths, colors, and line widths
Toggle each SMA on/off independently
Labels at end of each line showing the period
Values table showing current SMA values and distance from current price (%)
Grouped settings for easy configuration
Defaults: 20 (yellow), 50 (blue), 200 (red)
Indicador Pine Script®
% from 50 SMAThis calculates how much in percentage terms the current price is above or below simple 50 MA
Indicador Pine Script®
SMA 20 & 5 MagicMoving Average based envelops and bands are quite popular tools in the equity trading universe. One such popular band is 20 SMA High-Low band. In 20 SMA High-Low band generally a BUY is signaled when price breaks above the High of the band, and a SELL when price falls below the Low of the band. However, at times the time-price points to look for trading/ investing opportunities and taking position are not very clear in this generic mode.
This script combines the 20 SMA High-Low band and a 5 SMA line plotted over it, to tackle this limitation. It helps to find more precise trading/ investing opportunities, Entry and Exit time-price points above & below the band, traversing along the 5 SMA line. The price within the band is usually considered as 'no trades' zone.
This set up can be applied on any TF, but generally holds good for swings on daily/ hourly TFs. By tweaking SMA 20 and 5 to SMA 200 and 50 respectively in the settings, it may also help in identifying medium/Long term trends and investment opportunities using daily/ weekly TFs .
Take it as a tool for learning and analysis. Happy trading/ investing.
Indicador Pine Script®
20 MA Pack (SMA / EMA / SMMA / WMA) This script provides a flexible 20-period Moving Average toolkit designed for active traders working with futures and high-momentum instruments.
It includes:
• 20 SMA (Simple Moving Average)
• 20 EMA (Exponential Moving Average)
• 20 SMMA (Smoothed Moving Average)
• 20 WMA (Weighted Moving Average)
Each average responds differently to price action:
SMA → Balanced trend view
EMA → Faster reaction to momentum
SMMA → Smoother structure, reduces noise
WMA → Stronger emphasis on recent price
This pack is especially useful for:
Current month futures contracts
Commodities with short contract lifecycles
Intraday and short-term swing trading
Identifying trend direction and dynamic support/resistance
The 20-period length aligns closely with one trading month, making it particularly effective for near-month contracts where longer moving averages lose relevance.
Use individually or compare them together to understand how price reacts to different smoothing methods.
Indicador Pine Script®
MA Labels (Fully Custom, Padded)On screen reminder of whatever you want. I use it remember what MA line colors are.
Indicador Pine Script®






















