Trend Vanguard StrategyHow to Use:
Trend Vanguard Strategy is a multi-feature Pine Script strategy designed to identify market pivots, draw dynamic support/resistance, and generate trade signals via ZigZag breakouts. Here’s how it works and how to use it:
ZigZag Detection & Pivot Points
The script locates significant swing highs and lows using configurable Depth, Deviation, and Backstep values.
It then connects these pivots with lines (ZigZag) to highlight directional changes and prints labels (“Buy,” “Sell,” etc.) at key turning points.
Support & Resistance Trendlines
Pivot highs and lows are used to draw dashed S/R lines in real-time.
When price crosses these lines, the script triggers a breakout signal (long or short).
EMA Overlays
Up to four EMAs (with customizable lengths and colors) can be overlaid on the chart for added trend confirmation.
Enable/disable each EMA independently via the settings.
Repaint Option
Turning on “Smooth Indicator Lines” (repaint) uses future data to refine past pivots.
This can make historical signals look cleaner but does not reflect true historical conditions.
Turning it off ensures signals remain fixed once they appear.
Strategy Entries & Exits
On each new ZigZag “Buy” or “Sell” signal, the script closes any open position and flips to the opposite side (if desired).
Works with the built-in TradingView Strategy engine for backtesting.
Additional Inputs (Placeholders)
Volume Filter and RSI Filter settings exist but are not fully implemented in the current code. Future versions may incorporate these filters more directly.
How to Use
Add to Chart: Click “Indicators” → “Invite-Only Scripts” (or “My Scripts”) and select “Trend Vanguard Strategy.”
Configure Settings:
Adjust ZigZag Depth, Deviation, and Backstep to fine-tune pivot sensitivity.
Enable or disable each EMA to see how it aligns with market trends.
Toggle “Smooth Indicator Lines” on or off depending on whether you want repainting.
Backtest and Forward Test:
Use TradingView’s “Strategy Tester” tab to review hypothetical performance.
Remember that repainting can alter past signals if enabled.
Monitor Live:
Watch for breakout triangles or ZigZag labels to identify potential reversal or breakout trades in real time.
Disclaimer: This script is purely educational and not financial advice. Always combine it with sound risk management and thorough analysis. Enjoy exploring the script, and feel free to experiment with the different settings to match your trading style!
Padrões gráficos
TA Monks - EntriesEntry tool for users who depend on setting entry, stop and profit target based on a candle from the M1, M5 or M15 chart. Created following the Photon FX entry models, this tool allows for automatic lot size calculation and it's easy to set up per forex pair/gold.
All the user must do is set their account balance, risk percentage, target reward, asset pair and the rest is automatically set on the charts with the tool.
Tips:
- Activate a level that once hit, set stop loss at a particular level, default is at the break even
- Set entry type as either STOP or LIMIT
a) On Stop, the tool will activate the trade once price goes above the entry line (formed by the candle size + entry buffer set per pair)
b) On Limit, the same activation level as in STOP is required for the tool to activate the trade but it allows the user to enter Limit at a lower level based on the percentage of the entry candle (default is 0.5, which means 50%). In this mode, The user waits for the liquidity candle to be gained and the enter at a lower price of the range within such candle, increasing the R with the risk of missing the trade.
- On the right bottom corner, you will have certain key informations about the trade, such as time opened, time closed, MFE (maximum forward excursion - how many pips price went in favor of the trade), MAE (maximum adversary excursion - how many pips price went past the selected candle's size without buffer), LC (Liquidity candle size), XBf (extra Buffer - only appears when activated in the menu)
- Extra Buffer setting allow user to add extra buffer for the entry and extra buffer for the Stop Loss that has been set per asset pair. Note that the entry buffer only works with the STOP entry mode and if you want to change the entry level on LIMIT, you must use the limit entry percentage setting.
- If you trade an asset pair that is not supported by the tool, simply copy the code and ask an LLM to update it with the necessary pair. You dont need to know how to code, just let the AI do the hard work for you (preferably, you know the basics and you can ask the AI to read the script and update just the right snippets).
Feel free to adjust and adapt the code to your needs. Let me know if you made any cool changes that I might benefit from as well.
Merged Dynamic Deviation & Twin Range FilterThis script integrates the Twin Range Filter and Deviation Levels, keeping all original inputs while ensuring deviation levels are plotted on the chart
Advanced Daily Supply & Demand Strategy (Long Only)Chart Indicator on supply and demand at daily time frame which will provide buy signal on supply and demand
Manipulation CandleMC Indicator – Spot Market Manipulation Like a Pro! 🎯✨
This Manipulation Candle (MC) Indicator helps traders detect price manipulation patterns based on FundedBrothers’ methodology. It identifies bullish and bearish manipulation candles, as well as their attempted versions, allowing traders to better understand market moves.
What It Does:
🔹 Highlights Bullish MCs (Green 🟢) – Signals potential upward manipulation
🔹 Highlights Bearish MCs (Red 🔴) – Signals potential downward manipulation
🔹 Marks Attempted bullish and bearish MCs with a purple A🟣 and directional arrow ⬆️⬇️🟣
🔹 Alerts Included – Stay informed in real-time when manipulation occurs
🔹 Custom Markers – Easy-to-read symbols for clear market insights
This indicator is a must-have for traders looking to capitalise on smart money movements and avoid market traps.
🛠️ Created by @iulipedia
📈 TradingView v5 Compatible
🚀 Add this to your chart and stay ahead of market moves!
[COG]TMS Crossfire 🔍 TMS Crossfire: Guide to Parameters
📊 Core Parameters
🔸 Stochastic Settings (K, D, Period)
- **What it does**: These control how the first stochastic oscillator works. Think of it as measuring momentum speed.
- **K**: Determines how smooth the main stochastic line is. Lower values (1-3) react quickly, higher values (3-9) are smoother.
- **D**: Controls the smoothness of the signal line. Usually kept equal to or slightly higher than K.
- **Period**: How many candles are used to calculate the stochastic. Standard is 14 days, lower for faster signals.
- **For beginners**: Start with the defaults (K:3, D:3, Period:14) until you understand how they work.
🔸 Second Stochastic (K2, D2, Period2)
- **What it does**: Creates a second, independent stochastic for stronger confirmation.
- **How to use**: Can be set identical to the first one, or with slightly different values for dual confirmation.
- **For beginners**: Start with the same values as the first stochastic, then experiment.
🔸 RSI Length
- **What it does**: Controls the period for the RSI calculation, which measures buying/selling pressure.
- **Lower values** (7-9): More sensitive, good for short-term trading
- **Higher values** (14-21): More stable, better for swing trading
- **For beginners**: The default of 11 is a good balance between speed and reliability.
🔸 Cross Level
- **What it does**: The centerline where crosses generate signals (default is 50).
- **Traditional levels**: Stochastics typically use 20/80, but 50 works well for this combined indicator.
- **For beginners**: Keep at 50 to focus on trend following strategies.
🔸 Source
- **What it does**: Determines which price data is used for calculations.
- **Common options**:
- Close: Most common and reliable
- Open: Less common
- High/Low: Used for specialized indicators
- **For beginners**: Stick with "close" as it's most commonly used and reliable.
🎨 Visual Theme Settings
🔸 Bullish/Bearish Main
- **What it does**: Sets the overall color scheme for bullish (up) and bearish (down) movements.
- **For beginners**: Green for bullish and red for bearish is intuitive, but choose any colors that are easy for you to distinguish.
🔸 Bullish/Bearish Entry
- **What it does**: Colors for the entry signals shown directly on the chart.
- **For beginners**: Use bright, attention-grabbing colors that stand out from your chart background.
🌈 Line Colors
🔸 K1, K2, RSI (Bullish/Bearish)
- **What it does**: Controls the colors of each indicator line based on market direction.
- **For beginners**: Use different colors for each line so you can quickly identify which line is which.
⏱️ HTF (Higher Timeframe) Settings
🔸 HTF Timeframe
- **What it does**: Sets which higher timeframe to use for filtering (e.g., 240 = 4 hour chart).
- **How to choose**: Should be at least 4x your current chart timeframe (e.g., if trading on 15min, use 60min or higher).
- **For beginners**: Start with a timeframe 4x higher than your trading chart.
🔸 Use HTF Filter
- **What it does**: Toggles whether the higher timeframe filter is applied or not.
- **For beginners**: Keep enabled to reduce false signals, especially when learning.
🔸 HTF Confirmation Bars
- **What it does**: How many bars must confirm a trend change on higher timeframe.
- **Higher values**: More reliable but slower to react
- **Lower values**: Faster signals but more false positives
- **For beginners**: Start with 2-3 bars for a good balance.
📈 EMA Settings
🔸 Use EMA Filter
- **What it does**: Toggles price filtering with an Exponential Moving Average.
- **For beginners**: Keep enabled for better trend confirmation.
🔸 EMA Period
- **What it does**: Length of the EMA for filtering (shorter = faster reactions).
- **Common values**:
- 5-13: Short-term trends
- 21-50: Medium-term trends
- 100-200: Long-term trends
- **For beginners**: 5-10 is good for short-term trading, 21 for swing trading.
🔸 EMA Offset
- **What it does**: Shifts the EMA forward or backward on the chart.
- **For beginners**: Start with 0 and adjust only if needed for visual clarity.
🔸 Show EMA on Chart
- **What it does**: Toggles whether the EMA appears on your main price chart.
- **For beginners**: Keep enabled to see how price relates to the EMA.
🔸 EMA Color, Style, Width, Transparency
- **What it does**: Customizes how the EMA line looks on your chart.
- **For beginners**: Choose settings that make the EMA visible but not distracting.
🌊 Trend Filter Settings
🔸 Use EMA Trend Filter
- **What it does**: Enables a multi-EMA system that defines the overall market trend.
- **For beginners**: Keep enabled for stronger trend confirmation.
🔸 Show Trend EMAs
- **What it does**: Toggles visibility of the trend EMAs on your chart.
- **For beginners**: Enable to see how price moves relative to multiple EMAs.
🔸 EMA Line Thickness
- **What it does**: Controls how the thickness of EMA lines is determined.
- **Options**:
- Uniform: All EMAs have the same thickness
- Variable: Each EMA has its own custom thickness
- Hierarchical: Automatically sized based on period (longer periods = thicker)
- **For beginners**: "Hierarchical" is most intuitive as longer-term EMAs appear more dominant.
🔸 EMA Line Style
- **What it does**: Sets the line style (solid, dotted, dashed) for all EMAs.
- **For beginners**: "Solid" is usually clearest unless you have many lines overlapping.
🎭 Trend Filter Colors/Width
🔸 EMA Colors (8, 21, 34, 55)
- **What it does**: Sets the color for each individual trend EMA.
- **For beginners**: Use a logical progression (e.g., shorter EMAs brighter, longer EMAs darker).
🔸 EMA Width Settings
- **What it does**: Controls the thickness of each EMA line.
- **For beginners**: Thicker lines for longer EMAs make them easier to distinguish.
🔔 How These Parameters Work Together
The power of this indicator comes from how these components interact:
1. **Base Oscillator**: The stochastic and RSI components create the main oscillator
2. **HTF Filter**: The higher timeframe filter prevents trading against larger trends
3. **EMA Filter**: The EMA filter confirms signals with price action
4. **Trend System**: The multi-EMA system identifies the overall market environment
Think of it as multiple layers of confirmation, each adding more reliability to your trading signals.
💡 Tips for Beginners
1. **Start with defaults**: Use the default settings first and understand what each element does
2. **One change at a time**: When customizing, change only one parameter at a time
3. **Keep notes**: Write down how each change affects your results
4. **Backtest thoroughly**: Test any changes on historical data before trading real money
5. **Less is more**: Sometimes simpler settings work better than complicated ones
Remember, no indicator is perfect - always combine this with proper risk management and other forms of analysis!
3cfThis indicator identifies and signals the points of swing highs and swing lows on the price chart using an algorithm based on market structure. Local highs and lows are highlighted with a colored dot, making it easier to perform technical analysis and recognize trend reversals.
The indicator analyzes a predefined number of bars (e.g., 5 candles) to determine relative highs and lows:
Swing High (Local High) → The current candle has a higher high compared to the previous and subsequent candle.
Swing Low (Local Low) → The current candle has a lower low compared to the previous and subsequent candle.
When a candle meets one of these conditions, a visual dot is placed to indicate the potential reversal point.
Condition Check- Latest Open < 1 day ago High
- Latest Close < 1 day ago High
- Latest Open > Latest Low
- Latest Close > 1 day ago Low
- 1 day ago Open < Latest High
- 1 day ago Open < Latest High ( duplicate condition)
- 1 day ago Open > Latest Low
- 1 day ago Close > Latest Low
OG HTwyckoff concepts of of Hidden tests chsdbcjhsdbchsbdchsbdcbsdcbjdhbcksbdcbshjdbc jshdbcshdbcjsdbcsjhdcbsjdcbjsdcjshd
IBS (Internal Bar Strength) Trading Strategy for SPY and NDQImplementation by AlgoTradeKit
Overview
The IBS Trading Strategy is a daily bars long-only trading system, based on the concept of Internal Bar Strength (IBS). The strategy aims to identify potential reversals by monitoring how the previous bar’s close positions itself within its high-low range. It is suitable for stock and US indices. The default parameters are optimized for SPY/SPX and NDQ/QQQ
Strategy Concept
The Internal Bar Strength (IBS) is calculated using the formula:
IBS = (Previous Close - Previous Low) / (Previous High - Previous Low)
This value always lies between 0 and 1. An IBS value below 0.2 is typically interpreted as an oversold condition, while a value above 0.9 suggests an overbought state.
Trading Rules
- Long Entry :
- Condition 1 : IBS is below the user-defined entry threshold (default is 0.2).
- Condition 2 : The current price is above an N-period Exponential Moving Average (EMA) (default period is 252).
- Note : You can disable the EMA condition by setting the EMA period to 0.
- Long Exit
- The position is closed when IBS rises above the user-defined exit threshold (default is 0.9).
Customization Options
- IBS Entry Threshold : Adjust to set the sensitivity for entering a long trade based on oversold conditions.
- IBS Exit Threshold : Customize to define the exit point when the market becomes overbought.
- EMA Period : Set the lookback period for the EMA to align with your trend bias; disable this condition by setting the period to 0.
Risk Management & Trading Considerations
- Designed for daily charts, the strategy captures higher timeframe trends and minimizes noise.
- The entry and exit conditions are straightforward, aiming to avoid over-trading while letting clear signals dictate trade management.
- Always use proper risk management techniques and test the strategy thoroughly on historical data and in a simulated environment before applying it in live markets.
Disclaimer
This strategy is for educational and informational purposes only and does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always conduct your own research and consider your risk tolerance before making any trades.
AMPAS StrategyAn "Anti-Manipulation" price action strategy aims to identify and avoid trading situations where a security's price is being artificially influenced by large market players, often through tactics like "pump and dump" schemes, by focusing heavily on analyzing price patterns, volume, and key support and resistance levels to identify potential manipulation signs before making trading decisions.
Advanced Trend Detector (Optimized)The Advanced Trend Detector is a powerful trend-following indicator that identifies market trends, major reversals, and key candlestick patterns. It also includes a floating information panel (HUD) that updates in real time, providing insights into the current trend and detected candlestick patterns.
Simple Raja Banks StrategyThe Raja Banks Strategy is a breakout-based trading method designed to capture significant price movements after the London and New York sessions. This strategy identifies the highest (high) and lowest (low) levels during key trading sessions and waits for a confirmed breakout using the candle’s body (not just the wick).
Advantages of the Raja Banks Strategy
✅ Reduces false breakout risks by considering only candle bodies.
✅ Leverages high volatility during the London & New York sessions.
✅ Ideal for breakout traders looking to capture major market movements.
This strategy is widely used by professional traders to take advantage of strong market momentum while increasing the probability of successful breakouts.
RSI Swing Indicator [future bot]This Pine Script indicator is designed to identify and visualize price swings based on the Relative Strength Index (RSI). It draws swing lines and labels on the chart to highlight overbought and oversold conditions, as well as the structure of price movements (e.g., Higher Highs, Lower Lows). The indicator is useful for traders who want to track RSI-based price swings and identify potential trend reversals or continuations.
Key Features
RSI-Based Swing Detection:
The indicator uses RSI to detect overbought (above a user-defined threshold) and oversold (below a user-defined threshold) conditions.
It tracks price swings between these extremes, drawing lines and labels to visualize the swings.
Swing Lines:
Draws lines connecting oversold to overbought levels and vice versa.
Adjusts the lines dynamically as new extremes are reached.
Labels for Price Structure:
Labels are added to indicate the relationship between swings:
HH (Higher High): The current swing high is higher than the previous one.
LH (Lower High): The current swing high is lower than the previous one.
HL (Higher Low): The current swing low is higher than the previous one.
LL (Lower Low): The current swing low is lower than the previous one.
Dynamic Updates:
The indicator updates swing lines and labels in real-time as new price data comes in.
If the price moves deeper into overbought or oversold territory, the swing lines and labels adjust accordingly.
Input Parameters
RSI Source:
The price source for calculating RSI (default: close).
RSI Length:
The number of periods used to calculate RSI (default: 7).
RSI Overbought Level:
The threshold above which RSI is considered overbought (default: 70).
RSI Oversold Level:
The threshold below which RSI is considered oversold (default: 30).
How It Works
RSI Calculation:
The script calculates the RSI value based on the user-defined source and length.
State Detection:
The script tracks whether the RSI is in an overbought or oversold state.
Swing Detection:
When the RSI transitions from oversold to overbought (or vice versa), the script draws a new swing line and labels the swing.
If the price continues to move deeper into overbought or oversold territory, the swing lines and labels are updated to reflect the new extremes.
Labeling Price Structure:
The script compares the current swing high/low to the previous one and labels it as:
HH (Higher High) or LH (Lower High) for swing highs.
HL (Higher Low) or LL (Lower Low) for swing lows.
Visualization:
Swing lines are drawn between oversold and overbought levels.
Labels are placed above/below the price to indicate the swing structure.
Example Use Cases
Trend Identification:
Use the labels (HH, LH, HL, LL) to identify the overall trend structure.
For example, a series of HH and HL labels indicates an uptrend, while a series of LH and LL labels indicates a downtrend.
Reversal Signals:
Look for divergences between price and RSI swings to identify potential reversals.
For example, if the price makes a higher high (HH) but the RSI makes a lower high (LH), it could signal a bearish reversal.
Swing Trading:
Use the swing lines to identify potential entry and exit points based on RSI extreme
Momentum Robot - StructureThis free indicator is a companion to the Momentum Robot instrument grader.
Structure puts the fundamentals of momentum trading all in one indicator.
This indicator is intended to be used in momentum trading which makes realistic price targets clear for profit taking. Primarily to be used on the 1m and 10sec. It can actually be used on any timeframe for any style of trading. Below are the details of everything you are seeing in the indicator.
EMA’s:
The exponential moving averages included are the 9 ema, 20 ema and the 200 ema. These are the standard ema’s used in momentum trading. Once price has moved above each of these, it is in a good place to expect more upside.
VWAP:
Volume Weighted Average Price is also included (white) to show the average price based on volume. Once price is above this level, it is considered bullish.
Peak Lines and Breakout targets:
Shown with orange lines, these are the breakout targets where price has had a last rejection. The idea is, when price begins to make a move back to this line, there is a high probability that it will break through this level.
.50 cent lines:
In conjunction with the Peak Lines and Breakout Targets, the .50 cent lines (in gray) give a realistic expectation of where price will gravitate towards. So if the breakout line is .20 cents below a dollar level, there is a high probability that when price breaks the breakout line that it will move to the dollar level. A great spot for profit taking for long traders!
To be used in conjunction with the Volume and MACD indicators.
Enjoy this free indicator. This indicator is extracted from the full version of the Momentum Grader.
Bar Count - WBBar Count for futures day trading. It counts bars from 6:30 am (PST) to 1:10 pm (PST) resulting in 1..81 bars. Folks can use it to understand open, middle, and ending candles and ranges for the day trading sessions.
Swing Break Indicator//@version=5
indicator("Swing Break Indicator", overlay=true)
// Input for swing length
swingLength = input(5, title="Swing Length")
// Identify swing high and swing low
swingHigh = ta.highest(high, swingLength)
swingLow = ta.lowest(low, swingLength)
// Store previous swing values
var float prevSwingHigh = na
var float prevSwingLow = na
var float lastSwingHigh = na
var float lastSwingLow = na
if high == swingHigh
prevSwingHigh := lastSwingHigh
lastSwingHigh := swingHigh
if low == swingLow
prevSwingLow := lastSwingLow
lastSwingLow := swingLow
// Conditions for Buy and Sell signals
buySignal = low < prevSwingHigh and ta.crossover(low, prevSwingHigh)
sellSignal = high > prevSwingLow and ta.crossunder(high, prevSwingLow)
// Plot Buy and Sell labels
labelPosition = 20 // Offset for label placement
if buySignal
label.new(bar_index, low - labelPosition * syminfo.mintick, "BUY", color=color.green, textcolor=color.white, style=label.style_label_down)
if sellSignal
label.new(bar_index, high + labelPosition * syminfo.mintick, "SELL", color=color.red, textcolor=color.white, style=label.style_label_up)
RIFMA - Ruiz Icochea Fibonacci MA"RIFMA, created by Pharaoh BRC-20, is a powerful technical analysis tool harnessing Fibonacci sequence-aligned moving averages (5, 8, 13, 21, 55, 89, 144, 233, 377, 610, 987, 1597). Designed for precision, it dynamically adjusts colors—vivid green for short periods, transitioning through red to deep brown for longer ones—reflecting trends against a dark backdrop. With thin lines for short-term MAs and thicker ones for long-term, RIFMA excels at identifying trends, supports, and resistances across any market. Optimized for TradingView, it’s an essential companion for traders seeking clarity and actionable insights in their charts."