Графические паттерны
Engulfing Candles DetectorThis indicator detect and display bullish and bearish engulfing candles on the chart.
Fair Value Gap Breakaway Tracker @tradingbauhausFair Value Gap Breakaway Tracker" Script
The Fair Value Gap Breakaway Tracker (BFVG) is a custom technical analysis indicator that aims to detect and track Fair Value Gaps (FVGs) in the market and monitor their breakaway and mitigation levels. The script combines gap detection, mitigation analysis, and a dashboard for live performance tracking. Below is a breakdown of what each part of the code does:
Key Features:
1. Fair Value Gap (FVG) Detection:
Fair Value Gaps are identified based on price action, specifically:
Bullish FVG: Occurs when the current low is higher than the high of two bars ago, and the close of the previous bar is greater than the high of that bar.
Bearish FVG: Occurs when the current high is lower than the low of two bars ago, and the close of the previous bar is lower than the low of that bar.
2. Bullish and Bearish Breakaway FVGs (BFVG):
A Bullish Breakaway FVG occurs when the low of a bar is higher than the high of two bars ago, and the market starts to move higher from that point. This signals a potential price continuation upwards.
A Bearish Breakaway FVG occurs when the high of a bar is lower than the low of two bars ago, and the market starts to move lower, suggesting a potential continuation downwards.
3. Mitigation Levels:
Mitigation Levels are used to track the closure (or mitigation) of the gap. Once the price moves in the opposite direction (closing the gap), the FVG is considered "mitigated".
Bullish BFVG Mitigation: If the price closes below the mitigation level (the high of the bullish FVG), the gap is mitigated, and the FVG is removed from the chart.
Bearish BFVG Mitigation: If the price closes above the mitigation level (the low of the bearish FVG), the gap is mitigated, and the FVG is removed.
4. Maximum Duration for Gap Tracking:
The script tracks the maximum duration for how long a Fair Value Gap (FVG) persists before it is either mitigated or considered no longer relevant.
This is controlled by the maxDuration input, which specifies the maximum number of bars (in this case, 30 bars) the gap should be visible before it is deleted if not mitigated.
5. Median or Average Duration Calculation:
The script can display the average or median number of bars a gap persists before being mitigated. This is helpful in determining the effectiveness of the gap as a trading signal.
Dashboard:
A live performance dashboard displays relevant metrics about the FVGs on the chart, including:
Mitigation Percentage: The percentage of bullish and bearish FVGs that have been mitigated (i.e., the price moved to close the gap).
Average/Median Duration: Displays the average or median number of bars that FVGs stay on the chart before being mitigated or invalidated.
Total FVG Count: Shows the total number of detected bullish and bearish FVGs.
The dashboard is designed to help traders assess how many gaps are forming, how long they persist, and how many gaps get mitigated, giving an overall picture of the market's reaction to these gaps.
Visual Representation:
Bullish BFVGs: Drawn on the chart using a box with a background color defined by bullBCss (a soft green), indicating the presence of a bullish FVG.
A mitigation line is also drawn at the high of the bullish FVG if the mitigation option is enabled.
Bearish BFVGs: Drawn on the chart using a box with a background color defined by bearBCss (a soft red), indicating the presence of a bearish FVG.
A mitigation line is also drawn at the low of the bearish FVG if the mitigation option is enabled.
These FVGs are drawn dynamically as the bars form, and as soon as the price moves in the opposite direction of the gap, the box and mitigation level are removed.
Customizable Inputs:
Trend Length (length): The number of bars used to calculate the highest and lowest price points, which are compared to detect FVGs.
Mitigation Option (showMitigation): Whether to display the mitigation levels for each FVG.
Maximum Duration (maxDuration): Defines the number of bars a gap can exist before it is removed.
Dashboard Settings: You can toggle the visibility of the dashboard, set the position of the table (Top/Bottom Left or Right), and adjust the text size.
Median vs. Average (use_med): Option to use the median duration for gaps or the average duration.
Recommended Use Case:
This script is best used for trend-following strategies, where you aim to capture price moves based on the formation and resolution of Fair Value Gaps.
Bullish FVGs suggest a potential upward breakout, while Bearish FVGs suggest a downward breakout.
By monitoring the mitigation and breakaway of these gaps, traders can gain insights into how the market is reacting to price imbalances and capitalize on price continuation or reversal.
How it Can Be Used:
Identifying Opportunities: When a bullish FVG appears, it might be a signal to look for long trades, especially if the gap has not been mitigated. Similarly, a bearish FVG might signal a potential short entry.
Tracking Market Reaction: By using the dashboard and the gap mitigation data, traders can evaluate how often gaps are mitigated and whether this aligns with their trading strategy.
Timeframe Considerations: The indicator can work on multiple timeframes, but it is most effective on shorter-term charts (e.g., 15-minute, 1-hour) for detecting quick breakouts and mitigations.
Conclusion:
The Fair Value Gap Breakaway Tracker provides a systematic and visual way to track Fair Value Gaps (FVGs) in the market and analyze their behavior over time. The inclusion of mitigation levels, maximum duration tracking, and a live dashboard makes it a powerful tool for traders looking to monitor market structure and potential price continuation or reversal based on gaps.
Golden Cross AL-SAT SinyalleriHareketli Ortalamalar:
short_ma: Kısa vadeli hareketli ortalama (varsayılan: 50 periyot).
long_ma: Uzun vadeli hareketli ortalama (varsayılan: 200 periyot).
ta.sma fonksiyonu, basit hareketli ortalama (SMA) hesaplar.
Golden Cross ve Death Cross:
Golden Cross: Kısa vadeli MA, uzun vadeli MA'nın üzerine çıktığında bir AL sinyali oluşur.
Death Cross: Kısa vadeli MA, uzun vadeli MA'nın altına indiğinde bir SAT sinyali oluşur.
Grafikte Gösterim:
AL Sinyali: Yeşil arka planlı "AL" yazısı, çubuğun altında gösterilir.
SAT Sinyali: Kırmızı arka planlı "SAT" yazısı, çubuğun üstünde gösterilir.
Hareketli ortalamalar mavi (kısa MA) ve turuncu (uzun MA) çizgilerle grafik üzerinde çizilir.
My script RAJU// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © nandamandal470
//@version=6
indicator("My script")
plot(close)
Divergence Finder (RSI/Price) Strategy with OptionsThis is a strategy using my other indicator: Divergence Finder (RSI/Price) with Options
Requested by a User.
INFO: you need to configure Strategy depending on the asset, timeframe, and your preference.
The default values are just here for testing !
You can preview the expected outcome directly in TradingView and try to find the best settings directly from it.
You can activate or desactivate Long or short.
Set a Stop and Take Profit.
You should be able to set alert directly from order executed, or from triggered Alert.
For more information you could check the Divergence Finder indicator directly.
Version 0.1
AI EngulfingCandle v6 2025This script will now work with Pine Script version 6 and display buy/sell signals based on the engulfing candle pattern and RSI conditions.
Strength Divergence [Halginate] Combined Only)This Strength Divergence Histogram was created because it didn't seem to be on TV.
You use it to enter a trade at 8AM london session on a decent forex pair on 1m timeframe when a green arrow shows such as GBPJPY and as you progress past reistance levels and move you stop loss to that next level and add to your position also increase the timeframe, step by step until you are on the day timeframe. You will find the returns are higher with this longer term strategy.
You can learn more about the usage for forex trading from this video :
www.youtube.com
Basic Rules for success outlined here: i.postimg.cc
Supertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell Signals. Supertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell SignalsSupertrend + RSI with Buy/Sell Signals
Kmag's Macro Top Indicator with Red ArrowsUsing BBWP thresholds, along with RSI thresholds, RSI moving average, and crossing of RSI and RSI moving averages, along with a few other personal indicators. Enjoy!
ATT (3PM-6PM: 8PM-9PM UK) - TRADEWITHWILL
ATT (Advanced time theory) discovered by INuke (Tradewithwill)
The code will only show labels from 3pm to 6pm & 8pm to 9pm
(Only recommended on CME_MINI:NQ1! )
Contraction after big moveLooks for a stock to have made a move above 30% on the last 63 days and its 2DAY ATR is below the 21DAY ATR
7–9 Day Swing Trading//@version=5
strategy("7–9 Day Swing Trading", overlay=true)
// Input Parameters
maLength = input.int(9, "Moving Average Length") // Short-term moving average for trend
rsiLength = input.int(7, "RSI Length") // RSI to capture short-term momentum
rsiOverbought = input.float(70, "RSI Overbought Level") // Overbought level for RSI
rsiOversold = input.float(30, "RSI Oversold Level") // Oversold level for RSI
volumeMultiplier = input.float(1.5, "Volume Multiplier") // Volume threshold multiplier
// Indicators
sma = ta.sma(close, maLength) // Simple Moving Average
rsi = ta.rsi(close, rsiLength) // Relative Strength Index
averageVolume = ta.sma(volume, 14) // 14-period average volume
// Conditions for Entry
longCondition = close > sma and rsi < rsiOversold and volume > (averageVolume * volumeMultiplier)
shortCondition = close < sma and rsi > rsiOverbought and volume > (averageVolume * volumeMultiplier)
// Strategy Logic
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Exit Logic
exitConditionLong = rsi > rsiOverbought or close < sma
exitConditionShort = rsi < rsiOversold or close > sma
if (exitConditionLong)
strategy.close("Long")
if (exitConditionShort)
strategy.close("Short")
// Plot Indicators
plot(sma, color=color.blue, linewidth=2, title="SMA")
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted)
Wyckoff Method with Volume, RSI, EMA & FibonacciWyckoff Method with Volume, RSI, EMA & Fibonacci
Description: This indicator is based on the Wyckoff Method, a technical analysis approach designed to identify phases of accumulation and distribution in the market. It combines volume analysis, RSI (Relative Strength Index), EMA (Exponential Moving Averages), and Fibonacci retracement levels to generate buy/sell signals and dynamically calculate take-profit (TP) and stop-loss (SL) levels.
Purpose: The indicator aims to:
1. Detect key phases in the Wyckoff Method, including:
o Preliminary Support (PS) - Initial signs of buying interest.
o Selling Climax (SC) - Panic selling absorbed by institutional investors.
o Automatic Rally (AR) - Rebound following the selling climax.
o Secondary Test (ST) - Testing supply absorption.
o Sign of Strength (SOS) - Confirmation of bullish momentum.
o Last Point of Support (LPS) - Final retest of support before trend continuation.
2. Provide entry signals (buy/sell) based on:
o EMA crossovers to determine bullish or bearish trends.
o RSI levels to detect overbought and oversold conditions.
o Fibonacci retracement levels (50% and 61.8%) to highlight potential reversal zones.
3. Offer risk management tools:
o Automatically calculate stop-loss (SL) based on a percentage risk input.
o Compute take-profit (TP) using a specified risk-reward ratio.
Features:
1. Volume Analysis:
o Uses a Volume Moving Average (VolMA) to identify spikes in trading activity, signaling market interest.
2. Dynamic Fibonacci Levels:
o Plots 50% and 61.8% retracement levels to assist in identifying areas of price reaction.
3. EMA Crossovers:
o Tracks trend direction using 50 EMA and 200 EMA for confirmation of bullish or bearish setups.
4. RSI Confluence:
o Identifies overbought (>70) and oversold (<30) zones for added signal confirmation.
5. Wyckoff Phase Markers:
o Marks critical points in the accumulation/distribution phases for visualization.
6. Dynamic SL and TP Levels:
o Visualizes risk-management levels directly on the chart for ease of interpretation.
How to Use the Indicator:
1. Buy Signals:
o Appear when the EMA crossover is bullish, RSI is oversold, and price is above the 61.8% Fibonacci retracement.
2. Sell Signals:
o Appear when the EMA crossover is bearish, RSI is overbought, and price is below the 50% Fibonacci retracement.
3. Risk Management:
o Adjust the Risk-Reward Ratio and Stop-Loss % in settings to suit your trading strategy.
o Review plotted SL/TP lines for placement before execution.
4. Confirm Phases:
o Monitor Wyckoff markers (PS, SC, AR, ST, SOS, LPS) to align signals with phases.
Limitations:
• The indicator should be used in conjunction with multi-timeframe analysis and fundamental research for greater accuracy.
• Signals may lag in extremely volatile markets; manual validation of patterns is recommended.
Best Practices:
1. Apply the indicator to higher timeframes for trends and lower timeframes for entries.
2. Use additional tools such as support/resistance levels, trendlines, and candlestick patterns for confirmation.
3. Adjust indicator inputs based on market conditions and asset volatility.
This indicator is a powerful tool for traders looking to identify Wyckoff patterns, incorporate technical confluence, and manage risk effectively.
GL_Prev Week HighThe GL_Prev Week High Indicator is a powerful tool designed to enhance your trading analysis by displaying the previous week's high price directly on your chart. With clear and customizable visuals, this indicator helps traders quickly identify critical price levels, enabling more informed decision-making.
Key Features:
Previous Week's High Line:
Displays the previous week's high as a red line on your chart for easy reference.
Customizable Horizontal Line:
Includes a white horizontal line for enhanced clarity, with adjustable length, color, and width settings.
All-Time High Tracking:
Automatically tracks the all-time high from the chart's history and places a dynamic label above it.
Real-Time Updates:
The indicator updates in real-time to ensure accuracy as new bars are added.
User Inputs for Personalization:
Adjust the left and right span of the horizontal line.
Customize line width and color to suit your preferences.
Use Case:
This indicator is ideal for traders looking to integrate the previous week's high as a key support or resistance level in their trading strategy. Whether you are analyzing trends, identifying breakout zones, or planning entry/exit points, this tool provides valuable insights directly on the chart.
How to Use:
Add the indicator to your chart.
Customize the settings (line length, width, and color) through the input panel to match your preferences.
Use the red line to track the previous week's high and the label to monitor all-time highs effortlessly.
License:
This script is shared under the Mozilla Public License 2.0. Feel free to use and adapt the script as per the license terms.
MACD + 200 EMA Strategy(Raju Basnet)this strategy uses MACD and 200 EMA
Strategy Logic:
Buy Signal: The strategy will generate a buy signal when the MACD line crosses above the signal line and the price is above the 200 EMA. This indicates upward momentum in an overall bullish market trend.
Sell Signal: A sell signal will be generated when the MACD line crosses below the signal line and the price is below the 200 EMA. This suggests downward momentum in a bearish market trend.
Visual Indicators:
200 EMA Line: Plotted in blue, it represents the long-term trend and helps filter signals by showing whether the market is in a bullish or bearish state.
Buy and Sell Signals: Plotted as green labels below the bar for buy signals and red labels above the bar for sell signals. Arrows may also appear to clearly mark the signal points.
Rompimientos con Líneas Horizontales Ajustadasrompimiento es una vela que cierra por encima de un hight o debajo de un low
Kmag's Macro Buy Indicator with Green RibbonUses RSI, RSI Moving Avg, BBWP, and a few other indicators
Cruzamento de Médias Móveis (Configuração Interativa)Cruzamento das médias 7 com 40
compra quando a média de 7 cruza pra cima da de 40
vende quando a media de 7 cruza pra baixo da de 40
My script RAJU// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © nandamandal470
//@version=6
indicator("My script")
plot(close)
7–9 Day Swing Trading//@version=5
strategy("7–9 Day Swing Trading", overlay=true)
// Input Parameters
maLength = input.int(9, "Moving Average Length") // Short-term moving average for trend
rsiLength = input.int(7, "RSI Length") // RSI to capture short-term momentum
rsiOverbought = input.float(70, "RSI Overbought Level") // Overbought level for RSI
rsiOversold = input.float(30, "RSI Oversold Level") // Oversold level for RSI
volumeMultiplier = input.float(1.5, "Volume Multiplier") // Volume threshold multiplier
// Indicators
sma = ta.sma(close, maLength) // Simple Moving Average
rsi = ta.rsi(close, rsiLength) // Relative Strength Index
averageVolume = ta.sma(volume, 14) // 14-period average volume
// Conditions for Entry
longCondition = close > sma and rsi < rsiOversold and volume > (averageVolume * volumeMultiplier)
shortCondition = close < sma and rsi > rsiOverbought and volume > (averageVolume * volumeMultiplier)
// Strategy Logic
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Exit Logic
exitConditionLong = rsi > rsiOverbought or close < sma
exitConditionShort = rsi < rsiOversold or close > sma
if (exitConditionLong)
strategy.close("Long")
if (exitConditionShort)
strategy.close("Short")
// Plot Indicators
plot(sma, color=color.blue, linewidth=2, title="SMA")
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted)