3cf structureL'indicatore è progettato per identificare i punti di massimo e minimo locale nel grafico di prezzo. Si tratta di un indicatore visivo che evidenzia con piccoli pallini i livelli significativi, fornendo una guida per analizzare la struttura.
圖表形態
SessionsL'indicatore di sessioni di trading è uno strumento visivo essenziale per i trader che desiderano analizzare il comportamento del mercato durante specifiche fasce orarie corrispondenti alle principali sessioni di trading globali (come New York, Londra, Tokyo e Sydney). Questo indicatore traccia automaticamente sul grafico le diverse sessioni, evidenziandone l'inizio e la fine, per aiutare a identificare le ore di maggiore volatilità e liquidità.
Strategy with Pivot PointsFull Strategy with Pivot Points.
Buy and sell signals based on reversal patterns
Order Block plusIndicator Description: “Order Block Plus”
This indicator is designed for traders who aim to identify the strength and position of supply and demand zones on the chart and receive key signals for entry or exit. Below is a detailed explanation of its functionality:
Features and Applications:
1. Identifying Supply and Demand Zones:
• Supply (Resistance) and Demand (Support) zones are visually displayed on the chart.
• Each zone is marked with a specific color (Yellow for supply, Blue for demand) for easy identification.
2. Breakout and Reversal Signals:
• The indicator detects Breakout and Reversal patterns and highlights them with alerts.
• Example: Detecting price breaking above or below key levels.
3. Candlestick Pattern Support:
• Identifies powerful patterns such as Bullish Engulf, Bearish Engulf, Three White Soldiers, and Three Black Crows.
4. Displaying Zone Strength:
• The indicator shows the strength of supply and demand zones using text displayed inside each zone.
5. Alerts:
• Provides alerts for zone breakouts, breakdowns, and new zone formations.
• Example: Alerts for breaking a demand or supply zone.
How to Use:
1. Adding to the Chart:
• The indicator can be applied to any time frame and is suitable for Forex, stocks, or cryptocurrency charts.
2. Identifying Trading Opportunities:
• Demand zones indicate strong support levels where prices are likely to rise.
• Supply zones indicate resistance levels where prices are likely to fall.
3. Examining Zone Strength:
• The strength of each zone is displayed with text inside the zone.
Indicator Settings:
• Zone Colors:
• The default colors for supply and demand zones are yellow and blue, but they can be customized.
• Alerts:
• Configurable alerts for breakouts or reversals.
Advantages:
• Automatic detection of key price levels.
• Accurate and timely alerts for trades.
• Customizable for professional traders.
Note: This indicator is designed for technical analysis and should be used alongside a suitable trading strategy.
Candle Range in Pips The indicator measures the range of each candle (difference between the high and low prices) and converts it into pips. This is useful for analyzing volatility or identifying large price movements on a chart.
Breakout Pivot High-LowThis strategy uses a breakout approach by identifying the Previous Pivot High as the entry signal. The strategy calculates Pivot High/Low using a customizable LENGTH LEFT/RIGHT parameter, allowing flexibility in defining the number of candles for the calculation. To manage risk, it uses position sizing based on Trailing Stop or Previous Pivot Low. Specifically, the Trailing Stop is calculated using the ATR of the last 10 candles multiplied by 2.3.
The reason for using ATR Trailing Stop in position sizing is that it generally creates a narrower price range compared to Previous Pivot Low. This allows for a larger position size, which can lead to higher profits for each trade.
The exit condition is determined by the price closing below the Previous Pivot Low. This indicates a potential shift in market structure from an uptrend to a downtrend, making it a logical point to close the order.
The backtesting period can be set in the Backtest Settings, with the default range from 1/1/2012 to the present. The strategy’s exit rules are designed to trigger when the price breaks either the Middle Line or the Previous Pivot Low.
This script is intended to help traders manage breakout opportunities effectively while maintaining risk control through customizable parameters. It is particularly suitable for traders who prefer a structured and adaptive approach to trading. All default settings are carefully optimized for realistic trading scenarios, but they can be fully adjusted to meet individual trading preferences.
MXI ALGO The provided script combines two powerful technical indicators, Ichimoku Cloud and HalfTrend, to create a hybrid trading tool. Here's an analysis of the key components and how they work together:
$TRUMPT 多空策略分享【$TRUMP多空策略分享】
这是一个结合趋势跟随和波段交易的策略,通过多重技术指标确认入场,配合动态仓位管理和灵活止盈机制。
策略核心逻辑:
入场信号
多头:快速EMA上穿慢速EMA + MACD金叉 + RSI<70
空头:快速EMA下穿慢速EMA + MACD死叉 + RSI>30
风险管理
止损:5%
第一止盈:8%
第二止盈:12%
杠杆:3倍
仓位管理
基于ATR动态调整仓位大小
单笔最大风险控制在5%
最大仓位不超过40%账户权益
回测数据:
净利润:145.37 USDT (14.56%)
交易次数:164次
胜率:39.02%
盈亏比:1.468
最大回撤:84.43 USDT (6.90%)
平均每笔:0.89 USDT
策略特点:
多重指标过滤,提高交易质量
分批止盈,动态调整目标位
完善的风控体系,确保长期稳定
适合波动性较大的币种
注意:回测表现不代表未来收益,请理性对待,严格执行风控。
EMA 21/50 Buy Strategy//@version=5
strategy("EMA 21/50 Buy Strategy", overlay=true)
// Input for EMA lengths
ema21Length = input.int(21, title="EMA 21 Length")
ema50Length = input.int(50, title="EMA 50 Length")
// Stop loss and take profit in pips
stopLossPips = input.int(50, title="Stop Loss (pips)")
takeProfitPips = input.int(100, title="Take Profit (pips)")
// Convert pips to price (adjust for pip value based on market type)
pipValue = syminfo.mintick
stopLossPrice = stopLossPips * pipValue
takeProfitPrice = takeProfitPips * pipValue
// Calculate EMAs
ema21 = ta.ema(close, ema21Length)
ema50 = ta.ema(close, ema50Length)
// Bullish crossover condition
bullishCrossover = ta.crossover(ema21, ema50)
// Strategy entry logic
if (bullishCrossover)
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit", from_entry="Buy", limit=close + takeProfitPrice, stop=close - stopLossPrice)
// Plot the EMAs
plot(ema21, color=color.blue, title="EMA 21")
plot(ema50, color=color.red, title="EMA 50")
Dhawal_Dynamic Zone Dynamic Zones will be created
Day
Week
Month
These lines may act as support and resistance and user can trade accordingly
IME-Bands with RSI Strategy//@version=5
strategy("IME-Bands with RSI Strategy", overlay=true)
// === INPUTS ===
src = close
emaS_value = input.int(50, minval=1, title="EMA Small - Value") // 50 EMA
emaB_value = input.int(100, minval=1, title="EMA Big - Value") // 100 EMA
rsi_length = input.int(14, title="RSI Length")
rsi_source = input.source(close, title="RSI Source")
rsi_overbought = input.int(70, title="RSI Overbought Level")
rsi_oversold = input.int(30, title="RSI Oversold Level")
// === CALCULATIONS ===
// EMAs
emaS = ta.ema(close, emaS_value)
emaB = ta.ema(close, emaB_value)
// RSI
rsi = ta.rsi(rsi_source, rsi_length)
// IME-Band Cross Conditions
isGreenCrossover = emaS > emaB // Green band
isRedCrossover = emaS < emaB // Red band
// Track Green Cross Confirmation
var bool isGreenConfirmed = false
if (isGreenCrossover and not isGreenCrossover ) // First green crossover
isGreenConfirmed := true
if (not isGreenCrossover)
isGreenConfirmed := false
// Entry Condition: RSI above 70 on second green candle
entryCondition = isGreenConfirmed and rsi > rsi_overbought and isGreenCrossover
// Exit Condition: Red band confirmed
exitCondition = isRedCrossover
// === STRATEGY RULES ===
// Stop Loss: Lowest point of crossover
var float stopLoss = na
if (isGreenCrossover and not isGreenCrossover )
stopLoss := emaB // Set stop loss to EMA Big (crossover point)
// Entry and Exit Trades
if (entryCondition)
strategy.entry("Buy", strategy.long)
stopLoss := na // Reset stop loss after entry
if (exitCondition)
strategy.close("Buy")
// Stop Loss logic
if (strategy.position_size > 0 and not na(stopLoss))
strategy.exit("Stop Loss", from_entry="Buy", stop=stopLoss)
// Plotting
plot(emaS, color=color.green, title="EMA Small (50)", linewidth=1)
plot(emaB, color=color.red, title="EMA Big (100)", linewidth=1)
hline(rsi_overbought, "RSI Overbought", color=color.new(color.red, 70), linestyle=hline.style_dotted)
plot(rsi, color=color.blue, title="RSI")
9 MME + 21,50,200 MMA + Breakout Probability (Expo)9 MME + 21,50,200 MMA + Breakout Probability (Expo)
Bollinger Band Squeeze
This indicator is designed to identify periods of market volatility compression using Bollinger Bands (BB) and Keltner Channels (KC), i.e. the Bollinger Band Squeeze.
When the Bollinger Bands fall entirely within the bounds of the Keltner Channels the bands are highlighted in red. During periods of no compression, the bands are displayed in gray.
-- BB: 20 SMA
-- KC: 20 EMA
Smart Money Concepts.meFor Overall Use
comprises of: OB, Market structure, custom time zones, Hull, SAR, FVG and more...
Buy/Sell Break and RetestThis script is a Pine Script indicator for TradingView titled **"Buy/Sell Break and Retest"**. Here's a description of its functionality:
### Purpose:
The script identifies potential **buy** and **sell entry levels** based on break-and-retest patterns in the market. It works by analyzing higher timeframe data (e.g., 1-hour) and marking entries on a lower timeframe (e.g., 1-minute).
### Key Features:
1. **Configurable Timeframes**:
- `Analysis Timeframe`: Used for identifying break-and-retest signals (default: 1-hour).
- `Entry Timeframe`: Used for marking and plotting entries (default: 1-minute).
2. **Buy and Sell Signals**:
- A **sell entry** is triggered when a bearish candle (close < open) is identified in the analysis timeframe.
- A **buy entry** is triggered when a bullish candle (close > open) is identified in the analysis timeframe.
3. **Retest Logic**:
- For sell signals: The retest is validated when the price breaks below the identified sell level.
- For buy signals: The retest is validated when the price breaks above the identified buy level.
4. **Visual Indicators**:
- Entry levels are marked with labels:
- **Buy Entry**: Green labels are placed at bullish candle opens.
- **Sell Entry**: Red labels are placed at bearish candle closes.
- Plots the levels for easy reference:
- **Sell Level**: Displayed as red circles on the chart.
- **Buy Level**: Displayed as green circles on the chart.
5. **Dynamic Updates**:
- Levels are cleared when invalidated by the price action.
### Use Case:
This indicator helps traders spot break-and-retest opportunities by:
- Allowing higher timeframe analysis to determine trend direction and key levels.
- Providing actionable buy and sell entry points on lower timeframes for precision.
Let me know if you'd like further clarification or improvements!
RSI Divergence with Bullish CandleKey Concepts in the Script:
RSI Calculation: The RSI is calculated with the user-defined period (rsiLength). The script uses the default 14-period RSI but you can adjust it.
Bullish Divergence:
Price Low: The script checks for the lowest price over the last 20 bars (ta.lowest(close, 20)).
RSI Low: The script checks for the lowest RSI over the same 20 bars.
Divergence Condition: Bullish divergence is identified when the price forms a lower low (priceLow1 < priceLow2), while the RSI forms a higher low (rsiLow1 > rsiLow2), and the RSI is below the oversold level (typically 30).
Bullish Candle Pattern:
A Bullish Engulfing pattern is defined as the current candle closing higher than it opened, and the close being above the previous candle's high.
A Hammer pattern is defined as a candlestick where the close is higher than the open, and the low is the lowest of the last 5 bars.
Buy Signal: The script generates a buy signal when both the bullish divergence and bullish candle are confirmed at the same time.
BuyTheDips Trade on Trend and Fixed TP/SL
This strategy is designed to trade in the direction of the trend using exponential moving average (EMA) crossovers as signals while employing fixed percentages for take profit (TP) and stop loss (SL) to manage risk and reward. It is suitable for both scalping and swing trading on any timeframe, with its default settings optimized for short-term price movements.
How It Works
EMA Crossovers:
The strategy uses two EMAs: a fast EMA (shorter period) and a slow EMA (longer period).
A buy signal is triggered when the fast EMA crosses above the slow EMA, indicating a potential bullish trend.
A sell signal is triggered when the fast EMA crosses below the slow EMA, signaling a bearish trend.
Trend Filtering:
To improve signal reliability, the strategy only takes trades in the direction of the overall trend:
Long trades are executed only when the fast EMA is above the slow EMA (bullish trend).
Short trades are executed only when the fast EMA is below the slow EMA (bearish trend).
This filtering ensures trades are aligned with the prevailing market direction, reducing false signals.
Risk Management (Fixed TP/SL):
The strategy uses fixed percentages for take profit and stop loss:
Take Profit: A percentage above the entry price for long trades (or below for short trades).
Stop Loss: A percentage below the entry price for long trades (or above for short trades).
These percentages can be customized to balance risk and reward according to your trading style.
For example:
If the take profit is set to 2% and the stop loss to 1%, the strategy operates with a 2:1 risk-reward ratio. BINANCE:BTCUSDT
Bearish Wick Reversal█ STRATEGY OVERVIEW
The "Bearish Wick Reversal Strategy" identifies potential bullish reversals following significant bearish price rejection (long lower wicks). This counter-trend approach enters long positions when bearish candles show exaggerated downside wicks relative to closing prices, then exits on bullish confirmation signals. Includes optional EMA trend filtering for improved reliability.
█ What is a Bearish Wick?
A price rejection pattern where:
Bearish candle (close < open) forms with extended lower wick
Wick represents failed selloff: Low drops significantly below close
Measured as: (Low - Close)/Close × 100 (Negative percentage indicates downward extension)
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
Bearish candle forms with close < open
Lower wick exceeds user-defined threshold (Default: -1% of close price)
The signal occurs within the specified time window
If enabled, the close price must also be above the 200-period EMA (Exponential Moving Average)
2. EXIT CONDITION
A Sell Signal is generated when the current closing price exceeds the highest high of the previous seven bars (`close > _highest `). This indicates that the price has shown strength, potentially confirming the reversal and prompting the strategy to exit the position.
█ PERFORMANCE OVERVIEW
Ideal Market: Volatile instruments with frequent price rejections
Key Risk: False signals in sustained bearish trends
Optimization Tip: Test various thresholds
Filter Impact: EMA reduces trades but improves win rate and reduces drawdown
7 Indicator Bottom and Top finder
The script is a trading indicator for the TradingView platform designed to generate and visualise buy and sell signals based on various technical indicators. It utilises short periods and smoothes data to achieve high sensitivity to volatile markets. The functionality, application and use of the script are explained below:
1. how it works
The script combines several technical indicators to create a summarised signal for buy and sell decisions. It includes:
a. Calculation of the indicators:
BBTrend: Determines the difference between two moving averages (shorter and longer period).
VMC (RSI): Uses the Relative Strength Index (RSI) for trend evaluation.
SMI (Stochastic Momentum Index): Measures the difference in current and previous prices.
RSI: A classic momentum indicator.
OBV RSI: Combines the On-Balance Volume indicator with the RSI.
SQMOM_LB (Squared Momentum): Measures the speed of price changes.
MACD: Utilises the difference between fast and slow moving averages and their signal.
b. Generation of signals:
Each indicator provides an individual signal based on set thresholds:
Each indicator provides an individual signal based on defined threshold values:
1: Signal for buy (strongly positive).
-1: Sell signal (strongly negative).
0: No signal (neutral).
c. Signal evaluation and aggregation:
All signals are totalled to calculate a strength for buy and sell signals.
The stronger signal (buy or sell) is prioritised, smoothed and limited to a maximum signal value.
d. Identification of extremes (tops and bottoms):
Extrema detection uses dynamic thresholds that depend on market volatility.
Peaks (tops) and troughs (bottoms) are marked, signalling potential turning points in the market.
e. Visualisation:
A histogram shows the strength of buy and sell signals (green for buy, red for sell).
Circles mark tops and bottoms in the chart.
Threshold lines (upper and lower limits) and a centre line help with interpretation.
2. application
The script is used as follows:
Installation:
Copy the code into a new indicator in the TradingView environment.
Add the indicator to a chart.
Customisation of parameters:
Users can customise the input values (input) to suit their trading strategy and market conditions, e.g. indicator length, thresholds and smoothing parameters.
Signal interpretation:
Green bars: Strong buying opportunity.
Red bars: Strong selling opportunity.
Circles: Potential reversal points (top/bottom).
Optimisation:
The indicator can be fine-tuned by adjusting the periods (shorter for volatile markets) and threshold values.
3. use
Short-term trading: The indicators' short periods and high sensitivity are ideal for volatile markets and short-term strategies.
Recognising market turns: Extrema detection helps to find potential tops and bottoms.
Evaluate signal strength: The histogram allows you to visually assess the signal strength.
Note: This indicator should not be used alone, but in combination with other analysis methods, such as fundamental analysis or additional technical analysis.
Summary
The ‘Volatile and Optimised Multi-Signal Evaluator’ script combines several indicators in a flexible and sensitive tool that identifies buy and sell signals as well as market reversal points in volatile environments. It offers the user a variety of customisation options and a clear visual representation of market dynamics.
Gap Down Reversal Strategy█ STRATEGY OVERVIEW
The "Gap Down Reversal Strategy" capitalizes on price recovery patterns following bearish gap-down openings. This mean-reversion approach enters long positions on confirmed intraday recoveries and exits when prices breach previous session highs. This strategy is NOT optimized.
█ What is a Gap Down Reversal?
A gap down reversal occurs when:
An instrument opens significantly below its prior session's low (price gap)
Selling pressure exhausts itself during the session
Buyers regain control, pushing price back above the opening level
Creates a candlestick with:
• Open < Prior Session Low (true gap)
• Close > Open (bullish reversal candle)
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
Previous candle closes BELOW its opening price (bearish candle)
Current session opens BELOW prior candle's low (gap down)
Current candle closes ABOVE its opening price (bullish reversal)
Executes market order at session close
2. EXIT CONDITION
A Sell Signal is generated when the current closing price exceeds the highest high of the previous seven bars (`close > _highest `). This indicates that the price has shown strength, potentially confirming the reversal and prompting the strategy to exit the position.
█ PERFORMANCE OVERVIEW
Ideal Market: High volatility instruments with frequent gaps
Key Risk: False reversals in sustained downtrends
Optimization Tip: Test varying gap thresholds (1-3% ranges)
Monthly Start LinesThis script automatically draws vertical lines on the chart at the start of each new month
SPY/TLT Strategy█ STRATEGY OVERVIEW
The "SPY/TLT Strategy" is a trend-following crossover strategy designed to trade the relationship between TLT and its Simple Moving Average (SMA). The default configuration uses TLT (iShares 20+ Year Treasury Bond ETF) with a 20-period SMA, entering long positions on bullish crossovers and exiting on bearish crossunders. **This strategy is NOT optimized and performs best in trending markets.**
█ KEY FEATURES
SMA Crossover System: Uses price/SMA relationship for signal generation (Default: 20-period)
Dynamic Time Window: Configurable backtesting period (Default: 2014-2099)
Equity-Based Position Sizing: Default 100% equity allocation per trade
Real-Time Visual Feedback: Price/SMA plot with trend-state background coloring
Event-Driven Execution: Processes orders at bar close for accurate backtesting
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
TLT closing price crosses ABOVE SMA
Occurs within specified time window
Generates market order at next bar open
2. EXIT CONDITION
TLT closing price crosses BELOW SMA
Closes all open positions immediately
█ ADDITIONAL SETTINGS
SMA Period: Simple Moving Average length (Default: 20)
Start Time and End Time: The time window for trade execution (Default: 1 Jan 2014 - 1 Jan 2099)
Security Symbol: Ticker for analysis (Default: TLT)
█ PERFORMANCE OVERVIEW
Ideal Market Conditions: Strong trending environments
Potential Drawbacks: Whipsaws in range-bound markets
Backtesting results should be analyzed to optimize the MA Period and EMA Filter settings for specific instruments
Change Candle Color When 5 EMA Not ConnectedThis custom TradingView indicator changes the color of candlesticks to yellow whenever the 5-period Exponential Moving Average (EMA) is not "connected" to the current candle.
How It Works:
The 5 EMA is calculated based on the closing prices of the last 5 candles.
A candle is considered "not connected" to the EMA if:
The high and low of the current candle are both either above or below the 5 EMA, implying a significant deviation from the EMA.
When this condition is met, the candle color is changed to yellow to highlight this disconnection.
The default behavior of the script is to not display the 5 EMA line, keeping the chart uncluttered while focusing on the candlestick colors.
Usage:
This indicator is useful for scalping or short-term trading strategies, as it helps identify when the price has moved significantly away from the 5 EMA. A yellow candle could signal potential overextension or a possible reversal if the price is far from the EMA. Traders can use this as part of their risk management or entry/exit decision-making process.
Customization:
The indicator doesn't display the 5 EMA line, but you can modify the script to show it if needed by uncommenting the plot(ema5) line.
You can adjust the period of the EMA by modifying the ema5 period in the code, though the default setting is 5 periods.