Simple Average Price & Target ProfitThis script is designed to help users calculate and visualize the weighted average price of an asset based on multiple entry points, along with the target price and the potential profit. The user can input specific prices for three different entries, along with the percentage of total investment allocated to each price point. The script then calculates the weighted average price based on these entries and displays it on the chart. Additionally, it calculates the potential profit at a given target price, which is plotted on the chart.
Indicators and strategies
Bollinger Bands CustomThe indicator is a customized version of Bollinger Bands with added trading signals. This indicator is designed to help traders identify potential entry (buy) and exit (sell) points based on the interaction between the price and the Bollinger Bands. Below, I will explain in detail its purpose, how it works, and how to use it.
Purpose of the Indicator
The main purpose of this indicator is:
Identify market volatility: Bollinger Bands expand and contract based on price volatility.
Provide trading signals: The indicator generates buy signals (BUY) when the price crosses the lower band and sell signals (SELL) when the price crosses the upper band.
Help identify dynamic support and resistance levels: The upper and lower bands act as dynamic resistance and support levels.
How the Indicator Works
The indicator is based on three main components:
Moving Average (SMA): It calculates the simple moving average (SMA) of the price over a specified period (length).
Bollinger Bands:
The upper band is calculated as the moving average plus a standard deviation multiplied by a factor (mult).
The lower band is calculated as the moving average minus a standard deviation multiplied by the same factor.
Trading signals:
A BUY signal is generated when the price crosses above the lower band.
A SELL signal is generated when the price crosses below the upper band.
How to Use the Indicator
Here is a step-by-step guide on how to use the indicator on TradingView:
1. Add the Indicator to the Chart
Copy the Pine Script code you created.
Open TradingView and go to the Pine Editor.
Paste the code and click "Add to Chart."
The indicator will be displayed directly on the price chart.
2. Customize the Parameters
You can customize the following parameters:
Moving Average Length (length): Set the period for the moving average (default is 20).
Price Source (source): Choose the price to use (default is the closing price).
Standard Deviation Multiplier (mult): Set the multiplier for the standard deviation (default is 2.0).
3. Interpret the Signals
BUY Signal: When you see a "BUY" label below a candle, it means the price has crossed above the lower band. This could indicate a buying opportunity.
SELL Signal: When you see a "SELL" label above a candle, it means the price has crossed below the upper band. This could indicate a selling opportunity.
4. Use Bollinger Bands as Support and Resistance
If the price approaches the upper band, it might indicate a resistance level.
If the price approaches the lower band, it might indicate a support level.
5. Monitor the Colored Background
The chart background turns light green when there is a BUY signal and light red when there is a SELL signal. This helps you quickly identify signals.
Practical Example
Suppose you are analyzing a daily chart of a stock or cryptocurrency:
If the price crosses above the lower band, the indicator will show a "BUY" label. You might consider this as a signal to open a long position.
If the price crosses below the upper band, the indicator will show a "SELL" label. You might consider this as a signal to close a long position or open a short position.
Limitations and Considerations
False signals: In range-bound markets, Bollinger Bands can generate many false signals. It is advisable to use this indicator in combination with other technical analysis tools.
Extreme volatility: During periods of high volatility, the bands expand, and signals may become less reliable.
Confirmation: It is always good practice to confirm signals with other indicators (e.g., RSI, MACD) or candlestick analysis.
Conclusion
My indicator is a useful tool for identifying potential trading opportunities based on Bollinger Bands. However, as with any indicator, it is important to use it in combination with other forms of analysis and risk management to maximize effectiveness. Happy trading! 🚀
Bitcoin Redpill 38tão. Multiplo de Mayer 200MMA & 2x 200MMAIndicador que plota no gráfico a estratégia do mestre Renato Trezoitão para compra, hold e venda nos momeentos de eufororia no Bitcoin. Consiste em uma MMA central de 200 períodos na cor azul, uma linha acima que indica quando o preço está 2x essa MMA de 200, na cor vermelha; Eu adicionei uma linha verde abaixo da MMA de 200 que indica 10% abaixo da MMA de 200, quando o mercado está acumulando. A aplicação é simples. Compra, acumula BTC abaixo da linha azul na região da linha verde, começa a vender na região da linha vermelha. Essa Estratégia respeita o multiplo de Mayer, exposta no Livro Bitcoin Red Pill do grande Renato trezoitão. Espero que gostem.
mr.crypto731Description:
📊 Enhanced MACD with Strong Buy/Sell Signals 🚀
This script is designed to enhance the standard MACD indicator by adding clear, strong buy and sell signals. It includes:
MACD Line: A fast-moving average that reacts quickly to price changes.
Signal Line: A slower-moving average that smooths out price fluctuations.
MACD Histogram: The difference between the MACD Line and Signal Line, helping to identify trend strength and direction.
Key Features:
Strong Buy/Sell Signals: Uses crossovers of the MACD Line and Signal Line to generate strong buy/sell signals.
Color-Coded Background: Provides visual cues with background colors to highlight strong signals.
User-Friendly Interface: Customizable settings for MACD Fast Length, Slow Length, and Signal Smoothing.
Candle VolumeThis indicator gives gives candle volume represented in X.Y format for simplicity.
100% = 1.0
20% = 0.2
Anything 10X is represented by an arrow up or down based on candle price delta open to close.
By default, a 500 candle lookback of volume is used excluding exteem outliers of 50.
You can adjust these in settings.
Ichimoku with Vertical Mirror DistanceThe Ichimoku Kinko Hyo is a powerful technical indicator used to assess market trends, potential support and resistance levels, and momentum. It consists of several components that help visualize the market's state:
Tenkan-sen (Conversion Line): A fast-moving average.
Kijun-sen (Base Line): A slower-moving average.
Senkou Span A (Leading Span A): The average of Tenkan-sen and Kijun-sen, shifted forward in time.
Senkou Span B (Leading Span B): A slower moving average of the high and low price over a period of 52 periods, shifted forward in time.
Chikou Span (Lagging Line): The closing price shifted back in time by 26 periods.
This custom version of the Ichimoku indicator adds the vertical mirrored distance feature, which calculates the distance between Senkou Span B and Kijun-sen and then mirrors this distance to create two new lines. These new lines help visualize the range between these key Ichimoku lines.
Options Flavour by Raushan ShrivastavaMonthly Pivot Points :-
It calculates the monthly high, low, and close, and then computes the pivot point and three levels of support and resistance (R1, R2, R3, S1, S2, S3).
Moving Average :-
A simple moving average (SMA) with a configurable length (length_ma), which by default is set to 140 periods.
Bullish/Bearish Labels :-
Bullish condition: The close price crosses above both the moving average and the monthly pivot point.
Bearish condition: The close price crosses below both the moving average and the monthly pivot point.
Plotting :-
Monthly pivot, support, and resistance levels are plotted as circles on the chart.
The previous month's high and low are also plotted.
Bullish and bearish signals are shown with labels.
Labels on Support/Resistance Lines :-
A label "- PE" will appear on the S2 line (support level) with a green color when the bullish condition is met.
A label "- CE" will appear on the R2 line (resistance level) with a red color when the bearish condition is met.
Customisation :-
Moving Average Length: You can modify the length_ma input to adjust the period of the moving average.
反彈三次突破策略策略說明 (Strategy Explanation)
英文 (English)
This strategy is called "反彈三次突破策略" (Three Rebound Breakthrough Strategy). It is designed to identify and trade based on three consecutive price drops followed by a rebound, ensuring certain conditions are met before entering a trade. The key components and conditions of this strategy are as follows:
Moving Averages (MAs):
Fast MA: The short-term moving average (e.g., 5 periods).
Slow MA: The long-term moving average (e.g., 20 periods).
The crossover of these MAs generates buy (long) and sell (short) signals.
Average True Range (ATR):
Used to calculate volatility and set stop-loss and take-profit levels.
Three Consecutive Drops and Rebounds:
The strategy identifies three consecutive drops in price, each creating a new lower low (low1, low2, low3).
After the third drop, the price must rebound and break above the previous low's rebound height.
Parallel Channel:
A parallel channel is drawn between the lowest points (low1 and low3) to visualize the price range.
Two lines (lower and upper) form the channel.
Entry and Exit Conditions:
Entry signals are based on MA crossovers and the three rebound condition.
Stop-loss and take-profit levels are set using ATR-based calculations.
Labels are added to the chart to indicate stop-loss and take-profit points.
中文 (Chinese)
這個策略叫做 "反彈三次突破策略"。其目的是識別並基於三次連續價格下跌後的反彈進行交易,並確保在進行交易之前滿足某些條件。該策略的關鍵組成部分和條件如下:
移動平均線 (MAs):
快速均線:短期移動平均線(例如,5 期)。
慢速均線:長期移動平均線(例如,20 期)。
這些均線的交叉產生買入(做多)和賣出(做空)信號。
真實波動範圍 (ATR):
用於計算波動性並設置止損和止盈水平。
三次連續下跌和反彈:
該策略識別連續三次的價格下跌,每次都創下更低的低點(low1、low2、low3)。
在第三次下跌後,價格必須反彈並突破前一個低點的反彈高度。
平行通道:
在最低點(low1 和 low3)之間繪製平行通道,以可視化價格區間。
兩條線(下邊界和上邊界)形成通道。
進出場條件:
進場信號基於均線交叉和三次反彈條件。
使用基於 ATR 的計算設置止損和止盈水平。
在圖表上添加標籤以指示止損和止盈點。
Z-Score Indicator [mr2j]This script calculates the Z-score over any lookback window. It provides an understanding if the current price is relatively high or low - and subsequently is close to a correction.
Z-scores can be broken down into probabilities, where Z-scores
Above 2 occurs 2.3% of the time (very uncommon)
Between 1 and 2 occurs 13.6% of the time (elevated)
Between 0 and 1 occurs 34.1% of the time (normal)
Between -1 and 0 occurs 34.1% of the time (normal) [GREEN ZONE
Between -2 and -1 occurs 13.6% pf the time (elevated)
Below -2 occurs 2.3% of the time (very uncommon)
So by paying attention to what zone price action currently is, we can make predictions about short time price corrections.
Normal zone - no assumptions can be made
Elevated zone - pay attention for further escalation
Very uncommon zone - expect price correction over the short term
Note. Price action is not normally distributed, and as such this indicator can not predict price action with any statistical certainty. It can however, serve as an indicator for upcoming price reversals.
Ichimoku with Shifted and Unshifted Senkou BIchimoku Kinko Hyo Indicator Explanation
The Ichimoku Kinko Hyo is a comprehensive technical indicator designed to provide insights into the market's trend, support/resistance levels, and momentum, all in one glance. It consists of five main components:
Tenkan-sen (Conversion Line): A fast-moving average.
Kijun-sen (Base Line): A slower-moving average.
Senkou Span A (Leading Span A): The average of Tenkan-sen and Kijun-sen, shifted forward in time.
Senkou Span B (Leading Span B): A slower moving average of the high and low price over a period of 52 periods, shifted forward in time.
Chikou Span (Lagging Line): The closing price shifted back in time by 26 periods.
The Ichimoku indicator is typically used to identify the trend direction, momentum, and support/resistance levels. The cloud formed between Senkou Span A and Senkou Span B is key in identifying the market's overall trend.
Candle Color Based on EMA Conditions with CustomizationIf the close is below both EMAs, the candle color is red.
If the close is above both EMAs, the candle color is green.
If the close is above 20 EMA but below 200 EMA, or below 20 EMA but above 200 EMA, the candle color is blue.
Advanced Ichimoku SignalThe Advanced Ichimoku Signal is an innovative indicator that combines the strengths of the Ichimoku Cloud system with enhanced signal processing features. This tool is designed to provide traders with clearer insights into market trends and potential trading opportunities.
Key Features of the Advanced Ichimoku Signal
1. Integration of Ichimoku Components:
- The indicator utilizes essential Ichimoku elements such as **Tenkan-sen** (Conversion Line) and **Kijun-sen** (Base Line) to determine short-term and long-term market trends.
2. Enhanced Signal Logic:
- It incorporates a Weighted Moving Average (WMA) to smooth price data, allowing for better trend identification and reducing noise in volatile markets.
3. Customizable Parameters:
- Traders can adjust various parameters, including the lengths of the Tenkan-sen, Kijun-sen, and WMA, as well as their colors and thicknesses for improved visibility.
4. Dynamic Visual Signals:
- The background color changes based on bullish or bearish conditions, providing immediate visual cues for potential trade setups.
5. Signal Strength Calculation:
- The indicator calculates the strength of signals based on the distance between the closing price and the WMA, helping traders gauge the reliability of trade signals.
Importance of the Advanced Ichimoku Signal
- Trend Analysis: By combining multiple indicators, traders can identify both short-term and long-term trends effectively.
- Improved Decision Making: The clear visual signals help traders make informed decisions quickly, reducing the chances of emotional trading.
- Flexibility in Trading Strategies: The customizable nature of the indicator allows it to fit various trading styles, whether scalping or long-term investing.
- Risk Management: Understanding market momentum through this indicator aids in better risk management by providing clear entry and exit points.
Conclusion
The Advanced Ichimoku Signal is a powerful tool for traders looking to enhance their market analysis capabilities. With its advanced features and customizable settings, it offers a comprehensive approach to identifying trading opportunities in various market conditions. Integrating this indicator into your trading strategy can lead to more informed decisions and improved trading performance.
Sanket_OpThis Pine Script detects and highlights bullish and bearish engulfing candle patterns on the chart. It also plots today's Open, High, Low, and Close (OHLC) values, along with an Exponential Moving Average (EMA) based on user input. The script is designed for visual analysis and can trigger alerts for pattern recognition.
Candle Color Based on EMA ConditionsExplanation:
ta.ema: Calculates the 20 EMA and 200 EMA.
Conditions:
If the close is below both EMAs, the candle color is red.
If the close is above both EMAs, the candle color is green.
If the close is above 20 EMA but below 200 EMA, or below 20 EMA but above 200 EMA, the candle color is blue.
plotcandle: Plots the candles with the specified colors
Dynamic Volatility Differential Model (DVDM)The Dynamic Volatility Differential Model (DVDM) is a quantitative trading strategy designed to exploit the spread between implied volatility (IV) and historical (realized) volatility (HV). This strategy identifies trading opportunities by dynamically adjusting thresholds based on the standard deviation of the volatility spread. The DVDM is versatile and applicable across various markets, including equity indices, commodities, and derivatives such as the FDAX (DAX Futures).
Key Components of the DVDM:
1. Implied Volatility (IV):
The IV is derived from options markets and reflects the market’s expectation of future price volatility. For instance, the strategy uses volatility indices such as the VIX (S&P 500), VXN (Nasdaq 100), or RVX (Russell 2000), depending on the target market. These indices serve as proxies for market sentiment and risk perception (Whaley, 2000).
2. Historical Volatility (HV):
The HV is computed from the log returns of the underlying asset’s price. It represents the actual volatility observed in the market over a defined lookback period, adjusted to annualized levels using a multiplier of \sqrt{252} for daily data (Hull, 2012).
3. Volatility Spread:
The difference between IV and HV forms the volatility spread, which is a measure of divergence between market expectations and actual market behavior.
4. Dynamic Thresholds:
Unlike static thresholds, the DVDM employs dynamic thresholds derived from the standard deviation of the volatility spread. The thresholds are scaled by a user-defined multiplier, ensuring adaptability to market conditions and volatility regimes (Christoffersen & Jacobs, 2004).
Trading Logic:
1. Long Entry:
A long position is initiated when the volatility spread exceeds the upper dynamic threshold, signaling that implied volatility is significantly higher than realized volatility. This condition suggests potential mean reversion, as markets may correct inflated risk premiums.
2. Short Entry:
A short position is initiated when the volatility spread falls below the lower dynamic threshold, indicating that implied volatility is significantly undervalued relative to realized volatility. This signals the possibility of increased market uncertainty.
3. Exit Conditions:
Positions are closed when the volatility spread crosses the zero line, signifying a normalization of the divergence.
Advantages of the DVDM:
1. Adaptability:
Dynamic thresholds allow the strategy to adjust to changing market conditions, making it suitable for both low-volatility and high-volatility environments.
2. Quantitative Precision:
The use of standard deviation-based thresholds enhances statistical reliability and reduces subjectivity in decision-making.
3. Market Versatility:
The strategy’s reliance on volatility metrics makes it universally applicable across asset classes and markets, ensuring robust performance.
Scientific Relevance:
The strategy builds on empirical research into the predictive power of implied volatility over realized volatility (Poon & Granger, 2003). By leveraging the divergence between these measures, the DVDM aligns with findings that IV often overestimates future volatility, creating opportunities for mean-reversion trades. Furthermore, the inclusion of dynamic thresholds aligns with risk management best practices by adapting to volatility clustering, a well-documented phenomenon in financial markets (Engle, 1982).
References:
1. Christoffersen, P., & Jacobs, K. (2004). The importance of the volatility risk premium for volatility forecasting. Journal of Financial and Quantitative Analysis, 39(2), 375-397.
2. Engle, R. F. (1982). Autoregressive conditional heteroskedasticity with estimates of the variance of United Kingdom inflation. Econometrica, 50(4), 987-1007.
3. Hull, J. C. (2012). Options, Futures, and Other Derivatives. Pearson Education.
4. Poon, S. H., & Granger, C. W. J. (2003). Forecasting volatility in financial markets: A review. Journal of Economic Literature, 41(2), 478-539.
5. Whaley, R. E. (2000). The investor fear gauge. Journal of Portfolio Management, 26(3), 12-17.
This strategy leverages quantitative techniques and statistical rigor to provide a systematic approach to volatility trading, making it a valuable tool for professional traders and quantitative analysts.
Bull Market Support Band by AnkiMinhasA comment has been added suggesting a descriptive note for the indicator. You can include a brief explanation like: "This indicator visualizes the Bull Market Support Band using a 21-week EMA and SMA to identify trends." Let me know if you'd like to incorporate it directly
Уровни поддержки и сопротивления ликвидации Биткоина Этот индикатор поможет вам визуализировать потенциальные зоны ликвидаций на графике и принимать более информированные торговые решения.
Advanced Strategy: Buy and Sell//@version=5
indicator("Advanced Strategy: Buy and Sell", overlay=true)
// User Inputs
ema_fast_length = input.int(12, title="EMA Fast Period")
ema_slow_length = input.int(26, title="EMA Slow Period")
rsi_period = input.int(14, title="RSI Period")
macd_fast = input.int(12, title="MACD Fast Period")
macd_slow = input.int(26, title="MACD Slow Period")
macd_signal = input.int(9, title="MACD Signal Period")
bb_length = input.int(20, title="Bollinger Bands Period")
bb_mult = input.float(2.0, title="Bollinger Bands Std Dev")
adx_period = input.int(14, title="ADX Period")
adx_threshold = input.int(20, title="Minimum ADX for Trend Validation")
// Indicator Calculations
ema_fast = ta.ema(close, ema_fast_length)
ema_slow = ta.ema(close, ema_slow_length)
rsi = ta.rsi(close, rsi_period)
= ta.macd(close, macd_fast, macd_slow, macd_signal)
= ta.bb(close, bb_length, bb_mult)
// ADX Calculation
true_range = ta.rma(ta.tr, adx_period)
plus_dm = ta.rma(ta.change(high) > ta.change(low) ? math.max(ta.change(high), 0) : 0, adx_period)
minus_dm = ta.rma(ta.change(low) > ta.change(high) ? math.max(ta.change(low), 0) : 0, adx_period)
plus_di = (plus_dm / true_range) * 100
minus_di = (minus_dm / true_range) * 100
dx = math.abs(plus_di - minus_di) / (plus_di + minus_di) * 100
adx = ta.rma(dx, adx_period)
// Buy Rules
buy_signal = ta.crossover(ema_fast, ema_slow) and rsi < 50 and macd_line > signal_line and close < bb_lower and adx > adx_threshold
// Sell Rules
sell_signal = ta.crossunder(ema_fast, ema_slow) and rsi > 50 and macd_line < signal_line and close > bb_upper and adx > adx_threshold
// Plot Indicators on the Chart
plot(ema_fast, color=color.green, title="EMA Fast")
plot(ema_slow, color=color.red, title="EMA Slow")
plot(bb_upper, color=color.orange, title="Bollinger Upper Band")
plot(bb_lower, color=color.orange, title="Bollinger Lower Band")
// Buy and Sell Signals
plotshape(buy_signal, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, title="Buy Signal")
plotshape(sell_signal, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, title="Sell Signal")
// Alerts
alertcondition(buy_signal, title="Buy Alert", message="Buy Signal Detected!")
alertcondition(sell_signal, title="Sell Alert", message="Sell Signal Detected!")
1 Minute Candle Strategythe script will work on any time frame, but specifically mentioned on 1 minutes candles. when applied on a 1 minutes chart the script will execute based on minute candle.
Market Regime DetectorMarket Regime Detector
The Market Regime Detector is a tool designed to help traders identify and adapt to the prevailing market environment by analyzing price action in relation to key macro timeframe levels. This indicator categorizes the market into distinct regimes—Bullish, Bearish, or Reverting—providing actionable insights to set trading expectations, manage volatility, and align strategies with broader market conditions.
What is a Market Regime?
A market regime refers to the overarching state or condition of the market at a given time. Understanding the market regime is critical for traders as it determines the most effective trading approach. The three main regimes are:
Bullish Regime:
Characterized by upward momentum where prices are consistently trending higher.
Trading strategies often focus on buying opportunities and trend-following setups.
Bearish Regime:
Defined by downward price pressure and declining trends.
Traders typically look for selling opportunities or adopt risk-off strategies.
Reverting Regime:
Represents a consolidation phase where prices move within a defined range.
Ideal for mean-reversion strategies or range-bound trading setups.
Key Features of the Market Regime Detector:
Dynamic Market Regime Detection:
Identifies the market regime based on macro timeframe high and low levels (e.g., weekly or monthly).
Provides clear and actionable insights for each regime to align trading strategies.
Visual Context for Price Levels:
Plots the macro high and low levels on the chart, allowing traders to visualize critical support and resistance zones.
Enhances understanding of volatility and trend boundaries.
Regime Transition Alerts:
Sends alerts only when the market transitions into a new regime, ensuring traders are notified of meaningful changes without redundant signals.
Alert messages include clear regime descriptions, such as "Market entered a Bullish Regime: Price is above the macro high."
Customizable Visualization:
Background colors dynamically adjust to the current regime:
Blue for Reverting.
Aqua for Bullish.
Fuchsia for Bearish.
Option to toggle high/low line plotting and background highlights for a tailored experience.
Volatility and Expectation Management:
Offers insights into market volatility by showing when price action approaches, exceeds, or reverts within macro timeframe levels.
Helps traders set realistic expectations and adjust their strategies accordingly.
Use Cases:
Trend Traders: Identify bullish or bearish regimes to capture sustained price movements.
Range Traders: Leverage reverting regimes to trade between defined support and resistance zones.
Risk Managers: Use macro high and low levels as dynamic stop-loss or take-profit zones to optimize trade management.
The Market Regime Detector equips traders with a deeper understanding of the market environment, making it an essential tool for informed decision-making and strategic planning. Whether you're trading trends, ranges, or managing risk, this indicator provides the clarity and insights needed to navigate any market condition.
Price H/L Look BackPrice H/L Look Back
Last x # of days will show the high/low for that time period.
Work in progress.....
Bearish EMA + MFI OS | SoV DCA v1.1A systematic savings tool designed for long-term wealth building through strategic asset accumulation. This indicator helps investors maintain disciplined buying during market downtrends, turning bearish periods into opportunities for methodical saving.
Strategy Components:
- Uses Death Cross (short EMA crossing below long EMA) to identify significant downtrends
- Confirms buying opportunities with oversold MFI conditions to improve entry prices
- Implements time-based DCA to maintain consistent investment discipline
- Tracks investment progress with detailed performance metrics
Perfect for:
- Long-term savers focused on wealth preservation
- Investors building positions in Store of Value assets
- Those seeking to automate their savings strategy
- Converting regular income into hard assets systematically
Features:
- Customizable investment amounts and intervals
- Detailed investment tracking and performance analysis
- Break-even calculations and position monitoring
- Flexible asset selection for various Store of Value instruments
Best used on weekly or daily timeframes for strategic long-term accumulation. This tool emphasizes steady wealth building over short-term trading, helping investors stay committed to their savings goals regardless of market conditions.
Note: Designed for disciplined saving through systematic buying, not for timing profits or short-term trading.