HMA 15M and 4HR Overlay Notes:
HMA Calculation: We calculate three HMAs for the 15-minute timeframe (ma1, ma2, ma3) based on the settings from your original script, but only ma3 is plotted to keep it consistent with your initial setup.
4-hour HMA: An additional HMA is calculated for the 4-hour timeframe (hma4h) using the hma3 period since it was the longest in your original setup, which might be suitable for a 4-hour chart comparison.
Plotting: Both the 15-minute ma3 and 4-hour hma4h HMAs are plotted with distinct colors for easy visual differentiation.
Timeframe Security: request.security() is used to fetch data from different timeframes. Remember, using request.security() with historical data can sometimes lead to misalignments or delayed data, especially during live trading.
This script will overlay the 15-minute HMA (using the ma3 from your settings) with a new 4-hour HMA on any chart timeframe you apply it to. Remember, if you're looking at a chart timeframe that's not 15 minutes or 4 hours, the HMAs might appear less smooth or aligned due to how Pine Script handles different timeframes.
Indikator dan strategi
HMA Scalping Strategy with Heiken AshiNotes:
Heiken Ashi Calculation: The script now computes Heiken Ashi candles using the standard formula. These candles are used for both plotting and generating signals, which can smooth out price action, potentially reducing noise in short-term scalping.
HMA Calculation with HA Close: Instead of using the raw close price, we now use haClose for calculating the Hull Moving Averages. This aligns the HMA with the smoothed price action of Heiken Ashi candles.
Signal Generation:
Sell Signal: Generated when ma3 crosses above ma2 based on Heiken Ashi close prices.
Buy Signal: Triggered when ma3 crosses below ma2 or if there's a small loss cut based on the Heiken Ashi close price.
Entry and Exit Prices: The entryPrice is now based on haClose to keep consistency with the Heiken Ashi framework.
Visuals: Heiken Ashi candles are plotted on the chart, providing a smoother price action view which might help in spotting trends or reversals more clearly in a scalping context.
Using Heiken Ashi candles can lead to different trade signals compared to traditional candles because they alter how price data is presented. This might result in fewer, but potentially more reliable, signals due to the smoothing effect. However, remember that this also means you might miss some very short-lived price movements that regular candlesticks would capture. Backtesting with this adjustment is crucial to understand how it changes the strategy's performance.
HMA 4H and 15M overlay Notes:
HMA Calculation: We calculate three HMAs for the 15-minute timeframe (ma1, ma2, ma3) based on the settings from your original script, but only ma3 is plotted to keep it consistent with your initial setup.
4-hour HMA: An additional HMA is calculated for the 4-hour timeframe (hma4h) using the hma3 period since it was the longest in your original setup, which might be suitable for a 4-hour chart comparison.
Plotting: Both the 15-minute ma3 and 4-hour hma4h HMAs are plotted with distinct colors for easy visual differentiation.
Timeframe Security: request.security() is used to fetch data from different timeframes. Remember, using request.security() with historical data can sometimes lead to misalignments or delayed data, especially during live trading.
This script will overlay the 15-minute HMA (using the ma3 from your settings) with a new 4-hour HMA on any chart timeframe you apply it to. Remember, if you're looking at a chart timeframe that's not 15 minutes or 4 hours, the HMAs might appear less smooth or aligned due to how Pine Script handles different timeframes.
DFVA 2025This script is an enhanced version of the MACD indicator with custom EMA lengths (34/144) and an additional signal line (9 EMA of MACD). It includes:
✔ A customizable MACD calculation based on EMA (34/144).
✔ A signal line for better trend analysis.
✔ Dynamic histogram coloring: green for increasing values, red for decreasing values.
✔ Clear visualization of bullish and bearish momentum shifts.
This script helps traders identify trend strength and possible reversals more effectively.
Название: DFVA (MACD 34/144) Расширенная версия
Описание:
Этот скрипт — усовершенствованная версия индикатора MACD с нестандартными параметрами EMA (34/144) и дополнительной сигнальной линией (9 EMA от MACD). Включает:
✔ Настраиваемый MACD на основе EMA (34/144).
✔ Сигнальную линию для лучшего анализа тренда.
✔ Динамическое окрашивание гистограммы: зелёный для роста, красный для снижения.
✔ Чёткую визуализацию смены бычьего и медвежьего импульса.
Этот скрипт помогает трейдерам более эффективно определять силу тренда и возможные развороты.
Можно вставлять это описание в TradingView. Если нужно что-то изменить, говори! 🚀
Professional Dual CCIDouble-line CCI
Double CCI Calculation: Use two default periods of 14 and 70, and the input parameters can be adjusted.
MA type switching: Supports three types of moving average algorithms, namely EMA, SMA, and WMA.
Anti-flicker processing:
Use the parameter "trackprice=false"
Use a fixed calculation method instead of real-time prices.
Horizontal line system:
Five fixed horizontal lines (0, ±100, ±200)
The overbought/oversold lines use semi-transparent dotted lines.
Labels are automatically left-aligned.
Color optimization:
High-contrast colors specially designed for black backgrounds
The CCI line is displayed in cyan and orange.
Horizontal lines use different shades of gray to distinguish importance.
User-defined:
Adjustable cycle parameters
Switchable MA type
Closeable tab display
Instructions for Use:
Copy the code to the TradingView Pine editor.
Set the background color to black in the chart settings.
Adjust parameters through indicator settings:
Modify the CCI period
Switch the type of moving average
Adjust the color scheme
Optimized Bollinger Bands Breakout StrategyThis is tading bot for XAU/USD will use a trend-based strategy with additional confirmation techniques, limiting trades to 0.01 lots on a $100 account. It will incorporate strict risk management, including stop-loss and take-profit rules, to prevent prolonged holding of losing trades.
Bollinger Band Signals with POCThe script will give you perfect buy and sell signals.
Red dot for buy signal. !But only when the trend is not downward.
Green dot for sell signal.
Range Filtered Trend Signals [AlgoAlpha]Introducing the Range Filtered Trend Signals , a cutting-edge trading indicator designed to detect market trends and ranging conditions with high accuracy. This indicator leverages a combination of Kalman filtering and Supertrend analysis to smooth out price fluctuations while maintaining responsiveness to trend shifts. By incorporating volatility-based range filtering, it ensures traders can differentiate between trending and ranging conditions effectively, reducing false signals and enhancing trade decision-making.
:key: Key Features
:white_check_mark: Kalman Filter Smoothing – Minimizes market noise while preserving trend clarity.
:bar_chart: Supertrend Integration – A dynamic trend-following mechanism for spotting reversals.
:fire: Volatility-Based Range Detection – Detects trending vs. ranging conditions with precision.
:art: Color-Coded Trend Signals – Instantly recognize bullish, bearish, and ranging market states.
:gear: Customizable Inputs – Fine-tune Kalman parameters, Supertrend settings, and color themes to match your strategy.
:bell: Alerts for Trend Shifts – Get real-time notifications when market conditions change!
:tools: How to Use
Add the Indicator – Click the star icon to add it to your TradingView favorites.
Analyze Market Conditions – Observe the color-coded signals and range boundaries to identify trend strength and direction.
Use Alerts for Trade Execution – Set alerts for trend shifts and market conditions to stay ahead without constantly monitoring charts.
:mag: How It Works
The Kalman filter smooths price fluctuations by dynamically adjusting its weighting based on market volatility. It helps remove noise while keeping the signal reactive to trend changes. The Supertrend calculation is then applied to the filtered price data, providing a robust trend-following mechanism. To enhance signal accuracy, a volatility-weighted range filter is incorporated, creating upper and lower boundaries that define trend conditions. When price breaks out of these boundaries, the indicator confirms trend continuation, while signals within the range indicate market consolidation. Traders can leverage this tool to enhance trade timing, filter false breakouts, and identify optimal entry/exit zones.
16 LONDON - By TYMEFX detects and labels market structure points based on swing highs and lows. It identifies, marks these levels on the chart with color-coded labels and highlights BOS/CHoCH events. It helps traders analyze market trends and anticipate potential reversals.
EMAs y Bandas de BollingerDescripción del Script:
Este script de Pine Script v5 muestra dos medias móviles exponenciales (EMAs) y las Bandas de Bollinger en el gráfico.
🔹 EMA de 10 períodos (color azul, trazo fino) para identificar tendencias de corto plazo.
🔹 EMA de 55 períodos (color amarillo, trazo más grueso) para visualizar tendencias de mayor alcance.
🔹 Bandas de Bollinger con configuración estándar (20 períodos, desviación de 2):
Banda superior en color verde para indicar niveles de sobrecompra.
Banda inferior en color rojo para señalar niveles de sobreventa.
Este indicador es útil para identificar tendencias, zonas de sobrecompra/sobreventa y posibles puntos de entrada o salida en el mercado. ¡Úsalo en combinación con otras herramientas de análisis técnico para mejorar tu operativa! 📈🚀
Candles with Body < 25% of Range by LadywisdomThis script identify candles that has a body less then 25%
RSI & MFI Indexed -100 to 100 With Better DivergencesRSI & MFI Indexed -100 to 100 With Enhanced Divergence Detection
This script displays both the Relative Strength Index (RSI) and Money Flow Index (MFI) on the same scale for better comparison of momentum and volume-based overbought/oversold conditions.
Key features include:
✅ RSI & MFI Display – Both indicators are plotted together to easily identify confluence and divergences.
✅ Gradient Fill for Overbought/Oversold Levels – Each indicator (RSI and MFI) has its own gradient fill applied to its overbought and oversold zones, making it visually intuitive to see how deeply an indicator has entered extreme conditions.
✅ Customizable Combined Overbought/Oversold Levels – Adjust threshold levels separately for RSI and MFI to fit different trading styles.
Receive alerts when both RSI and MFI reach your threshold levels.
✅ Midline & Zero Line Reference – Includes a midline (50) for RSI and MFI to help gauge trend direction and strength.
✅ Custom Colors & Styling – Allows users to modify line colors, gradient intensity, and overall appearance to match their preferences.
✅ Multi-Type Moving Average Smoothing
Option to apply SMA, EMA, SMMA, WMA, or VWMA to RSI values.
Bollinger Bands option allows for detecting volatility-based shifts.
✅ Superior Divergence Detection
Traditional divergence detection often struggles with accuracy due to single-lookback periods. This indicator uses two separate lookback periods (A & B) for RSI and MFI:
Shorter Lookback (A) – Captures smaller trend shifts.
Longer Lookback (B) – Identifies more significant trend reversals.
This dual-approach increases divergence detection accuracy while filtering out noise.
✅ Alerts for Divergences
Automatically detects bullish and bearish divergences for both RSI and MFI.
Generates alerts when divergences occur, helping traders identify potential reversals early.
Why This Indicator Stands Out
Unlike other RSI-MFI combinations, this indicator:
✅ Uses a symmetrical scale (-100 to 100) for RSI & MFI, making direct comparisons easier.
✅ Introduces gradient-filled overbought/oversold zones for better visualization.
✅ Implements a dual-lookback divergence system, leading to far more accurate divergence detection than standard methods.
This is not just a simple overlay of two indicators—it is a refined, enhanced, and more actionable momentum analysis tool. 🚀
VolatilityThis is a filtering indicator Volatility in the CTA contract of BG Exchange. According to their introduction, it should be calculated using this simple method.
However, you may have seen the problem. According to the exchange's introduction, the threshold should still be divided by 100, which is in percentage form. The result I calculated, even if not divided by 100, still shows a significant difference, which may be due to the exchange's mistake. Smart netizens, do you know how the volatility of BG Exchange is calculated.
The official introduction of BG Exchange is as follows: Volatility (K, Fluctuation) is an additional indicator used to filter out positions triggered by CTA strategy signals in low volatility markets. Usage: Select the fluctuation range composed of the nearest K candlesticks, and choose the highest and lowest closing prices. Calculation: 100 * (highest closing price - lowest closing price) divided by the lowest closing price to obtain the recent amplitude. When the recent amplitude is greater than Fluctuation, it is considered that the current market volatility meets the requirements. When the CTA strategy's position building signal is triggered, position building can be executed. Otherwise, warehouse building cannot be executed.
多指标融合策略v0.001
多指标融合策略
#### (1)趋势确认阶段
- **多头趋势确认条件**:
✅ 价格站稳VWAP及20均线上方
✅ 20均线呈30°以上上升斜率
✅ RSI持续运行于50-70区间(强势但不超买)
✅ 上涨时段伴随增量资金(量能>前5根K均值)
- **空头趋势确认条件**:
✅ 价格承压VWAP及20均线下方
✅ 均线向下倾斜>20°
✅ RSI维持30-50弱势区
✅ 下跌时放量/反弹时缩量
#### (2)交易信号触发
**多头入场信号**:
▷ 价格回踩VWAP/20均线获支撑
▷ RSI从50中轴反弹且未超买
▷ 回调时成交量萎缩,突破时放量
▶ 止损:VWAP或前低下方0.3%
▶ 止盈:前高阻力位或RSI触及70
**空头入场信号**:
▷ 价格反弹至VWAP/20均线遇阻
▷ RSI从50中轴回落且未超卖
▷ 反弹量能递减,下破时放量
▶ 止损:VWAP或前高上方0.3%
▶ 止盈:前低支撑位或RSI跌破30
#### (3)风险过滤机制
- **虚假突破防范**:
✦ 价格突破需伴随成交量>前3根K线均值120%
✦ RSI与价格出现顶/底背离时暂停交易
✦ 重要财经事件前30分钟减少操作
- **震荡市识别**:
✦ VWAP与20均线走平且间距<ATR(14)的50%
✦ RSI在40-60窄幅波动
✦ 量能持续低于近期均值
Major Moving Averages EMA SMA Fill And Cross With AlertsMajor Moving Averages EMA/SMA Fill and Cross With Alerts
This indicator provides a comprehensive visualization of major moving averages (EMAs and SMAs) with optional fill zones between them. It helps traders identify trend shifts, confluence areas, and price positioning relative to key moving averages.
Features:
✅ Multiple Moving Averages:
Includes four major moving average pairs with customizable periods:
Slowest: 200 EMA & 200 SMA
Slow: 50 EMA & 50 SMA
Fast: 21 EMA & 20 SMA (Bollinger Band Center)
Fastest: 10 EMA & 7 SMA
✅ Cross Alerts:
Get notified when the EMAs or SMAs cross, helping to identify trend changes.
✅ Fill Zones (Optional):
Highlights the gaps between moving averages for better trend clarity.
✅ Bollinger Bands Integration:
Plots standard Bollinger Bands (20 SMA with customizable standard deviation).
✅ Price in Fill Zone Alerts:
Notifies when price is trading within the filled regions, helping to spot areas of confluence.
This tool is ideal for traders who rely on moving averages for trend analysis, dynamic support/resistance, and confluence zones.
Multi-Timeframe Stochastic & EMA Cross AlertThis is just to text my script. to see if it works. I am backtesting
Spaceman BTC Key Levels Alerts v1.1Building upon the featurs of Key Levels SpacemanBTC IDWM (), provides the ability to determine, draw levels on the chart, and set alerts if price crosses any of the the following:
Daily Open
Previous Day High
Previous Day Mid
Previous Day Low
Asia 2H Opening range H/L and mid
London 1H Opening range
Weekly Open
Previous Week High
Previous Week Mid
Previous Week Low
Monthly Open
Previous Month High
Previous Month Low
Quarterly Open
Previous Quarter Mid
Yearly Open
London Session Breakout//@version=5
strategy("London Session Breakout", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Get current bar timestamp components
currentYear = year(timenow)
currentMonth = month(timenow)
currentDay = dayofmonth(timenow)
// Define London session start time (08:00 UTC = 11:30 Tehran)
session_start = timestamp(currentYear, currentMonth, currentDay, 8, 0)
// Get previous daily candle details
daily_open = request.security(syminfo.ticker, "D", open, lookahead=barmerge.lookahead_on)
daily_close = request.security(syminfo.ticker, "D", close, lookahead=barmerge.lookahead_on)
direction = daily_close > daily_open ? 1 : -1 // 1 = Long, -1 = Short
// Ensure the script only runs once per session start
isLondonSession = (timenow >= session_start and timenow < session_start + 60000)
// Store entry price at the midpoint of the first 1-minute candle
var float entryPrice = na
if isLondonSession
entryPrice := (high + low) / 2 // Midpoint price of the first 1-minute candle
// Calculate stop loss and take profit
stopLoss = direction == 1 ? entryPrice - 16 * syminfo.mintick : entryPrice + 16 * syminfo.mintick
takeProfit = direction == 1 ? entryPrice + 96 * syminfo.mintick : entryPrice - 96 * syminfo.mintick
// Place trade
if isLondonSession and not na(entryPrice)
strategy.entry("Trade", direction == 1 ? strategy.long : strategy.short, limit=entryPrice)
strategy.exit("Exit", from_entry="Trade", limit=takeProfit, stop=stopLoss)
// Draw SL and TP on chart
plot(stopLoss, color=color.red, linewidth=2, title="Stop Loss") // SL in red
plot(takeProfit, color=color.green, linewidth=2, title="Take Profit") // TP in green
plot(entryPrice, color=color.blue, linewidth=2, title="Entry Price") // Entry in blue