Penunjuk dan strategi
Last Candle OHLCThis simple yet powerful TradingView indicator displays the Open, High, Low, and Close (OHLC) values of the last completed candle directly on your chart. Whether you're trading stocks, forex, or crypto, having quick access to the most recent candle's price levels can be crucial for decision-making.
✨ Features:
✅ Shows the Open, High, Low, and Close of the last completed candle
✅ Works on any timeframe and asset
✅ Helps traders spot key price levels for entry, stop-loss, or take-profit decisions
Perfect for price action traders, scalpers, and swing traders! 🚀
Order Block Finder [RTM/ICT] by Hamid OmraniOrder Block شناسایی میشه:
اگر یه کندل، High یا Low جدید ایجاد کنه و بعدش برگشت قیمت اتفاق بیفته، اون ناحیه به عنوان Order Block در نظر گرفته میشه.
برای High Block: کندل باید یه High جدید ایجاد کنه و بعدش بستهشدن کندل پایینتر از Open باشه.
برای Low Block: کندل باید یه Low جدید ایجاد کنه و بعدش بستهشدن کندل بالاتر از Open باشه.
Order Blockها رسم میشن:
High Blockها با رنگ قرمز و Low Blockها با رنگ سبز روی چارت نمایش داده میشن.
تنظیمات:
میتونی دوره Lookback و قدرت Order Block رو تغییر بدی تا با استراتژیت هماهنگ بشه.
It's All About Level_Midiall important level is outlined according to our trading strategy. Hepi trading brader
Grand IndicatorThis indicator provides decision making data points on market momentum.
It gives a combined view of RSI, EMA, MACD and Stochastic indicators.
All are adjustable to user preferences. Red background areas indicate a potential reversal to the downside. Green background areas indicate potential reversal to the upside.
Works on all timeframes and asset classes.
Donchian Reversal Signals with LabelsOverview:
This indicator is designed to identify potential reversal signals based on price action relative to two Donchian Channels. It plots **"BUY"** and **"SELL"** labels on the chart when specific conditions are met, helping traders spot potential trend reversals.
---
Key Features:
1. Dual Donchian Channels:
- The indicator uses two Donchian Channels with user-defined lengths (`length1` and `length2`).
- The upper band of each channel is the highest high over the specified period.
- The lower band of each channel is the lowest low over the specified period.
2. Reversal Signals:
- A yellow "BUY" label appears below a green (bullish) candle if:
- The previous candle is red (bearish).
- The previous red candle touches or breaches either of the lower Donchian Channels.
- A green "SELL" label appears above a red (bearish) candle if:
- The previous candle is green (bullish).
- The previous green candle touches or breaches either of the upper Donchian Channels.
3. Visual Clarity:
- The labels are placed above or below the candles for easy visibility.
- The use of colors (yellow for buy, green for sell) makes it intuitive to interpret the signals.
---
How It Works:
1. Donchian Channel Calculation:
- The upper and lower bands of the two Donchian Channels are calculated using the highest high and lowest low over the specified periods (`length1` and `length2`).
2. Candle Color Detection:
- The script identifies whether the current and previous candles are bullish (green) or bearish (red) based on their open and close prices.
3. Signal Conditions:
- For a **"BUY" signal**:
- The current candle must be green.
- The previous candle must be red and touch or breach either of the lower Donchian Channels.
- For a **"SELL" signal**:
- The current candle must be red.
- The previous candle must be green and touch or breach either of the upper Donchian Channels.
4. Label Placement:
- The labels are plotted using `shape.labelup` and `shape.labeldown` for clear visibility.
---
Input Parameters:
- **Donchian Channel Length 1 (`length1`)**: The period for the first Donchian Channel (default: 20).
- **Donchian Channel Length 2 (`length2`)**: The period for the second Donchian Channel (default: 34).
---
How to Use:
1. Add the indicator to your chart.
2. Adjust the lengths of the Donchian Channels if needed.
3. Look for **"BUY"** and **"SELL"** labels on the chart:
- A **yellow "BUY" label** below a green candle suggests a potential bullish reversal.
- A **green "SELL" label** above a red candle suggests a potential bearish reversal.
4. Use these signals in conjunction with other technical analysis tools for confirmation.
---
Example Use Case:
- If the price touches the lower Donchian Channel and forms a red candle, followed by a green candle, a **"BUY" label** will appear, indicating a potential upward reversal.
- If the price touches the upper Donchian Channel and forms a green candle, followed by a red candle, a **"SELL" label** will appear, indicating a potential downward reversal.
---
Customization:
- You can modify the lengths of the Donchian Channels to suit your trading style.
- The colors and text of the labels can also be adjusted in the script if desired.
---
Disclaimer:
This indicator is designed to assist traders in identifying potential reversal signals. However, it should not be used in isolation. Always confirm signals with additional analysis and risk management strategies.
SAR + RSI Strategy with SMA risk controlThis strategy first identifies RSI oversold or overbought and then within 1-3 candles of this condition looks for SAR signal and opens a trade accordingly. When the prices goes back to the 21 candle simple movin average, this closes the trade.
KON SET By Sai"KON SET By Sai is a trend-following strategy that utilizes ATR-adjusted moving averages to determine entry and exit points. The strategy enters a long position when the price crosses above a custom moving average (adjusted by the ATR value) and exits at a defined target or stop-loss based on the ATR. Additionally, it incorporates re-entry logic, allowing the strategy to re-enter when the price reverses back to the entry point. This strategy is suitable for trend traders who want to manage risk with dynamically calculated stop-loss and target levels."
Tags:
Trend-following
ATR-based strategy
Entry and exit strategy
Stop-loss and target
Re-entry logic
Pine Script strategy
Algorithmic trading
Example Use Case:
"This strategy can be used to trade in trending markets. It provides clear entry and exit signals with automated risk management, making it ideal for traders who prefer systematic approaches to trade management. It works best on lower timeframes (like 5min) for capturing medium-term trends."
How It Works:
Entry Point: The strategy enters a long position when the price crosses above an ATR-adjusted moving average (set by the user).
Exit Points:
Stop-loss is set dynamically based on the ATR value.
Target is also based on the ATR, with an additional multiplier for customization.
Re-entry Logic: If the price retraces back to the entry level, the strategy re-enters the position.
Exit Conditions: The strategy exits when the price hits the stop-loss or target price.
Example:
If the current ATR is 2.0, the strategy will:
Stop-loss: 2x ATR below the entry price.
Target: 5 + user-defined multiplier x ATR above the entry price.
DMI + ADX / Owl of ProfitDMI + ADX Strategy
The DMI + ADX Strategy combines the Directional Movement Index (DMI) and Average Directional Index (ADX) to identify strong trends and potential trade opportunities. This strategy is designed for traders looking to follow trends and capture significant market moves.
Features
DMI (Directional Movement Index)
The strategy uses the Plus DI (+DI) and Minus DI (-DI) lines to detect potential trend reversals.
Crossover of +DI and -DI generates buy and sell signals.
ADX (Average Directional Index)
Measures the strength of a trend.
Only takes trades when the ADX value exceeds the specified threshold (default: 25).
Entry Conditions
Long Entry: +DI crosses above -DI and ADX is greater than the threshold.
Short Entry: +DI crosses below -DI and ADX is greater than the threshold.
Exit Conditions
Includes Stop Loss and Take Profit levels calculated as percentages of the entry price.
Default Stop Loss: 1%, Default Take Profit: 2%.
Visualization
ADX Line: Plotted as a blue line.
ADX Threshold: Horizontal gray line for easy reference.
DMI Lines:
+DI is green.
-DI is red.
Customization
ADX and DMI Lengths
Adjustable smoothing and calculation periods for precise tuning.
Risk Management
Configurable Stop Loss and Take Profit levels.
Use Cases
Trend Confirmation
Trades are only executed in strong trends, reducing false signals in choppy markets.
Swing and Day Trading
Suitable for capturing medium- to short-term price movements.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
高胜率交易策略在TradingView上创建一个高胜率的交易指标需要结合多种技术分析工具,如均线、动量指标、成交量等。以下是一个基于**均线交叉 + RSI + 成交量过滤**的复合策略指标,适用于多种市场(如加密货币、股票、外汇等)。该指标会生成买入和卖出信号,并尽量提高胜率。
---
### **指标逻辑**
1. **均线交叉**:
- 短期均线(如9周期EMA)上穿长期均线(如21周期EMA)时,生成买入信号。
- 短期均线下穿长期均线时,生成卖出信号。
2. **RSI过滤**:
- 仅在RSI(相对强弱指数)处于30-70区间时触发信号,避免超买/超卖区域的假信号。
3. **成交量过滤**:
- 买入信号需伴随成交量放大(如成交量高于过去20周期的平均值)。
4. **止损与止盈**:
- 基于ATR(平均真实波幅)设置动态止损和止盈水平。
---
### **TradingView Pine Script代码**
以下是完整的Pine Script代码,可直接复制到TradingView中使用:
```pinescript
//@version=5
indicator("高胜率交易策略", overlay=true)
// 参数设置
shortLength = input.int(9, title="短期均线周期")
longLength = input.int(21, title="长期均线周期")
rsiLength = input.int(14, title="RSI周期")
volumeFilter = input.bool(true, title="启用成交量过滤")
atrLength = input.int(14, title="ATR周期")
takeProfitMultiplier = input.float(2.0, title="止盈倍数")
stopLossMultiplier = input.float(1.0, title="止损倍数")
// 计算均线
shortMA = ta.ema(close, shortLength)
longMA = ta.ema(close, longLength)
// 计算RSI
rsi = ta.rsi(close, rsiLength)
// 计算ATR
atr = ta.atr(atrLength)
// 成交量过滤
volumeAvg = ta.sma(volume, 20)
volumeCondition = volume > volumeAvg
// 生成信号
buySignal = ta.crossover(shortMA, longMA) and rsi > 30 and rsi < 70 and (volumeFilter ? volumeCondition : true)
sellSignal = ta.crossunder(shortMA, longMA)
// 止损与止盈
if (buySignal)
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit/Stop Loss", "Buy", limit=close + atr * takeProfitMultiplier, stop=close - atr * stopLossMultiplier)
if (sellSignal)
strategy.close("Buy")
// 绘制信号
plotshape(series=buySignal, title="买入信号", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="卖出信号", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// 绘制均线
plot(shortMA, color=color.blue, title="短期均线")
plot(longMA, color=color.orange, title="长期均线")
```
---
### **使用方法**
1. 打开TradingView,进入任意图表。
2. 点击“Pine Script编辑器”,将上述代码粘贴并保存。
3. 返回图表,指标会自动加载,显示买入(BUY)和卖出(SELL)信号。
---
### **参数优化建议**
1. **均线周期**:
- 短期均线:9-12周期(适合短线交易)。
- 长期均线:21-50周期(适合中长线交易)。
2. **RSI参数**:
- 默认14周期,可调整为10-20周期以适应不同市场。
3. **ATR止损止盈**:
- 止损倍数:1.0-1.5(保守型)。
- 止盈倍数:2.0-3.0(激进型)。
4. **成交量过滤**:
- 在低波动市场(如外汇)可关闭,在高波动市场(如加密货币)建议开启。
---
### **策略优势**
1. **高胜率**:通过均线交叉 + RSI过滤,减少假信号。
2. **动态止损止盈**:基于ATR设置,适应市场波动。
3. **灵活性**:参数可调,适用于不同市场和交易风格。
---
### **注意事项**
1. **回测验证**:在实盘前,务必在TradingView中进行历史回测,验证策略表现。
2. **风险管理**:单笔交易风险控制在总资金的1%-2%。
3. **市场适应性**:该策略在趋势市场中表现较好,震荡市场中可能出现连续亏损。
---
如果对代码或策略有进一步问题,欢迎随时提问!
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
Demo GPT - Gold Gaussian StrategyA simple GPT stategy for XAU-USD pairs, limited success on backtasting with cryto.
XAU/USD Strategy: Candlestick Patterns This script is a custom trading strategy that combines several technical analysis indicators and candlestick patterns to generate buy and sell signals for XAU/USD (Gold).
This script creates a trading strategy based on a combination of the following:
- RSI: Identifies overbought/oversold conditions.
- Supertrend: Helps identify the overall trend (bullish or bearish).
- Candlestick Patterns: Bullish and bearish engulfing patterns as potential reversal signals.
- Market Structure (SMC): Identifies swing highs and lows to assess price action.
- EMA: Although calculated, they are not directly used in the signals but could assist in identifying trend direction.
When a buy or sell signal occurs, labels are drawn on the chart, with lines connecting the signals to the relevant candlestick, providing visual cues for traders.
Supply and Demand Zonessupply and demand zones backed by AI, i created this indicator because i couldnt find anything i liked so i made my own, this indicator shows only valid supply and demand zones
Kalman Filter OverlayKalman filter is a recursive algorithm that has been invented in the 1960s to track a moving target, remove any noisy measurements of its position and predict its future position.
In trading, KF might be a good replacement for a moving average, as it reacts to price changes in a different way. Not only it follows price direction, but can also track the velocity of price changes. This specific behaviour of KF is used in this indicator to track changes in trends.
Trend is characterized by price moving directionally, however, any trend comes to pause or complete stop and reversal, as the price changes more slowly (a trend fades into a sideways movement for a while) or the price movement changes direction, thus making a reversal.
This indicator detects the points where such changes occur, and produces signals (strong and weak), which serve as points of current trend pausing or reversing. By applying different settings for KF calculation, one can produce less or more signals that indicate change in trend character, and either detect only significant trends changes, or less and shorter trends changes as well.
The signals do not differentiate the exact type of a trend change (it can be a brief trend pause followed by a continuation, as well as a complete reversal). In this sense, signals should not be followed blindly, and can be used only as position exit confirmations, but not the entry confirmations!
Strategy: RSI, EMA, FVGRemoved Duplicate Indicator: Consolidated all components into single script
Fixed Plot Conflicts:
Removed separate RSI plot (use dedicated RSI indicator instead)
Organized visual elements hierarchically
Optimized FVG Logic:
Added both bullish/green and bearish/red FVG zones
Clearer 3-candle imbalance detection
Improved Swing Low Detection:
Now requires confirmation bar after swing low
Multi-Timeframe Handling:
Proper separation of daily conditions (RSI, EMA)
Current timeframe calculations (MACD, VWMA)
VDM Cipher (BTC+ALT)Анализирует ключевые метрики и помогает выявлять оптимальные моменты для сделок.
🔹 Идеально подходит для трейдинга BTC и альткоинов
🔹 Гибкий, адаптивный и надежный
🔹 Разработан с учетом реальных рыночных условий
🔥 Важно! В течение 60 дней индикатор будет активно дорабатываться!
🔜 Следующее обновление:
✅ Автоматическое определение уровней поддержки и сопротивления
✅ Учёт объёмов для ещё большей точности
✅ Связка всех данных для создания мощных сигналов
✅ Автооповещения о возможных входах в Лонг и Шорт
SUP & RECIdentifying Support and Resistance: An indicator (likely visual) highlights areas on a price chart where the asset's price has historically struggled to break through. These are crucial levels to watch for potential price reversals.
Strategy with Volume, MACD, RSI, StochRSIExplanation:
MACD: Used to identify momentum and trend direction.
RSI: Used to identify overbought/oversold conditions.
StochRSI: A more sensitive version of RSI, used to confirm RSI signals.
Volume Spike: Ensures trades are taken only when volume is above a threshold, indicating strong interest.
How to Use:
Copy and paste the code into the Pine Script editor in TradingView.
Add it to the BTCUSDT.P chart on Binance.
Backtest the strategy on historical data to evaluate its performance.
Adjust the input parameters to optimize the strategy for your trading style.
Notes:
This is a basic strategy and may not perform well in all market conditions.
Always backtest and forward-test strategies before using them with real money.
Consider adding risk management features like stop-loss and take-profit levels.
UT Bot Pro Final//@version=6
indicator("UT Bot Pro Final", overlay=true, max_lines_count=500)
// === INPUT PARAMETERS ===
// Core Settings
atr_multiplier = input.float(1.0, "ATR Multiplier", minval=0.5, maxval=5, step=0.1, group="Core Settings")
atr_period = input.int(6, "ATR Period", minval=1, maxval=20, group="Core Settings")
// Trend Filter
use_trend_filter = input.bool(true, "Enable Trend Filter", group="Trend Filter")
trend_length = input.int(50, "Trend SMA Period", minval=10, group="Trend Filter")
// Volume Filter
use_volume_filter = input.bool(true, "Enable Volume Filter", group="Volume Filter")
volume_ma_length = input.int(20, "Volume MA Period", minval=5, group="Volume Filter")
volume_threshold = input.float(1.25, "Volume Threshold %", step=0.1, group="Volume Filter")
// === CORE LOGIC ===
xATR = ta.atr(atr_period)
nLoss = atr_multiplier * xATR
price = close
// Trend Filter
trend_sma = ta.sma(price, trend_length)
valid_uptrend = not use_trend_filter or (price > trend_sma)
valid_downtrend = not use_trend_filter or (price < trend_sma)
// Volume Filter
volume_ma = ta.sma(volume, volume_ma_length)
volume_ok = volume > (volume_ma * volume_threshold)
// Trailing Stop
var float xATRTrailingStop = na
xATRTrailingStop := switch
na(xATRTrailingStop ) => price - nLoss
price > xATRTrailingStop and valid_uptrend => math.max(xATRTrailingStop , price - nLoss)
price < xATRTrailingStop and valid_downtrend => math.min(xATRTrailingStop , price + nLoss)
=> xATRTrailingStop
// Signal Generation
buy_signal = ta.crossover(price, xATRTrailingStop) and valid_uptrend and (use_volume_filter ? volume_ok : true)
sell_signal = ta.crossunder(price, xATRTrailingStop) and valid_downtrend and (use_volume_filter ? volume_ok : true)
// === VISUALS ===
plot(xATRTrailingStop, "Trailing Stop", color=color.new(color.purple, 0), linewidth=2)
plotshape(
buy_signal, "Buy", shape.triangleup,
location.belowbar, color=color.green,
text="BUY", textcolor=color.white, size=size.small)
plotshape(
sell_signal, "Sell", shape.triangledown,
location.abovebar, color=color.red,
text="SELL", textcolor=color.white, size=size.small)
// === ALERTS ===
alertcondition(buy_signal, "Long Entry", "Bullish breakout detected")
alertcondition(sell_signal, "Short Entry", "Bearish breakdown detected")