Dynamic Momentum IndexAn adaptive momentum oscillator that adjusts its period (3–30) based on volatility. Uses closing price, 5-period StdDev, and 10-period SMA to set a dynamic RSI. Overbought above 70, oversold below 30.
Indicators and strategies
Multi-Asset & TF RSI
Multi-Asset & TF RSI
This indicator allows you to compare the Relative Strength Index (RSI) values of two different assets across multiple timeframes in a single pane. It’s ideal for traders who wish to monitor momentum across different markets or instruments simultaneously.
Key Features:
Primary Asset RSI:
The indicator automatically calculates the RSI for the chart’s asset. You can adjust the timeframe for this asset using a dropdown that offers standard TradingView timeframes, a "Chart" option (which syncs with your current chart timeframe), or a "Custom" option where you can enter any timeframe.
Optional Second Asset RSI:
Enable the “Display Second Asset” option to compare another asset’s RSI. Simply select the symbol (default is “DXY”) and choose its timeframe from an identical dropdown. When enabled, the second asset’s RSI is computed and plotted for easy comparison.
RSI Settings:
Customize the RSI length and choose the data source (e.g., close price) to suit your trading strategy.
Visual Aids:
Overbought (70) and oversold (30) levels are clearly marked, along with a midline at 50. These visual cues help you quickly assess market conditions.
Asset Information Table:
A dynamic table at the top of the pane displays the symbols being analysed – the chart’s asset as the “1st” asset and, if enabled, the second asset as the “2nd.”
How to Use:
Apply the Indicator:
Add the indicator to your chart. By default, it will calculate the RSI for the chart’s current asset using your chart’s timeframe.
Adjust Primary Asset Settings:
Use the “Main Asset Timeframe” dropdown to choose the timeframe for the RSI calculation on the chart asset. Select “Chart” to automatically match your current chart’s timeframe or choose a preset/custom timeframe.
Enable and Configure the Second Asset:
Toggle the “Display Second Asset” option to enable the second asset’s RSI. Select the asset symbol and its desired timeframe using the provided dropdown. The RSI for the second asset will be plotted if enabled.
Monitor the RSI Values:
Observe the plotted RSI lines along with the overbought/oversold levels. Use the table at the top-centre of the pane to verify which asset symbols are being displayed.
This versatile tool is designed to support multi-asset analysis and can be a valuable addition to your technical analysis toolkit. Enjoy enhanced RSI comparison across markets and timeframes!
Happy Trading!
EMA 60 + MACD buy or sell signalConditions for Buy Signal:
Price is above the EMA 60.
The MACD line (blue) is above the Signal line (red).
The MACD line is above the zero line.
The slope of the MACD line is positive (MACD is increasing).
Conditions for Sell Signal:
Price is below the EMA 60.
The MACD line (blue) is below the Signal line (red).
The MACD line is below the zero line.
The slope of the MACD line is negative (MACD is decreasing).
MUR 9:15 AM 15-Minute Candle Open and Close Lines with Alert9:15 AM 15-Minute Candle Open and Close Lines with Alert
This script shows 9 15 high and low which means 15 minutes candles high and low with line which is easy to proceed with trade
Wick Size in USD with 10-Bar AverageWick Size in USD with 10-Bar Average
Version: 1.0
Author: QCodeTrader
🔍 Overview
This indicator converts the price wicks of your candlestick chart into USD values based on ticks, providing both raw and smoothed data via a 10-bar simple moving average. It helps traders visualize the monetary impact of price extremes, making it easier to assess volatility, potential risk, and plan appropriate stop loss levels.
⚙️ Key Features
Tick-Based Calculation:
Converts wick sizes into ticks (using a fixed tick size of 0.01, typical for stocks) and then into USD using a customizable tick value.
10-Bar Moving Average:
Smooths out the wick values over the last 10 bars, giving you a clearer view of average wick behavior.
Bullish/Bearish Visual Cues:
The chart background automatically highlights bullish candles in green and bearish candles in red for quick visual assessment.
Stop Loss Optimization:
The indicator highlights long wick sizes, which can help you set more accurate stop loss levels. Even when the price moves in your favor, long wicks may indicate potential reversals—allowing you to account for this risk when planning your stop losses.
User-Friendly Customization:
Easily adjust the USD value per tick through the settings to tailor the indicator to your specific instrument.
📊 How It Works
Wick Calculation:
The indicator calculates the upper and lower wicks by measuring the distance between the candle’s high/low and its body (open/close).
Conversion to Ticks & USD:
These wick sizes are first converted from price points to ticks (dividing by a fixed tick size of 0.01) and then multiplied by the user-defined tick value to convert the measurement into USD.
Smoothing Data:
A 10-bar simple moving average is computed for both the upper and lower wick values, providing smoothed data that helps identify trends and deviations.
Visual Representation:
Columns display the raw wick sizes in USD.
Lines indicate the 10-bar moving averages.
Background Color shifts between green (bullish) and red (bearish) based on candle type.
⚡ How to Use
Add the Indicator:
Apply it to your chart to begin visualizing wick sizes in monetary terms.
Customize Settings:
Adjust the Tick Value in USD in the settings to match your instrument’s tick value.
(Note: The tick size is fixed at 0.01, which is standard for many stocks.)
Optimize Your Stop Loss:
Analyze the raw and averaged wick values to understand volatility. Long wicks—even when the price moves in your favor—may indicate potential reversals. This insight can help you set more accurate stop loss levels to protect your gains.
Analyze:
Use the indicator’s data to gauge market volatility and assess the significance of price movements, aiding in more informed trading decisions.
This indicator is perfect for traders looking to understand the impact of extreme price movements in monetary terms, optimize stop loss levels, and effectively manage risk across stocks and other instruments with similar tick structures.
Day Ranges (IST)Divides trading session into parts - 09:15 am to 12:00 noon and 12:00 noon to 15:30pm
EMA Buy/Sell Signals//@version=5
indicator("EMA Buy/Sell Signals", overlay=true)
// Calculate the 20-period EMA on the 1-hour chart
ema20 = request.security(syminfo.tickerid, "60", ta.ema(close, 20))
// Calculate the 10-period EMA on the 3-minute chart
ema10 = ta.ema(close, 10)
// Determine the bias based on the 1-hour chart
var float bias = na
if (ema20 != na)
bias := close > ema20 ? 1 : -1
// Identify entry signals on the 3-minute chart
longCondition = (bias == 1) and ta.crossover(close, ema10)
shortCondition = (bias == -1) and ta.crossunder(close, ema10)
// Plot signals on the chart
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")
// Plot EMA lines on the chart
plot(ema20, title="EMA 20", color=color.blue)
plot(ema10, title="EMA 10", color=color.orange)
EMA Buy/Sell Signals//@version=5
indicator("EMA Buy/Sell Signals", overlay=true)
// 1-घंटे के चार्ट पर 20-पीरियड EMA की गणना
ema20 = ta.ema(close, 20)
// 3-मिनट के चार्ट पर 10-पीरियड EMA की गणना
ema10 = ta.ema(close, 10)
// वर्तमान समय सीमा की जांच करें
is_1h = (timeframe.period == "60")
is_3m = (timeframe.period == "3")
// 1-घंटे के चार्ट पर बायस निर्धारित करें
var float bias = na
if (is_1h)
bias := close > ema20 ? 1 : -1
// 3-मिनट के चार्ट पर एंट्री सिग्नल की पहचान करें
longCondition = (bias == 1) and ta.crossover(close, ema10)
shortCondition = (bias == -1) and ta.crossunder(close, ema10)
// चार्ट पर संकेत दिखाएं
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")
// EMA लाइनों को चार्ट पर प्लॉट करें
plot(ema20, title="EMA 20", color=color.blue)
plot(ema10, title="EMA 10", color=color.orange)
Triple Moving Average by KelvinTriple Moving Average by Kelvin.
In finance, a moving average (MA) is a stock indicator commonly used in technical analysis. The reason for calculating the moving average of a stock is to help smooth out the price data by creating a constantly updated average price.
By calculating the moving average, the impacts of random, short-term fluctuations on the price of a stock over a specified time frame are mitigated. Simple moving averages (SMAs) use a simple arithmetic average of prices over some timespan, while exponential moving averages (EMAs) place greater weight on more recent prices than older ones over the time period.
Moving averages are calculated to identify the trend direction of a stock or to determine its support and resistance levels. It is a trend-following or lagging indicator because it is based on past prices.
The longer the period for the moving average, the greater the lag. A 200-day moving average will have a much greater degree of lag than a 20-day MA because it contains prices for the past 200 days. Fifty-day and 200-day moving average figures are widely followed by investors and traders and are considered to be important trading signals.
Investors may choose different periods of varying lengths to calculate moving averages based on their trading objectives. Shorter moving averages are typically used for short-term trading, while longer-term moving averages are more suited for long-term investors.
How to use this indicator?
So in this indicator, you can customize three of the moving averages like changing their colour, changing the thickness, choose any moving averages mode smma, ema, sma and wma. Just apply directly to the chart and customize yourself.
Why use this indicator?
It let you customize with your creativity. Any ideas you have you can just change it directly in the settings. You can also change to any moving average period you want. Isn't it awesome?
We will update more customizable settings in the future to let our user get their most comfort moving averages.
EMA Crossover Indicator9 Day EMA Crosses Above 21 day EMA When this crossover happens on intraday and daily time frame it indicates for a buy. intraday time frame 5 min and 15 min.
Webhook Buy/Sell Signals Yogendra Kumar Singh//@version=5
indicator("Webhook Buy/Sell Signals", overlay=true)
// Fetching External Inputs
buySignal = request.security("WEBHOOK_SOURCE", timeframe.period, close) > 0
sellSignal = request.security("WEBHOOK_SOURCE", timeframe.period, close) < 0
// Plot Buy/Sell Markers
plotshape(buySignal, location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, title="Buy Signal")
plotshape(sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small, title="Sell Signal")
Enhanced SPY Rhythm Formations Detector with Alerts//@version=6
indicator("Enhanced SPY Rhythm Formations Detector with Alerts", overlay=true)
// Inputs
maLength1 = input.int(50, title="EMA Length 1", minval=1)
maLength2 = input.int(200, title="EMA Length 2", minval=1)
shortMaLength1 = input.int(5, title="Short EMA Length 1", minval=1)
shortMaLength2 = input.int(10, title="Short EMA Length 2", minval=1)
shortMaLength3 = input.int(20, title="Short EMA Length 3", minval=1)
rsiLength = input.int(14, title="RSI Length", minval=1)
macdShort = input.int(12, title="MACD Short Length", minval=1)
macdLong = input.int(26, title="MACD Long Length", minval=1)
macdSignal = input.int(9, title="MACD Signal Length", minval=1)
atrLength = input.int(14, title="ATR Length", minval=1)
atrMultiplier = input.float(1.5, title="ATR Multiplier for Target Price", minval=0.1)
// Calculations
ma1 = ta.ema(close, maLength1)
ma2 = ta.ema(close, maLength2)
shortMa1 = ta.ema(close, shortMaLength1)
shortMa2 = ta.ema(close, shortMaLength2)
shortMa3 = ta.ema(close, shortMaLength3)
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, macdShort, macdLong, macdSignal)
macdHist = macdLine - signalLine
atr = ta.atr(atrLength)
// Moving Average Crossovers
goldenCross = ta.crossover(ma1, ma2)
deathCross = ta.crossunder(ma1, ma2)
// Short MAs Crossovers
shortCross1 = ta.crossover(shortMa1, shortMa2)
shortCross2 = ta.crossover(shortMa2, shortMa3)
shortCross3 = ta.crossover(shortMa1, shortMa3)
shortCross1Down = ta.crossunder(shortMa1, shortMa2)
shortCross2Down = ta.crossunder(shortMa2, shortMa3)
shortCross3Down = ta.crossunder(shortMa1, shortMa3)
// RSI Divergence Detection
rsiHigh = ta.highest(rsi, 20)
rsiLow = ta.lowest(rsi, 20)
priceHigh = ta.highest(high, 20)
priceLow = ta.lowest(low, 20)
bearishDivergence = (high == priceHigh and rsi < rsiHigh)
bullishDivergence = (low == priceLow and rsi > rsiLow)
// MACD Histogram Zero Cross
macdZeroCrossUp = ta.crossover(macdHist, 0)
macdZeroCrossDown = ta.crossunder(macdHist, 0)
// Day Trading Signals
dayLongEntry = shortCross1 and rsi < 30
dayShortEntry = shortCross1Down and rsi > 70
// Swing Trading Signals
swingLongEntry = goldenCross and macdHist > 0
swingShortEntry = deathCross and macdHist < 0
// Next Bar Prediction
nextBarUp = close > open and close + (atr * atrMultiplier) > high
nextBarDown = close < open and close - (atr * atrMultiplier) < low
// Shaded Bar Shadow for Next Bar Prediction
bgcolor(nextBarUp ? color.new(color.green, 90) : na, title="Next Bar Up")
bgcolor(nextBarDown ? color.new(color.red, 90) : na, title="Next Bar Down")
// Blinking Alerts
var bool blink = false
blink := not blink
if (dayLongEntry)
label.new(bar_index, low, text="Day Long Entry", color=blink ? color.green : color.white, style=label.style_label_up, textcolor=color.black, size=size.small)
alert("Day Long Entry Signal Detected!", alert.freq_once_per_bar_close)
if (dayShortEntry)
label.new(bar_index, high, text="Day Short Entry", color=blink ? color.red : color.white, style=label.style_label_down, textcolor=color.black, size=size.small)
alert("Day Short Entry Signal Detected!", alert.freq_once_per_bar_close)
if (swingLongEntry)
label.new(bar_index, low, text="Swing Long Entry", color=blink ? color.blue : color.white, style=label.style_label_up, textcolor=color.black, size=size.small)
alert("Swing Long Entry Signal Detected!", alert.freq_once_per_bar_close)
if (swingShortEntry)
label.new(bar_index, high, text="Swing Short Entry", color=blink ? color.orange : color.white, style=label.style_label_down, textcolor=color.black, size=size.small)
alert("Swing Short Entry Signal Detected!", alert.freq_once_per_bar_close)
// Plotting
plot(ma1, color=color.blue, title="EMA Length 1 (50)")
plot(ma2, color=color.red, title="EMA Length 2 (200)")
plot(shortMa1, color=color.green, title="Short EMA Length 1 (5)")
plot(shortMa2, color=color.orange, title="Short EMA Length 2 (10)")
plot(shortMa3, color=color.purple, title="Short EMA Length 3 (20)")
Custom Index CompositeCustom Index Composite calculates an unweighted composite index by averaging the daily returns of multiple stock tickers. Instead of using price-level weighting, it focuses solely on percentage change, allowing you to compare diverse market themes side by side on a common basis.
Why Use a Custom Index Composite?
Unlike traditional indices that often lean on market capitalization or price-level data, a custom composite based solely on returns strips out the bias inherent to high-priced stocks. This provides several benefits:
Objective Cross-Comparison:
When stocks or market themes trade at very different price levels, it can be difficult to assess performance objectively. Using percentage returns, the composite creates an even playing field, enabling a clear comparison between different assets or themes.
Tailored Benchmarking:
By selecting and combining specific tickers, you can create benchmarks that better represent the segments or strategies you’re interested in. This is particularly useful when standard indices do not capture the nuances of your investment approach.
Performance Normalization:
Converting raw price data into daily percentage returns minimizes distortions that arise from price differences. This normalization helps in understanding true performance trends across the chosen tickers, making the composite index a more reliable gauge of relative market movement.
Custom Analysis Framework:
The indicator offers flexibility to adjust the lookback period (defaulting to about 3 months) so you can fine-tune the sensitivity of the index to recent market behavior. This enables you to either smooth out volatility or capture a more immediate trend, depending on your analytical needs.
Key Features:
Configurable Appearance:
You can easily configure the line color, line width, index name, and index name color via the options panel.
Ticker Configuration:
By default, you can enter up to 15 different tickers into the composite index. Technically, the indicator supports up to 40 tickers (these additional inputs are commented out by default to maintain performance), and you may enable them individually if required.
Calculated Bars Length:
The indicator uses a “Calculated bars length” setting, which is set by default to 63 days (approximately 3 months). This value can be adjusted, and it is recommended to use the greatest common denominator for consistent analysis.
How To Configure Your Chart:
Add the Indicator:
Place the Custom Index Composite on your chart.
Disable Main Symbol Visibility:
Hide the primary symbol’s plot and set its scale to “None” to prevent interference with the composite display.
Pin to Right Scale:
Set the scale of the first composite indicator to “Pinned to right scale.” This helps maintain consistency across different composite indicators.
Add Multiple Composites:
You can add additional composite indicators and set their scales to “Pinned to right scale” (or alternatively to “A”) for convenient comparison.
Limitations:
If a ticker symbol is set once in the options, it cannot be cleared to an empty value later. As a result, the symbol will continue to appear in the indicator’s title on the chart. The only way to remove an unwanted symbol is to completely reset the settings and re-enter your desired tickers.
Normalized RSI Trendline with DivergencesNormalized RSI Trendline with Divergences
🔹 Overview
The Normalized RSI Trendline with Divergences indicator enhances traditional RSI analysis by normalizing RSI values within a defined range and applying a trend-following approach. It also detects bullish and bearish divergences to highlight potential trend reversals.
🔹 Features
✔ Normalized RSI Calculation – The RSI values are normalized between -1 and 1 to provide a clearer representation of market momentum.
✔ Trend & Center Lines – A trendline based on linear regression and an adaptive moving average (ALMA) for smoother trend visualization.
✔ Divergence Detection – Identifies regular and hidden divergences, displaying signals directly on the chart.
✔ Customizable Parameters – Users can adjust the signal period, lookback range, trend length, and divergence sensitivity to fit different trading strategies.
🔹 How to Use
Trend Following: The trendline helps identify the overall market direction.
Divergence Signals:
🟢 Bullish Divergence (Potential upward reversal)
🔴 Bearish Divergence (Potential downward reversal)
🟩 Hidden Bullish Divergence (Trend continuation signal)
🟧 Hidden Bearish Divergence (Trend continuation signal)
This script is suitable for trend traders, swing traders, and divergence-based strategies. Customize the settings to match your preferred trading style. 🚀
📌 Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always conduct your own analysis before making trading decisions.
Dynamic Pivot PointsDynamic Pivot Point Indicator
The Dynamic Pivot Point is an indicator used on the TradingView platform that dynamically calculates pivot points and displays them on the chart. This indicator provides automatically adjustable support and resistance levels for different timeframes. By visualizing dynamic levels that match current market conditions, traders can plan their strategies more effectively.
Features
Adapts to Timeframes
The indicator automatically selects the appropriate pivot calculation method based on the user's current timeframe. For example:
For short timeframes such as 1, 3, or 5 minutes, it uses daily (1D) data.
For medium timeframes like 15, 30, or 60 minutes, it uses weekly (1W) data.
For longer timeframes such as 120, 180, or 240 minutes, it uses monthly (1M) data.
For very long timeframes like 360, 480 minutes, daily (D), or weekly (1W), it uses 12-month (12M) data.
Dynamic Pivot Levels
The indicator automatically calculates pivot levels based on the specified high and low values.
Flexible Line Style Options
Users can choose different line styles (Dashed, Dotted, Solid) to improve visual clarity on the chart.
Clean and Clear Visualization
The indicator automatically removes previous lines and displays the latest levels clearly on the chart, preventing clutter and allowing traders to focus more efficiently.
How It Works
Identifying High and Low Levels
The indicator retrieves previous and current high and low levels based on the selected timeframe.
New high and low levels are updated by comparing them with previous levels.
Calculating Pivot Levels
Pivot points are calculated using Fibonacci ratios between high and low levels.
These levels represent dynamic support and resistance zones.
Drawing Lines
The calculated levels are displayed as lines on the chart, each represented with different colors and styles.
Use Cases
Support and Resistance Levels
The indicator dynamically calculates and displays support and resistance levels, serving as reference points for buy and sell decisions.
Trend Analysis
Fibonacci levels help identify trend strength and potential reversal points.
Risk Management
Pivot points assist in setting stop-loss and take-profit levels.
Multi-Timeframe Analysis
Since the indicator adapts to different timeframes, it can be used for both short-term and long-term analysis.
Advantages
✅ Automatic Calculation: No manual calculations are required, as it updates dynamically.
✅ Flexible Timeframe Support: Adapts to different timeframes.
✅ Visual Clarity: Line styles and colors make it easy to distinguish levels on the chart.
✅ Fibonacci Integration: Adds depth to technical analysis.
Conclusion
The Dynamic Pivot Point indicator is a useful tool for both beginners and experienced traders. By dynamically calculating pivot points and Fibonacci levels, it simplifies market analysis and aids in strategy development. With its flexible structure and clear visualization, it can be effectively used across all timeframes.
6 dakika önce
Sürüm Notları
This indicator is written for Support Resistance Traders
ADX for BTC [PineIndicators]The ADX Strategy for BTC is a trend-following system that uses the Average Directional Index (ADX) to determine market strength and momentum shifts. Designed for Bitcoin trading, this strategy applies a customizable ADX threshold to confirm trend signals and optionally filters entries using a Simple Moving Average (SMA). The system features automated entry and exit conditions, dynamic trade visualization, and built-in trade tracking for historical performance analysis.
⚙️ Core Strategy Components
1️⃣ Average Directional Index (ADX) Calculation
The ADX indicator measures trend strength without indicating direction. It is derived from the Positive Directional Movement (+DI) and Negative Directional Movement (-DI):
+DI (Positive Directional Index): Measures upward price movement.
-DI (Negative Directional Index): Measures downward price movement.
ADX Value: Higher values indicate stronger trends, regardless of direction.
This strategy uses a default ADX length of 14 to smooth out short-term fluctuations while detecting sustainable trends.
2️⃣ SMA Filter (Optional Trend Confirmation)
The strategy includes a 200-period SMA filter to validate trend direction before entering trades. If enabled:
✅ Long Entry is only allowed when price is above a long-term SMA multiplier (5x the standard SMA length).
✅ If disabled, the strategy only considers the ADX crossover threshold for trade entries.
This filter helps reduce entries in sideways or weak-trend conditions, improving signal reliability.
📌 Trade Logic & Conditions
🔹 Long Entry Conditions
A buy signal is triggered when:
✅ ADX crosses above the threshold (default = 14), indicating a strengthening trend.
✅ (If SMA filter is enabled) Price is above the long-term SMA multiplier.
🔻 Exit Conditions
A position is closed when:
✅ ADX crosses below the stop threshold (default = 45), signaling trend weakening.
By adjusting the entry and exit ADX levels, traders can fine-tune sensitivity to trend changes.
📏 Trade Visualization & Tracking
Trade Markers
"Buy" label (▲) appears when a long position is opened.
"Close" label (▼) appears when a position is exited.
Trade History Boxes
Green if a trade is profitable.
Red if a trade closes at a loss.
Trend Tracking Lines
Horizontal lines mark entry and exit prices.
A filled trade box visually represents trade duration and profitability.
These elements provide clear visual insights into trade execution and performance.
⚡ How to Use This Strategy
1️⃣ Apply the script to a BTC chart in TradingView.
2️⃣ Adjust ADX entry/exit levels based on trend sensitivity.
3️⃣ Enable or disable the SMA filter for trend confirmation.
4️⃣ Backtest performance to analyze historical trade execution.
5️⃣ Monitor trade markers and history boxes for real-time trend insights.
This strategy is designed for trend traders looking to capture high-momentum market conditions while filtering out weak trends.
MACD Volume Strategy for XAUUSD (15m) [PineIndicators]The MACD Volume Strategy is a momentum-based trading system designed for XAUUSD on the 15-minute timeframe. It integrates two key market indicators: the Moving Average Convergence Divergence (MACD) and a volume-based oscillator to identify strong trend shifts and confirm trade opportunities. This strategy uses dynamic position sizing, incorporates leverage customization, and applies structured entry and exit conditions to improve risk management.
⚙️ Core Strategy Components
1️⃣ Volume-Based Momentum Calculation
The strategy includes a custom volume oscillator to filter trade signals based on market activity. The oscillator is derived from the difference between short-term and long-term volume trends using Exponential Moving Averages (EMAs)
Short EMA (default = 5) represents recent volume activity.
Long EMA (default = 8) captures broader volume trends.
Positive values indicate rising volume, supporting momentum-based trades.
Negative values suggest weak market activity, reducing signal reliability.
By requiring positive oscillator values, the strategy ensures momentum confirmation before entering trades.
2️⃣ MACD Trend Confirmation
The strategy uses the MACD indicator as a trend filter. The MACD is calculated as:
Fast EMA (16-period) detects short-term price trends.
Slow EMA (26-period) smooths out price fluctuations to define the overall trend.
Signal Line (9-period EMA) helps identify crossovers, signaling potential trend shifts.
Histogram (MACD – Signal) visualizes trend strength.
The system generates trade signals based on MACD crossovers around the zero line, confirming bullish or bearish trend shifts.
📌 Trade Logic & Conditions
🔹 Long Entry Conditions
A buy signal is triggered when all the following conditions are met:
✅ MACD crosses above 0, signaling bullish momentum.
✅ Volume oscillator is positive, confirming increased trading activity.
✅ Current volume is at least 50% of the previous candle’s volume, ensuring market participation.
🔻 Short Entry Conditions
A sell signal is generated when:
✅ MACD crosses below 0, indicating bearish momentum.
✅ Volume oscillator is positive, ensuring market activity is sufficient.
✅ Current volume is less than 50% of the previous candle’s volume, showing decreasing participation.
This multi-factor approach filters out weak or false signals, ensuring that trades align with both momentum and volume dynamics.
📏 Position Sizing & Leverage
Dynamic Position Calculation:
Qty = strategy.equity × leverage / close price
Leverage: Customizable (default = 1x), allowing traders to adjust risk exposure.
Adaptive Sizing: The strategy scales position sizes based on account equity and market price.
Slippage & Commission: Built-in slippage (2 points) and commission (0.01%) settings provide realistic backtesting results.
This ensures efficient capital allocation, preventing overexposure in volatile conditions.
🎯 Trade Management & Exits
Take Profit & Stop Loss Mechanism
Each position includes predefined profit and loss targets:
Take Profit: +10% of risk amount.
Stop Loss: Fixed at 10,100 points.
The risk-reward ratio remains balanced, aiming for controlled drawdowns while maximizing trade potential.
Visual Trade Tracking
To improve trade analysis, the strategy includes:
📌 Trade Markers:
"Buy" label when a long position opens.
"Close" label when a position exits.
📌 Trade History Boxes:
Green for profitable trades.
Red for losing trades.
📌 Horizontal Trade Lines:
Shows entry and exit prices.
Helps identify trend movements over multiple trades.
This structured visualization allows traders to analyze past performance directly on the chart.
⚡ How to Use This Strategy
1️⃣ Apply the script to a XAUUSD (Gold) 15m chart in TradingView.
2️⃣ Adjust leverage settings as needed.
3️⃣ Enable backtesting to assess past performance.
4️⃣ Monitor volume and MACD conditions to understand trade triggers.
5️⃣ Use the visual trade markers to review historical performance.
The MACD Volume Strategy is designed for short-term trading, aiming to capture momentum-driven opportunities while filtering out weak signals using volume confirmation.
150-Day SMA//@version=5
indicator("150-Day SMA", overlay=true)
len = 150
sma150 = ta.sma(close, len)
plot(sma150, title="150-Day SMA", color=color.orange, linewidth=2)
Balance of Power for US30 4H [PineIndicators]The Balance of Power (BoP) Strategy is a momentum-based trading system for the US30 index on a 4-hour timeframe. It measures the strength of buyers versus sellers in each candle using the Balance of Power (BoP) indicator and executes trades based on predefined threshold crossovers. The strategy includes dynamic position sizing, adjustable leverage, and visual trade tracking.
⚙️ Core Strategy Mechanics
Positive values indicate buying strength.
Negative values indicate selling strength.
Values close to 1 suggest strong bullish momentum.
Values close to -1 indicate strong bearish pressure.
The strategy uses fixed threshold crossovers to determine trade entries and exits.
📌 Trade Logic
Entry Conditions
Long Entry: When BoP crosses above 0.8, signaling strong buying pressure.
Exit Conditions
Position Close: When BoP crosses below -0.8, indicating a shift to selling pressure.
This threshold-based system filters out low-confidence signals and focuses on high-momentum shifts.
📏 Position Sizing & Leverage
Leverage: Adjustable by the user (default = 5x).
Risk Management: Position size adapts dynamically based on equity fluctuations.
📊 Trade Visualization & History Tracking
Trade Markers:
"Buy" labels appear when a long position is opened.
"Close" labels appear when a position is exited.
Trade History Boxes:
Green for profitable trades.
Red for losing trades.
These elements provide clear visual tracking of past trade execution.
⚡ Usage & Customization
1️⃣ Apply the script to a US30 4H chart in TradingView.
2️⃣ Adjust leverage settings as needed.
3️⃣ Review trade signals and historical performance with visual markers.
4️⃣ Enable backtesting to evaluate past performance.
This strategy is designed for momentum-based trading and is best suited for volatile market conditions.
The Money Printer v3🚀 Say goodbye to stress and second-guessing! This algorithmic strategy is built to spot high-probability trades, manage risk dynamically, and let the trends do the heavy lifting. Whether you're catching breakouts or riding strong trends, this strategy adapts to market conditions so you can trade smarter, not harder.
🔥 What Makes It Tick?
✅ EMA Crossover Strategy – Identifies trend shifts so you’re trading with momentum, not against it.
✅ MACD Confirmation – Helps avoid weak trends by ensuring momentum is in your favor.
✅ RSI Filter – No chasing tops or selling bottoms—just smart, calculated entries.
✅ ATR-Based Stop-Loss & Trailing Stop – Adjusts dynamically to market volatility.
✅ Volume Surge Filter (Optional) – Want to trade with the whales? This filter helps confirm big moves.
✅ Position Sizing on Autopilot – Risk per trade is calculated based on equity for smarter capital allocation.
📊 How It Works:
🔹 Long Entries: Triggered when EMAs cross bullishly, RSI confirms strength, and MACD aligns.
🔹 Short Entries: Triggered when EMAs cross bearishly, RSI confirms weakness, and MACD signals momentum shift.
🔹 Dynamic Stop-Loss & Trailing Stop: Uses ATR to adapt to price action and volatility.
🔹 Volume Filter (Optional): Can be turned on to confirm institutional participation.
⚠️ Trading Smart, Not Reckless
This strategy is designed to enhance decision-making, but remember—markets are unpredictable. Backtest, tweak settings, and use proper risk management before live trading.
💎 Why Use It?
✔️ Reduces Emotional Trading – Signals based on logic, not FOMO.
✔️ Works on Any Timeframe – Scalping, swing trading, position trading—it adapts.
✔️ Let the Market Work for You – Spot trends, ride momentum, and manage risk automatically.
Ready to level up your strategy? Plug it into TradingView and let the signals roll in! 🚀💰
This keeps it fun and engaging while following TradingView’s rules. Let me know if you want any tweaks! 🎯🔥
KAMA + RSI + ADX + BB with Individual Signals//@version=6
indicator("KAMA + RSI + ADX + BB with Individual Signals", overlay=true)
// --- KAMA Parametreleri ---
fastPeriod = input.int(5, "KAMA Fast Period", minval=2, maxval=20)
slowPeriod = input.int(30, "KAMA Slow Period", minval=10, maxval=50)
effPeriod = input.int(2, "KAMA Efficiency Period", minval=1, maxval=10)
// KAMA Hesaplama Fonksiyonu
kama(close, effPeriod, fastPeriod, slowPeriod) =>
// Verimlilik Oranı (Efficiency Ratio - ER)
change = math.abs(close - close )
// Manuel olarak effPeriod dönemindeki kümülatif toplamı hesapla
var float sum_vol = 0.0
for i = 0 to effPeriod - 1
sum_vol += math.abs(close - close )
volatility = sum_vol
er = volatility == 0 ? 1 : change / volatility
// Düzeltme Faktörü (Smoothing Constant - SC)
sc = math.pow(er * (2.0 / (fastPeriod + 1) - 2.0 / (slowPeriod + 1)) + 2.0 / (slowPeriod + 1), 2)
// KAMA serisini sakla
var float kama_series = close
kama_series := kama_series + sc * (close - kama_series ) // Seriyi güncelle
kama_prev = nz(kama_series , close) // Önceki KAMA değerini al, yoksa kapanış fiyatını kullan
kama_current = kama_prev + sc * (close - kama_prev) // Yeni KAMA değerini hesapla
kama_current // Fonksiyonun dönüş değeri
// KAMA Değeri
kamaValue = kama(close, effPeriod, fastPeriod, slowPeriod)
// --- RSI Parametreleri ---
rsiLength = input.int(14, "RSI Length", minval=2, maxval=50)
rsiOverbought = input.int(70, "RSI Overbought", minval=50, maxval=100)
rsiOversold = input.int(30, "RSI Oversold", minval=0, maxval=50)
rsi = ta.rsi(close, rsiLength)
// --- ADX Parametreleri ---
adxLength = input.int(14, "ADX Length", minval=2, maxval=50)
adxThreshold = input.int(25, "ADX Threshold", minval=10, maxval=50)
= ta.dmi(adxLength, 14) // length ve adxSmoothing (14) argümanları
// --- Bollinger Bantları Parametreleri ---
bbLength = input.int(20, "BB Length", minval=2, maxval=50)
bbMult = input.float(2.0, "BB Multiplier", minval=1.0, maxval=5.0, step=0.1)
= ta.bb(close, bbLength, bbMult)
// --- Her İndikatörün Al-Sat Sinyalleri ---
// KAMA Sinyalleri
kamaBuy = ta.crossover(close, kamaValue)
kamaSell = ta.crossunder(close, kamaValue)
// RSI Sinyalleri
rsiBuy = ta.crossover(rsi, rsiOversold)
rsiSell = ta.crossunder(rsi, rsiOverbought)
// ADX Sinyalleri (Trend güçlenirse al, zayıflarsa sat)
adxBuy = ta.crossover(adx, adxThreshold)
adxSell = ta.crossunder(adx, adxThreshold)
// Bollinger Bantları Sinyalleri
bbBuy = ta.crossover(close, bbUpper)
bbSell = ta.crossunder(close, bbLower)
// --- Görselleştirme ---
// KAMA Çizgisi ve Bollinger Bantları
plot(kamaValue, color=color.orange, title="KAMA", linewidth=2) // KAMA turuncu ve kalın
plot(bbUpper, color=color.blue, title="BB Upper", linewidth=1) // Bollinger üst mavi ve ince
plot(bbMiddle, color=color.blue, title="BB Middle", linewidth=1, style=plot.style_linebr) // Bollinger orta mavi ve ince, kesikli
plot(bbLower, color=color.blue, title="BB Lower", linewidth=1) // Bollinger alt mavi ve ince
// --- Her İndikatör için Al-Sat Sinyalleri ---
// KAMA Sinyalleri
plotshape(kamaBuy, title="KAMA Al", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="Al")
plotshape(kamaSell, title="KAMA Sat", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text="Sat")
// RSI Sinyalleri
plotshape(rsiBuy, title="RSI Al", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="Al")
plotshape(rsiSell, title="RSI Sat", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text="Sat")
// ADX Sinyalleri
plotshape(adxBuy, title="ADX Al", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="Al")
plotshape(adxSell, title="ADX Sat", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text="Sat")
// Bollinger Bantları Sinyalleri
plotshape(bbBuy, title="BB Al", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="Al")
plotshape(bbSell, title="BB Sat", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text="Sat")
// --- Alt Panelde RSI ve ADX ---
hline(rsiOverbought, "RSI Overbought", color=color.red, linestyle=hline.style_dashed)
hline(rsiOversold, "RSI Oversold", color=color.green, linestyle=hline.style_dashed)
plot(rsi, "RSI", color=color.purple, display=display.pane)
plot(adx, "ADX", color=color.teal, display=display.pane)
hline(adxThreshold, "ADX Threshold", color=color.gray, linestyle=hline.style_dashed)
ProfitMax SignalsProfitMax Signals is a streamlined indicator designed for 30-minute charts, such as the S&P 500 Index (SPX), utilizing the fast MACD (5,13,5) to generate precise buy and sell signals based on momentum shifts, aiming to capture tops and bottoms for maximum profit. It employs MACD crossovers—buy signals when the MACD line crosses above the signal line, and sell signals when it crosses below—plotted as small green and red triangles, respectively, on the chart. The indicator includes debug tools like MACD lines and price move percentages in the data window for optimization, and it’s customizable for any TradingView asset (stocks, forex, crypto) by adjusting parameters such as the minimum price move, cooldown period, profit target, and trailing stop. Currently simplified to ensure signals appear, it will be enhanced with features like a 5-10 bar cooldown, 0.25%-1% price gaps, strict alternation (no consecutive buys or sells), a 1% profit target, and a 0.25% trailing stop based on user feedback and observed price gaps, making it ideal for trend-following strategies while protecting against losses.