STBBT 📘 STBBT (Simple Two Bar Break Through)
Overview
STBBT plots breakout signals whenever the current bar breaks above or below the previous bar’s high/low.
It is a **simple and transparent breakout indicator**, designed to highlight every breakout event without complex filters.
If both directions are broken in the same bar, both signals are shown.
- "H" → Current bar’s high > Previous bar’s high
- "L" → Current bar’s low < Previous bar’s low
- Both can appear simultaneously on the same candle
---
Key Features
1. **Clear Breakout Logic**
• Detects when price moves beyond the previous candle’s range.
• High and Low breakouts are handled separately.
2. **Confirmation Options**
• Real-time mode: signals appear intrabar as soon as break occurs.
• Close-confirmation mode: signals appear only after bar close beyond previous high/low (reduces repainting).
3. **Visualization**
• "H" label above bars when high is broken.
• "L" label below bars when low is broken.
• Labels are gray with 60% transparency for a clean look.
• Optional guide lines for previous bar’s high/low.
4. **Dual Signal Support**
• If both high and low are broken in one bar, both H and L are displayed.
5. **Alerts**
• Alerts are available for both High and Low breakouts.
• Works in both real-time and close-confirmed modes.
---
How to Use
• Add STBBT to your TradingView chart.
• Choose between real-time or close-confirmed signals.
• Watch for H and L signals to identify momentum breakouts of the previous bar.
• Combine with other filters (trend, volume, higher timeframe) for stronger confirmation.
---
👉 In short:
**STBBT highlights simple, clean breakouts of the previous bar’s range.**
It shows H for high breaks, L for low breaks, and both if a candle breaks in both directions.
Corak carta
Volume Weighted Average Price HPSIt helps you to get to know about the volume basis on monthly , yearly and so on.
Globex Trap w/ percentage [SLICKRICK]Globex Trap w/ Percentage
Overview
The Globex Trap w/ Percentage indicator is a powerful tool designed to help traders identify high-probability trading opportunities by analyzing price action during the Globex (overnight) session and regular trading hours. By combining Globex session ranges with Supply & Demand zones, this indicator highlights potential "trap" areas where significant price reactions may occur. Additionally, it calculates the Globex session range as a percentage of the daily Average True Range (ATR), providing valuable context for assessing market volatility.
This indicator is ideal for traders in futures markets or other instruments traded during Globex sessions, offering a visual and analytical edge for spotting key price levels and potential reversals or breakouts.
Key Features
Globex Session Tracking:
Visualizes the high and low of the Globex session (default: 3:00 PM to 6:30 AM PST) with customizable time settings.
Displays a semi-transparent box to mark the Globex range, with labels for "Globex High" and "Globex Low."
Calculates the Globex range as a percentage of the daily ATR, displayed as a label for quick reference.
Supply & Demand Zones:
Identifies Supply & Demand zones during regular trading hours (default: 6:00 AM to 8:00 AM PST) with customizable time settings.
Draws semi-transparent boxes to highlight these zones, aiding in the identification of key support and resistance areas.
Trap Area Identification:
Highlights potential trap zones where Globex ranges and Supply & Demand zones overlap, indicating areas where price may reverse or consolidate due to trapped traders.
Customizable Settings:
Adjust Globex and Supply & Demand session times to suit your trading preferences.
Toggle visibility of Globex and Supply & Demand zones independently.
Customize box colors for better chart readability.
Set the lookback period (default: 10 days) to control how many historical zones are displayed.
Configure the ATR length (default: 14) for the percentage calculation.
PST Timezone Default:
All times are based on Pacific Standard Time (PST) by default, ensuring accurate session tracking for users in this timezone or those aligning with U.S. West Coast market hours.
Recommended Usage
Timeframes: Best used on 1-hour charts or lower (e.g., 15-minute, 5-minute) for precise entry and exit points.
Markets: Optimized for futures (e.g., ES, NQ, CL) and other instruments traded during Globex sessions.
Historical Data: Ensure at least 10 days of historical data for optimal visualization of zones.
Strategy Integration: Use the indicator to identify potential reversals or breakouts at Globex highs/lows or Supply & Demand zones. The ATR percentage provides context for whether the Globex range is significant relative to typical daily volatility.
How It Works
Globex Session:
Tracks the high and low prices during the user-defined Globex session (default: 3:00 PM to 6:30 AM PST).
When the session ends, a box is drawn from the start to the end of the session, capturing the high and low prices.
Labels are placed at the midpoint of the session, showing "Globex High," "Globex Low," and the range as a percentage of the daily ATR (e.g., "75.23% of Daily ATR").
Supply & Demand Zones:
Tracks the high and low prices during the user-defined regular trading hours (default: 6:00 AM to 8:00 AM PST).
Draws a box to mark these zones, which often act as key support or resistance levels.
ATR Percentage:
Calculates the Globex range (high minus low) and divides it by the daily ATR to express it as a percentage.
This metric helps traders gauge whether the overnight price movement is significant compared to the instrument’s typical volatility.
Time Handling:
Uses PST (UTC-8) for all time calculations, ensuring accurate session timing for users aligning with this timezone.
Properly handles overnight sessions that cross midnight, ensuring seamless tracking.
Input Settings
Globex Session Settings:
Show Globex Session: Enable/disable Globex session visualization (default: true).
Globex Start/End Time: Set the start and end times for the Globex session (default: 3:00 PM to 6:30 AM PST).
Globex Box Color: Customize the color of the Globex session box (default: semi-transparent gray).
Supply & Demand Zone Settings:
Show Supply & Demand Zone: Enable/disable zone visualization (default: true).
Zone Start/End Time: Set the start and end times for Supply & Demand zones (default: 6:00 AM to 8:00 AM PST).
Zone Box Color: Customize the color of the zone box (default: semi-transparent aqua).
General Settings:
Days to Look Back: Number of historical days to display zones (default: 10).
ATR Length: Period for calculating the daily ATR (default: 14).
Notes
All times are in Pacific Standard Time (PST). Adjust the start and end times if your market operates in a different timezone or if you prefer different session windows.
The indicator is optimized for instruments with active Globex sessions, such as futures. Results may vary for non-24/5 markets.
A typo in the label "Globe Low" (should be "Globex Low") will be corrected in future updates.
Ensure your TradingView chart is set to display sufficient historical data to view the full lookback period.
Why Use This Indicator?
The Globex Trap w/ Percentage indicator provides a unique combination of session-based range analysis, Supply & Demand zone identification, and volatility context via the ATR percentage. Whether you’re a day trader, swing trader, or scalper, this tool helps you:
Pinpoint key price levels where institutional traders may act.
Assess the significance of overnight price movements relative to daily volatility.
Identify potential trap zones for high-probability setups.
Customize the indicator to fit your trading style and market preferences.
OTHERS / ETH//@version=5
indicator("OTHERS / ETH", shorttitle="OTHERS/ETH", overlay=false, precision=6)
// --- Symbol inputs
others = request.security("CRYPTOCAP:OTHERS", "D", close)
eth = request.security("BINANCE:ETHUSDT", "D", close)
// --- Ratio
ratio = eth != 0 ? others / eth : na
// --- Plot
plot(ratio, color=color.orange, linewidth=2, title="OTHERS/ETH")
// --- Optional Moving Average
ma = ta.ema(ratio, 21)
plot(ma, color=color.blue, linewidth=2, title="EMA 21")
// --- Alerts
alertcondition(ta.crossover(ratio, ma), title="Cross Up", message="OTHERS/ETH crossed above EMA21")
alertcondition(ta.crossunder(ratio, ma), title="Cross Down", message="OTHERS/ETH crossed below EMA21")
Psych Zones – Single 750-pip Range (000 to 750)Market analysis structure for highs and lows of marketing structure and increase the level of market development of market highs and lows
Custom Screener Score (MACD atan-slope + RSI + BB)MACD atan-slope + RSI + crossover
also added decay from crossover
Open=High & Open=Low StrategyJUST A SIMPLE HEIKENASHI OPEN LOW STRATEGY . YOU CAN BUT SELL BASED ON SIGNALS AND THIS STRATEGY IS HAVING AN OPTION TO FURTHER REDUCE RISK WITH OPTIONAL DOJI EXIT.
Just a simple heikenashi open low strategy. You can buy and sell based on signals and this strategy is having a optional doji exit to reduce ask
Daily Start Vertical Lines (≤1H)This indicator automatically plots vertical lines at the start of each new trading day, based on the selected chart’s timezone. Unlike the default daily session boundaries (which often start at 17:00 New York time), this tool ensures that lines are drawn precisely at 00:00 midnight of the chart’s timezone.
🔹 Features:
Plots a vertical line at every new day start (midnight).
Fully time-zone aware → lines adjust automatically when you change the chart’s timezone.
Customizable line style, width, and color.
Option to limit plotting to specific timeframes (e.g., show only on ≤ 1H charts).
Lightweight & optimized (does not clutter higher-timeframe charts).
🔹 Use Cases:
Quickly identify daily boundaries for intraday analysis.
Helps scalpers and day traders align trades with new day opens.
Useful for strategies that depend on daily session resets.
This tool is especially helpful for traders who want clarity when working across different time zones.
ATH Minimalist From Enigma.Dynamic indicator based on the latest ATH, showing the percentage up or down since that point.
Retail Herd Index (RSI + MACD + Stoch) [mqsxn]The Retail Herd Index is a sentiment-style indicator that tracks how many of the “classic retail indicators”: RSI, MACD, and Stochastic are screaming the same thing at once.
Instead of following each tool separately, this script unifies them into a single index score ranging from strongly bearish to strongly bullish. The more they agree, the stronger the signal.
This gives you an immediate snapshot of when retail-favorite signals are aligned (high probability of “herd” behavior), versus when they’re mixed and uncertain.
-----
🔎 How It Works
RSI contributes bullish when it’s oversold (and optionally rising), bearish when it’s overbought (and optionally falling).
MACD contributes bullish when MACD is above Signal (and optionally histogram > 0), bearish when MACD is below Signal (and optionally histogram < 0).
Stochastic contributes bullish on a %K > %D cross in the oversold zone, bearish on a %K < %D cross in the overbought zone.
Each module can be weighted individually, disabled, or tuned with custom thresholds. The total is combined into the Herd Index, plotted as columns above/below zero. Extreme zones can trigger bar coloring, labels, and alerts.
-----
⚙️ Inputs & Settings
Modules
Use RSI / Use MACD / Use Stochastic → Toggle each component on or off.
RSI
RSI Length → Period length for RSI calculation.
RSI Overbought / Oversold → Thresholds that trigger bearish/bullish conditions.
RSI Slope Confirmation → Requires RSI to be rising when oversold or falling when overbought.
RSI Source → Input price source for RSI.
MACD
MACD Fast / Slow / Signal → Standard MACD settings.
Require MACD hist above/below zero → Adds an extra filter: bullish only if histogram > 0, bearish only if histogram < 0.
Stochastic
%K Length / Smoothing / %D Length → Standard stochastic parameters.
Overbought / Oversold → Band levels for extreme signals.
Only count crosses inside bands → Restricts signals to crosses that occur fully inside the OB/OS zones.
Weights
Weight: RSI / MACD / Stoch → Adjust each module’s importance. Setting a weight to 0 disables its contribution.
Display
Color Bars By Herd Index → Colors candles when index is extreme.
Show Extremes Labels → Labels bars when the Herd Index reaches extreme bullish or bearish.
Extreme Threshold → Absolute value at which the index is considered “extreme” (default = 2).
Breakout Signals This indicator is a Pine Script tool for identifying potential trading opportunities using breakout signals. It provides two distinct types of breakout alerts and calculates a potential price target for one of them.
### Breakout Signal Types
* **Lowest Low Breakout:** This signal is triggered when the current bar closes above the high of the previous bar, and that previous bar had the lowest low within a user-defined lookback period. This indicates a potential bullish reversal after a short-term downtrend.
* **Highest High Breakout:** This signal occurs when the current bar's close price exceeds the highest high recorded within a specified lookback period. This pattern suggests strong bullish momentum and a potential continuation of an uptrend.
### Visuals and Alerts
The indicator helps visualize these signals on the chart by highlighting the background of entry candles. It uses a light green background for the Lowest Low Breakout and a light yellow for the Highest High Breakout. A table is displayed on the chart to show the details of the most recent Lowest Low Breakout and its calculated target. Additionally, it provides an alert feature to notify users in real time when either of the breakout conditions is met.
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
EdgeFlow Pullback [CHE]EdgeFlow Pullback \ — Icon & Visual Guide (Deep Dive)
TL;DR (1-minute read)
⏳ Hourglass = Pending verdict. A countdown runs from the signal bar until your Evaluation Window ends.
✔ Checkmark (green) = OK. After the evaluation window, price (HLC3) is on the correct side of the EMA144 for that signal’s direction.
✖ Cross (red) = Fail. After the evaluation window, price (HLC3) is on the wrong side of the EMA144.
▲ / ▼ Triangles = the actual PB Long/Short signal bar (sequence completed in time).
Small lime/red crosses = visual markers when HLC3 crosses EMA144 (context, not trade signals).
Orange line = EMA144 (baseline/trend filter).
T3 line color = Context signal: green when T3 is below HLC3, red when T3 is above HLC3.
Icon Glossary (What each symbol means)
1) ⏳ Hourglass — “Pending / Countdown”
Appears immediately when a PB signal fires (Long or Short).
Shows `⏳ currentBars / EvaluationBars` (e.g., `⏳ 7/30`).
The label stays anchored at the signal bar and its original price level (it does not drift with price).
During ⏳ you get no verdict yet. It’s simply the waiting period before grading.
2) ✔ Checkmark (green) — “Condition met”
Appears after the Evaluation Window completes.
Logic:
Long signal: HLC3 (typical price) is above EMA144 → ✔
Short signal: HLC3 is below EMA144 → ✔
The label turns green and text says “✔ … Condition met”.
This is rules-based grading, not PnL. It tells you if the post-signal structure behaved as expected.
3) ✖ Cross (red) — “Condition failed”
Appears after the Evaluation Window completes if the condition above is not met.
Label turns red with “✖ … Condition failed”.
Again: rules-based verdict, not a guarantee of profit or loss.
4) ▲ “PB Long” triangle (below bar)
Marks the exact bar where the 4-step Long sequence completed within the allowed window.
That bar is your signal bar for Long setups.
5) ▼ “PB Short” triangle (above bar, red)
Same as above, for Short setups.
6) Lime/Red “+” crosses (tiny cross markers)
Lime cross (below bar): HLC3 crosses above EMA144 (crossover).
Red cross (above bar): HLC3 crosses below EMA144 (crossunder).
These crosses are context markers; they’re not entry signals by themselves.
The Two Clocks (Don’t mix them up)
There are two different time windows at play:
1. Signal Window — “Max bars for full sequence”
A pullback signal (Long or Short) only fires if the 4-step sequence completes within this many bars.
If it takes too long: reset (no signal, no triangle, no label).
Purpose: avoid stale setups.
2. Evaluation Window — “Evaluation window after signal (bars)”
Starts after the signal bar. The label shows an ⏳ countdown.
When it reaches the set number of bars, the indicator checks whether HLC3 is on the correct side of EMA144 for the signal direction.
Then it stamps the signal with ✔ (OK) or ✖ (Fail).
Timeline sketch (Long example):
```
→ ▲ PB Long at bar t0
Label shows: ⏳ 0/EvalBars
t0+1, t0+2, ... t0+EvalBars-1 → still ⏳
At t0+EvalBars → Check HLC3 vs EMA144
Result → ✔ (green) or ✖ (red)
(Label remains anchored at t0 / signal price)
```
What Triggers the PB Signal (so you know why triangles appear)
LONG sequence (4 steps in order):
1. T3 falling (the pullback begins)
2. HLC3 crosses under EMA144
3. T3 rising (pullback ends)
4. HLC3 crosses over EMA144 → PB Long triangle
SHORT sequence (mirror):
1. T3 rising
2. HLC3 crosses over EMA144
3. T3 falling
4. HLC3 crosses under EMA144 → PB Short triangle
If steps 1→4 don’t complete in time (within Max bars for full sequence), the sequence is abandoned (no signal).
Lines & Colors (quick interpretation)
EMA144 (orange): your baseline trend filter.
T3 (green/red):
Green when T3 < HLC3 (price above the smoothed path; often supportive in up-moves)
Red when T3 > HLC3 (price below the smoothed path; often pressure in down-moves)
HLC3 (gray): the typical price the logic uses ( (H+L+C)/3 ).
Label Behavior (anchoring & cleanup)
Each signal creates one label at the signal bar with ⏳.
The label is position-locked: it stays at the same bar index and y-price it was born at.
After the evaluation check, the label text and color update to ✔/✖, but position stays fixed.
The indicator keeps only the last N labels (your “Show only the last N labels” input). Older ones are deleted to reduce clutter.
What You Can (and Can’t) Infer from ✔ / ✖
✔ OK: Structure behaved as intended during the evaluation window (HLC3 finished on the correct side of EMA144).
Inference: The pullback continued in the expected direction post-signal.
✖ Fail: Structure ended up opposite the expectation.
Inference: The pullback did not continue cleanly (chop, reversal, or insufficient follow-through).
> Important: ✔/✖ is not profit or loss. It’s an objective rule check. Use it to identify market regimes where your entries perform best.
Input Settings — How they change the visuals
T3 length:
Shorter → faster turns, more signals (and more noise).
Longer → smoother turns, fewer but cleaner sequences.
T3 volume factor (0–1, default 0.7):
Higher → more curvature/smoothing.
Typical sweet spot: 0.5–0.9.
EMA length (baseline) default 144:
Smaller → faster baseline, more cross events, more aggressive signals.
Larger → slower, stricter trend confirmation.
Max bars for full sequence (signal window):
Smaller → only fresh, snappy pullbacks can signal.
Larger → allows slower pullbacks to complete.
Evaluation window (after signal):
Smaller → verdict arrives quickly (less tolerance).
Larger → gives the trade more time to prove itself structurally.
Show only the last N labels:
Controls chart clutter. Increase for more history, decrease for focus.
(FYI: The “Debug” toggle exists but doesn’t draw extra overlays in this version.)
Practical Reading Flow (how to use visuals in seconds)
1. Triangles catch your eye: ▲ for Long, ▼ for Short. That’s the setup completion.
2. ⏳ label starts—don’t judge yet; let the evaluation run.
3. Watch EMA slope and T3 color for context (trend + pressure).
4. After the window: ✔/✖ stamps the outcome. Log what the market was like when you got ✔.
Common “Why did…?” Questions
Q: Why did I get no triangle even though T3 turned and EMA crossed?
A: The 4 steps must happen in order and within the Signal Window. If timing breaks, the sequence resets.
Q: Why did my label stay ⏳ for so long?
A: That’s by design until the Evaluation Window completes. The verdict only happens at the end of that window.
Q: Why is ✔/✖ different from my PnL?
A: It’s a structure check, not a profit check. It doesn’t know your entries/exits/stops.
Q: Do the small lime/red crosses mean buy/sell?
A: No. They’re context markers for HLC3↔EMA crosses, useful inside the sequence but not standalone signals.
Pro Tips (turn visuals into decisions)
Entry: Use the ▲/▼ triangle as your trigger, in trend direction (check EMA slope/market structure).
Stop: Behind the pullback swing around the signal bar.
Exit: Structure levels, R-multiples, or a reverse HLC3↔EMA cross as a trailing logic.
Tuning:
Intraday/volatile: shorter T3/EMA + tighter Signal Window.
Swing/slow: default 144 EMA + moderate windows.
Learn quickly: Filter your chart to show only ✔ or only ✖ windows in your notes; see which sessions, assets, and volatility regimes suit the system.
Disclaimer
No indicator guarantees profits. Sweep2Trade Pro \ is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Happy trading
Chervolino
20/40/60Displays three consecutive, connected range boxes showing high/low price ranges for customizable periods. Boxes are positioned seamlessly with shared boundaries for continuous price action visualization.
Features
Three Connected Boxes: Red (most recent), Orange (middle), Green (earliest) periods
Customizable Positioning: Set range length and starting offset from current bar
Individual Styling: Custom colors, transparency, and border width for each box
Display Controls: Toggle borders, fills, and line visibility
Use Cases
Range Analysis: Compare volatility across time periods, spot breakouts
Support/Resistance: Use box boundaries as potential S/R levels
Market Structure: Visualize recent price development and trend patterns
Key Settings
Range Length: Bars per box (default: 20)
Starting Offset: Bars back from current to position boxes (default: 0)
Style Options: Colors, borders, and visibility controls for each box
Perfect for traders analyzing consecutive price ranges and comparing current conditions to recent historical periods.
FVG Fusion – by EB | Smart Money ConceptsFVG Fusion – by EB is an advanced indicator based on Smart Money Concepts (SMC).
It automatically detects Fair Value Gaps (FVG) on multiple timeframes, along with key PDH/PDL (Daily Previous) and PWH/PWL (Weekly Previous) levels.
🔹 Key Features
Automatic detection of bullish and bearish FVGs
Multi-timeframe (M5 to D1)
PDH/PDL and PWH/PWL levels with lightning bolts
Configurable alerts when tapping on a FVG
Customizable colors, thicknesses, and automatic clearing.
💡 Ideal for traders who use Price Action and SMC to identify imbalances and high-probability zones.
MuLegend's NQ 1 Min Sniper Entry Set up!enter after the retest, and ride it to the next structure point!
MuLegend's NQ 1m Break & Retest Sniper (clean)This indicator will mos def alert you when on NQ 1 minute time frame, to ENTER, AFTER retest:
1) if its' a bullish retest: enter on the candle HIGHER than the retest candle, with the stop loss, under the retest candle, and target is the next structure point.
2) If it's a bearish retest candle: enter on the candle LOWER than the retest candle, with the stop lost above the retest candle, and your target is the next structure point.
MuLegend
Follow me on IG @ atltime2shine
Justin's Bitcoin Power Law PredictorJustin's MSTR Powerlaw Price Predictor is a Pine Script v6 indicator for TradingView that adapts Giovanni Santostasi’s Bitcoin power law model to forecast MicroStrategy (MSTR) stock prices. Using the formula Price = A * (daysSinceGenesis)^B, it calculates fair, upper, and floor prices with constants A_fair = 1.16e-17, A_floor = 0.42e-17, and B = 5.82, starting from Bitcoin’s genesis (January 3, 2009). The script plots these prices, displays values in a table.
Source: www.ccn.com
Justin's MSTR Powerlaw Price PredictorJustin's MSTR Powerlaw Price Predictor is a Pine Script v6 indicator for TradingView that adapts Giovanni Santostasi’s Bitcoin power law model to forecast MicroStrategy (MSTR) stock prices. The price prediction is based on the the formula published in this article:
www.ccn.com
Setup Cripto EMA + Volume//@version=5 indicator("Sinais Multi-Cripto – EMA+Volume (BTC/ETH/BNB/SOL/XRP)", overlay=false)
// Inputs emaFast = input.int(50, "EMA Curta") emaSlow = input.int(200, "EMA Longa") emaPull = input.int(20, "EMA Pullback") volLen = input.int(20, "Média Volume")
symBTC = input.symbol(defval="BINANCE:BTCUSDT", title="BTC") symETH = input.symbol(defval="BINANCE:ETHUSDT", title="ETH") symBNB = input.symbol(defval="BINANCE:BNBUSDT", title="BNB") symSOL = input.symbol(defval="BINANCE:SOLUSDT", title="SOL") symXRP = input.symbol(defval="BINANCE:XRPUSDT", title="XRP")
f_sig(sym) => c = request.security(sym, timeframe.period, close) v = request.security(sym, timeframe.period, volume) e50 = ta.ema(c, emaFast) e200 = ta.ema(c, emaSlow) e20 = ta.ema(c, emaPull) vma = ta.sma(v, volLen) long = (e50 > e200) and (c > e20) and (v > vma) short = (e50 < e200) and (c < e20) and (v > vma)
= f_sig(symBTC) = f_sig(symETH) = f_sig(symBNB) = f_sig(symSOL) = f_sig(symXRP)
// Exibição plotchar(btcL, title="BTC Long", char="▲", location=location.top) plotchar(btcS, title="BTC Short", char="▼", location=location.bottom) plotchar(ethL, title="ETH Long", char="▲", location=location.top) plotchar(ethS, title="ETH Short", char="▼", location=location.bottom) plotchar(bnbL, title="BNB Long", char="▲", location=location.top) plotchar(bnbS, title="BNB Short", char="▼", location=location.bottom) plotchar(solL, title="SOL Long", char="▲", location=location.top) plotchar(solS, title="SOL Short", char="▼", location=location.bottom) plotchar(xrpL, title="XRP Long", char="▲", location=location.top) plotchar(xrpS, title="XRP Short", char="▼", location=location.bottom)