Market Trend Strength (MTS) (by ChartArt)See the current trend strength of the market. An additional filter makes trend consolidation areas visible. The color changes there each bar back and forth between green and red.
This area was interesting. Would have been a better example:
If the filter is deactivated the indicator shows the last measured price trend (green for up and down for red).
Pesquisar nos scripts por "chart"
Optimized Target Trend Strategy v2This script works well for 15 min timeframe on NQ chart with with rate over 74 percent and profit factor 2.4
Bitcoin HODL Indicator// Bitcoin Buy & Hold Indicator (HODL Signal)
//@version=5
indicator("Bitcoin HODL Indicator", overlay=true)
// Moving Averages
ma_200w = ta.sma(close, 1400) // Approximate 200-week MA for daily chart
plot(ma_200w, color=color.blue, linewidth=2, title="200WMA")
// MVRV Z-Score Approximation (Using RSI as a Proxy for Simplicity)
mvrv = ta.rsi(close, 90)
low_mvrv = 25 // Adjust based on BTC history
high_mvrv = 70 // Overbought zone
// Pi Cycle Bottom Approximation
ma_111 = ta.sma(close, 111)
ma_350x2 = ta.sma(close, 350) * 2
// Buy Signal Logic
buy_signal = ta.crossover(close, ma_200w) or (mvrv < low_mvrv and ta.crossover(ma_111, ma_350x2))
// Plot Buy Signals
plotshape(buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, title="BUY Signal")
// Alerts
alertcondition(buy_signal, title="Bitcoin Buy Signal", message="Bitcoin is in an accumulation zone! 🚀")
// Background Color for Accumulation Zones
bgcolor(buy_signal ? color.green : na, transp=90)
Supertrend with 1% Target and 1% StoplossSupertrend Calculation: The Supertrend indicator is calculated using the Average True Range (ATR) and a factor. The factor and ATR length can be adjusted in the inputs.
Long and Short Conditions: The strategy enters a long position when the price crosses above the Supertrend line and a short position when the price crosses below it.
Target and Stop Loss: The strategy places a 1% target and a 1% stop loss for both long and short positions.
Visuals: The stop loss and take profit levels are plotted on the chart for better visibility.
SMA10 & SMA50 Crossover Strategy//@version=5
strategy("SMA10 & SMA50 Crossover Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Calculate the SMAs
sma10 = ta.sma(close, 10)
sma50 = ta.sma(close, 50)
// Plot the SMAs on the chart
plot(sma10, color=color.blue, title="SMA10")
plot(sma50, color=color.red, title="SMA50")
// Define the crossover conditions
// Buy when SMA10 becomes >= SMA50 and the previous bar had SMA10 < SMA50
buySignal = (sma10 >= sma50) and (sma10 < sma50 )
// Sell when SMA10 becomes <= SMA50 and the previous bar had SMA10 > sma50
sellSignal = (sma10 <= sma50) and (sma10 > sma50 )
// Generate entries based on the conditions
if buySignal
strategy.entry("Long", strategy.long)
if sellSignal
strategy.entry("Short", strategy.short)
RVM - MA Bounce Low Cheat Strategy with LLS SignalsThe Chart shows upside move based on break from pivot moves
7-Day Interval BackgroundSimple indicator segments your chart into 7 day sections with colored background to easily identify when a new 7 day segment starts.
My Price Action ToolkitThe Price Action Toolkit Lite is a comprehensive indicator designed to enhance your chart analysis with advanced price action tools. This powerful toolkit combines multiple technical analysis concepts to provide traders with a clear visualization of market structure, liquidity levels, order blocks, and trend lines. By integrating these elements, the indicator aims to offer a holistic view of price action, helping traders identify potential entry and exit points, as well as key levels of interest in the market.
Holy MollySell when the last closed candle has the purpe marking.
Buy when the last candle gets a green marking.
TP is alawys the horizontal line.
Tweak the settings for your liking, the threshold should be set always to the actual pair, to be within a few pips or points, you can get references from the chart, where you have two loes or highs really close almost with zero difference, if those are shown only, your settings is ok.
Do a back test, you will see, price eventually always gets there. Mostly the very next candle but sometimes it takes a few candles.
WalidTrader2025This is a Pine Script (version 5) code for a custom technical analysis indicator called "Market Structure Fibonacci Indicator" designed for use in TradingView. The indicator appears to combine market structure analysis with Fibonacci levels to help traders identify key price levels and market conditions.
Key features of the indicator include:
Fibonacci-based "breaker zones" that help identify potential support and resistance areas
A dynamic equilibrium price level that determines bullish/bearish market conditions
Buy-side and sell-side liquidity levels tracking
A status table displaying the current market trend (Bullish/Bearish) and market condition (Premium/Discount/Neutral)
Customizable visual elements including colors, line widths, and transparency levels
The indicator overlays on the price chart and uses the period's open, high, and low prices to calculate various Fibonacci projections at the 0.375 and 0.625 levels. It then creates zones ("breaker zones") that could indicate potential areas where price might react.
Tick Marubozu StrategyStrategy Concept:
This strategy identifies Marubozu candles on a tick chart (customizable pip size) with high volume to signal strong market momentum.
Bearish Marubozu → Strong selling pressure → Enter a SELL trade
Bullish Marubozu → Strong buying pressure → Enter a BUY trade
Entry Conditions:
Marubozu Definition:
Open price ≈ High for a bearish Marubozu (minimal wick at the top).
Open price ≈ Low for a bullish Marubozu (minimal wick at the bottom).
Customizable body size (in pips).
High Volume Confirmation:
The volume of the Marubozu candle must be above the moving average of volume (e.g., 20-period SMA).
Trade Direction:
Bearish Marubozu with High Volume → SELL
Bullish Marubozu with High Volume → BUY
Exit Conditions:
Time-Based Expiry: Since it's for binary options, the trade duration is pre-defined (e.g., 1-minute expiry).
Reversal Candle: If a strong opposite Marubozu appears, it may indicate a trend shift.
New intraday high with weak barStrategy Logic:
The strategy checks if the current bar’s high is the highest high of the last 10 bar and if internal bar strength is less than 0.15.
Position is closed when close is greater than the previous bar’s high.
When a position is open, the script applies a light green background on the chart to signal that you are in a trade.
Inside/Outside Bar Direction Highlighter
Here’s a trading indicator in Pine Script (v6) that combines the essence of the Inside Bar, Outside Bar, and directional patterns inspired by TT3 Theory. This indicator highlights bars based on their classification as inside, outside, or directional and provides potential trade signals.
Inside Outside Indicator
Explanation:
Bar Classification:
Inside Bar: Current high is less than the previous high, and the low is greater than the previous low.
Outside Bar: Current high exceeds the previous high, and the low breaks below the previous low.
Up/Down Bars: Closing prices relative to the previous high/low.
Visual Highlights:
Bars are visually highlighted with colors for easy identification.
Trade Signals:
Long Signal: When the close crosses above the previous high and it's a directional up bar.
Short Signal: When the close crosses below the previous low and it's a directional down bar.
Customizable Inputs:
Colors for inside, outside, up, and down bars can be modified.
You can copy and paste this script into the Pine Editor on TradingView to see it in action. Adjust the logic to fit your trading strategy as needed.
You said:
summary of how to use this indicator without buy/sell signal
ChatGPT said:
ChatGPT
How to Use the Inside/Outside Bar Direction Highlighter Indicator (Without Buy/Sell Signals)
Understand the Bar Classifications:
Inside Bars: Highlighted in blue (default). These indicate periods of market consolidation. Look for potential breakouts in either direction.
Outside Bars: Highlighted in orange (default). These represent increased volatility, where both higher highs and lower lows are made. Watch for reversals or continuations based on broader trends.
Directional Up Bars: Highlighted in green (default). These occur when the current close is above the previous high, signaling bullish momentum.
Directional Down Bars: Highlighted in red (default). These occur when the current close is below the previous low, indicating bearish momentum.
Identify Key Patterns:
Use the highlighted bars to spot price action setups, such as:
Breakouts from inside bars.
Reversal signals following outside bars.
Continuation patterns when directional bars align with the trend.
Combine with Your Analysis:
Trend Analysis: Match bar classifications with trend direction on larger timeframes (e.g., daily, 4-hour).
Support/Resistance: Use inside and outside bars near key levels for confirmation or reversal signals.
Volume: Higher volume on directional bars strengthens the momentum signal.
Customize the Colors:
Adjust the bar highlight colors to fit your chart theme for better visibility.
No Automatic Signals:
This indicator doesn’t provide explicit buy/sell recommendations. Instead, use the visual highlights to make informed decisions based on your trading strategy.
By interpreting these bar patterns, you can better gauge market behavior and make more confident decisions without relying on preset signals.
Long Position with 1:3 Risk Reward and 20EMA CrossoverThe provided Pine Script code implements a strategy to identify long entry signals based on a 20-EMA crossover on a 5-minute timeframe. Once a buy signal is triggered, it calculates and plots the following:
Entry Price: The price at which the buy signal is generated.
Stop Loss: The low of the previous candle, acting as a risk management tool.
Take Profit: The price level calculated based on a 1:3 risk-reward ratio.
Key Points:
Buy Signal: A buy signal is generated when the current 5-minute candle closes above the 20-EMA.
Risk Management: The stop-loss is set below the entry candle to limit potential losses.
Profit Target: The take-profit is calculated based on a 1:3 risk-reward ratio, aiming for a potential profit three times the size of the risk.
Visualization: The script plots the entry price, stop-loss, and take-profit levels on the chart for visual clarity.
Remember:
Backtesting: It's crucial to backtest this strategy on historical data to evaluate its performance and optimize parameters.
Risk Management: Always use appropriate risk management techniques, such as stop-loss orders and position sizing, to protect your capital.
Market Conditions: Market conditions can change, and strategies that worked in the past may not perform as well in the future. Continuously monitor and adapt your strategy.
By understanding the core components of this script and applying sound risk management principles, you can effectively use it to identify potential long entry opportunities in the market.
Normalized True Range - Grouped by WeekdaysThis indicator helps traders analyze daily volatility patterns across different days of the week by calculating normalized price ranges.
Unlike traditional volatility measures, it uses a normalized approach by dividing the daily range (high-low) by the midpoint price and multiplying by 100, providing a percentage-based measure that's comparable across different price levels. This normalization makes it particularly useful for comparing volatility patterns across different assets or time periods.
The indicator also includes a statistical overlay that highlights extreme volatility events. By calculating the 5th and 95th percentiles of the normalized ranges within your specified date range, it creates upper and lower bounds that help identify outlier days where volatility was exceptionally high or low.
These bounds appear as horizontal lines on the chart, making it easy to spot when current volatility breaks out of its historical norms.
The data is presented in both visual and tabular formats, with a comprehensive table showing the maximum, minimum, average, and 25th percentile ranges for each day of the week. This dual presentation allows traders to both quickly spot patterns visually and access detailed statistics for deeper analysis.
The user can customize the analysis period through simple date range inputs, making it flexible for different analytical timeframes.
XAUUSD Trend Strategy### Description of the XAUUSD Trading Strategy with Pine Script
This strategy is designed to trade gold (**XAUUSD**) using proven technical analysis principles. It combines key indicators such as **Exponential Moving Averages (EMA)**, the **Relative Strength Index (RSI)**, and **Bollinger Bands** to identify trading opportunities in trending market conditions.
---
#### Objective:
To maximize profits by identifying trend-aligned entry points while minimizing risks through well-defined Stop Loss and Take Profit levels.
---
### How It Works
1. **Indicators Used:**
- **Exponential Moving Averages (EMA):** Tracks short-term and long-term trends to confirm market direction.
- **Relative Strength Index (RSI):** Detects overbought or oversold conditions for potential reversals or trend continuation.
- **Bollinger Bands:** Measures volatility to identify breakout or reversion points.
2. **Entry Rules:**
- **Long (Buy):** Triggered when:
- The short-term EMA crosses above the long-term EMA (bullish trend confirmation).
- RSI exits oversold territory (<30), signaling buying momentum.
- The price breaks above the upper Bollinger Band, indicating a strong trend.
- **Short (Sell):** Triggered when:
- The short-term EMA crosses below the long-term EMA (bearish trend confirmation).
- RSI exits overbought territory (>70), signaling selling momentum.
- The price breaks below the lower Bollinger Band, indicating a strong downtrend.
3. **Risk Management:**
- **Stop Loss:** Automatically calculated based on a percentage of equity risk (customizable via inputs).
- **Take Profit:** Defined using a risk-to-reward ratio, ensuring consistent profitability when trades succeed.
4. **Visualization:**
- The chart displays the EMAs, Bollinger Bands, and entry/exit points for clear analysis.
---
### Key Features:
- **Customizable Parameters:** You can adjust EMAs, RSI thresholds, Bollinger Band settings, and risk levels to suit your trading style.
- **Alerts:** Automatic alerts for potential trade setups.
- **Backtesting-Ready:** Easily test historical performance on TradingView.
---
This strategy is ideal for gold traders looking for a systematic, rule-based approach to trading trends with minimal emotional interference.
Custom Fibonacci StrategyCustom Fibonacci Strategy:
This strategy relies on analyzing Fibonacci levels to identify entry points for trades. It works by identifying peaks and troughs over a specified time period (50 bars in this code). Here are the steps of the strategy:
Identifying Peaks and Troughs:
The highest peak and lowest trough over the last 50 bars are identified.
If the price exceeds the previous peak, it is considered a break of the peak.
If the price falls below the previous trough after breaking the peak, it is considered a break of the trough.
Calculating Fibonacci Levels:
The 50% level (midway point) between the identified peak and trough is calculated.
Buy Signals:
When a trough is broken, and the price trades at or below the 50% level, the risk-to-reward ratio is evaluated.
If the risk-to-reward ratio is greater than or equal to 2, a buy signal is generated.
Displaying Levels:
Horizontal lines are displayed on the chart to illustrate the peak, trough, and Fibonacci level.
Summary
This strategy provides a systematic approach to trading based on Fibonacci retracement levels and price action, allowing traders to make informed decisions about entry points and manage risk effectively.
Vishnu's Magics**Vishnu's Magics** is a powerful RSI (Relative Strength Index) indicator designed to enhance trading strategies through effective divergence detection and alerting features. This indicator provides the following key functionalities:
1. **RSI Calculation**: Calculates the RSI over a customizable length, allowing traders to identify overbought and oversold conditions.
2. **Customizable Bands**: Users can set multiple upper and lower bands to define different overbought and oversold levels, facilitating precise trading decisions.
3. **Divergence Detection**: The indicator identifies both bullish and bearish divergences by comparing price action with RSI movements. It highlights these divergences on the chart, helping traders anticipate potential reversals.
4. **Visual Alerts**: When divergences are detected, the indicator visually marks the points on the chart with labeled shapes ("Bull" for bullish divergence and "Bear" for bearish divergence) and changes the background color to indicate the condition.
5. **Alert System**: Users can set alerts for significant events, such as crossing specified bands or detecting divergences, ensuring timely notifications for trading opportunities.
6. **Custom Line Values**: Traders can edit the values for the divergence lines, providing flexibility to tailor the indicator according to their trading strategies.
Overall, **Vishnu's Magics** serves as an intuitive tool for traders looking to leverage RSI analysis and divergence strategies for informed trading decisions.
Adjusted Average VolatilityThis Pine Script calculates the average volatility over the past 20 bars by taking the difference between the high and low prices. It then adjusts this volatility based on the previous closing price: if the price is below $20, the volatility is multiplied by 2, and if it’s above $20, the volatility is multiplied by 1.5. The adjusted volatility is then plotted on the chart, helping traders visualize how volatility changes relative to the asset's price level.
5-9-20-100 Day EMAIndicator Name: "5-9-20-100 Day EMA"
Purpose: This indicator plots four key EMAs (5, 9, 20, and 100-day) on a daily chart, providing a clear visualization of both short-term and long-term trends. The EMAs serve as critical triggers for identifying potential entry and exit points based on price interactions with these moving averages.
Technical Details:
Version: Pine Script v5
EMAs Used:
5-Day EMA (Lime): Captures the most recent price trends, useful for identifying short-term momentum.
9-Day EMA (Yellow): Offers a slightly broader view, often used to confirm the short-term trend.
20-Day EMA (Orange): Represents a medium-term trend, commonly used as a signal for trend reversals.
100-Day EMA (Red): Indicates the long-term trend, often serving as strong support or resistance levels.
Trigger Points:
Crossovers: Price crossing above or below these EMAs can trigger potential buy or sell signals.
Convergence/Divergence: The interaction between the EMAs, such as a faster EMA crossing a slower one, can signal trend reversals or continuations.
Utility: This indicator is ideal for traders who rely on EMA crossovers and the relationship between different EMAs to make informed trading decisions.
T-Wave Pattern IdentifierA T-wave might describe a pattern where the price movement forms a "T" shape on the chart, which could involve:
Strong Vertical Movement (The Stem of the T):
This could represent a sharp, decisive move in one direction (up or down), often occurring in a single candle or a few candles. This movement could be seen as the "stem" of the T.
For example, a sudden spike up in price followed by a horizontal consolidation.
Horizontal Movement (The Cross of the T):
Following the sharp move, the price might consolidate sideways, forming a horizontal base or resistance/support level, which creates the top cross of the "T."
This could indicate a pause or a consolidation phase after a significant move, where the price moves within a narrow range.
Contexts Where a T-Wave Pattern Might Be Useful:
Breakout Scenarios: If a T-wave forms after a significant upward or downward movement, it could suggest a potential continuation in the direction of the initial move, especially if the price breaks out of the consolidation range.
Reversal Signals: Alternatively, the T-wave could act as a reversal pattern if the price fails to continue in the direction of the initial move and instead breaks out in the opposite direction.
T-Wave Logic Example:
Stem (Vertical Movement):
Identify a candle or series of candles with a significant price move (e.g., a large-bodied candle with a relatively small wick). This shows momentum in one direction.
Cross (Horizontal Movement):
Following the vertical move, identify a consolidation phase where the price moves sideways in a relatively tight range. This could be visualized as a series of small candles with overlapping highs and lows.