Cycles
Highlight Candles - France Winter HoursCet indicateur met en évidence (colorie) automatiquement les bougies correspondant à cinq créneaux horaires précis : 8h, 9h, 14h, 14h30 et 15h30, selon l’heure d’hiver en France (Europe/Paris). Il fonctionne sur toute unité de temps (M1, M5, H1, etc.) et met en surbrillance les bougies sélectionnées en jaune.
Triple Sync StrategyThe Triple Sync Strategy is a comprehensive technical analysis tool designed to combine three powerful indicators: the ADX (Average Directional Index), Stochastic RSI, and CCI (Commodity Channel Index). By synthesizing these indicators into a single line, referred to as the Snake Line, this strategy identifies strong market trends and potential reversal points with high accuracy.
Key Features:
ADX helps measure the strength of a trend, ensuring that trades are executed in trending conditions.
Stochastic RSI smoothens the RSI values to detect overbought and oversold conditions, offering entry and exit signals.
CCI highlights price deviation from the average, providing insights into potential trend changes.
Dynamic Levels automatically adjust to market conditions, with overbought and oversold levels plotted as entry and exit zones.
Entry Signals: The strategy generates buy (long) and sell (short) signals when the Snake Line crosses the defined upper or lower levels.
Performance Optimization: Designed to filter noise and focus on high-probability trade opportunities by combining multiple indicators for a holistic view of the market.
This strategy is ideal for traders looking to identify trend reversals, capitalize on strong market moves, and avoid choppy or sideways price action. With dynamic levels and multiple confirmation points, the Triple Sync Strategy aims to improve trade accuracy and enhance overall trading performance.
Trading SessionsZeichnet die entsprechenden Sessions von Asia, London und New York ein.
Asia = Blue
London = Green
New York = Red
Real-Time Data Error Check _byMDKTests back if there was missing data/bar with respect to selected timeframe and source.
Experienced red data (no-real time data is available) so i come up with the idea.
Regards.
i.redd.it
Dynamic SMA Above and Below Candles By (Fahad Bashir)//@version=5
indicator("Dynamic SMA Above and Below Candles", overlay=true, max_lines_count=500)
// Input parameters
sma_length = input.int(21, "SMA Length", minval=1)
offset_atr_multiplier = input.float(1.5, "Offset ATR Multiplier", step=0.1)
atr_length = input.int(14, "ATR Period", minval=1)
// Calculations
sma = ta.sma(close, sma_length)
atr = ta.atr(atr_length)
dynamic_offset = atr * offset_atr_multiplier
upper_sma = sma + dynamic_offset // Upper SMA above the candles
lower_sma = sma - dynamic_offset // Lower SMA below the candles
// Plotting
plot(upper_sma,
color=color.new(#FF4500, 0),
linewidth=2,
title="Dynamic SMA Above",
style=plot.style_line)
plot(lower_sma,
color=color.new(#00BFFF, 0),
linewidth=2,
title="Dynamic SMA Below",
style=plot.style_line)
// Price relationship visualization
bgcolor(close > upper_sma ? color.new(color.red, 90) : color.new(color.green, 90))
Quad Rotation - 4 Stochastics Overlay with ABCD Detection"Quad Rotation - 4 Stochastics Overlay with ABCD Detection" is a momentum indicator combining four separate Stochastics and an ABCD pattern detection system.
Each Stochastic uses different parameter settings to capture potential rotation points in market momentum.
When three or more (this number is user customizable) of these Stochastics simultaneously slope downward above the 80 level (or slope upward below the 20 level), the chart background highlights in red (bearish) or green (bullish), indicating a multi-Stochastic momentum signal.
Additionally, the script tracks Stochastic #4 to detect an ABCD pattern:
Long Pattern (A-B) triggers if Stochastic #4 remains above 90 for a specified number of bars (abBars).
Short Pattern (C-D) triggers if Stochastic #4 remains below 10 for a specified number of bars (cdBars).
Visual markers (green X for long setups, red X for short setups) appear on the chart once these conditions are met. Users can enable alerts to receive real-time notifications whenever momentum signals or ABCD patterns occur.
This combination of multi-Stochastic momentum and ABCD detection helps traders gauge potential trend exhaustion and reversal points with greater confidence.
EMA50150 with SMA150 Stop-loss and Re-Entry #gangesThis strategy is a trading system that uses Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) to determine entry and exit points for trades. Here's a breakdown of the key components and logic:
Key Indicators:
EMA 50 (Exponential Moving Average with a 50-period window): This is a more responsive moving average to recent price movements.
EMA 150 (Exponential Moving Average with a 150-period window): A slower-moving average that helps identify longer-term trends.
SMA 150 (Simple Moving Average with a 150-period window): This acts as a stop-loss indicator for long trades.
User Inputs:
Start Date and End Date: The strategy is applied only within this date range, ensuring that trading only occurs during the specified period.
Trade Conditions:
Buy Signal (Long Position):
A buy is triggered when the 50-period EMA crosses above the 150-period EMA (indicating the price is gaining upward momentum).
Sell Signal (Short Position):
A sell is triggered when the 50-period EMA crosses below the 150-period EMA (indicating the price is losing upward momentum and moving downward).
Stop-Loss for Long Positions:
If the price drops below the 150-period SMA, the strategy closes any long positions as a stop-loss mechanism to limit further losses.
Re-Entry After Stop-Loss:
After a stop-loss is triggered, the strategy monitors for a re-entry signal:
Re-buy: If the price crosses above the 150-period EMA from below, a new long position is triggered.
Re-sell: If the 50-period EMA crosses below the 150-period EMA, a new short position is triggered.
Trade Execution:
Buy or Sell: The strategy enters trades based on the conditions described and exits them if the stop-loss conditions are met.
Re-entry: After a stop-loss, the strategy tries to re-enter the market based on the same buy/sell conditions.
Risk Management:
Commission and Slippage: The strategy includes a 0.1% commission on each trade and allows for 3 pips of slippage to account for real market conditions.
Visuals:
The strategy plots the 50-period EMA (blue), 150-period EMA (red), and 150-period SMA (orange) on the chart, helping users visualize the key levels for decision-making.
Date Range Filter:
The strategy only executes trades during the user-defined date range, which helps limit trades to a specific period and avoid backtesting errors on irrelevant data.
Stop-Loss Logic:
The stop-loss is triggered when the price crosses below the 150-period SMA, closing the long position to protect against significant drawdowns.
Overall Strategy Goal:
The strategy aims to capture long-term trends using the EMAs for entry signals, while protecting profits through the stop-loss mechanism and offering a way to re-enter the market after a stop-loss.
SPDR Sectors█ OVERVIEW
This script is an interactive and customizable SPDR Sectors Indicator designed to monitor and analyze the performance of the 11 main sectors of the S&P 500 using sector-specific ETFs. The script provides a dynamic table for tracking daily or periodic sector movements, making it an essential tool for traders, analysts, and investors implementing sector rotation strategies.
█ DEFINITIONS
SPDR Sectors ETFs are exchange-traded funds managed by State Street Global Advisors that divide the S&P 500 into the following 11 sectors:
- Communication Services (XLC)
- Consumer Discretionary (XLY)
- Consumer Staples (XLP)
- Energy (XLE)
- Financials (XLF)
- Health Care (XLV)
- Industrials (XLI)
- Materials (XLB)
- Real Estate (XLRE)
- Technology (XLK)
- Utilities (XLU)
These ETFs aim to replicate the performance of their respective sectors as defined by the Global Industry Classification Standard (GICS). The funds are periodically rebalanced to match changes in the S&P 500, offering an accurate reflection of sectoral trends.
█ INDICATOR
The script provides a table displaying the ticker and its corresponding sector name in official GICS terminology, using the SPDR official color. Additionally, it shows the percentage performance, calculated daily for intraday charts or according to the chart's time frame.
The table can be sorted in ascending or descending order, based on either performance or the weight of the ETFs in the S&P 500, which can be manually updated using data retrieved from www.sectorspdrs.com
High-Leverage Futures Trading Strategy//@version=5
indicator("High-Leverage Futures Trading Strategy", shorttitle="HL Futures", overlay=true)
// Input Parameters
risk_per_trade = input.float(5, title="Risk per Trade (%)", minval=1, maxval=100)
atr_multiplier = input.float(1.5, title="ATR Stop-Loss Multiplier", minval=0.1, maxval=5)
ema_fast_length = input.int(50, title="Fast EMA Length", minval=1)
ema_slow_length = input.int(200, title="Slow EMA Length", minval=1)
rsi_length = input.int(14, title="RSI Length", minval=1)
macd_fast = input.int(12, title="MACD Fast Length", minval=1)
macd_slow = input.int(26, title="MACD Slow Length", minval=1)
macd_signal = input.int(9, title="MACD Signal Length", minval=1)
// Force 4-Hour Timeframe
is_4h = (timeframe.period == "240")
if not is_4h
label.new(bar_index, high, "Use 4H timeframe", color=color.red, textcolor=color.white, style=label.style_label_down)
// Moving Averages
ema_fast = ta.ema(close, ema_fast_length)
ema_slow = ta.ema(close, ema_slow_length)
// Trend Identification
long_condition = close > ema_fast and ema_fast > ema_slow
short_condition = close < ema_fast and ema_fast < ema_slow
// RSI
rsi = ta.rsi(close, rsi_length)
rsi_long = rsi < 30
rsi_short = rsi > 70
// MACD
= ta.macd(close, macd_fast, macd_slow, macd_signal)
macd_long = ta.crossover(macd_line, signal_line)
macd_short = ta.crossunder(macd_line, signal_line)
// ATR for Stop-Loss
atr = ta.atr(14)
stop_loss_long = close - atr * atr_multiplier
stop_loss_short = close + atr * atr_multiplier
// Volume Confirmation
volume_spike = volume > ta.sma(volume, 20) * 1.5
// Entry Signals
entry_long = long_condition and macd_long and rsi_long and volume_spike
entry_short = short_condition and macd_short and rsi_short and volume_spike
// Plot EMAs
plot(ema_fast, color=color.blue, title="50 EMA")
plot(ema_slow, color=color.red, title="200 EMA")
// Plot Buy and Sell Signals
plotshape(entry_long, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, size=size.small)
plotshape(entry_short, title="Sell Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small)
// Alerts
alertcondition(entry_long, title="Long Entry", message="Go LONG: High-leverage entry detected.")
alertcondition(entry_short, title="Short Entry", message="Go SHORT: High-leverage entry detected.")
jamesmadeanother Rich's Golden Cross plots clear "BUY" signals on your chart when all conditions align, giving you a strategic edge in the markets. Whether you're a swing trader or a long-term investor, this indicator helps you stay ahead of the curve by filtering out noise and focusing on high-quality setups.
Why Choose Rich's Golden Cross?
Multi-Timeframe Analysis: Combines short-term and long-term trends for better accuracy.
Easy-to-Read Signals: Clear buy alerts directly on your chart.
Customizable: Adjust parameters to suit your trading style.
Take your trading to the next level with Rich's Golden Cross—your ultimate tool for spotting golden opportunities in the market.
Indicador XAU/USD - Compras e VendasSegundo Indicador feito por Aneilton para analise do XAUUSD quando estiver em tendência de Baixa
Multi-Timeframe RSI Grid Strategy with ArrowsKey Features of the Strategy
Multi-Timeframe RSI Analysis:
The strategy calculates RSI values for three different timeframes:
The current chart's timeframe.
Two higher timeframes (configurable via higher_tf1 and higher_tf2 inputs).
It uses these RSI values to identify overbought (sell) and oversold (buy) conditions.
Grid Trading System:
The strategy uses a grid-based approach to scale into trades. It adds positions at predefined intervals (grid_space) based on the ATR (Average True Range) and a grid multiplication factor (grid_factor).
The grid system allows for pyramiding (adding to positions) up to a maximum number of grid levels (max_grid).
Daily Profit Target:
The strategy has a daily profit target (daily_target). Once the target is reached, it closes all open positions and stops trading for the day.
Drawdown Protection:
If the open drawdown exceeds 2% of the account equity, the strategy closes all positions to limit losses.
Reverse Signals:
If the RSI conditions reverse (e.g., from buy to sell or vice versa), the strategy closes all open positions and resets the grid.
Visualization:
The script plots buy and sell signals as arrows on the chart.
It also plots the RSI values for the current and higher timeframes, along with overbought and oversold levels.
How It Works
Inputs:
The user can configure parameters like RSI length, overbought/oversold levels, higher timeframes, grid spacing, lot size multiplier, maximum grid levels, daily profit target, and ATR length.
RSI Calculation:
The RSI is calculated for the current timeframe and the two higher timeframes using ta.rsi().
Grid System:
The grid system uses the ATR to determine the spacing between grid levels (grid_space).
When the price moves in the desired direction, the strategy adds positions at intervals of grid_space, increasing the lot size by a multiplier (lot_multiplier) for each new grid level.
Entry Conditions:
A buy signal is generated when the RSI is below the oversold level on all three timeframes.
A sell signal is generated when the RSI is above the overbought level on all three timeframes.
Position Management:
The strategy scales into positions using the grid system.
It closes all positions if the daily profit target is reached or if a reverse signal is detected.
Visualization:
Buy and sell signals are plotted as arrows on the chart.
RSI values for all timeframes are plotted, along with overbought and oversold levels.
Example Scenario
Suppose the current RSI is below 30 (oversold), and the RSI on the 60-minute and 240-minute charts is also below 30. This triggers a buy signal.
The strategy enters a long position with a base lot size.
If the price moves against the position by grid_space, the strategy adds another long position with a larger lot size (scaled by lot_multiplier).
This process continues until the maximum grid level (max_grid) is reached or the daily profit target is achieved.
Key Variables
grid_level: Tracks the current grid level (number of positions added).
last_entry_price: Tracks the price of the last entry.
base_size: The base lot size for the initial position.
daily_profit_target: The daily profit target in percentage terms.
target_reached: A flag to indicate whether the daily profit target has been achieved.
Potential Use Cases
This strategy is suitable for traders who want to combine RSI-based signals with a grid trading approach to capitalize on mean-reverting price movements.
It can be used in trending or ranging markets, depending on the RSI settings and grid parameters.
Limitations
The grid trading system can lead to significant drawdowns if the market moves strongly against the initial position.
The strategy relies heavily on RSI, which may produce false signals in strongly trending markets.
The daily profit target may limit potential gains in highly volatile markets.
Customization
You can adjust the input parameters (e.g., RSI length, overbought/oversold levels, grid spacing, lot multiplier) to suit your trading style and market conditions.
You can also modify the drawdown protection threshold or add additional filters (e.g., volume, moving averages) to improve the strategy's performance.
In summary, this script is a sophisticated trading strategy that combines RSI-based signals with a grid trading system to manage entries, exits, and position sizing. It includes features like daily profit targets, drawdown protection, and multi-timeframe analysis to enhance its robustnes
Previous Candle High Low Break Previous candle high low break strategy if you want break out and break down on
Candles break out patter its sutable strategy
SAVE ORDER'S STRATEGY V - 1
This Strategy is Using Save Order's Instate of Stop Loss to Profit of the Assets
in this case bitcoin
There is no stop loss
What is Save Order ?
SAVE ORDER IS WHEN IS IN LONG POSITION LIMIT SAVE ORDERS ARE PLACED BELOW -
THE LONG POSITION ON SET DISTANCE TO LOWER THE AVERAGE PRICE OF ALL POSITIONS
WHEN THE ASSET PRICE GO UP LIKE BITCOIN THIS STRATEGY WILL TAKE PROFIT ON -
AVERAGE PRICE FOR ALL ORDER'S
TAKE PROFIT IS TRIALING OR AVERAGE PRICE + TAKE PROFIT %
IF % TRIALING IS USE - AND THE PRACE IS >= TO AVERAGE PRICE + TAKE PROFIT % -
IN REAL TIME THE % TRAILING WILL WORK
UNFORTUNATELY ON BACK TESTING IS NOT REALISTIC
GETTING LONG IS CROSSUNDER FAST HMA - SLOW HMA - THE LENGTHS' CAN BE CHANGE
ALL THE DISTANCE IS DETERMINED BY MAIN SMOOTHED DYNAMIC MA
ONE'S IT GET ON THE FIRST POSITION THE LIMIT ORDER'S ARE SET STATICALLY -
and plot 1 by one
The SUM in Cash for Base Order and All Save orders can be Adjusted
The Distance of the Save orders can be Adjusted
Fast and Slow HMA are plotted
Take Profit and Average Price of the position are plotted
Voids - Track 3yoq wIchmeyvam vIqawmo’, yuQ ghoqwI’ mIw chu’ tlhoS ngaj ‘ej qechmey le’ luyaj. Hov patlh buSmeH numbogh De’ ngaS. notlhbe’, loghDaq chaq tlhIngan po’ lo’taHvIS ’utbej
Grid Trading with RSI and Fibonacci SLThis script implements a grid trading strategy that buys when the "AI" confidence is high and the RSI is oversold, and sells when the "AI" confidence is high and the RSI is overbought.
It uses a Fibonacci-based stop-loss and adjusts the grid levels and trade size after each trade.
The "AI" is a very simple rule-based system, not actual artificial intelligence. The script also plots the RSI, AI confidence, grid price, and stop-loss level on the chart.
It's important to thoroughly backtest and understand the risks associated with grid trading strategies before using them with real capital.
klingon Track1 - ZAsia ZLondonyoq wIchmeyvam vIqawmo’, yuQ ghoqwI’ mIw chu’ tlhoS ngaj ‘ej qechmey le’ luyaj. Hov patlh buSmeH numbogh De’ ngaS. notlhbe’, loghDaq chaq tlhIngan po’ lo’taHvIS ’utbej.
Average Volatility Over N Days (XAUUSD & Forex)The indicator displays the average range of daily candles over an N-period.
Drawdown from All-Time High (%)This indicator calculates and displays the drawdown percentage from the all-time high of the price. It helps traders visualize how far the current price is from its peak, making it a valuable tool for analyzing market trends, identifying retracements, and assessing risk.
EMA Crossover + RSI Filter (1-Hour)//@version=5
strategy("EMA Crossover + RSI Filter (1-Hour)", overlay=true)
// Input parameters
fastLength = input.int(9, title="Fast EMA Length")
slowLength = input.int(21, title="Slow EMA Length")
rsiLength = input.int(14, title="RSI Length")
overbought = input.int(70, title="Overbought Level")
oversold = input.int(30, title="Oversold Level")
// Calculate EMAs
fastEMA = ta.ema(close, fastLength)
slowEMA = ta.ema(close, slowLength)
// Calculate RSI
rsi = ta.rsi(close, rsiLength)
// Buy Condition
buyCondition = ta.crossover(fastEMA, slowEMA) and rsi > 50 and rsi < overbought
// Sell Condition
sellCondition = ta.crossunder(fastEMA, slowEMA) and rsi < 50 and rsi > oversold
// Plot EMAs
plot(fastEMA, color=color.blue, title="Fast EMA")
plot(slowEMA, color=color.red, title="Slow EMA")
// Plot Buy/Sell Signals
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Execute Trades
if (buyCondition)
strategy.entry("Buy", strategy.long)
if (sellCondition)
strategy.entry("Sell", strategy.short)