Indicators and strategies
2 EMAs [Beymann Cap]This script plots two EMAs (9 and 20 by default).
Bullish trend:
When the shorter EMA is above the longer EMA, and both are rising, the trend turns green. If either one stops rising, it turns blue, indicating uncertainty.
Bearish trend:
When the shorter EMA is below the longer EMA, and both are falling, the trend turns red. If either one stops falling, it turns blue, indicating uncertainty.
ATH with Percentage DifferenceSimple ATH with difference percentage from the actual price to hit the all time high price again
FlexiMA - Customizable Moving Averages ProDescrição:
O FlexiMA - Customizable Moving Averages Pro é um indicador de médias móveis altamente customizável desenvolvido para traders que buscam flexibilidade e precisão na análise de tendência. Este indicador permite ao usuário ajustar até quatro médias móveis, escolhendo o tipo de média, período, cor, estilo e espessura das linhas de acordo com sua estratégia.
Funcionalidades Principais:
Seleção do Tipo de Média Móvel:
O FlexiMA oferece múltiplas opções de médias móveis para cada uma das quatro linhas disponíveis. Isso inclui tipos de médias clássicas, como Simples (SMA), Exponencial (EMA), e outras avançadas como Welles Wilder.
Personalização de Períodos:
O usuário pode configurar períodos distintos para cada média móvel, tornando o indicador adaptável tanto para estratégias de curto quanto de longo prazo.
Controle Completo do Estilo:
O FlexiMA permite ajustar a cor, a espessura e o tipo de linha (contínua, pontilhada, etc.) de cada média móvel, proporcionando uma visualização clara e organizada no gráfico.
Ativação/Desativação de Médias:
Cada uma das quatro médias móveis pode ser ativada ou desativada de forma independente, permitindo que o trader trabalhe com uma única média, pares, ou todas as quatro, conforme necessário.
Como Utilizar:
Este indicador é projetado para servir tanto traders iniciantes quanto experientes. Você pode configurá-lo para ajudar a identificar tendências de alta e baixa, pontos de reversão e até sinais de entrada e saída.
O FlexiMA permite, por exemplo, definir uma combinação clássica de médias de 50 e 200 períodos para identificar mudanças de tendência de longo prazo, enquanto as médias mais curtas podem ser usadas para sinalizar entradas rápidas.
Exemplos de Aplicação:
Estratégia de Cruzamento: Defina uma média de curto prazo e uma de longo prazo e acompanhe os pontos de cruzamento para detectar mudanças de tendência.
Análise Multi-Temporal: Configure cada média móvel para períodos diferentes e utilize-os para analisar tendências em várias janelas temporais ao mesmo tempo.
Confirmação de Volume: Com a opção de incluir a VWMA, é possível obter uma leitura de tendência ponderada pelo volume, útil para confirmar a força das movimentações de preço.
Recomendações:
Este indicador é recomendado para traders que buscam um maior controle sobre suas análises de tendências e uma experiência de uso personalizada no TradingView.
Resumo das Configurações:
Tipos de Média: SMA, EMA, WW.
Configuração de Período: Definido pelo usuário para cada média.
Estilo de Linha: Contínua, pontilhada, entre outros.
Cor e Espessura: Totalmente customizáveis.
TAExtModLibrary "TAExtMod"
Indicator functions can be used in other indicators and strategies. This will be extended by time with indicators I use in my strategies and studies. All indicators are highly configurable with good defaults.
jma(src, length, phase, power)
Jurik Moving Average
Parameters:
src (float) : The source of the moving average
length (simple int) : The length of the moving average calculation
phase (simple int) : The phase of jurik MA calculation (-100..100)
power (simple float) : The power of jurik MA calculation
Returns: The Jurik MA series
atrwo(length, stdev_length, stdev_mult, ma_type)
ATR without outliers
Parameters:
length (simple int) : The length of the TR smoothing
stdev_length (simple int) : The length of the standard deviation, used for detecting outliers
stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
ma_type (simple string) : The moving average type used for smoothing
Returns: The ATR value
atrwma(src, length, type, atr_length, stdev_length, stdev_mult)
ATR without outlier weighted moving average
Parameters:
src (float) : The source of the moving average
length (simple int) : The length of the moving average
type (simple string) : The type of the moving average, possible values: SMA, EMA, RMA
atr_length (simple int) : The length of the ATR
stdev_length (simple int) : The length of the standard deviation, used for detecting outliers
stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
Returns: The moving average series
anyma(src, length, type, offset, sigma, atr_length, stdev_length, stdev_mult, phase, power)
Moving Average by type
Parameters:
src (float) : The source of the moving average
length (simple int) : The length of the moving average calculation
type (simple string) : The type of the moving average
offset (simple float) : Used only by ALMA, it is the ALMA offset
sigma (simple int) : Used only by ALMA, it is the ALMA sigma
atr_length (simple int)
stdev_length (simple int)
stdev_mult (simple float)
phase (simple int) : The phase of jurik MA calculation (-100..100)
power (simple float) : The power of jurik MA calculation
Returns: The moving average series
slope_per_atr(src, lookback, atr_length, stdev_length, stdev_mult, atr_ma_type)
Slope per ATR, it is a slope, that can be used across multiple assets
Parameters:
src (float) : The Source of slope
lookback (simple int) : How many timestaps to look back
atr_length (simple int) : The length of the TR smoothing
stdev_length (simple int) : The length of the standard deviation, used for detecting outliers
stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
atr_ma_type (simple string) : The moving average type used for smoothing
Returns: The slope value
angle(src, lookback, atr_length, stdev_length, stdev_mult, atr_ma_type)
Angle of Slope per ATR
Parameters:
src (float) : The Source of slope
lookback (simple int) : How many timestaps to look back
atr_length (simple int) : The length of the TR smoothing
stdev_length (simple int) : The length of the standard deviation, used for detecting outliers
stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
atr_ma_type (simple string) : The moving average type used for smoothing
Returns: The slope value
macd(fast_src, slow_src, fast_ma_type, slow_ma_type, fast_length, slow_length, signal_ma_type, signal_length)
Moving Average Convergence Divergence (MACD)
Parameters:
fast_src (float) : The source series used by MACD fast
slow_src (float) : The source series used by MACD slow
fast_ma_type (simple string) : The MA type for the MACD
slow_ma_type (simple string) : The MA type for the MACD
fast_length (simple int) : The fast MA length of the MACD
slow_length (simple int) : The slow MA length of the MACD
signal_ma_type (simple string) : The MA type for the MACD signal
signal_length (simple int) : The signal MA length of the MACD
wae(macd_src, macd_ma_type, macd_fast_length, macd_slow_length, macd_sensitivity, bb_base_src, bb_upper_src, bb_lower_src, bb_ma_type, bb_length, bb_mult, dead_zone_length, dead_zone_mult)
Waddah Attar Explosion (WAE)
Parameters:
macd_src (float) : The source series used by MACD
macd_ma_type (simple string) : The MA type for the MACD
macd_fast_length (simple int) : The fast MA length of the MACD
macd_slow_length (simple int) : The slow MA length of the MACD
macd_sensitivity (simple float) : The MACD diff multiplier
bb_base_src (float) : The source used by stdev
bb_upper_src (float) : The source used by the upper Bollinger Band
bb_lower_src (float) : The source used by the lower Bollinger Band
bb_ma_type (simple string) : The MA type of the Bollinger Bands
bb_length (simple int) : The lenth for Bollinger Bands
bb_mult (simple float) : The multiplier for Bollinger Bands
dead_zone_length (simple int) : The ATR length for dead zone calculation
dead_zone_mult (simple float) : The ATR multiplier for dead zone
Returns:
ssl(length, ma_type, src, high_src, low_src)
Semaphore Signal Level channel (SSL)
Parameters:
length (simple int) : The length of the moving average
ma_type (simple string)
src (float) : Source of compare
high_src (float) : Source of the high moving average
low_src (float) : Source of the low moving average
Returns:
adx(atr_length, di_length, adx_length, high_src, low_src, atr_ma_type, di_ma_type, adx_ma_type, atr_stdev_length, atr_stdev_mult)
Average Directional Index + Direction Movement Index (ADX + DMI)
Parameters:
atr_length (simple int) : The length of ATR
di_length (simple int) : DI plus and minus smoothing length
adx_length (simple int) : ADX smoothing length
high_src (float) : Source of the high moving average
low_src (float) : Source of the low moving average
atr_ma_type (simple string) : MA type of the ATR calculation
di_ma_type (simple string) : MA type of the DI calculation
adx_ma_type (simple string) : MA type of the ADX calculation
atr_stdev_length (simple int) : The length of the standard deviation, used for detecting outliers
atr_stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
Returns:
chop(length, atr_length, stdev_length, stdev_mult, ma_type)
Choppiness Index (CHOP) using ATRWO
Parameters:
length (simple int) : The sum and highest/lowest length
atr_length (simple int) : The length of the ATR
stdev_length (simple int)
stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
ma_type (simple string) : The MA type of ATR
Returns: The choppiness value
chop_stdev(length, src, stdev_length)
Choppiness Index (CHOP) using stdev instead of ATR
Parameters:
length (simple int) : The sum and highest/lowest length
src (float) : The source of the stdev
stdev_length (simple int) : The length of the stdev calculation
Returns: The choppiness value
kc(length, atr_length, mult, base_src, upper_src, lower_src, base_ma_type, upper_ma_type, lower_ma_type, stdev_length, stdev_mult, atr_ma_type)
Keltner Channels (KC)
Parameters:
length (simple int) : The length of moving averages
atr_length (simple int) : The ATR length, the ATR is used to shift the upper and lower bands
mult (simple float) : The ATR multiplier
base_src (float) : Source of the base line
upper_src (float) : Source of the upper line
lower_src (float) : Source of the lower line
base_ma_type (simple string) : The MA type of the base line
upper_ma_type (simple string) : The MA type of the upper line
lower_ma_type (simple string) : The MA type of the lower line
stdev_length (simple int) : The length of the standard deviation, used for detecting outliers
stdev_mult (simple float) : The multiplier of the standard deviation, used for detecting outliers
@retrurns
atr_ma_type (simple string)
kc_trend(base, lower, upper, lookback)
Keltner Channel Trend
Parameters:
base (float) : The base value returned by kc function
lower (float) : The lower value returned by kc function
upper (float) : The upper value returned by kc function
lookback (simple int) : Howmany timestaps to look back to determine the trend
Returns:
supertrend(lower, upper, compare_src)
Supertrend, calculated from above "kc" (Keltner Channel Function)
Parameters:
lower (float) : The lower value returned by kc function
upper (float) : The upper value returned by kc function
compare_src (float) : Source of the base line
heiken_ashi(smooth_length, smooth_ma_type, after_smooth_length, after_smooth_ma_type, wicks, src_open, src_high, src_low, src_close)
Heiken Ashi (Smoothed) Candle
Parameters:
smooth_length (simple int) : Smooth length before heiken ashi calculation
smooth_ma_type (simple string) : Type of smoothing MA before heiken ashi calculation
after_smooth_length (simple int) : Smooth length after
after_smooth_ma_type (simple string) : Smooth MA type after
wicks (bool)
src_open (float) : Sourve of open
src_high (float) : Source of high
src_low (float) : Source of low
src_close (float) : Source of close
Returns:
swinghl(use_ha_candle)
Calculate recent swing high and low from Heiken Ashi candle reverse points
Parameters:
use_ha_candle (simple bool) : If true, use HA candle open/close to swing high/low instead of normal high/low
EMA, SMA, BB & 5-21 StrategyThis Pine Script code displays Exponential Moving Averages (EMA) and Simple Moving Averages (MA) on a TradingView chart based on the user's selection. Users can choose to show EMA, MA, or both. The script includes predefined periods for both EMA ( ) and MA ( ). Each period is displayed in a different color, making it easy to distinguish between each line. This helps traders analyze trends, support, and resistance levels effectively. And Bollinger bands, 5-21 Strategy
Bu Pine Script kodu, Üstel Hareketli Ortalama (EMA) ve Basit Hareketli Ortalama (MA) çizgilerini TradingView grafiğinde kullanıcının seçimine göre gösterir. Kullanıcı EMA, MA veya her ikisini seçebilir. EMA için ve MA için periyotları tanımlıdır. Her çizgi farklı renkte gösterilir, bu da periyotları ayırt etmeyi kolaylaştırır. Bu gösterge, yatırımcıların trendleri, destek ve direnç seviyelerini analiz etmesine yardımcı olur.
Aadil Parmar Swing StrategyFixed EMA Lengths: The lengths for the EMAs are fixed at 50 and 100.
Calculate EMAs: Computes the values for the 50-period and 100-period EMAs.
Trend Confirmation Conditions: Ensures the 50 EMA is greater than the 100 EMA for uptrends and vice versa for downtrends.
Price Rejection Conditions with Trend Confirmation:
Long Condition: The price drops below and then closes above either EMA while confirming an uptrend.
Short Condition: The price rises above and then closes below either EMA while confirming a downtrend.
Plot EMAs and Signals: Displays the EMAs on the chart and marks buy/sell signals when conditions are met.
Generate Strategy Entries: Executes buy and sell trades based on the defined conditions.
Profit Threshold: Sets the profit threshold to 5%.
Check for Profitable Trades:
If in a long position, checks if the high price reaches 5% above the entry price and closes the position, marking it as a profitable trade.
If in a short position, checks if the low price reaches 5% below the entry price and closes the position, marking it as a profitable trade.
This script will help you identify and mark profitable trades when the price moves 5% in your favor. If you need any further adjustments or additional features, feel free to ask!
Historical Eventsdisplay historical events on charts
User Controls:
Category Filters: Toggle display for wars, economic events, pandemics, and other specific event types.
Importance Filter: Choose to show only major events or include all listed events.
Display Option: Adjust the view to display only icons, only text, or both.
FFMFFW Daily EMA 21 Trend Cross/Retest MarkupA script that marks up the daily close of possible entries and retests
Filha MalInspirado no Setup Filha Malcriada, esse tem o alvo abaixo da metade do corpo da vela de hoje
Inside Bar and Gap-Up Marker//@version=5
indicator("Inside Bar and Gap-Up Marker", overlay=true)
// Input toggles and adjustable values for each condition
use_inside_bar_condition = input.bool(true, title="Enable Inside Bar Condition")
use_gap_up_condition = input.bool(true, title="Enable Gap-Up Condition")
gap_up_percent_threshold = input.float(0.5, title="Gap-Up Percentage Threshold", step=0.1)
// Calculate the previous day's high, low, and close
prev_close = request.security(syminfo.tickerid, "D", close )
prev_high = request.security(syminfo.tickerid, "D", high )
prev_low = request.security(syminfo.tickerid, "D", low )
// Calculate the current day's opening price and gap percentage
current_open = open
gap_up_percent = ((current_open - prev_close) / prev_close) * 100
// Condition 1: Check if the current candle is an inside bar
is_inside_bar = (high <= prev_high) and (low >= prev_low)
// Condition 2: Check if the current candle opens with a gap-up greater than the specified percentage
is_gap_up = gap_up_percent > gap_up_percent_threshold
// Plot "IB" text below the inside bar candle if enabled
plotshape(series=use_inside_bar_condition and is_inside_bar, location=location.belowbar, style=shape.labeldown, text="IB", color=color.green, size=size.tiny, title="Inside Bar")
// Plot a green circle below the candle if it opens with a gap-up above the specified percentage and the toggle is enabled
plotshape(series=use_gap_up_condition and is_gap_up, location=location.belowbar, style=shape.circle, color=color.green, size=size.small, title="Gap-Up")
Zig Zag + Aroon StrategyBelow is a trading strategy that combines the Zig Zag indicator and the Aroon indicator. This combination can help identify trends and potential reversal points.
Zig Zag and Aroon Strategy Overview
Zig Zag Indicator:
The Zig Zag indicator helps to identify significant price movements and eliminates smaller fluctuations. It is useful for spotting trends and reversals.
Aroon Indicator:
The Aroon indicator consists of two lines: Aroon Up and Aroon Down. It measures the time since the highest high and the lowest low over a specified period, indicating the strength of a trend.
Strategy Conditions
Long Entry Conditions:
Aroon Up crosses above Aroon Down (indicating a bullish trend).
The Zig Zag indicator shows an upward movement (indicating a potential continuation).
Short Entry Conditions:
Aroon Down crosses above Aroon Up (indicating a bearish trend).
The Zig Zag indicator shows a downward movement (indicating a potential continuation).
Exit Conditions:
Exit long when Aroon Down crosses above Aroon Up.
Exit short when Aroon Up crosses above Aroon Down.
Magic multiple indicatorThis is a indicator with combination of multiple indicator(like-03 ema, bollinger band, vwap , baby candle), This is only a packet of bunch of indicator not any sureity of profit, I will not be responsible for any kind of profit/loss.(note:- stock name is just a example not any recomndation)
Ichimoku + RSI + MACD Strategy1. Relative Strength Index (RSI)
Overview:
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It ranges from 0 to 100 and is typically used to identify overbought or oversold conditions in a market.
How to Use with Ichimoku:
Long Entry: Look for RSI to be above 30 (indicating it is not oversold) when the price is above the Ichimoku Cloud.
Short Entry: Look for RSI to be below 70 (indicating it is not overbought) when the price is below the Ichimoku Cloud.
2. Moving Average Convergence Divergence (MACD)
Overview:
The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. It consists of the MACD line, signal line, and histogram.
How to Use with Ichimoku:
Long Entry: Enter a long position when the MACD line crosses above the signal line while the price is above the Ichimoku Cloud.
Short Entry: Enter a short position when the MACD line crosses below the signal line while the price is below the Ichimoku Cloud.
Combined Strategy Example
Here’s a brief outline of how to structure a trading strategy using Ichimoku, RSI, and MACD:
Long Entry Conditions:
Price is above the Ichimoku Cloud.
RSI is above 30.
MACD line crosses above the signal line.
Short Entry Conditions:
Price is below the Ichimoku Cloud.
RSI is below 70.
MACD line crosses below the signal line.
Exit Conditions:
Exit long when MACD line crosses below the signal line.
Exit short when MACD line crosses above the signal line.
Arshtiq - Multi-Timeframe Trend StrategyMulti-Timeframe Setup:
The script uses two distinct timeframes: a higher (daily) timeframe for identifying the trend and a lower (hourly) timeframe for making trades. This combination allows the script to follow the larger trend while timing entries and exits with more precision on a shorter timeframe.
Moving Averages Calculation:
higher_ma: The 20-period Simple Moving Average (SMA) calculated based on the daily timeframe. This average gives a sense of the larger trend direction.
lower_ma: The 20-period SMA calculated on the hourly (current) timeframe, providing a dynamic level for detecting entry and exit points within the broader trend.
Trend Identification:
Bullish Trend: The script determines that a bullish trend is present if the current price is above the daily moving average (higher_ma).
Bearish Trend: Similarly, a bearish trend is identified when the current price is below this daily moving average.
Trade Signals:
Buy Signal: A buy signal is generated when the price on the hourly chart crosses above the hourly 20-period MA, but only if the higher (daily) timeframe trend is bullish. This ensures that buy trades align with the larger upward trend.
Sell Signal: A sell signal is generated when the price on the hourly chart crosses below the hourly 20-period MA, but only if the daily trend is bearish. This ensures that sell trades are consistent with the broader downtrend.
Plotting and Visual Cues:
Higher Timeframe MA: The daily 20-period moving average is plotted in red to help visualize the long-term trend.
Buy and Sell Signals: Buy signals appear as green labels below the price bars with the text "BUY," while sell signals appear as red labels above the bars with the text "SELL."
Background Coloring: The background changes color based on the identified trend for easier trend recognition:
Green (with transparency) when the daily trend is bullish.
Red (with transparency) when the daily trend is bearish.
Average Yield InversionDescription:
This script calculates and visualizes the average yield curve spread to identify whether the yield curve is inverted or normal. It takes into account short-term yields (1M, 3M, 6M, 2Y) and long-term yields (10Y, 30Y).
Positive values: The curve is normal, indicating long-term yields are higher than short-term yields. This often reflects economic growth expectations.
Negative values: The curve is inverted, meaning short-term yields are higher than long-term yields, a potential signal of economic slowdown or recession.
Key Features:
Calculates the average spread between long-term and short-term yields.
Displays a clear graph with a zero-line reference for quick interpretation.
Useful for tracking macroeconomic trends and potential market turning points.
This tool is perfect for investors, analysts, and economists who need to monitor yield curve dynamics at a glance.
Double Stochastic Strategy with RSIDouble Stochastic Strategy with RSI This strategy combines two stochastic oscillators with the Relative Strength Index (RSI) to detect potential trend reversals in the market. The Double Stochastic Strategy measures how close prices are to overbought or oversold zones, and when combined with RSI, provides more reliable signals.
Stochastic Oscillator: By using two different stochastic oscillators, the strategy examines the market’s movement towards overbought or oversold levels over specific time frames. The primary stochastic is set for a shorter timeframe, while the secondary stochastic monitors long-term trends.
RSI (Relative Strength Index): RSI measures the speed and direction of price movements. When the double stochastic signals align with RSI levels, it generates stronger buy or sell signals.
This strategy is commonly used to detect short-term reversals or corrections in prices reaching extreme levels. Generally, a buy signal occurs when the stochastics are in the oversold zone and RSI is at a low level, while a sell signal is generated when stochastics are in the overbought zone and RSI is high.
ATR Stop LossThe ATR Stop Loss indicator is designed to assist traders in managing risk by calculating dynamic stop loss levels based on the Average True Range (ATR). By considering market volatility, this tool helps identify optimal stop loss placements for both long and short positions, making it easier for traders to protect their investments and avoid premature exits.
Features:
Customizable ATR period and multiplier to adapt to different trading strategies and market conditions.
Displays stop loss levels directly on the chart for quick decision-making.
Works across various timeframes and assets, offering flexible application in diverse trading scenarios.
How It Works: The indicator calculates the ATR over a specified period and multiplies it by a user-defined value to plot stop loss levels above or below the current closing price. For long positions, the stop loss level is set below the price, while for short positions, it is set above. These levels help traders set stops that account for current market volatility, reducing the likelihood of getting stopped out by minor fluctuations.
Usage: Add the ATR Stop Loss indicator to your chart, customize the ATR period and multiplier as needed, and use the visualized stop loss levels to manage your trades with greater precision and confidence.
Disclaimer: The ATR Stop Loss indicator is provided for educational and informational purposes only and should not be construed as financial or investment advice. Trading involves substantial risk and is not suitable for every investor. Users are solely responsible for any trading decisions they make based on the use of this indicator. Past performance is not indicative of future results. Always conduct your own analysis and consult with a qualified financial professional before making any trading decisions. EdgeLab and its creator bear no liability for any financial losses or other damages resulting from the use of this indicator.
Stockbee M20The Stockbee M20 Scan is a momentum scan designed to identify stocks with established short-term momentum. It highlights stocks that have moved significantly over the past 30 days, with bullish momentum indicated by a 20%+ increase from the lowest price and bearish momentum by a 20%+ decrease from the highest price. This scan helps traders spot potential setups and build watchlists of stocks that may offer continued movement.
This M20 Indicator serves as a study tool to visualize when stocks historically met these M20 conditions. It marks on the chart where a stock would have triggered the M20 scan, allowing traders to review past momentum patterns and evaluate current movers. An optional Keltner Channel filter further refines signals by excluding stocks that are overextended from their mean price, focusing only on entries closer to the average price.
M20 Conditions and Filter :
M20 Bullish: Price is 20%+ above the lowest point in the past 30 days.
M20 Bearish: Price is 20%+ below the highest point in the past 30 days.
Keltner Channel Filter: Exclude stocks trading outside the 20-period EMA ± 2x 10-period ATR bands.
Price and TimeСкрипт для зон поодержки и сопротивления от белоруса для белоруса исходя из статистики
Bitcoin MVRV Z-Score OverlayThis indicator overlays a buy and sell threshold onto a BTCUSD chart. These thresholds are calculated using the MVRV Z-Score and the provided threshold values for the MVRV Z-Score.