RSI ve EMA Tabanlı Alım-Satım StratejisiBu strateji, kısa vadeli ticaret yaparken güçlü trendleri takip etmeye ve riskleri en aza indirgemeye odaklanır. Strateji, aşağıdaki göstergelere dayanarak alım ve satım sinyalleri üretir:
Alım Sinyali:
EMA 50 değeri, EMA 200'ün üzerinde olmalı, yani trend yukarı yönlü olmalı.
MACD göstergesi sıfırın altında olmalı ve önceki değeri aşarak yükselmiş olmalı. Bu, güçlenen bir düşüş trendinden çıkıp yükselişe geçişi işaret eder.
Satım Sinyali:
RSI 14 göstergesi 70 seviyesini yukarıdan aşağıya kırarsa, aşırı alım durumunun sona erdiği ve fiyatın geri çekilebileceği sinyali verilir.
Stop Loss:
Eğer EMA 50 değeri, EMA 200'ün altına düşerse, strateji mevcut pozisyonu kapatarak zararı sınırlamayı hedefler.
Bu strateji, trend takibi yapan ve risk yönetimine önem veren yatırımcılar için tasarlanmıştır. Hem alım hem de satım koşulları, piyasa koşullarını dinamik bir şekilde analiz eder ve sadece trend yönündeki hareketlere odaklanır. RSI, MACD ve EMA göstergeleriyle desteklenen alım-satım sinyalleri, güçlü ve güvenilir bir ticaret stratejisi oluşturur.
Ekstra Notlar:
Strateji, trend yönünde işlem yaparak daha sağlam pozisyonlar almanızı sağlar.
Stop loss seviyeleri, güçlü trend dönüşleri durumunda korunmaya yardımcı olur.
Bu strateji özellikle yükseliş trendleri sırasında alım yapmayı tercih eder ve aşırı alım koşullarında satışı gerçekleştirir.
Średnie kroczące
Super Investor Club SMA RSI Trailing Stop for SPXOptimized for SPX, credit goes to Sean Seah Weiming
Key Features
Inputs:
smaLength: Length of the SMA (200 by default).
rsiLength: Length of the RSI calculation (14 by default).
rsiThreshold: RSI value below which entries are considered (40 by default).
trailStopPercent: Trailing stop loss percentage (5% by default).
waitingPeriod: The number of days to wait after an exit before entering again (10 days by default).
200 SMA and RSI Calculation:
Calculates the 200-period SMA of the closing price.
Computes the RSI using the given rsiLength.
Conditions for Entry:
A "buy" signal is triggered when:
The closing price is above the 200 SMA.
The RSI is below the defined threshold.
The waiting period since the last exit has elapsed.
Trailing Stop Loss:
When in a long position, the trailing stop price is adjusted based on the highest price since entry and the specified percentage.
Exit Conditions:
A sell signal is triggered when:
The price falls below the trailing stop price.
The price falls below the 200 SMA.
Visualization:
The 200 SMA is plotted on the chart.
"BUY" and "SELL" signals are marked with green and red labels, respectively.
EMA Crossover Signal CROSSMARKET9+21 EMA crossover signal. Needs refinement but effective for scalps.
QQE Strategy with Risk ManagementThis Pine Script is designed to transform Kıvanç Özbilgiç’s QQE indicator into a complete trading strategy. The script uses the QQE indicator to generate buy and sell signals, while integrating robust risk management mechanisms.
Key Features of the Strategy:
1. QQE Indicator-Based Signals:
• Buy (Long): Triggered when the fast QQE line (QQEF) crosses above the slow QQE line (QQES).
• Sell (Short): Triggered when the fast QQE line (QQEF) crosses below the slow QQE line (QQES).
2. Risk Management:
• ATR-Based Stop-Loss and Take-Profit: Dynamically calculated levels to limit losses and maximize profits.
• Trailing Stop: Adjusts stop-loss levels as the position moves into profit, ensuring gains are protected.
• Position Sizing: Automatically calculates position size based on a percentage of account equity.
3. Additions:
• The script enhances the indicator by introducing position entry/exit logic, risk management tools, and ATR-based calculations, making it a comprehensive trading strategy.
This strategy provides a robust framework for leveraging the QQE indicator in automated trading, ensuring effective trend detection and risk control.
EMA: f(x) - f'(x) - f''(x)Computes EMA for the given input period.
Also computes, the first and the second order derivative of that EMA.
ema,atr and with Bollinger Bands (Indicator)1. Indicator Overview
The indicator:
Displays EMA and Bollinger Bands on the chart.
Tracks price behavior during a user-defined trading session.
Generates long/short signals based on crossover conditions of EMA or Bollinger Bands.
Provides alerts for potential entries and exits.
Visualizes tracked open and close prices to help traders interpret market conditions.
2. Key Features
Inputs
session_start and session_end: Define the active trading session using timestamps.
E.g., 17:00:00 (5:00 PM) for session start and 15:40:00 (3:40 PM) for session end.
atr_length: The lookback period for the Average True Range (ATR), used for price movement scaling.
bb_length and bb_mult: Control the Bollinger Bands' calculation, allowing customization of sensitivity.
EMA Calculation
A 21-period EMA is calculated using:
pinescript
Copy code
ema21 = ta.ema(close, 21)
Purpose: Acts as a dynamic support/resistance level. Price crossing above or below the EMA indicates potential trend changes.
Bollinger Bands
Purpose: Measure volatility and identify overbought/oversold conditions.
Formula:
Basis: Simple Moving Average (SMA) of closing prices.
Upper Band: Basis + (Standard Deviation × Multiplier).
Lower Band: Basis - (Standard Deviation × Multiplier).
Code snippet:
pinescript
Copy code
bb_basis = ta.sma(close, bb_length)
bb_dev = bb_mult * ta.stdev(close, bb_length)
bb_upper = bb_basis + bb_dev
bb_lower = bb_basis - bb_dev
Session Tracking
The in_session variable ensures trading signals are only generated within the defined session:
pinescript
Copy code
in_session = time >= session_start and time <= session_end
3. Entry Conditions
EMA Crossover
Long Signal: When the price crosses above the EMA during the session:
pinescript
Copy code
ema_long_entry_condition = ta.crossover(close, ema21) and in_session and barstate.isconfirmed
Short Signal: When the price crosses below the EMA during the session:
pinescript
Copy code
ema_short_entry_condition = ta.crossunder(close, ema21) and in_session and barstate.isconfirmed
Bollinger Bands Crossover
Long Signal: When the price crosses above the upper Bollinger Band:
pinescript
Copy code
bb_long_entry_condition = ta.crossover(close, bb_upper) and in_session and barstate.isconfirmed
Short Signal: When the price crosses below the lower Bollinger Band:
pinescript
Copy code
bb_short_entry_condition = ta.crossunder(close, bb_lower) and in_session and barstate.isconfirmed
4. Tracked Prices
The script keeps track of key open/close prices using the following logic:
If a long signal is detected and the close is above the open, it tracks the open price.
If the close is below the open, it tracks the close price.
Tracked values are scaled using *4 (custom scaling logic).
These tracked prices are plotted for visual feedback:
pinescript
Copy code
plot(tracked_open, color=color.red, title="Tracked Open Price", linewidth=2)
plot(tracked_close, color=color.green, title="Tracked Close Price", linewidth=2)
5. Exit Conditions
Long Exit: When the price drops below the tracked open and close price:
pinescript
Copy code
exit_long_condition = (close < open) and (tracked_close < tracked_open) and barstate.isconfirmed
Short Exit: When the price rises above the tracked open and close price:
pinescript
Copy code
exit_short_condition = (close > open) and (tracked_close > tracked_open) and barstate.isconfirmed
6. Visualization
Plots:
21 EMA, Bollinger Bands (Basis, Upper, Lower).
Tracked open/close prices for additional context.
Background Colors:
Green for long signals, red for short signals (e.g., ema_long_entry_condition triggers a green background).
7. Alerts
The script defines alerts to notify the user about key events:
Entry Alerts:
pinescript
Copy code
alertcondition(ema_long_entry_condition, title="EMA Long Entry", message="EMA Long Entry")
alertcondition(bb_long_entry_condition, title="BB Long Entry", message="BB Long Entry")
Exit Alerts:
pinescript
Copy code
alertcondition(exit_long_condition, title="Exit Long", message="Exit Long")
8. Purpose
Trend Following: EMA crossovers help identify trend changes.
Volatility Breakouts: Bollinger Band crossovers highlight overbought/oversold regions.
Custom Sessions: Trading activity is restricted to specific time periods for precision.
Multi 7EMA With MJDescription: The Multi EMA Intraday Setup is a comprehensive indicator designed for intraday trading, combining multiple Exponential Moving Averages (EMAs) to identify market trends and support swift decision-making. By plotting EMAs of varying periods (5, 13, 21, 34, 50, 100, and 200), this setup gives traders a clear view of market momentum and potential entry or exit points. The indicator automatically adjusts to intraday price movements, providing valuable insights into trend strength and direction.
Features:
Multiple EMAs: The setup includes EMAs of various lengths (5, 13, 21, 34, 50, 100, and 200) for a broad analysis of short to long-term trends.
Trend Confirmation: The background color dynamically shifts to green (bullish) or red (bearish) based on the relative positioning of the EMAs.
Customizable Settings: Adjust the lengths of each EMA to tailor the indicator to your specific trading needs.
Intraday Focus: Optimized for intraday trading, the EMAs respond quickly to price changes and market shifts.
Visual Clarity: EMAs are displayed in distinct colors, making it easy to differentiate them on the chart.
How to Use:
Trend Identification: When the EMAs are aligned in a bullish order (shorter EMAs above longer EMAs), the background turns green, indicating a potential uptrend. A bearish alignment (shorter EMAs below longer EMAs) results in a red background, indicating a downtrend.
Bullish Confirmation: Look for the EMA5 to be above EMA13, EMA13 above EMA21, and so on. The stronger the alignment, the stronger the bullish signal.
Bearish Confirmation: Conversely, when all EMAs are aligned downward (EMA5 below EMA13, EMA13 below EMA21, etc.), it suggests a bearish trend.
Entry/Exit Signals: Use the alignment and crossovers of the EMAs to identify potential entry or exit points. The EMAs can help you decide when to enter or exit based on the market's trend direction.
Color based on 20 Day SMA and mvwapColors price based on where it is compared to 20 day SMA and mvwap.
SMA is anchored to the daily timeframe so that it remains constant even in lower timeframes
Trend Follow DailyHello,
here's a simple trend following system using D timeframe.
we buy at the close when:
market is been raising for 2 days in a row, current close is higher than previous close, current low is higher than previous low, current close is higher than previous close and the current close is above 21-period simple moving average.
we sell at the close when:
current close is higher than previous day's high.
Strategy works best on stock indices due to the long-term upward drift.
Commission is set to $2.5 per side and slippage is set to 1 tick.
You can adjust commission for your instrument, as well play around with the moving average period.
Moving average is there to simply avoid periods when market is the selloff state.
“MACD + EMA9 + Stop/TP (5 candles) - 3H” (Risk Multiplier = 3,5)Resumo:
Esta estratégia combina um sinal de MACD (cruzamento de DIF e DEA) com o cruzamento do preço pela EMA de 9 períodos. Além disso, utiliza Stop Loss baseado no menor ou maior preço dos últimos 5 candles (lookback) e um Take Profit de 3,5 vezes o risco calculado. Foi otimizada e obteve bons resultados no time frame de 3 horas, apresentando uma taxa de retorno superior a 2,19 em backtests.
Lógica de Entrada
1. Compra (Buy)
• Ocorre quando:
• O close cruza a EMA9 de baixo para cima (crossover).
• O MACD (DIF) cruza a linha de sinal (DEA) de baixo para cima (crossover).
• Ao detectar esse sinal de compra, a estratégia abre uma posição comprada (long) e fecha qualquer posição vendida anterior.
2. Venda (Sell)
• Ocorre quando:
• O close cruza a EMA9 de cima para baixo (crossunder).
• O MACD (DIF) cruza a linha de sinal (DEA) de cima para baixo (crossunder).
• Ao detectar esse sinal de venda, a estratégia abre uma posição vendida (short) e fecha qualquer posição comprada anterior.
Stop Loss e Take Profit
• Stop Loss:
• Compra (long): Stop fica abaixo do menor preço (low) dos últimos 5 candles.
• Venda (short): Stop fica acima do maior preço (high) dos últimos 5 candles.
• Take Profit:
• Utiliza um Fator de Risco de 3,5 vezes a distância do preço de entrada até o stop.
• Exemplo (compra):
• Risco = (Preço de Entrada) – (Stop Loss)
• TP = (Preço de Entrada) + (3,5 × Risco)
Parâmetros Principais
• Gráfico: 3 horas (3H)
• EMA9: Período de 9
• MACD: Padrão (12, 26, 9)
• Stop Loss (lookback): Maior ou menor preço dos últimos 5 candles
• Fator de TP (Risk Multiplier): 3,5 × risco
Observações
• Os resultados (taxa de retorno superior a 2,19) foram observados no histórico, com backtest no time frame de 3H.
• Sempre teste em conta demo ou com testes adicionais antes de usar em conta real, pois condições de mercado podem variar.
• Os parâmetros (EMA, MACD, lookback de 5 candles e fator de risco 3,5) podem ser ajustados de acordo com a volatilidade do ativo e o perfil de risco do trader.
Importante: Nenhum setup garante resultados futuros. Essa descrição serve como referência técnica, e cada investidor/trader deve avaliar a estratégia em conjunto com outras análises e com um gerenciamento de risco adequado.
wuyx 59 imbGiải thích:
alertcondition: Hàm này được sử dụng để tạo các điều kiện cảnh báo trên TradingView. Khi điều kiện được đáp ứng, cảnh báo sẽ được kích hoạt.
breakFlyingCandleUp: Điều kiện phá vỡ nến bay tăng, xảy ra khi giá đóng cửa cao hơn high của nến bay trước đó.
breakFlyingCandleDown: Điều kiện phá vỡ nến bay giảm, xảy ra khi giá đóng cửa thấp hơn low của nến bay trước đó.
Cách sử dụng:
Khi bạn thêm các cảnh báo này vào script, bạn có thể thiết lập cảnh báo trên TradingView để nhận thông báo khi các điều kiện này được đáp ứng.
Bạn có thể tùy chỉnh thông báo cảnh báo để phù hợp với nhu cầu của mình.
Ví dụ hoàn chỉnh:
Dưới đây là đoạn mã hoàn chỉnh với các cảnh báo đã được thêm vào:
Moving Average Exponential050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505
Extension From Bull Market Support Band [20W SMA & 21W EMA]The Price Extension Oscillator is a momentum indicator designed to identify overbought and oversold conditions, signaling potential trend reversals in the market.
Initially designed for Bitcoin on Weekly TF, but it can be used with any moving average and any symbol, just analyze the extensions and you will get a clear read on the assets potential reversal values.
Have a great day :)
Much success.
8 EMA and 20 EMAThis Pine Script is designed to plot two Exponential Moving Averages (EMAs) on the chart:
8-period EMA (Blue Line):
This is a faster-moving average that reacts more quickly to recent price changes. It uses the last 8 periods (bars) of the price data to calculate the average.
It is plotted in blue to distinguish it from the other EMA.
20-period EMA (Red Line):
This is a slower-moving average that smooths out the price data over a longer period of time, providing a better indication of the overall trend.
It is plotted in red to visually differentiate it from the 8-period EMA.
Key Features:
Version: This script is written in Pine Script version 6.
Overlay: The EMAs are plotted directly on the price chart, allowing for easy visualization of the moving averages relative to the price action.
Visual Appearance:
The 8-period EMA is displayed with a blue line.
The 20-period EMA is displayed with a red line.
Both lines have a thickness of 2 to make them more prominent.
Purpose:
The combination of these two EMAs can be used for trend analysis and trading strategies:
A bullish signal is often seen when the faster (8-period) EMA crosses above the slower (20-period) EMA.
A bearish signal is typically generated when the faster (8-period) EMA crosses below the slower (20-period) EMA.
Traders use these EMAs to help determine market trends, potential entry points, and exit points based on crossovers and price interactions with these moving averages.
MACD + EMA Cross by Mayank
It is 6 indicator in one :
5 ema 5 / 9 / 20/ 50/ 200 & MACD cross
When MACD (5,9,5) is greater than signal (5) and Momentum EMA (5) crosses up the Fast EMA (9), it generates B Signal.
when Signal is greater than MACD and Fast EMA(9) crosses down the Momentum EMA(5) , it generates S Signal.
When MACD (5,9,5): bullish crossover it generate M_B
When MACD (5,9,5): bearish crossover it generates M_S
EMA Crossover Signal CROSSMARKET9+21 EMA crossover signal. Needs refinement but effective for scalps.
Working - Liquididity Weighted Moving AverageI took the Indicator created by AlgoAlpha and essentially just turned it into a strategy. The Buy signal comes when the Fast Length crosses above the Slow Length and the Sell signal when they cross back.
I am looking for feedback from active traders on this strategy. So far, I have found that it is pretty reliable when trading Dogecoin using the 3 Hour interval. It's not reliable at all outside of this time interval. It is hit or miss when changing to other coins.
I am wondering if anyone has an idea of another indicator that will make the strategy more reliable. I am not keen on the Drawdown or Percent Profitable, but when I change the time duration on backtesting, as long as I am using Dogecoin on the 3 hour interval, the strategy appears to work.
SMA+BB+PSAR+GOLDEN AND DEATH CROSSSMA 5-8-13-21-34-55-89-144-233-377-610
BB 20-2
PSAR Parabolik SAR, alış satış analizini güçlendiren bir indikatördür. Bu gösterge temelde durdurma ve tersine çevirme sinyalleri için kullanılır. Teknik yatırımcılar trendleri ve geri dönüşleri tespit etmek için bu indikatörden faydalanır.
GOLDEN AND DEATH CROSS 50X200 KESİŞİMİ YADA NE İSTERSENİZ
Combined Indicator with Signals, MACD, RSI, and EMA200Este indicador combina múltiples herramientas técnicas en un solo script, proporcionando un enfoque integral para la toma de decisiones en trading. A continuación, se analiza cada componente y su funcionalidad, así como las fortalezas y áreas de mejora.
Componentes principales
Medias Móviles (MA7, MA20, EMA200):
MA7 y MA20: Son medias móviles simples (SMA) que identifican señales a corto plazo basadas en sus cruces. Estos cruces (hacia arriba o hacia abajo) son fundamentales para las señales de compra o venta.
EMA200: Actúa como un filtro de tendencia general. Aunque su presencia es visualmente informativa, no afecta directamente las señales en este script.
Estas medias móviles son útiles para identificar tendencias a corto y largo plazo.
MACD (Moving Average Convergence Divergence):
Calculado usando las longitudes de entrada (12, 26, y 9 por defecto).
Se trazan dos líneas: la línea MACD (verde) y la línea de señal (naranja). Los cruces entre estas líneas determinan la fuerza de las señales de compra o venta.
Su enfoque está en medir el momento del mercado, especialmente en combinación con los cruces de medias móviles.
RSI (Relative Strength Index):
Calculado con un período estándar de 14.
Se utiliza para identificar condiciones de sobrecompra (>70) y sobreventa (<30).
Además de ser trazado como una línea, el fondo del gráfico se sombrea con colores rojo o verde dependiendo de si el RSI está en zonas extremas, lo que facilita la interpretación visual.
Señales de Compra y Venta:
Una señal de compra ocurre cuando:
La MA7 cruza hacia arriba la MA20.
La línea MACD cruza hacia arriba la línea de señal.
El RSI está en una zona de sobreventa (<30).
Una señal de venta ocurre cuando:
La MA7 cruza hacia abajo la MA20.
La línea MACD cruza hacia abajo la línea de señal.
El RSI está en una zona de sobrecompra (>70).
Las señales se representan con triángulos verdes (compra) y rojos (venta), claramente visibles en el gráfico.
EMA 50 200 BandThis indicator displays the Exponential Moving Averages (EMA) with periods of 50 and 200 and visually highlights the areas between the two lines. The color coding helps to quickly identify trends:
Green: EMA 50 is above EMA 200 (bullish signal).
Red: EMA 50 is below EMA 200 (bearish signal).
This tool is especially useful for trend analysis and can act as a filter for buy and sell signals. It is suitable for day trading or swing trading across various timeframes.
Color Bars based on 20SMA and mVWAPPrice is colored green when above 20SMA and mvwap and red below them
зохламарапролдлорпавапролдждлорипмасвчапролдждлорпавывапролдждлорпасвчвапролдждлорпмсчячспролдлорпавапролдзжхздлорпавапролджздлорпа
Adaptive Moving Averagewhat is the purpose of the indicator?
When short-length moving averages are used as trailing stops, they cause exiting the trade too early. Keeping the length value too high will result in exiting the transaction too late and losing most of the profits earned. I aimed to prevent this problem with this indicator.
what is "Adaptive Moving Average"?
it is a moving average that can change its length on each candle depending on the selected source.
what it does?
The indicator first finds the average lengths of the existing candles and defines different distances accordingly. When the moving average drawn by the indicator enters the area defined as "far" by the indicator, the indicator reduces the length of the moving average, preventing it from moving too far from the price, and continues to do so at different rates until the moving average gets close enough to the price. If the moving average gets close enough to the price, it starts to increase the length of the average and thus the adaptation continues.
how it does it?
Since the change of each trading pair is different in percentage terms, I chose to base the average height of the candles instead of using constant percentage values to define the concept of "far". While doing this, I used a weighted moving average so that the system could quickly adapt to the latest changes (you can see it on line 17). After calculating what percentage of the moving average this value is, I caused the length of the moving average to change in each bar depending on the multiples of this percentage value that the price moved away from the average (look at line 20, 21 and 22). Finally, I created a new moving average using this new length value I obtained.
how to use it?
Although the indicator chooses its own length, we have some inputs to customize it. First of all, we can choose which source we will use the moving average on. The "source" input allows us to use it with other indicators.
"max length" and "min length" determine the maximum and minimum value that the length of the moving average can take.
Apart from this, there are options for you to add a standard moving average to the chart so that you can compare the adaptive moving average, and bollinger band channels that you can use to create different strategies.
This indicator was developed due to the need for a more sophisticated trailing stop, but once you understand how it works, it is completely up to you to combine it with other indicators and create different strategies.