UniversalPositionCalculatorV5🚀 Universal Position Calculator v5 (with Margin-Check) 🚀
Stop using calculators and complicated Excel sheets! 🤯 With the Universal Position Calculator v5, you have the ultimate tool right on your TradingView chart to manage your position size perfectly. Whether it's Forex, Gold, or Indices – this indicator does all the work for you!
✨ What does this indicator do? ✨
This indicator is your personal risk manager. It calculates the exact lot size for your next trade based on your capital, your desired risk, and your leverage. The best part? It immediately checks if your trade is even possible with your margin and warns you if you're about to over-leverage your account! 🚦
🌟 Key Features at a Glance 🌟
Automatic Lot Calculation: Just enter your risk in percent, and the indicator calculates the perfect lot size.
Margin Check: Instantly detects if your desired position size is limited by your margin and adjusts it. No more margin calls due to oversized positions!
For All Asset Classes: Works perfectly for Forex pairs (e.g., EURUSD) and other assets like commodities (XAUUSD) or indices (GER30). 💹
Currency Conversion: Automatically converts between your account currency and the asset's currency. It doesn't matter if you trade in EUR, USD, CHF, or JPY. 💱
Interactive Lines: Simply drag and drop the Entry and Stop Loss lines directly on the chart to plan your trade. 🎯
Clear Info Panel: All important information (lot size, required margin, risk in €/$/...) is displayed cleanly and clearly on your chart.
🛠️ How to Use: It's This Easy! 🛠️
The setup is a piece of cake and done in two simple steps.
Step 1: Configure Your Setup
Go to the indicator settings and fill out the "1. Setup" section:
Asset Type: Choose Forex for currency pairs or Other for everything else (e.g., Gold, Oil, Indices).
Account Currency: Enter the currency of your trading account (e.g., USD).
Account Capital: Enter your current account capital.
Risk in % per Trade: How much of your capital do you want to risk per trade? (e.g., 1.0 for 1%).
Leverage: Enter your account's leverage (e.g., 30 for 30:1).
Contract Size for 'Other': IMPORTANT! Only for the Other type. For Gold (XAUUSD), this is often 100; for the DAX (GER30), it's often 1 or 25. Check your broker's specifications for this!
Step 2: Plan Your Trade
Now for the fun part in the "2. Trade Control" section:
Entry Line (Blue Line): Click on the blue line and drag it to your desired entry level. You can also enter the value manually in the settings.
Stop Loss Line (Red Line): Click on the red line and drag it to your stop-loss level.
Step 3: Read the Results
As soon as you've set your Entry and Stop Loss, the Info Panel in the top-right corner will instantly show you the results:
Correct Lot Size: This is the lot size you need to enter with your broker for this trade.
⚠️ Heads up: If it says "Lot Size (Margin Limited!)" in orange, it means your desired risk was too high for your leverage. The indicator has automatically reduced the lot size to the maximum possible to avoid a margin call.
Required Margin: This is how much capital will be blocked on your account as a security deposit (margin) for this trade.
Risk in : The exact amount of money you will lose if your stop loss is triggered.
With this tool, you can make disciplined and mathematically sound trading decisions. Good luck and Happy Trading! 📈💰
指標和策略
MA Signal IndicatorMA Signal Indicator
The MA Signal Indicator is a customizable designed to identify potential trading opportunities based on price interactions with a Simple Moving Average (SMA). It incorporates risk management features such as stop-loss (SL), take-profit (TP), and breakeven levels, calculated using the Average True Range (ATR). The indicator is visually intuitive, overlaying trade signals, price levels, and colored zones directly on the chart.
Key Features:
1. Moving Average-Based Signals:
• Generates buy (long) signals when the price crosses above a user-defined SMA (default: 55 periods).
• Generates sell (short) signals when the price crosses below the SMA.
• Long and short trades can be independently enabled or disabled via input settings.
2. Risk Management:
• Stop-Loss (SL): Set as a multiple of the ATR (default: 1x ATR) below the entry price for long trades or above for short trades.
• Take-Profit (TP): Set as a multiple of the ATR (default: 5x ATR) above the entry price for long trades or below for short trades.
• Breakeven Level: A trigger level (default: 2x ATR) where traders may choose to move their stop-loss to breakeven, optionally displayed on the chart.
3. Visual Feedback:
• SMA Line: Plotted in orange (default: 55-period SMA) for trend reference.
• Trade Zone: Highlights the area between the stop-loss and take-profit levels with a semi-transparent green (long) or red (short) background.
• Price Lines: Displays entry price (white), stop-loss (red), take-profit (green), and breakeven level (gray, optional) as horizontal lines during active trades.
• Signal Markers: Triangular markers indicate entry points (green triangle up for long, red triangle down for short).
• Exit Markers: Labels show when a trade hits the take-profit (green checkmark) or stop-loss (red cross).
4. Trade Logic:
• Only one trade is active at a time (long or short).
• Trades are exited when either the stop-loss or take-profit is hit, resetting the indicator for the next signal.
• Ensures signals are only triggered when not already in a trade, avoiding duplicate entries.
Inputs:
• MA Period: Length of the SMA (default: 55).
• ATR Period: Period for ATR calculation (default: 5).
• SL Multiplier: ATR multiplier for stop-loss (default: 1.0).
• TP Multiplier: ATR multiplier for take-profit (default: 5.0).
• Move to Breakeven After: ATR multiplier for breakeven trigger (default: 2.0).
• Show Break Even Line: Option to display the breakeven level (default: true).
• Allow Long Trades: Enable/disable long signals (default: true).
• Allow Short Trades: Enable/disable short signals (default: true).
Use Case:
This indicator is ideal for trend-following traders who want a clear, visual system for entering and exiting trades based on SMA crossovers, with predefined risk and reward levels. It suits both manual and automated trading strategies, providing flexibility to adjust parameters for different markets or timeframes.
Notes:
• The indicator is overlaid on the price chart for easy integration with other analysis tools.
• Users should test and adjust parameters (e.g., MA length, ATR multipliers) to suit their trading style and market conditions.
• The breakeven line is a visual guide; manual adjustment of stops is required as the indicator does not automatically modify trade positions.
This indicator provides a robust framework for disciplined trading with clear entry, exit, and risk management visuals.
ATR Trend Strategy + KAMA FilterATR Trend Strategy with XMA KAMA Filter
Strategy Description
This strategy combines a dynamic ATR trailing stop with an XMA KAMA filter to precisely detect trends and generate reliable entry signals.
It uses a two-step trend confirmation system:
1️⃣ ATR Trailing Stop
Based on the Average True Range (ATR), this trailing stop automatically adapts to market volatility.
It determines whether the market is in a bullish or bearish phase by comparing the current price to the ATR trailing stop level.
2️⃣ KAMA Filter (XMA Version)
KAMA (Kaufman Adaptive Moving Average) provides an additional trend filter.
This XMA version of KAMA avoids the traditional fast/slow parameters and instead dynamically calculates the ratio of signal to market "noise", helping to reduce false signals and over-sensitivity.
How It Works
Long Signal:
Price is above both the ATR trailing stop and the KAMA (XMA) line.
Short Signal:
Price is below both the ATR trailing stop and the KAMA (XMA) line.
What Makes This Strategy Different?
Unlike many classic strategies that rely on simple moving averages, this system uses an adaptive KAMA filter that responds better to changing market conditions and volatility.
The ATR trailing stop automatically adjusts to current market volatility, providing an extra layer of protection against false breakouts.
By combining these tools, this strategy offers:
Precise trend filtering
Avoidance of false breakouts and noise
Dynamic adjustment to market conditions
How to Use
Apply the strategy to any market chart (Forex, stocks, crypto, indices, etc.)
Adjust the ATR and KAMA parameters to match your trading plan
Use the TradingView Strategy Tester to evaluate performance before live trading
Who Is This For?
Swing traders and trend followers
Traders looking for clean, filtered signals with reduced noise
Medium-term traders seeking a system that adapts to market dynamics
Additional Info: Heikin Ashi Compatibility
This strategy is fully compatible with Heikin Ashi candles.
By applying it to a chart with Heikin Ashi candles, traders can further reduce market noise and enhance trend visualization.
The combination of ATR trailing stop + XMA KAMA filter + Heikin Ashi smoothing provides an even cleaner trend-following system, minimizing false signals and improving decision-making clarity.
SCPEM - Socionomic Crypto Peak Model (0-85 Scale)SCPEM Indicator Overview
The SCPEM (Socionomic Crypto Peak Evaluation Model) indicator is a TradingView tool designed to approximate cycle peaks in cryptocurrency markets using socionomic theory, which links market behavior to collective social mood. It generates a score from 0-85 (where 85 signals extreme euphoria and high reversal risk) and plots it as a blue line on the chart for visual backtesting and real-time analysis.
#### How It Works
The indicator uses technical proxies to estimate social mood factors, as Pine Script cannot fetch external data like sentiment indices or social media directly. It calculates a weighted composite score on each bar:
- Proxies derive from price, volume, and volatility data.
- The raw sum of factor scores (max ~28) is normalized to 0-85.
- The score updates historically for backtesting, showing mood progression over time.
- Alerts trigger if the score exceeds 60, indicating high peak probability.
Users can adjust inputs (e.g., lengths for RSI or pivots) to fine-tune for different assets or timeframes.
Metrics Used (Technical Proxies)
Crypto-Specific Sentiment
Approximated by RSI (overbought levels indicate greed).
Social Media Euphoria
Based on volume relative to its SMA (spikes suggest herding/FOMO).
Broader Social Mood Proxies
Derived from ATR volatility (high values signal uncertain/mixed mood).
Search and Cultural Interest Proxied by OBV trend (rising accumulation implies growing interest).
Socionomic Wildcard
Uses Bollinger Band width (expansion for positive mood, contraction for negative).
Elliott Wave Position
Counts recent price pivots (more swings indicate later wave stages and exhaustion).
LiliALHUNTERSystem_v2📚 **Library: LiliALHUNTERSystem_v2**
This library provides a powerful target management system for Pine Script developers.
It includes advanced calculators for EMA, RMA, and Supertrend, and introduces a central `createTargets()` function to dynamically render target lines and labels based on long/short trade logic.
🛠️ **Main Features:**
– Dynamic horizontal & vertical target lines
– Dual target configuration (Target 1 & Target 2)
– Directional logic via `isLong1`, `isLong2`
– Integrated Supertrend validation
– Visual dashboard and label display
– Works seamlessly with custom indicators
🎯 **Purpose:**
The `LiliALHUNTERSystem_v2` Library enables Pine coders to manage and visualize targets consistently across all trading strategies and indicators. It simplifies target logic while maintaining visual clarity and modular usage.
⚠️ **Disclaimer:**
This script is intended for educational and analytical purposes only. It does not constitute financial advice.
Library "LiliALHUNTERSystem_v2"
ema_calc(len, source)
Parameters:
len (simple int)
source (float)
rma_calc(len, source)
Parameters:
len (simple int)
source (float)
supertrend_calc(length, factor)
Parameters:
length (simple int)
factor (float)
createTargets(config, state, source1A, source1B, source2A, source2B)
Parameters:
config (TargetConfig)
state (TargetState)
source1A (float)
source1B (float)
source2A (float)
source2B (float)
showDashboard(state, dashLoc, textSize)
Parameters:
state (TargetState)
dashLoc (string)
textSize (string)
TargetConfig
Fields:
enableTarget1 (series bool)
enableTarget2 (series bool)
isLong1 (series bool)
isLong2 (series bool)
target1Condition (series string)
target2Condition (series string)
target1Color (series color)
target2Color (series color)
target1Style (series string)
target2Style (series string)
distTarget1 (series float)
distTarget2 (series float)
distOptions1 (series string)
distOptions2 (series string)
showLabels (series bool)
showDash (series bool)
TargetState
Fields:
target1LineV (series line)
target1LineH (series line)
target2LineV (series line)
target2LineH (series line)
target1Lbl (series label)
target2Lbl (series label)
target1Active (series bool)
target2Active (series bool)
target1Value (series float)
target2Value (series float)
countTargets1 (series int)
countTgReached1 (series int)
countTargets2 (series int)
countTgReached2 (series int)
Price PivotsThis indicator tracks price pivots and displays the high / low value.
You can select the number of candles to look back.
You can select how many candles range before the next pivot is printed.
Text size and colours are user defined.
DTC - Dream Trading ClubDTC - Dream Trading Club Indicator
The DTC - Dream Trading Club is a multi-timeframe trend-following indicator designed to help traders identify high-probability buy and sell opportunities. It combines a structured EMA-based trend detection system with dynamic entry, take-profit, and stop-loss levels, all displayed directly on the chart.
Core Features
EMA-Based Trend Detection using 6 EMAs (30–60)
Automatic Buy/Sell Signal Generation based on trend shifts
Dynamic TP/SL Levels with clear visual labels
Multi-Timeframe Trend Dashboard (1H, 4H, Daily)
Unrealized PnL Tracker assuming 10x leverage
User Guide: TP, SL, and Entry Signals
1. Entry Signal:
A "LONG" or "SHORT" label appears when a clear trend reversal is detected using the EMAs. The entry is taken at the close of the signal candle.
2. Stop-Loss (SL):
The stop-loss is calculated based on price structure:
For LONG positions, SL is set to the lowest low of recent candles (based on selected "Length" setting).
For SHORT positions, SL is set to the highest high of recent candles.
The SL adapts to market volatility via the Tiny, Small, Mid, or Large lookback settings.
3. Take-Profit (TP):
The indicator generates 5 take-profit levels using multiples of the calculated risk (Entry - SL distance):
TP1 = Entry ± 1x Risk
TP2 = Entry ± 2x Risk
TP3 = Entry ± 3x Risk
TP4 = Entry ± 4x Risk
TP5 = Entry ± 5x Risk
These levels allow for strategic scaling out or partial profit-taking based on personal trade management preferences.
How the EMA Logic Works
This indicator uses six Exponential Moving Averages (EMAs): 30, 35, 40, 45, 50, and 60 periods. A trend is considered:
Bullish when the EMAs are stacked in ascending order (shorter EMAs above longer ones)
Bearish when they are stacked in descending order
In addition, the indicator pulls EMA data from three higher timeframes (1H, 4H, and 1D) and compares the fast and slow EMAs to determine broader market direction. This helps filter signals and identify confluence across timeframes.
LANZ Strategy 5.0 [Backtest]🔷 LANZ Strategy 5.0 — Rule-Based BUY Logic with Time Filter, Session Limits and Auto SL/TP Execution
This is the backtest version of LANZ Strategy 5.0, built as a strategy script to evaluate real performance under fixed intraday conditions. It automatically places BUY and SELL trades based on structured candle confirmation, EMA trend alignment, and session-based filters. The system simulates real-time execution with precise Stop Loss and Take Profit levels.
📌 Built for traders seeking to simulate clean intraday logic with fully automated entries and performance metrics.
🧠 Core Logic & Strategy Conditions
✅ BUY Signal Conditions:
Price is above the EMA200
The last 3 candles are bullish (close > open)
The signal occurs within the defined session window (NY time)
Daily trade limit has not been exceeded
If all are true, a BUY order is executed at market, with SL and TP set immediately.
🔻 SELL Signal Conditions (Optional):
Exactly inverse to BUY (below EMA + 3 bearish candles). Disabled by default.
🕐 Operational Time Filter (New York Time)
You can fully customize your intraday window:
Start Time: e.g., 01:15 NY
End Time: e.g., 16:00 NY
The system evaluates signals only within this range, even across midnight if configured.
🔁 Trade Management System
One trade at a time per signal
Trades include a Stop Loss (SL) and Take Profit (TP) based on pip distance
Trade result is calculated automatically
Each signal is shown with a triangle marker (BUY only, by default)
🧪 Backtest Accuracy
This version uses:
strategy.order() for entries
strategy.exit() for SL and TP
strategy.close_all() at the configured manual closing time
This ensures realistic behavior in the TradingView strategy tester.
⚙️ Flow Summary (Step-by-Step)
On every bar, check:
Is the time within the operational session?
Is the price above the EMA?
Are the last 3 candles bullish?
If conditions met → A BUY trade is opened:
SL = entry – X pips
TP = entry + Y pips
Trade closes:
If SL or TP is hit
Or at the configured manual close time (e.g., 16:00 NY)
📊 Settings Overview
Timeframe: 1-hour (ideal)
SL/TP: Configurable in pips
Max trades/day: User-defined (default = 99 = unlimited)
Manual close: Adjustable by time
Entry type: Market (not limit)
Visuals: Plotshape triangle for BUY entry
👨💻 Credits:
💡 Developed by: LANZ
🧠 Strategy logic & execution: LANZ
✅ Designed for: Clean backtesting, clarity in execution, and intraday logic simulation
LANZ Strategy 5.0🔷 LANZ Strategy 5.0 — Intraday BUY Signals, Dynamic Lot Size per Account, Real-Time Dashboard and Smart Execution
LANZ Strategy 5.0 is a powerful intraday tool designed for traders who need a visual-first, data-backed BUY system, enhanced with risk-aware lot size calculation and a real-time performance dashboard. This indicator intelligently detects strong momentum setups and provides visual and statistical clarity throughout the session.
📌 This is an indicator, not a strategy — It does not place trades automatically but provides precise conditions, alerts, and visual guides to support execution.
🧠 Core Logic & Features
BUY Entry Conditions (Signal Engine)
A BUY signal is triggered when:
The current price is above the EMA200 (trend filter)
The last 3 candles are bullish (candle body close > open)
You are within the defined session window (NY time)
When all conditions are met and you haven’t reached the daily trade limit, a signal appears on the chart and an optional alert is triggered.
Operational Hours Filter (NY Time)
You define:
Start time (e.g., 01:15 NY)
End time (e.g., 16:00 NY)
The system only evaluates and executes signals within this period. If a BUY setup occurs outside the window, it’s ignored. The chart is also highlighted with a transparent teal background to visually show active trading hours.
Lot Size Panel with Per-Account Risk Management
Designed for traders managing multiple accounts or capital sources. You can enable up to 5 accounts, each with:
Its own capital
Its own risk percentage per trade
The system uses the defined SL in pips, plus the instrument’s pip value, to calculate the lot size per account. All values are shown in a dedicated panel at the bottom-right, automatically updating with each new trade.
The emojis (🐣🦊🦁🐲🐳) distinguish each account visually.
Trade Visualization with Customizable Lines
When a signal is triggered:
An Entry Point (EP) line is drawn at the candle’s close.
A Stop Loss (SL) line is placed X pips below the entry.
A Take Profit (TP) line is placed Y pips above the entry.
All three lines are fully customizable in style, color, and thickness. You define how many bars the lines should extend.
Outcome Tracking & Real-Time Dashboard
Each trade outcome is measured:
SL hit = –1.00%
TP hit = +3.00%
Manual close = calculated dynamically based on price at close time
Each result is labeled on the chart near its level, and stored.
The top-right dashboard updates in real time:
✅ Number of trades
📈 Cumulative % gain/loss of the day (color-coded)
Alerts You Can Trust:
You’ll get a Buy Alert when a valid signal is formed
You’ll get a Trade Executed Alert when the visual operation is plotted
You’ll get a SL/TP Hit Alert with price and result
You’ll get a Manual Close Alert if the configured time is reached and the trade is still active
⚙️ Step-by-Step Execution Flow
At every bar, the system checks:
Are we within the session time window?
Is price above EMA?
Are the last 3 candles bullish?
✅ If yes:
A BUY signal is plotted
Entry/SL/TP lines are drawn
Lot sizes are calculated and displayed
Trade is added to the daily count
🕐 At the configured Manual Close time (e.g., 16:00 NY):
If the trade is still open, it's closed
A label is added with the exact result in %
💡 Ideal For:
Intraday traders who operate within fixed time sessions
Traders managing multiple accounts or capital pools
Anyone who wants full visual clarity of every decision point
Traders who appreciate dynamic lot size calculation and clean execution tracking
👨💻 Credits:
💡 Developed by: LANZ
🧠 Strategy concept & execution model: LANZ
🧪 Tested on: 1H charts with visual-only execution
📈 Designed for: Clarity, adaptability, and full intraday control
Multi MA Cross SignalsSummary
This script provides a comprehensive view of key medium and long-term moving averages, designed to identify significant trend changes and shifts in market momentum. It plots four essential moving averages for price and generates clear, actionable signals based on both price and volume crossovers.
The primary goal is to visualize the well-known "Golden Cross" and "Death Cross" signals using a 50-day EMA and 200-day SMA, while also incorporating volume analysis to confirm the strength of a potential move.
Features
Four Key Moving Averages:
50-day Price EMA (Yellow): Tracks short-to-medium term trend momentum.
50-day Price SMA (Green): Provides a baseline for the 50-day period.
100-day Price SMA (Blue): Offers a medium-term trend perspective.
200-day Price SMA (Orange): Represents the long-term trend benchmark.
Price Crossover Signals (Trend Change):
B1 (Buy Signal): A "B1" label appears below the price bar when the 50-day Price EMA crosses above the 200-day Price SMA. This is a classic bullish signal, often called a "Golden Cross," indicating a potential shift to a long-term uptrend.
D1 (Sell Signal): A "D1" label appears above the price bar when the 50-day Price EMA crosses below the 200-day Price SMA. This is a classic bearish signal, often called a "Death Cross," suggesting a potential shift to a long-term downtrend.
Volume Crossover Signals (Momentum Confirmation):
B2 (Volume Spike Signal): A "B2" label appears below the price bar when the 50-day Volume EMA crosses above the 100-day Volume SMA, indicating a significant increase in trading activity that can support a new trend.
D2 (Volume Drop Signal): A "D2" label appears above the price bar when the 50-day Volume EMA crosses below the 100-day Volume SMA, suggesting waning interest or momentum.
How to Use
Identify Trend Direction: Use the B1 (bullish) and D1 (bearish) signals as primary indicators for potential long-term trend reversals.
Confirm with Volume: Look for a B2 signal to appear shortly after a B1 signal to confirm that the new uptrend is supported by rising volume. Conversely, a D2 signal can add conviction to a D1 bearish cross.
General Analysis: Use the four moving averages as dynamic levels of support and resistance to complement your trading strategy.
1-Min Candle Value > 10 Crvolume above 10 cr, 1 min candle vol above 1 cr,volume above 10 cr, 1 min candle vol above 1 cr,v,volume above 10 cr, 1 min candle vol above 1 cr,volume above 10 cr, 1 min candle vol above 1 cr,volume above 10 cr, 1 min candle vol above 1 cr,volume above 10 cr, 1 min candle vol above 1 cr,v
Apex Edge - VantageApex Edge – Vantage
Quarter-Wick Reversal System | Price Action Based | Non-Repainting | Visual Confirmation Tool
Overview:
Apex Edge – Vantage is a precision price action indicator built to assist traders in identifying high-probability reversal entries — not based on indicators, but on how candles behave at their extremes.
This tool implements a clean, repeatable framework that reflects how I personally trade:
Spot a candle that closes with strong directional intent,
Then wait for a controlled pullback into the outer quarter,
And strike — only if price respects that line.
There’s no magic here — just raw, tactical logic visualized clearly on your chart. It's not designed to predict the market — it's built to respond when price offers you Vantage.
Core Logic:
Dot Detection – Final Quarter Close Candles
A green dot prints below a bullish candle if it closes within the top 25% of its wick-to-wick range.
A red dot prints above a bearish candle if it closes within the bottom 25% of its range.
These dots signify candles that made a strong, deliberate move in one direction — where price was pushed to an extreme and held that extreme into the close. These candles often signal institutional intent or momentum imbalance.
Entry Confirmation – Controlled Wick Rebalance
On the very next candle only, price must wick into the prior dot candle's outer quarter — but must not pass beyond it.
For buy entries, the wick must enter the bottom 25% of the previous green dot candle, but not dip below it.
For sell entries, the wick must reach into the top 25% of the red dot candle, but not exceed it.
This wick into the quarter is seen as a controlled rebalancing — a tactical reaction back into the origin zone before potential continuation.
Arrow Printing – Visual Entry Signal
Once the entry criteria are confirmed, an arrow is printed after the candle closes.
This arrow continues to print on each new candle as long as price does not violate the original entry zone — giving visual confirmation that the trade thesis is still valid.
If price breaks above/below the quarter range, the arrow disappears.
This ongoing confirmation is useful for staying in trades, managing risk, or spotting failed setups early.
Automatic Stop Loss Level
A horizontal Stop Loss line is drawn from the extreme wick of the original dot candle.
For buy entries, SL is placed below the green dot candle's low.
For sell entries, SL is placed above the red dot candle's high.
This provides immediate risk context — perfect for traders using limit orders or looking to scale in.
Coding Logic:
This script uses plotshape() and plot() functions for all visual elements.
Dot candles are identified using quarter-range logic via:
pinescript
Copy
Edit
close >= high - (high - low) * 0.25 // for bullish
close <= low + (high - low) * 0.25 // for bearish
Entry validation logic triggers only on the next candle, using:
pinescript
Copy
Edit
low >= quarterLine and low <= high // for buy entries
high <= quarterLine and high >= low // for sell entries
Arrows and SL lines are plotted only on closed candles, ensuring non-repainting behavior.
alertcondition() is used for real-time alerts on valid buy/sell triggers.
How I Personally Use It:
I wait for a dot to print — this shows directional conviction.
On the next candle, I watch for a tap into the outer quarter.
If the wick meets the criteria and the candle closes, I’ll execute manually at the close of that candle.
As long as the arrow remains on the chart, I know the setup hasn’t been invalidated.
I combine this with market structure, session timing, and liquidity context to build confluence around each trade.
Alerts Included:
Buy Entry Alert: When a green arrow prints (entry confirmed)
Sell Entry Alert: When a red arrow prints (entry confirmed)
These fire once per confirmed signal, allowing you to react in real-time or automate if desired.
Who This Is For:
Manual traders who want clean price-based entries
Anyone who uses market structure, SMC, or liquidity concepts
Traders looking to replace indicators with pure candle logic
Discretionary or semi-systematic traders who want visual tools to guide their decisions
Final Word
Apex Edge – Vantage doesn’t predict price — it shows you where price is offering you control.
This is a surgical tool designed to help you act only when the market gives you a measurable edge — and to stay in the trade as long as that edge holds.
If you're ready to stop chasing trades and start striking from a position of Vantage, then this tool belongs on your chart.
order flow buy/sell and profundity OrderBook Buy/Sell Flow & Polarity Indicator
This powerful indicator provides a detailed look into the market's internal dynamics by visualizing Order Flow (Tape/Time & Sales) and Price Polarity directly on your chart, all within a clean, customizable table. Understand real-time buying and selling pressure and gain insights into who's in control of the candle.
Key Features:
Real-time Order Flow (Tape/Time & Sales): Tracks individual "ticks" (price and volume updates) within the current bar, allowing you to see the immediate impact of buy and sell orders.
Dynamic Table Display: All data is presented in an intuitive, customizable table that can be positioned anywhere on your chart.
Aggregated Buy/Sell Volume: Clearly distinguishes between volume driven by buying (price moving up on a tick) and selling (price moving down on a tick).
"Rocket" Order Detection: Highlights unusually large buy or sell orders based on configurable thresholds (in BTC Millions for major cryptos, and Thousands/Millions for others), helping you spot significant institutional or whale activity.
Candle Polarity Section: A dedicated area in the table that shows the percentage of buying vs. selling volume for the entire current candle. The central cell dynamically blends between bullish (green) and bearish (red) colors, visually representing the dominant polarity.
Customizable Aesthetics: Full control over table colors, text colors, font sizes, and individual label colors to match your chart's theme.
Lightweight & Efficient: Designed to run smoothly without significant impact on your chart's performance.
Why Use This Indicator?
Most indicators only show you the result of price action. The "OrderBook Buy/Sell Flow & Polarity" indicator goes deeper, showing you the cause behind the price movement. By understanding the immediate order flow and the underlying buy/sell pressure within each candle, you can:
Identify accumulation or distribution: Spot when smart money might be entering or exiting positions.
Confirm breakouts/breakdowns: See if there's genuine volume behind price moves.
Gauge market sentiment in real-time: Quickly assess who is more aggressive – buyers or sellers.
Improve entry and exit points: Make more informed decisions based on live market activity.
Settings & Customization:
The indicator comes with a comprehensive set of input options, allowing you to fine-tune its appearance and functionality:
Table Position: Choose from various chart locations (Top/Middle/Bottom, Left/Center/Right).
Window Size (Order Flow): Adjust how many recent order flow "ticks" are displayed.
Colors: Personalize all table, text, and label colors.
Rocket Thresholds: Define the volume levels for "rocket" order detection based on asset type.
Polarity Section Toggle: Enable or disable the real-time candle polarity display.
Note: This indicator provides insights based on available real-time tick data from TradingView. While it simulates aspects of order book and tape reading, it is important to remember that direct access to full exchange Level 2 data is not available on TradingView.
Disclaimer: This indicator is for informational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results.
SMI Cross Contrarian Filter (RSI+SMI) with Buy&Sell SignalsSMI Trend Filter Pro with Buy&Sell Signals is a smart momentum-based signal tool that combines the Stochastic Momentum Index (SMI) with RSI and MFI filters to improve the accuracy of trend-based entries.
What it does:
• Detects crossovers between the SMI and its signal line for entry timing.
• Confirms buy/sell signals using:
• Zone Filters — only allow entries when SMI and its signal line are in defined overbought/oversold zones.
• RSI Filter — helps avoid buying in overbought or selling in oversold markets.
• MFI Filter — adds volume-weighted validation to the signal.
Entry Conditions:
• Buy Signal: SMI crosses above signal line + both are in oversold zone + optional RSI & MFI filters are valid.
• Sell Signal: SMI crosses below signal line + both are in overbought zone + optional RSI & MFI filters are valid.
Visualization:
• Green up triangle = Buy Signal
• Red down triangle = Sell Signal
Fully customizable:
• SMI lengths and smoothing
• RSI and MFI parameters
• Enable/disable zone and filter conditions
N-Pattern Detector (Advanced Logic)Introduction
The N-Pattern Detector (Advanced Logic) is a powerful Pine Script-based tool designed to identify a specific price structure known as the "N-pattern", which often indicates trend continuation or potential breakout points in the market. This pattern combines zigzag pivot logic, retracement filters, volume confirmation, and trend alignment, offering high-probability trading signals.
It is ideal for traders who want to automate pattern detection while applying smart filters to reduce false signals in various markets — including stocks, forex, crypto, and indices.
What is the N-Pattern?
The N-pattern is a 3-leg price formation consisting of points A-B-C-D. It typically follows this structure:
Bullish N-Pattern:
A → Low Pivot
B → Higher High (Impulse)
C → Higher Low (Retracement)
D → Breakout above B (Confirmation)
Bearish N-Pattern:
A → High Pivot
B → Lower Low (Impulse)
C → Lower High (Retracement)
D → Breakdown below B (Confirmation)
The pattern essentially reflects a trend–pullback–breakout structure, making it suitable for continuation trades.
Key Features
1. Intelligent ZigZag Pivot Detection
Uses pivot highs/lows to define key swing points (A, B, C).
Adjustable ZigZag depth to control pattern sensitivity.
Filters noise and avoids false signals in volatile markets.
2. Retracement Validation
Validates the B→C leg as a proper pullback using Fibonacci-based thresholds.
User-defined min and max retracement settings (e.g., 38.2% to 78.6% of A→B leg).
3. Trend Filter via EMA
Filters patterns based on trend direction using a customizable EMA (e.g., 200 EMA).
Only detects bullish patterns above EMA and bearish patterns below EMA (optional).
4. Volume Confirmation
Ensures that impulse legs (A→B, C→D) are supported by stronger volume than the correction leg (B→C).
Adds another layer of confirmation and reliability to detected patterns.
5. Target Projections
Automatically draws 100% A→B projected target from point C.
Optional Fibonacci extensions at 1.272 and 1.618 levels for take-profit planning.
Visually plotted on the chart with colored dashed/dotted lines.
6. Clear Visuals & Labels
Connects all pattern points with colored lines.
Clearly labels points A, B, C, D on the chart.
Uses customizable colors for bullish and bearish patterns.
Includes real-time alerts when a valid pattern is detected.
How to Use It
Add to Chart
Apply the indicator to any chart and time frame. It works across all asset classes.
Adjust Inputs (Optional)
Set ZigZag Depth to control pivot detection sensitivity.
Define Min/Max Retracement levels to match your trading style.
Enable or disable Trend and Volume filters for cleaner signals.
Customize EMA length (default: 200) for trend validation.
Wait for Pattern Confirmation
The indicator constantly scans for valid N-patterns.
A pattern is confirmed only after point D forms (breakout or breakdown).
You’ll see the full pattern drawn with target levels.
Set Alerts
Alerts trigger automatically on confirmation of a bullish or bearish pattern.
You can customize these in TradingView’s alerts panel.
ICT & Zeussy Macro - Vertical Lines at Specific Times 1.0# ICT & Zeussy Macro - Vertical Lines at Specific Times 1.0
## Description
The **ICT & Zeussy Macro - Vertical Lines at Specific Times 1.0** is a Pine Script indicator designed for TradingView to plot vertical lines at user-defined times within each hour, making it a valuable tool for traders following ICT (Inner Circle Trader) and Zeussy macro strategies. The indicator allows users to mark specific times during the trading day with customizable vertical lines, helping to highlight key market moments such as macro times for analysis or trade planning.
## Key Features
- **Customizable Time Selection**: Choose specific hours (00:00 to 23:00) to display vertical lines using checkboxes in the settings.
- **Flexible Minute Inputs**: Define exact minutes for green and orange lines using comma-separated values (e.g., "45,15" for green lines at :45 and :15, or "50,0,10" for orange lines at :50, :00, :10).
- **Color and Style Customization**: Select colors for green and orange lines, as well as the line style (Solid, Dashed, or Dotted) to suit your chart preferences.
- **Historical and Future Plotting**: Configure the number of past and future days to display lines, allowing for analysis of historical patterns or planning for upcoming sessions.
- **Line Limit Management**: The indicator supports up to 500 lines to comply with TradingView's limits, with a warning label displayed if the maximum is reached.
## How It Works
The indicator plots vertical lines at specified minutes within selected hours for each chosen day:
- **Green Lines**: Drawn at user-defined minutes (default: :45 and :15 past the hour).
- **Orange Lines**: Drawn at user-defined minutes (default: :50, :00, and :10 past the hour).
- Users can enable or disable specific hours via checkboxes, and the lines are plotted for the specified number of past and future days.
- The indicator uses the chart's timezone to ensure accurate placement of lines relative to the market's session times.
## Usage
1. **Add to Chart**: Apply the indicator to your TradingView chart.
2. **Configure Settings**:
- In the "Hour Selection" group, check the boxes for the hours you want to display lines (e.g., 08:00 to 23:00 are enabled by default).
- In the "Green Minutes" and "Orange Minutes" fields, enter comma-separated minute values (e.g., "45,15" for green, "50,0,10" for orange).
- Adjust the "Days in Past" and "Days in Future" to control how many days the lines will cover.
- Customize the "Green Color", "Orange Color", and "Line Style" to match your chart aesthetics.
3. **Monitor Limits**: If you see a "Line limit reached (500 max)" warning, reduce the number of selected hours or days to stay within TradingView's line limit.
## Ideal For
- Traders using ICT or Zeussy macro strategies to identify key times for market analysis.
- Users who need to mark recurring time-based events on their charts.
- Technical analysts looking to visualize specific time intervals across multiple days.
## Notes
- Ensure that the number of selected hours and days does not exceed TradingView's 500-line limit to avoid missing lines.
- The indicator respects the chart's timezone, so verify that your chart's timezone aligns with your trading session.
- For optimal performance, limit the number of past and future days when using multiple hours to avoid hitting the line limit.
This indicator is perfect for traders who rely on precise timing for their strategies, offering a clean and customizable way to visualize critical market moments.
[Teyo69] T1 ATR Standard Deviation Breakout Bands🧭 OVERVIEW
T1 ATR Standard Deviation Breakout Bands is a breakout tool designed to detect volatility-driven price expansion beyond statistically significant zones. It calculates real-time ATR-based standard deviation bands, dynamically tracking breakout conditions with adjustable smoothing. With flexible moving average types and the Kijun-sen as the default baseline, this indicator is built for traders who want to avoid fakeouts and only engage when volatility confirms conviction.
✨ FEATURES
Utilizes ATR standard deviation for real-time volatility band calculations
Supports multiple moving average types (EMA, SMA, WMA, etc.) including Kijun-sen by default
Adjustable ATR multiplier to fine-tune breakout sensitivity
Fully configurable length inputs and MA source types
Identifies long opportunities when price closes above the upper band
Identifies short opportunities when price closes below the lower band
Ideal for trend continuation, momentum breakouts, and volatility-based filtering
🎯 HOW TO USE
Apply the indicator on your preferred timeframe (works best on trending conditions).
Set your baseline MA to match your system (default: Kijun-sen).
Adjust the ATR period and multiplier to balance sensitivity vs. noise.
Go long when the close breaks above the upper standard deviation band.
Go short when the close breaks below the lower standard deviation band.
Use Markers signals to highlight breakout moments.
Can also be used to identify if price is ranging when it is in the gray area of the indicator
⚙️ CONFIGURATION
Length: Period for the moving average and ATR
MA Type: Choose from EMA, SMA, WMA, or Kijun-sen
ATR Multiplier: Controls how wide the breakout bands are
Source: Price type used for calculations (default: close)
⚠️ LIMITATIONS
Standard deviation assumes price is statistically normal — not always true during news spikes
Band expansion does not guarantee follow-through — use in conjunction with volume or trend filters
💡 ADVANCED TIPS
Combine with a trend filter (e.g., 200 EMA) to trade only in the direction of the dominant trend
Use wider ATR multipliers on lower timeframes to reduce noise
Pair with oscillators (e.g., RSI, MACD) for breakout + momentum confluence setups
For scalping, reduce the length but widen the multiplier slightly
📓 NOTES
The standard deviation of ATR is used to capture how volatile volatility itself is. This reveals when the market is entering statistically significant price expansion.
Why this matters: Standard deviation is a core statistical tool for understanding distribution outliers. When price exceeds the upper band, it is outside normal volatility expectations — signaling potential breakout strength.
This indicator applies breakout theory to volatility, not just price action, offering a unique edge over classic Bollinger or Keltner bands.
Crypto Trend Overlayindicator utk mengenal support & resistant, untuk digunakan pada tf1h & tf4h. boleh digunakan untuk trade crypto atau gold
Indicator to Identify Support & Resistance Levels, designed for use on the 1-hour (1H) and 4-hour (4H) timeframes. Suitable for trading cryptocurrencies or gold.
Option Auto Anchored VWAPThis indicator automatically shows two Anchored VWAP lines.
The first gets placed on the very first candle of the chart.
The second is set on the last or current day you select in the settings.
TeeLek-BestPositionThis indicator is used to indicate the best buying and selling points.
This indicator will calculate the best buying points (blue) and selling points (orange). The working principle is that the blue point is the point where the RSI is Over Sold, the orange point is the point where the RSI is Over Bought. After that, we will use the Highest Line 100 and Lowest Line 100 to filter the points another layer. And because when Over Bought/Over Sold occurs, there will be continuous signals that are repeated, causing confusion. Therefore, there is a feature to leave a time frame. Set the default value to 24 hours. If a signal occurs, it will be left out.
The appropriate point for buying is:
The point where Over Sold occurs and Closes lower than the Lowest Line 100.
Leave a time frame for 24 hours before a new signal occurs.
The appropriate point for selling is:
The point where Over Bought occurs and Closes higher than the Highest Line 100.
Leave a time frame for 24 hours before a new signal occurs.
It helps us to gradually buy and collect/sell for profit easily without confusion.
อินดิเคเตอร์นี้ใช้ สำหรับบอกจุดซื้อจุดขายที่ดีที่สุด
อินดิเคเตอร์นี้ จะคำนวณจุดซื้อ (สีฟ้า) และจุดขาย (สีส้ม) ที่ดีที่สุดมาให้ โดยหลักการทำงาน คือ จุดสีฟ้า คือจุดที่ RSI Over Sold จุดสีส้ม คือจุดที่ RSI Over Bought หลังจากนั้นเราจะใช้เส้น Highest Line 100 และ Lowest Line 100 เพื่อกรองจุดอีกชั้นหนึ่ง และเนื่องจากเมื่อเกิด Over Bought/Over Sold แล้ว มันจะเกิดสัญญาณต่อเนื่องซ้ำๆ ทำให้สับสน จึงได้มีฟีเจอร์ในการเว้นระยะเวลา ตั้งค่าไว้เริ่มต้นที่ 24 ชั่วโมง ถ้าเกิดสัญญาณแล้วก็จะเว้นระยะออกไป
จุดที่เหมาะสมกับการซื้อ คือ
จุดที่เกิด Over Sold และ Close ต่ำกว่าเส้น Lowest Line 100
เว้นระยะไป 24 ชั่วโมงจึงจะเกิดสัญญาณใหม่อีกครั้ง
จุดที่เหมาะสมกับการขาย คือ
จุดที่เกิด Over Bought และ Close สูงกว่าเส้น Highest Line 100
เว้นระยะไป 24 ชั่วโมงจึงจะเกิดสัญญาณใหม่อีกครั้ง
ช่วยให้เราสามารถ ทยอยซื้อเก็บสะสม/ทยอยขายทำกำไร ได้ง่ายไม่สับสน
GOLD - 3min - LA TimeZone | US Daily Trade🔰 Strategy Description
GOLD - 3min - LA TimeZone (Buy & Sell) is a precision-engineered breakout-reentry strategy designed for Gold (XAUUSD) during the Los Angeles session, optimized for the 3-minute timeframe.
It identifies the Opening Range (first 60 minutes starting at 18:00 LA time), waits for price to break outside the range, and then looks for a reentry signal back into the range — a powerful reversal pattern often seen in gold.
📌 Key Features
⏰ Session Time: Designed for the LA session (18:00–19:00)
📈 Reentry Logic: Signals when price moves back inside the range from outside (either top or bottom)
🎯 Take-Profit & Stop-Loss: Fully adjustable via inputs (default TP: 1%, SL: 0.5%)
🛑 Force Close: Automatically closes open positions at 17:55 LA time
🔔 Alerts Enabled: Buy, Sell, and Force Close alerts included
🧠 Notes
Only one trade per day is allowed to reduce overtrading.
Built for fast scalping and reversal catching on gold.
Works best on volatile days with clear opening moves.
Feel free to test, customize risk settings, and align this tool with your own trading plan.
Backtest it thoroughly before using in live environments.
📊 Published by: US Daily Trade
Sesión Asiatica 5-10 PM México + EMAs + Cruces# Asian Session EMA Crossover Indicator
## Overview
This Pine Script indicator is designed specifically for trading during the Asian session (5-10 PM Mexico time) and focuses on EMA crossover signals with visual markers.
## Key Features
### 1. **Multiple EMAs Display**
- **EMA 8** (Blue line) - Short-term trend
- **EMA 13** (Green line) - Medium-term trend
- **EMA 21** (Yellow line) - Intermediate trend
- **EMA 55** (Red line) - Long-term trend
- Toggle option to show/hide all EMAs
### 2. **Asian Session Focus**
- Configured for Mexico timezone (America/Mexico_City)
- Active trading window: 5:00 PM - 10:00 PM Mexico time
- Crossover signals only trigger during this session
### 3. **EMA 8/13 Crossover Detection**
- **Bullish Signal**: Green triangle (↑) appears below price when EMA 8 crosses above EMA 13
- **Bearish Signal**: Red triangle (↓) appears above price when EMA 8 crosses below EMA 13
- Signals only occur during Asian session hours
### 4. **Alert System**
- Real-time alerts for bullish crossovers
- Real-time alerts for bearish crossovers
- Alerts only fire during Asian session
## Configuration Options
- Customizable EMA periods (default: 8, 13, 21, 55)
- Show/hide EMAs toggle
- Show/hide crossover signals toggle
- Timezone selection (Mexico City, GMT-6, GMT-5)
- Session time adjustment
## Use Case
Ideal for traders who focus on Asian market hours and use EMA crossover strategies for entry signals. The indicator helps identify momentum shifts during the Asian session while filtering out noise from other trading sessions.
MA Deviation
This indicator visualizes the percentage deviation between up to 3 configurable moving averages (MA), helping traders assess trend momentum and potential overextension.
✅ Key Features
Supports multiple MA types: Choose from SMA, EMA, WMA, RMA, VWMA, and HMA.
Set up to 3 custom MAs with different periods.
Plots the deviation (%) between each pair of selected MAs.
Background color highlights extreme deviations (green = strong positive deviation, red = strong negative deviation).
Data Window flag (1 or 0) shows whether background highlight is active.
⚠️ Notes
Deviation percentages are not predictive, but useful for identifying trend strength or market overheating.
Especially useful for trend analysis, not for exact entry signals.
Even if not all lines are shown, the background color may still appear based on the enabled MA comparisons.
このインジケーターは、3本の移動平均線(MA)の乖離率を視覚化し、相場の過熱感やトレンドの強さを判定するためのツールです。
✅ 主な機能
複数の移動平均タイプに対応:SMA, EMA, WMA, RMA, VWMA, HMAから選択可能。
最大3本の移動平均を自由に設定可能。
それぞれのMA間の乖離率(%)をチャートにプロット。
指定した閾値を超えた時に背景色を表示(緑=乖離が正方向に大きい、赤=負方向に大きい)。
データウィンドウ上で「背景表示フラグ」も確認可能(サインが出ているかどうかが数値で確認できます)。
⚠️ 注意事項
乖離率は過去の価格と比較したものであり、将来の価格を保証するものではありません。
短期トレードよりも、トレンドの強弱や過熱感の把握に適しています。
複数のMAを使用しない場合でも、背景色は他の設定されたMAペアで判定されることにご注意ください。