Mark the last 20th candleThis Pine Script indicator, titled "Mark last 20 candle" (short name: "Last 20"), was designed to visually highlight a specific candle on your TradingView chart.
What the indicator does:
The main function of this script is to exclusively mark the first candle within the most recent window of 20 candles on your chart . Instead of coloring all 20 candles, it precisely identifies and highlights only the beginning of this 20-candle sequence.
How the indicator works:
Number of candles: The script uses a user-defined variable, num_candles_to_mark , set to 20 , to specify the size of the relevant candle window.
Dynamic Identification: The indicator uses the built-in Pine Script variables:
bar_index: Represents the index of the currently processed candle (starting at 0).
last_bar_index: Represents the index of the very last available candle in your chart (the most recent).
Precise Marking: The core logic bar_index == last_bar_index - num_candles_to_mark + 1 calculates the exact index of the candle that is 20 bars before the last_bar_index . If the bar_index of the currently processed candle matches this calculated position, that specific candle is colored blue with 80% transparency.
Automatic Shift: As new candles appear on your chart (and last_bar_index increases accordingly), the calculated target index ( last_bar_index - num_candles_to_mark + 1 ) also automatically shifts one bar to the right. This ensures that the marked candle automatically "moves along" and always highlights the first candle of the current 20-candle window.
Usage:
This indicator is useful for traders who want to visually track the starting point of a fixed window of recent price action. It can help identify patterns or apply strategies relative to that specific candle.
To use it, simply copy the provided Pine Script code into your TradingView Pine Editor and add it to your chart. The marked candle will dynamically update as new data arrives.
Indicatori e strategie
Mark last 20 CandleThis Pine Script indicator, titled "Mark last 20 candle" (short name: "Last 20"), was designed to visually highlight a specific candle on your TradingView chart.
What the indicator does:
The main function of this script is to exclusively mark the first candle within the most recent window of 20 candles on your chart . Instead of coloring all 20 candles, it precisely identifies and highlights only the beginning of this 20-candle sequence.
How the indicator works:
Number of candles: The script uses a user-defined variable, num_candles_to_mark , set to 20 , to specify the size of the relevant candle window.
Dynamic Identification: The indicator uses the built-in Pine Script variables:
bar_index: Represents the index of the currently processed candle (starting at 0).
last_bar_index: Represents the index of the very last available candle in your chart (the most recent).
Precise Marking: The core logic bar_index == last_bar_index - num_candles_to_mark + 1 calculates the exact index of the candle that is 20 bars before the last_bar_index . If the bar_index of the currently processed candle matches this calculated position, that specific candle is colored blue with 80% transparency.
Automatic Shift: As new candles appear on your chart (and last_bar_index increases accordingly), the calculated target index ( last_bar_index - num_candles_to_mark + 1 ) also automatically shifts one bar to the right. This ensures that the marked candle automatically "moves along" and always highlights the first candle of the current 20-candle window.
Usage:
This indicator is useful for traders who want to visually track the starting point of a fixed window of recent price action. It can help identify patterns or apply strategies relative to that specific candle.
To use it, simply copy the provided Pine Script code into your TradingView Pine Editor and add it to your chart. The marked candle will dynamically update as new data arrives.
Custom Time Volume Profile [Fixed]Made it for auto draw VP on chart everyday .
Such as :
Previous Day VAH/POC/VAL
Previous Week VAH/POC/VAL
Current Session VAH/POC/VAL
Also can custom the time , colour .
Zero Lag MACD + Kijun-sen + EOM StrategyThis strategy offers a robust approach to identifying high-probability trading opportunities in the fast-paced cryptocurrency markets, particularly on lower timeframes (e.g., 5-minute). It leverages the synergistic power of three distinct indicators to confirm entries, ensuring a disciplined approach to risk management.
Key Components:
Zero Lag MACD Enhanced Version 1.2: This core momentum indicator is used to identify precise shifts in trend and momentum, offering reduced lag compared to traditional MACD. Entry signals are filtered based on the histogram's position (below for buys, above for sells) to enhance signal reliability.
Kijun-sen (Ichimoku Cloud): Acting as a dynamic support/resistance and trend filter, the Kijun-sen line confirms the prevailing market direction. Long entries are confirmed when price is above Kijun-sen, and short entries when price is below.
Ease of Movement (EoM): This volume-based oscillator provides crucial confirmation of price movements by measuring the ease with which price changes. Positive EoM confirms buying pressure, while negative confirms selling pressure, adding an essential layer of validation to trade setups.
How it Works:
The strategy generates entry signals only when all three indicators align simultaneously:
For Long Entries: A Zero Lag MACD buy signal (crossover below histogram) must coincide with price trading above the Kijun-sen, and the Ease of Movement indicator being above its zero line.
For Short Entries: A Zero Lag MACD sell signal (crossover above histogram) must coincide with price trading below the Kijun-sen, and the Ease of Movement indicator being below its zero line.
Entries are executed at the open of the candle immediately following the signal confirmation.
Risk Management:
Disciplined risk management is paramount to this strategy:
Dynamic Stop-Loss: An Average True Range (ATR) based stop-loss is implemented, set at 2.5 times the current ATR. This adapts the stop-loss distance to market volatility, ensuring sensible risk sizing.
Fixed Take-Profit: A consistent Risk-to-Reward (R:R) ratio of 1:1.2 is applied for all trades, promoting stable profit realization.
Customization & Optimization:
The strategy is built with fully customizable input parameters for each indicator (MACD lengths, Kijun-sen period, ATR period, ATR multiplier, and Risk-to-Reward ratio). This allows users to fine-tune the strategy for different assets, timeframes, and market conditions, facilitating robust backtesting and optimization.
Disclaimer: Trading involves substantial risk and is not suitable for all investors. Past performance is not indicative of future results. This strategy is provided for educational and informational purposes only. Always use proper risk management and conduct your own due diligence.
時間足固定ATRライン - 任意時間足This indicator displays the ATR value as a line. Please display the ATR of any time.
17時〜19時の高値安値ゾーン(四角形ver)This indicator displays the ATR value as a line. Please display the ATR of any time.
Ruptura + EMAs + VWAP + Vela Impulsiva + TP/SL🧭 Indicator: Breakout + EMAs + VWAP + Impulsive Candle + TP/SL
This indicator is designed to identify breakout trading opportunities by combining price action, moving averages, volume-weighted price, and impulsive candles, with clearly defined Take Profit (TP) and Stop Loss (SL) levels.
⏱️ Timeframe Logic:
The 15-minute chart is used to define the price range.
Entries are made on the 2-minute chart when breakout conditions align with momentum confirmation.
📌 Key Components:
Range Definition:
Calculates a price range based on a customizable number of candles (rangeBars), typically from the 15-minute timeframe.
Displays a shaded box highlighting this range.
Trend Filters:
Uses a fast EMA (9) and a slow EMA (21) to determine short-term and medium-term trends.
Includes VWAP as a dynamic support/resistance and directional filter.
Only allows trades when both EMAs and price confirm alignment above (for long) or below (for short) the VWAP.
Impulsive Candle Detection:
Confirms breakouts using large-bodied candles that engulf the previous candle's range.
The candle must exceed a certain multiple of the average range (minRangeMult) to qualify.
Breakout Entry Conditions:
Long Setup: Price breaks above the range high, with EMAs and VWAP confirming bullish alignment, and confirmed by an impulsive candle.
Short Setup: Price breaks below the range low, with EMAs and VWAP aligned bearishly, confirmed by an impulsive candle.
Trade Management:
Automatically plots Take Profit and Stop Loss levels based on the size of the entry candle and a customizable TP multiplier.
Visual dashed lines indicate TP (green) and SL (red) zones.
Session Filter:
Entry signals are limited to a specific time window (e.g., 9:00 to 10:00 AM New York time), typically during the NY session open.
Visual Aids:
Background color highlights potential entry zones (green for long, red for short).
Icons mark confirmed impulsive candles and entry signals.
Range box is updated periodically to reflect the active breakout zone.
Pivot Points StandardThis Pivot Points indicator calculates and plots pivot levels on your chart according to several popular methods (such as Traditional, Fibonacci, Woodie, Classic, Camarilla, etc.), helping traders identify key support and resistance levels. Pivot points are essential tools for predicting market reversal points, and this indicator does so efficiently in real-time.
Features:
Pivot Calculation Methods: Traditional, Fibonacci, Woodie, Classic, Camarilla, and more.
Customization Options: Adjust the pivot type, number of visible pivots, and other parameters like line color and thickness.
Custom Alerts: Receive automatic alerts when the price crosses any pivot level (S1, S2, R1, R2, etc.), helping you react quickly to potential market reversals.
Multiple Timeframe Support: Set the timeframe for the pivot calculations and view corresponding pivot levels for that period.
Visible Pivot Levels: Choose to show or hide the pivot levels directly on the chart, with the option to display the exact price of each level.
Flexible Label Positioning: Select whether pivot labels should appear on the left or right side of the pivot line.
Benefits:
Facilitates Decision-Making: Pivot levels help identify key zones where price is likely to reverse or stay within a range.
Real-Time Alerts: Alerts notify you as soon as the price crosses any key pivot level, enabling you to make quick and precise decisions without constantly monitoring the chart.
Customization: Easily adjust the indicator to suit your trading style and visual preferences.
Ideal For:
Traders looking for technical analysis tools to identify key market levels.
Those who want to receive automatic alerts about pivot level crossovers to streamline decision-making.
Investors using pivot analysis in their trading strategy to determine entry or exit points.
MohdTZ - XO Trend Scanner/EMA/ATR Bands/WatermarkATR Bands: Plots a 36-period EMA with upper and lower bands based on a 14-period ATR (Average True Range) multiplied by 0.5, creating a dynamic channel around the EMA to highlight volatility.
Trend Scanner: Uses Fast (12-period) and Slow (25-period) EMAs to identify bullish (green) or bearish (red) trends, with buy/sell signals marked by triangles and bar coloring.
Stochastic RSI: Calculates Stochastic RSI with customizable K, D, and band levels (80/50/20) for overbought/oversold conditions, with crossover alerts and optional background coloring.
200 EMA: Displays a 200-period EMA for long-term trend reference.
Watermark: Adds a customizable text watermark (title, subtitle, symbol info, date) with adjustable position, size, and color.
HA EMA Cross MTF Strategy + ATR SL/TP + Visuals📜 Strategy Description: HA EMA Cross MTF Strategy + ATR SL/TP + Visuals
Hello Traders,
This is a multi-timeframe, Heikin Ashi-based trend-following strategy that integrates EMA crossovers and ATR-driven exits. The goal is to filter out noise, confirm directional bias using higher timeframe structure, and manage risk through volatility-adaptive exits.
🔍 How the Strategy Works
* Heikin Ashi candles help smooth out minor price fluctuations, allowing for clearer trend detection.
* A Fast EMA crossing above or below a Slow EMA determines the local trend bias.
* A Higher Timeframe Heikin Ashi confirmation is used to validate entries only when both timeframes agree in direction.
* Session filters can restrict trading to custom hours (e.g., U.S. market open).
⚙️ Risk Management Features
This strategy includes optional ATR-based Stop-Loss and Take-Profit logic, designed to adapt dynamically to market volatility:
* ATR Stop-Loss: Based on a user-defined multiplier (default: 1.5×ATR)
* ATR Take-Profit: Based on a separate multiplier (default: 2.5×ATR)
* Users can toggle this logic on/off and customize ATR length and multipliers in the settings.
📊 Visual Aids Included
To help understand market behavior and trade execution visually, the script includes:
* Entry arrows (long and short)
* Real-time Fast EMA / Slow EMA overlays
* Stop-Loss / Take-Profit level plots
* Optional Heikin Ashi Close line for trend visualization
🔧 Customization Parameters
Users can adjust:
* EMA periods (fast and slow)
* ATR period and multipliers for SL/TP
* Session time filters
* Higher timeframe input
* Toggle ATR logic and visual overlays
🧪 Backtest Defaults (for reference only)
* Initial Capital: $10,000
* Order Size: 100% of equity
* Slippage: 1 tick
* Commission: 0.075%
* Recommended Timeframe: 1H or 15min
* Minimum Trades Suggested: 100+
* All these values can be adjusted in the strategy settings panel.
⚠️ Disclaimer
This strategy is provided for educational and research purposes only. It does not constitute financial advice, nor does it guarantee future performance. Please forward-test and adapt to your own risk tolerance before using in live trading.
This strategy is fully open-source and editable. Feel free to customize it for your use case and timeframes.
MohdTZ - XO Trend Scanner/EMA/ATR Bands/WatermarkATR Bands: Plots a 36-period EMA with upper and lower bands based on a 14-period ATR (Average True Range) multiplied by 0.5, creating a dynamic channel around the EMA to highlight volatility.
Trend Scanner: Uses Fast (12-period) and Slow (25-period) EMAs to identify bullish (green) or bearish (red) trends, with buy/sell signals marked by triangles and bar coloring.
Stochastic RSI: Calculates Stochastic RSI with customizable K, D, and band levels (80/50/20) for overbought/oversold conditions, with crossover alerts and optional background coloring.
200 EMA: Displays a 200-period EMA for long-term trend reference.
Watermark: Adds a customizable text watermark (title, subtitle, symbol info, date) with adjustable position, size, and color.
Hinterland(ORR/NRR)Adding a script which checks 2 consecutive red candles overlapping or non overlapping
Hinterland(OGG/NGG)Hinterland specific chart to show 2 consecutive green candles are overlapping or non overlapping.
Multi-Timeframe Price Action AnalysisMulti-Timeframe Price Action Analysis
This indicator analyzes price action across multiple timeframes to determine bullish and bearish signals. It creates a dashboard showing how price interacts with previous candles' highs and lows.
Features
- Analyzes 4 customizable timeframes simultaneously
- Detects when price:
-- Grabs lows and comes back inside (bullish)
-- Grabs highs and comes back inside (bearish)
-- Grabs both highs and lows
-- Moves above previous high
-- Moves below previous low
-- Calculates bullish/bearish percentages for each timeframe
-- Visual dashboard with color-coded signals
Adjustable confirmation settings
-- Settings
-- Customize timeframes (default: 15min, 1H, 4H, D)
-- Toggle confirmation waiting
-- Set number of confirmation candles
This is a very rudimentary version.. I will make a more robust version soon
For it to be considered a "grab" the current price must be within the previous candle's range..
This also does not focus on candle closures just highs and lows
Also note that this is a little aggressive in that it does not require a bullish close for example to be considered bullish, a bearish close inside the previous candle is considered valid, this is to handle the morning stars that have a slightly bearish close in middle candle etc.. obviously do not rely on this indicator.. look at the price action and determine if you think its worth taking..
Same goes for bullish closes inside previous candle after grabbing highs..
Death Cross & Golden CrossDeath Cross & Golden Cross
When Short term (Red) EMA crosses Long term EMA singals a Buy/Sell. When the reverses sqaure off the trade.
M2 GLI SD BandsHighly customizable M2 Global Liquidity Index with adaptive standard deviation bands.
The SD bands incorporate data from M2 with varying lags to capture M2's full impact on the price of Bitcoin spread across multiple weeks.
EMAs are used for smoothing. Offset, smoothing, and other features are customizable.
ES High-Probability EntriesKey Features:
1. Triple Confirmation System:
- Trend: Price relative to 200 EMA (optional)
- Momentum: EMA crossover (9/21)
- Volatility: Breakout beyond previous close ± ATR
2. Customizable Filters:
- Toggle 200EMA trend filter on/off
- Enable/disable RSI momentum filter
- Adjustable period lengths for all indicators
3. Signal Logic:
Long Entries:
- Fast EMA crosses above Slow EMA
- RSI > 50 (if enabled)
- Price above 200 EMA (if enabled)
- Close > Previous Close + ATR
Short Entries:
- Fast EMA crosses below Slow EMA
- RSI < 50 (if enabled)
- Price below 200 EMA (if enabled)
- Close < Previous Close - ATR
4. Visual Indicators:
- Green triangles below bars for long entries
- Red triangles above bars for short entries
- EMA lines plotted for visual confirmation
### Usage Instructions:
1. Apply to 1-minute ES chart
2. Adjust parameters in settings:
- Disable 200EMA filter for range-bound markets
- Modify ATR length for volatility sensitivity
- Adjust EMA lengths for trend sensitivity
3. Combine with price action confirmation:
- Enter on next candle after signal
- Look for supporting volume/patterns
This system filters out low-probability trades by requiring confirmation from three technical dimensions. The ATR requirement ensures moves have sufficient momentum to overcome typical noise, while the trend filter keeps you aligned with larger timeframes.
Institutional Key Levels + VWAP Alerts (Labeled)🧠 Description:
This free version of the Institutional Key Levels + VWAP script gives you instant, auto-updating visibility on the most important price zones for intraday and swing trading.
✅ Designed for traders who want clean, data-driven levels without daily redrawing.
🧱 What It Shows:
Prior Day High (PDH)
Prior Day Low (PDL)
Prior Day Close (PDC)
Live VWAP
Color-coded horizontal lines + optional chart labels
Built-in alert conditions for:
Breakout above PDH
Breakdown below PDL
VWAP Reclaim or Rejection
📊 Ideal for:
Futures traders (MNQ, ES, MGC, etc.)
Equity scalpers
Options traders using directional bias
Traders who use VWAP as a dynamic S/R guide
🔧 No need to draw lines manually. This script updates daily with zero maintenance and lets you stay focused on execution.
Parabolic SAR Distance to CloseParabolic SAR Distance to Close + Editable MA + Editable Borders + Editable PSAR
SMA Strategy with Re-Entry Signal (v6 Style)*SMA Trend Strategy with Re-Entry Signal (v6 Edition)*
This indicator is based on a classic moving average trend-following system, enhanced with re-entry signals designed for medium to short-term traders.
---
### 📈 Key Features:
1. *Trend Detection Logic:*
- The 30-period SMA (SMA30) is used as the trend filter.
- When the closing price is above the SMA30, the market is considered to be in an uptrend.
2. *Re-Entry Signal:*
- While in an uptrend, if the closing price crosses above the SMA20, a re-entry (add position) signal is triggered.
- These signals are shown with green upward arrows below the bars.
3. *Background Highlighting:*
- Green background: indicates an uptrend.
- Red background: indicates a break below SMA30, suggesting weakening momentum.
4. *Multi-SMA Visualization:*
- Five SMAs are displayed: SMA10, SMA20, SMA30, SMA60, and SMA250.
- This helps visualize both short-term and long-term trend structures.
---
### 🔍 Usage Tips:
- Use this script directly on your main chart to monitor trend direction and wait for re-entry signals during pullbacks.
- Combine with other tools like volume, price action, or candlestick patterns to confirm entries.
---
### ⚠️ Disclaimer:
- This indicator is for educational and informational purposes only. It does not constitute financial advice or a buy/sell signal.
- Avoid relying solely on this script for trading decisions. Always manage your own risk.
---
👨💻 *Developer’s Note:*
This script is 100% manually developed, not copied or auto-generated. It is an original implementation based on my personal trading logic. Suggestions and feedback are welcome!