Range Channel by Atilla YurtsevenThis script creates a dynamic channel around a user-selected moving average (MA). It calculates the relative difference between price and the MA, then finds the average of the positive differences and the negative differences separately. Using these averages, it plots upper and lower bands around the MA as well as a histogram-like oscillator to show when price moves above or below the average thresholds.
How It Works
Moving Average Selection
The indicator allows you to choose among multiple MA types (SMA, EMA, WMA, Linear Regression, etc.). Depending on your preference, it calculates the chosen MA for the selected lookback period.
Relative Difference Calculation
It then computes the percentage difference between the source (typically the closing price) and the MA. (diff = (src / ma - 1) * 100)
Positive & Negative Averages
- Positive differences are averaged and represent how far the price typically moves above the MA.
- Negative differences are similarly averaged for when price moves below the MA.
Range Channel & Oscillator
- The channel is plotted around the MA using the average positive and negative differences (Upper Edge and Lower Edge).
- The “Untrended” histogram plots the difference (diff). Green bars occur when price is above the MA on average, and red bars when below. Two additional lines mark the upper and lower average thresholds on this histogram.
How to Use
Identify Overbought/Oversold Zones: The upper edge can serve as a dynamic overbought level, while the lower edge can suggest potential oversold conditions. When the histogram approaches or crosses these levels, it may signal price extremes relative to its average movement.
Trend Confirmation: Compare price action relative to the channel. If price and the histogram consistently remain above the MA and upper threshold, it could indicate a stronger bullish trend. If they remain below, it might signal a prolonged bearish trend.
Entry/Exit Timings:
- Entry: Traders can look for moments when price breaks back inside the channel from an extreme, anticipating a mean reversion.
- Exit: Watching how price interacts with these dynamic edges can help define stop-loss or take-profit points.
Because these thresholds adapt over time based on actual price behavior, they can be more responsive than fixed-percentage bands. However, like all indicators, it’s most effective when used in conjunction with other technical and fundamental tools.
Disclaimer
This script is provided for educational and informational purposes only. It does not guarantee any specific outcome or profit. Use it at your own discretion and risk.
Trade smart, stay safe.
Atilla Yurtseven
Moyennes mobiles
Uptrick: Arbitrage OpportunityINTRODUCTION
This script, titled Uptrick: Arbitrage Monitor, is a Pine Script™ indicator that aims to help traders quickly visualize potential arbitrage scenarios across multiple cryptocurrency exchanges. Arbitrage, in general, involves taking advantage of price differences for the same asset across different trading platforms. By comparing market prices of the same symbol on two user-selected exchanges, as well as scanning a broader list of exchanges, this script attempts to signal areas where you might want to buy on one exchange and sell on another. It includes various graphical tools, calculations, and an optional Automated Detection signal feature, allowing users to incorporate more advanced data scanning into their trading decisions. Keep in mind that transaction fees must also be considered in real-world scenarios. These fees can negate potential profits and, in some cases, result in a net loss.
PURPOSE
The primary purpose of this indicator is to show potential percentage differences between the same cryptocurrency trading pairs on two different exchanges. This difference is displayed numerically, visually as a line chart, and it is also tested against user-defined thresholds. With the threshold in place, buy and sell signals can be generated. The script allows you to quickly gauge how significant a spread is between two exchanges and whether that spread surpasses a specified threshold. This is particularly useful for arbitrage trading, where an asset is bought at a lower price on one exchange and sold at a higher price on another, capitalizing on price discrepancies. By identifying these opportunities, traders can potentially secure profits across different markets.
WHY IT WAS MADE
This script was developed to help traders who frequently look for arbitrage opportunities in the fast-paced cryptocurrency market. Cryptocurrencies sometimes experience quick price divergences across different exchanges. By having an automated approach that compares and displays prices, traders can spend less time manually tracking price discrepancies and more time focusing on actual trading strategies. The script was also made with user customization in mind, allowing you to toggle an optional Automated-based approach and choose different moving average methods to smooth out the displayed price difference.
WHAT ARBITRAGE IS
Arbitrage is the practice of buying an asset on one market (or exchange) at a lower price and simultaneously selling it on another market where the price is higher, thus profiting from the price difference. In cryptocurrency markets, these price differentials can occur across multiple exchanges due to varying liquidity, trading volume, geographic factors, or market inefficiencies. Though sometimes small, these differences can be exploited for profit when approached methodically.
EXPLANATION OF INPUTS
The script includes a variety of user inputs that help tailor the indicator to your specific needs:
1. Compared Symbol 1: This is the primary symbol you want to track (for example, BTCUSDT). Make sure it's written in all capital and make sure that it's price from that exchange is available on Tradingview.
2. Compare Exchange 1: The first exchange on which the script will request pricing data for the chosen symbol.
3. Compared to Exchange: The second exchange, used for the comparison.
4. Opportunity Threshold (%): A percentage threshold that, when exceeded by the price difference, can trigger buy or sell signals.
5. Plot Style?: Allows you to choose between plotting the raw difference line or a moving average of that difference.
6. MA Type: Select among SMA, EMA, WMA, RMA, or HMA for your moving average calculation.
7. MA Length: The lookback period for the selected moving average.
8. Plot Buy/Sell Signals?: Enables or disables the plotting of arrows signaling potential buy or sell zones based on threshold crossovers.
9. Automated Detection?: Toggles an additional multi-exchange data scan feature that calculates the highest and lowest prices for the specified symbol across a predefined list of exchanges.
CALCULATIONS
At its core, the script calculates price1 and price2 using the request.security function to fetch close prices from two selected exchanges. The difference is measured as (price1 - price2) / price2 * 100. This results in a percentage that indicates how much higher or lower price1 is relative to price2. Additionally, the script calculates a slope for this difference, which helps color the line depending on whether it is trending up or down. If you choose the moving average option, the script will replace the raw difference data with one of several moving average calculations (SMA, EMA, WMA, RMA, or HMA).
The script also includes an iterative scan of up to 15 different exchanges for Automated detection, collecting the highest and lowest price across all those exchanges. If the Automated option is enabled, it compiles a potential recommendation: buy at the cheapest exchange price and sell at the most expensive one. The difference across all exchanges (allExDiffPercent) is calculated using (highestPriceAll - lowestPriceAll) / lowestPriceAll * 100.
WHAT AUTOMATED DETECTION SIGNAL DOES
If enabled, the Automated detection feature scans all 15 supported exchanges for the specified symbol. It then identifies the exchange with the highest price and the exchange with the lowest price. The script displays a recommended action: buy on the lowest-exchange price and sell on the highest-exchange price. While called “Automated,” it is essentially a multi-exchange data query that automates a portion of research by consolidating different price points. It does not replace thorough analysis or guaranteed execution; it simply provides an overview of potential extremes.
WHAT ALL-EX-DIFF IS
The variable allExDiffPercent is used to show the overall difference between the highest price and the lowest price found among the 15 pre-chosen exchanges. This figure can be useful for anyone wanting a big-picture view of how large the arbitrage spread might be across the broader market.
SIGNALS AND HOW THEY ARE GENERATED
The script provides two main modes of signal generation:
1. Raw Difference Mode: If the user chooses “Use Normal Line,” the script compares the percentage difference of the two selected exchanges (price1 and price2) to the user-defined threshold. When the difference crosses under the positive threshold, a sell signal is displayed (red arrow). Conversely, when the difference crosses above the negative threshold, a buy signal is displayed (green arrow).
2. Moving Average Mode: If the user selects “Use Moving Average,” the script instead references the moving average values (maValue). The signals fire under similar conditions but use the average line to gauge whether the threshold has been crossed.
HOW TO USE THE INDICATOR
1. Add the script to your chart in TradingView.
2. In the script’s settings panel, configure the symbol you wish to compare (for example, BTCUSDT), choose the two exchanges you want to evaluate, and set your desired threshold.
3. Optionally, pick a moving average type and length if you prefer a smoother representation of the difference.
4. Enable or disable buy/sell signals according to your preference.
5. If you’d like to see potential extremes among a broader list of exchanges, enable Automated Detection. Keep in mind that this feature runs additional security requests, so it might slow down performance on weaker devices or if you already have many scripts running.
EXCHANGES TO USE
The script currently supports up to 15 exchanges: BYBIT, BINANCE, MEXC, BLOFIN, BITGET, OKX, KUCOIN, COINBASE, COINEX, PHEMEX, POLONIEX, GATEIO, BITSTAMP, and KRAKEN. You can choose any two of these for direct comparison, and if you enable the Automated detection, it will attempt to query them all to find extremes in real time.
VISUALS
The exchanges and current prices & differences are all plotted in the table while the colored line represents the difference in the price. The two thresholds colored red are where signals are generated. A cross below the upper threshold is a sell signal and a cross above the lower threshold is a buy signal. In the line at the bottom, purple is a negative slope and aqua is a positive slope.
LIMITATIONS AND POTENTIAL PROBLEMS
If you enable too many visual elements such as signals, additional lines, and the Automated-based scanning table, you may find that your chart becomes cluttered, or text might overlap. One workaround is to remove and reapply the indicator to refresh its display. You may also want to reduce the number of displayed table rows by disabling some features if your chart becomes too crowded. Sometimes there might be an error that the price of an asset is not available on an exchange, to fix this, go and select another exchange to compare it to, or if it happens in Automated detection, choose a different asset, ideally more widely spread.
UNIQUENESS
This indicator stands out due to its multifaceted approach: it doesn’t just look at two exchanges but optionally scans up to 15 exchanges in real time, presenting users with a much broader view of the market. The dual-mode system (raw difference vs. moving average) allows for both immediate, unfiltered signals and smoother, noise-reduced signals depending on user preference. By default, it introduces dynamic visual cues through color changes when the slope of the difference transitions upward or downward. The optional Automated detection, while not a deep learning system, adds a functional intelligence layer by collating extreme price points from multiple exchanges in one place, thereby streamlining the manual research process. This combination of features gives the script a unique edge in the TradingView ecosystem, catering equally to novices wanting a straightforward approach and to advanced users looking for an aggregated multi-exchange analysis.
CONCLUSION
Uptrick: Arbitrage Monitor is a versatile and customizable Pine Script™ indicator that highlights price differences for a specified symbol between two user-selected exchanges. Through signals, threshold-based alerts, and optional Automated detection across multiple exchanges, it aims to support traders in identifying potential arbitrage opportunities quickly and efficiently. This script makes no guarantees of profitability but can serve as a valuable tool to add to your trading toolkit. Always use caution when implementing arbitrage strategies, and be mindful of market risks, exchange fees, and latency.
ADDITIONAL DISCLOSURES
This script is provided for educational and informational purposes only. It does not constitute financial advice or a guarantee of performance. Users are encouraged to conduct thorough research and consider the inherent risks of arbitrage trading. Market conditions can change rapidly, and orders may fail to execute at desired prices, especially when large price discrepancies attract competition from other traders.
MomentumGridThis indicator provides a comprehensive view of key market dynamics using a combination of technical tools. It features:
- **VWAP (Volume Weighted Average Price):** A powerful indicator that shows the average price weighted by volume, helping traders identify trends and key price levels for the day.
- **EMA (Exponential Moving Average):** A popular trend-following indicator that highlights the smoothing of price data, making it easier to identify the direction of the market with a focus on more recent prices.
- **Supply and Demand Zones:** Visual markers of key levels where buying and selling pressure have historically been strong. These zones can help traders spot potential reversal points.
- **Volume Analysis:** Volume data displayed alongside price action to provide insights into the strength of price movements and potential market shifts.
This indicator combines these elements to help traders make more informed decisions by providing both trend-following and market structure insights. The VWAP and EMA serve as trend indicators, while the supply and demand zones highlight critical price levels, all supported by volume analysis.
BUY & SELL CIPHER (ANDY CANE)Designed to detect and highlight potential trend reversals or momentum shifts in the market. It utilizes the WaveTrend Oscillator (WT) along with a custom RSI+MFI filter to generate actionable signals. Here's a breakdown of its features and functionality.
Green dots: Represent potential buy signals.
Red dots: Represent potential sell signals.
Adaptive Crypto Trading Strategy with Martingale[Kopottaja]
Adaptive Crypto Trading Strategy with Martingale
Key Features:
Autoencoder-Based Smoothing:
Uses a simple moving average (SMA) to smooth price data and reduce market noise.
Momentum Feature Extraction:
Calculates momentum as the difference between the current price and a longer SMA, simulating CNN-like pattern recognition.
Volatility Thresholds:
Combines momentum signals with volatility levels (measured by standard deviation) to filter high-probability trades.
Martingale Position Sizing:
Automatically increases lot size after losing trades using a configurable multiplier (Martingale Multiplier), with a cap (Maximum Lot Size) to limit risk.
Resets the position size after a winning trade.
Risk Management:
Configurable take-profit and stop-loss percentages to ensure disciplined exits.
Designed for BTC/USDT:
Optimized for trading Bitcoin on short-term timeframes (e.g., 15-minute and 5-minute charts).
How It Works:
Smoothing & Feature Extraction:
Smooths price data over a Smoothing Length period to reduce noise.
Extracts momentum signals and evaluates volatility for trade decision-making.
Entry Conditions:
Long Entry: Triggered when momentum is positive, and volatility exceeds the threshold (Volatility Threshold).
Short Entry: Triggered when momentum is negative, and volatility exceeds the threshold.
Martingale Logic:
After a losing trade, the lot size is increased by the multiplier to recover losses.
Lot size resets to the base size after a profitable trade.
Dynamic Exits:
Positions are automatically closed when the price reaches the take-profit or stop-loss levels.
Customizable Parameters:
Smoothing Length: Adjusts the noise reduction for price data.
Momentum Window: Controls the length of the momentum calculation.
Volatility Threshold: Sets the minimum volatility level required for trade triggers.
Take Profit and Stop Loss: Defines the profit and risk limits for each trade.
Martingale Multiplier: Determines how much to increase the lot size after a losing trade.
Maximum Lot Size: Caps the lot size to prevent excessive risk.
Applications:
Optimized for BTC/USDT trading, particularly on volatile short-term timeframes like 15-minute and 5-minute charts.
Suitable for traders using scalping or intraday strategies looking to exploit high-probability patterns.
Combines advanced statistical techniques with adaptive risk management for robust performance.
13-week high, low, Fibonacci retracement levels, with 100SMAIndicator: 13 Week High/100 Day SMA/13 Week Low with 0.382, 0.5, and 0.618 Fibonacci Levels
Description:
This indicator for TradingView, written in Pine Script version 6, displays a table on the chart that provides a visual analysis of key price levels based on a 13-week timeframe and a 100-day Simple Moving Average (SMA).
Core Calculations:
13-Week High and Low: The indicator calculates the highest high and lowest low over the past 13 weeks using weekly data. This provides a longer-term perspective on the price range.
13-Week Fibonacci Retracement Levels: Based on the calculated 13-week high and low, the script determines the 0.382, 0.5, and 0.618 Fibonacci retracement levels. These levels are often used by traders to identify potential support and resistance areas.
100-Day SMA: The indicator calculates the 100-day Simple Moving Average of the closing price using daily data. The SMA is a widely used trend-following indicator.
Table Display:
The indicator presents the calculated values in a neatly formatted table on the chart.
The table includes the following information:
13W High: The highest price reached over the last 13 weeks.
13W Low: The lowest price reached over the last 13 weeks.
13W SMA: The calculated 100-day Simple Moving Average value.
Fibonacci Levels: The 0.382, 0.5 ("Mid"), and 0.618 Fibonacci retracement levels, labeled as "↗," "|," and "↘," respectively.
Dynamic SMA Coloring:
The 100-day SMA value in the table is dynamically colored to provide a quick visual indication of the current price's relationship to the SMA:
Teal: The current closing price is above the 100-day SMA, suggesting a potential uptrend.
Red: The current closing price is below the 100-day SMA, suggesting a potential downtrend.
Blue: The current closing price is equal to the 100-day SMA.
Hot PocketsHighlights areas where space has formed between the 9ema and last closed bar. EMA length and pocket size configurable in paramters.
Strong Buy MTFLaggard indicator to buy when price is above ema20 and volume is more than its moving average.
AVI (avi indicator)MACD is lagging indicator but this is not. this is spot indicator. For any query ask me Email Me
resistance lineمرحبا متداوين
طول الفترة للمقاومة والدعم: تحدد عدد الفترات (الأشرطة) المستخدمة لحساب أعلى وأدنى الأسعار لتحديد مستويات المقاومة والدعم.
طول المتوسط المتحرك: عدد الفترات المستخدمة لحساب المتوسط المتحرك البسيط (SMA).
حساب مستويات الدعم والمقاومة
ta.highest(high, resistance_length): يحسب أعلى سعر خلال فترة معينة لتحديد مستوى المقاومة.
ta.lowest(low, support_length): يحسب أدنى سعر خلال فترة معينة لتحديد مستوى الدعم.
isBullOrderBlock: تحديد كتل الطلب (Bull Order Block) بناءً على:
السعر الأدنى الحالي أعلى من السعر الأدنى للفترة السابقة.
سعر الإغلاق أعلى من سعر الفتح.
سعر الإغلاق الحالي أعلى من سعر الإغلاق للفترة السابقة.
isBearOrderBlock: تحديد كتل العرض (Bear Order Block) بناءً على:
السعر الأعلى الحالي أقل من السعر الأعلى للفترة السابقة.
سعر الإغلاق أقل من سعر الفتح.
سعر الإغلاق الحالي أقل من سعر الإغلاق للفترة السابقة.
الخلاصة
هذا المؤشر يجمع بين عدة أدوات تحليل فني لتقديم رؤية شاملة للسوق:
مستويات الدعم والمقاومة: تساعد في تحديد مستويات الأسعار الهامة التي قد يتفاعل معها السوق.
المتوسط المتحرك: يوفر اتجاهًا عامًا للسوق ويساعد في تحديد نقاط الدخول والخروج.
كتل الطلب والعرض: تشير إلى مناطق قوة المشترين والبائعين.
مناطق السيولة: تحدد المناطق التي قد يشهد فيها السوق تقلبات كبيرة بسبب تجمع السيولة.
الفجوات السعرية العادلة: تشير إلى الفجوات بين الأسعار التي قد تُستغل في التداول.
إشارات الدخول: توفر إشارات تلقائية للدخول في صفقات شراء أو بيع بناءً على تفاعل السعر مع كتل الطلب والعرض.
Improved Strategy with RSI Trending UpwardsThis strategy is trying to test RSI affect on price trend.
SMA Crossover SignalsThis Script is designed to identify and visually highlight trading signals based on the crossover of two simple moving averages (SMAs) and the relationship between the price and a third SMA. Here's what the script does:
Simple Moving Averages:
Calculates three SMAs:
8-period SMA (sma8): Short-term moving average.
20-period SMA (sma20): Mid-term moving average.
50-period SMA (sma50): Used to determine the overall trend.
Signal Generation:
Buy Signal: A "BUY SIGNAL" is generated and labeled when:
The 8 SMA crosses above the 20 SMA.
The closing price is above the 50 SMA (indicating an uptrend).
Sell Signal: A "SELL SIGNAL" is generated and labeled when:
The 8 SMA crosses below the 20 SMA.
The closing price is below the 50 SMA (indicating a downtrend).
Visual Elements:
SMA Plots:
The 8 SMA is plotted in blue.
The 20 SMA is plotted in red.
Labels:
"BUY SIGNAL" labels are placed above the high of the corresponding bar, in green, with reduced font size.
"SELL SIGNAL" labels are placed below the low of the corresponding bar, in red, with reduced font size.
Background Coloring:
The background is shaded green when the price is above the 50 SMA.
The background is shaded red when the price is below the 50 SMA.
Purpose:
This script is intended to help traders quickly identify buy and sell opportunities based on moving average crossovers and the trend as defined by the 50 SMA. The visual cues make it easier to see the current trend and possible entry or exit points.
This script can be applied to any chart on TradingView to analyze the market conditions and assist in making trading decisions.
Configurable Quadruple Moving Averages (QMA)This indicator adds up to 4 configurable moving average lines (EMA or SMA) to the chart.
EMA 20/8 with RSI 14 StrategyThe **EMA 20/8 with RSI 14 Strategy** is a trading strategy designed to identify entry and exit points in the market using two Exponential Moving Averages (EMAs) and the Relative Strength Index (RSI). It employs a short EMA (8 periods) and a long EMA (20 periods), capitalizing on crossover signals to indicate potential buying or selling opportunities.
The strategy generates a **long entry** when the short EMA crosses above the long EMA while the RSI is below the oversold threshold (30), suggesting a bullish trend reversal. Conversely, a **short entry** is triggered when the short EMA crosses below the long EMA and the RSI exceeds the overbought level (70), indicating a possible bearish trend reversal.
To manage risk, the strategy incorporates stop-loss and take-profit levels set as percentages of the entry price, ensuring structured exit points for both long and short trades. The script visualizes trade conditions using background colors for easy identification of entry signals directly on the chart. Additionally, it operates with a dynamic position sizing method, allowing the strategy to adjust order sizes based on a percentage of available equity, promoting better capital management during backtesting or live trading scenarios.
Volume Fusion Tracker InvesmateThis TradingView scanner script is designed to identify specific trading conditions using EMAs (Exponential Moving Averages), VWAP (Volume Weighted Average Price), and the previous day's pivot level. Here’s a detailed description of its functionality:
### **Indicators and Calculations:**
1. **EMAs:**
- Two EMAs are calculated: a 10-period EMA and a 16-period EMA.
- The area between the EMAs is color-coded:
- **Green**: When the 10 EMA is above the 16 EMA.
- **Red**: When the 10 EMA is below the 16 EMA.
2. **VWAP:**
- VWAP is calculated based on the current session's data.
3. **Pivot Level:**
- The pivot level is derived from the previous day's high, low, and close prices:
- Pivot = (High + Low + Close) / 3
### **Trading Conditions and Signals:**
1. **Green Box Signal (Bullish Signal):**
- A green box is plotted **below a candle** when:
- The candle opens below the VWAP.
- The candle closes above the VWAP.
- The candle opens below the 10 EMA.
- The candle closes above the 10 EMA.
2. **Red Box Signal (Bearish Signal):**
- A red box is plotted **above a candle** when:
- The candle opens above the VWAP.
- The candle closes below the VWAP.
- The candle opens above the 10 EMA.
- The candle closes below the 10 EMA.
- The candle is a red (bearish) candle (close < open).
### **Visualization:**
- The script visually enhances the chart with:
- Green and red areas between EMAs to indicate trends.
- Green and red box markers to highlight specific bullish or bearish candles based on the VWAP and EMA interaction.
This scanner is useful for traders looking to identify potential trend shifts and trade opportunities based on a combination of VWAP, EMAs, and pivot levels. Let me know if you'd like further refinements or additional features!
EMA + Stochastic Strategy (day trading)Setup Instructions
Exponential Moving Averages (EMA):
Use two EMAs:
50-period EMA for the overall trend.
20-period EMA for shorter-term movements.
Trend Confirmation:
If the 20 EMA is above the 50 EMA, focus on buy opportunities.
If the 20 EMA is below the 50 EMA, focus on sell opportunities.
Stochastic Oscillator:
Set Stochastic to a 14, 3, 3 period (default).
Overbought level = 80; Oversold level = 20.
Look for crossovers:
Buy: Stochastic %K crosses above %D in the oversold zone (below 20).
Sell: Stochastic %K crosses below %D in the overbought zone (above 80).
Entry and Exit Rules
Buy Signal:
The 20 EMA is above the 50 EMA, confirming an uptrend.
The Stochastic Oscillator is in the oversold zone (below 20), and %K crosses above %D.
Enter when the price retraces to and bounces off the 20 EMA in the direction of the trend.
Sell Signal:
The 20 EMA is below the 50 EMA, confirming a downtrend.
The Stochastic Oscillator is in the overbought zone (above 80), and %K crosses below %D.
Enter when the price retraces to and rejects off the 20 EMA in the direction of the trend.
Stop Loss and Take Profit
Stop Loss:
For buy trades: Place the stop loss below the recent swing low.
For sell trades: Place the stop loss above the recent swing high.
Take Profit:
Use a risk-to-reward ratio of 1:2 or higher.
Alternatively, exit the trade when Stochastic reaches the opposite extreme (80 for buys, 20 for sells).
Example
Scenario: GBP/USD on a 15-minute chart.
The 20 EMA is above the 50 EMA, indicating an uptrend.
The Stochastic Oscillator dips below 20, and %K crosses above %D.
Enter a buy trade when the price bounces off the 20 EMA.
Place a stop loss below the nearest swing low and a take profit at twice the risk.
Tips for Success
Avoid Choppy Markets: Ensure the EMAs are diverging, and there’s a clear trend.
Use Stochastic for Confirmation: Only take trades when the Stochastic Oscillator aligns with the EMA trend.
Combine with Price Action:
Watch for candlestick patterns (e.g., pin bars, engulfing candles) near the 20 EMA for additional confirmation.
Practice Discipline: Stick to your stop-loss and take-profit rules.
Enhanced EMA-ATR Signals
🚀 Dynamic EMA-ATR Signal Suite 🚀
My First Pine Script Creation!
This indicator is designed to combine the power of Exponential Moving Averages (EMA) and Average True Range (ATR) to generate dynamic buy and sell signals that adapt to your preferred trading style—whether you’re a Scalper , Swing Trader , or Long-Term Holder . It provides a clean, customizable visualization to help you identify high-probability trading opportunities with ease.
✨ Features:
- Three Trading Styles:
- Scalp : Faster EMAs and ATR settings optimized for quick trades.
- Swing : Moderately paced settings for mid-term trades.
- HOLD : Slower settings for long-term positions.
- Manual Settings Option: Override default parameters and input your own EMA periods, ATR period, and ATR multiplier.
- Volatility Insights: Highlights high-volatility zones on the chart using ATR and standard deviation.
- Signal Delays: Customize the delay between signal generations to filter out market noise and improve signal accuracy.
- Clean Visualization: Buy and sell signals are represented as green and red triangles, with toggles to show or hide EMA and ATR lines.
💡 Why I Built This:
As a trader, I found myself constantly switching between different strategies but struggling to find a single tool that could adapt dynamically to my needs. This indicator was created to solve that problem, allowing for seamless transitions between trading styles without cluttering the chart. It’s still a work in progress , and I’m actively working on adding more features and improving its accuracy. Your feedback is invaluable, and I’d love to hear your thoughts!
⚙️ How to Use This Indicator:
1. Set Your Trading Style:
- Open the indicator settings.
- Select your preferred trading style from the dropdown menu ( Scalp, Swing, or HOLD ). Each style comes with pre-configured EMA and ATR parameters tailored for that approach.
- The chosen style determines the speed of signals and the sensitivity of the volatility filter.
2. Customize Parameters (Optional):
- If you prefer your own settings, toggle the Use Manual Settings option to ON.
- Input your desired values for:
- EMA Fast Period
- EMA Slow Period
- ATR Period
- ATR Multiplier
📖 Understanding the Parameters
EMA Fast and EMA Slow:
- EMA Fast: The faster Exponential Moving Average reacts more quickly to price changes, making it ideal for identifying short-term trends.
- EMA Slow: The slower Exponential Moving Average smooths out price movements over a longer period, helping to identify the overall trend.
- When the EMA Fast crosses above the EMA Slow, it indicates a potential bullish trend (Buy Signal).
- When the EMA Fast crosses below the EMA Slow, it indicates a potential bearish trend (Sell Signal).
ATR Period and ATR Multiplier:
- ATR Period: Determines the number of bars used to calculate the Average True Range (ATR), which measures market volatility.
- A shorter period makes the ATR more responsive to recent volatility.
- A longer period smooths out short-term fluctuations.
- ATR Multiplier: Scales the ATR value to set a threshold for determining high-volatility zones.
- Higher multipliers make the indicator less sensitive to small price movements.
- Lower multipliers increase sensitivity, highlighting even minor volatility changes.
These parameters work together to create dynamic signals and provide insights into market trends and volatility. Adjusting them can tailor the indicator to suit your trading strategy!
3. Monitor Buy and Sell Signals:
- Green triangles below the price represent Buy Signals , generated when conditions align with your selected trading style.
- Red triangles above the price represent Sell Signals .
- Signals are filtered based on a customizable delay to reduce noise in volatile markets.
4. Understand Volatility Zones:
- High-volatility zones are highlighted with a shaded background (yellow by default). These areas indicate increased market activity, which may influence your trading decisions.
5. Tweak the Visualization:
- Toggle the visibility of ATR and EMA lines to suit your charting preferences.
- Adjust line colors, styles, and signal sizes for better clarity.
6. Optimize Signal Delays:
- Use the Signal Delay setting to adjust the frequency of signals. A higher delay filters out short-term fluctuations, while a lower delay generates faster signals.
🌟 Thank you for trying out the Dynamic EMA-ATR Signal Suite! 🌟
This tool is here to make your trading more efficient, flexible, and insightful. If you have feedback or feature requests, I’d love to hear them. Together, we can make this indicator even better!
IU Higher Timeframe MA Cross StrategyIU Higher Timeframe MA Cross Strategy
The IU Higher Timeframe MA Cross Strategy is a versatile trading tool designed to identify trend by utilizing two customizable moving averages (MAs) across different timeframes and types. This strategy includes detailed entry and exit rules with fully configurable inputs, offering flexibility to suit various trading styles.
Key Features:
- Two moving averages (MA1 and MA2) with customizable types, lengths, sources, and timeframes.
- Both long and short trade setups based on MA crossovers.
- Integrated risk management with adjustable stop-loss and take-profit levels based on a user-defined risk-to-reward (RTR) ratio.
- Clear visualization of MAs, entry points, stop-loss, and take-profit zones.
Inputs:
1. Risk-to-Reward Ratio (RTR):
- Defines the take-profit level in relation to the stop-loss distance. Default is 2.
2. MA1 Settings:
- Source: Select the data source for calculating MA1 (e.g., close, open, high, low). Default is close.
- Timeframe: Specify the timeframe for MA1 calculation. Default is 60 (60-minute chart).
- Length: Set the lookback period for MA1 calculation. Default is 20.
- Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.
- Smooth: Option to enable or disable smoothing of MA1 to merge gaps. Default is true.
3. MA2 Settings:
- Source: Select the data source for calculating MA2 (e.g., close, open, high, low). Default is close.
- Timeframe: Specify the timeframe for MA2 calculation. Default is 60 (60-minute chart).
- Length: Set the lookback period for MA2 calculation. Default is 50.
- Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.
- Smooth: Option to enable or disable smoothing of MA2 to merge gaps. Default is true.
Entry Rules:
- Long Entry:
- Triggered when MA1 crosses above MA2 (crossover).
- Entry is confirmed only when the bar is closed and no existing position is active.
- Short Entry:
- Triggered when MA1 crosses below MA2 (crossunder).
- Entry is confirmed only when the bar is closed and no existing position is active.
Exit Rules:
- Stop-Loss:
- For long positions: Set at the low of the bar preceding the entry.
- For short positions: Set at the high of the bar preceding the entry.
- Take-Profit:
- For long positions: Calculated as (Entry Price - Stop-Loss) * RTR + Entry Price.
- For short positions: Calculated as Entry Price - (Stop-Loss - Entry Price) * RTR.
Visualization:
- Plots MA1 and MA2 on the chart with distinct colors for easy identification.
- Highlights stop-loss and take-profit levels using shaded zones for clear visual representation.
- Displays the entry level for active positions.
This strategy provides a robust framework for traders to identify and act on trend reversals while maintaining strict risk management. The flexibility of its inputs allows for seamless customization to adapt to various market conditions and trading preferences.
Bitcoin Reversal PredictorOverview
This indicator displays two lines that, when they cross, signal a potential reversal in Bitcoin's price trend. Historically, the high or low of a bull market cycle often occurs near the moment these lines intersect. The lines consist of an Exponential Moving Average (EMA) and a logarithmic regression line fitted to all of Bitcoin's historical data.
Inspiration
The inspiration for this indicator came from the PI Cycle Top indicator, which has accurately predicted past bull market peaks. However, I believe the PI Cycle Top indicator may not be as effective in the future. In that indicator, two lines cross to mark the top, but the extent of the cross has been diminishing over time. This was especially noticeable in the 2021 cycle, where the lines barely crossed. Because of this, I created a new indicator that I think will continue to provide reliable reversal signals in the future.
How It Works
The logarithmic regression line is fitted to the Bitcoin (BTCUSD) chart using two key factors: the 'a' factor (slope) and the 'b' factor (intercept). This results in a steadily decreasing line. The EMA oscillates above and below this regression line. Each time the two lines cross, a vertical colored bar appears, indicating that Bitcoin's price momentum is likely to reverse.
Use Cases
- Price Bottoming:
Bitcoin often bottoms out when the EMA crosses below the logarithmic regression line.
- Price Topping:
In contrast, Bitcoin often peaks when the EMA crosses above the logarithmic regression line.
- Profitable Strategy:
Trading at the crossovers of these lines can be a profitable strategy, as these moments often signal significant price reversals.
5분봉 레버리지 20배 자동매매 전략 (최종)//@version=5
indicator("5분봉 레버리지 20배 자동매매 전략 (최종)", overlay=true)
// === PARAMETERS ===
// RSI
rsiPeriod = input.int(14, title="RSI Period", minval=1)
overbought = input.float(70.0, title="RSI Overbought Level", step=0.1)
oversold = input.float(30.0, title="RSI Oversold Level", step=0.1)
// 이동평균선
smaShort = input.int(50, title="Short SMA Length", minval=1)
smaLong = input.int(200, title="Long SMA Length", minval=1)
// 리스크 관리
takeProfit = input.float(3.0, title="Take Profit %", step=0.1)
stopLoss = input.float(1.0, title="Stop Loss %", step=0.1)
// === INDICATORS ===
// RSI
rsiValue = ta.rsi(close, rsiPeriod)
// 이동평균선
smaShortValue = ta.sma(close, smaShort)
smaLongValue = ta.sma(close, smaLong)
// MACD
= ta.macd(close, 12, 26, 9)
// 볼린저 밴드
= ta.bb(close, 20, 2)
// 프랙탈
bullishFractal = ta.pivotlow(low, 2, 2) // 하락 프랙탈
bearishFractal = ta.pivothigh(high, 2, 2) // 상승 프랙탈
// 엘리어트 파동 (간단한 패턴 분석)
wave1 = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine)
wave3 = (rsiValue > oversold) and (macdLine > signalLine) and (close > upperBB)
wave5 = (rsiValue > 70) and (macdLine < signalLine) and (close > smaLongValue)
waveA = (rsiValue > overbought) and (macdLine < signalLine) and (close < smaShortValue)
waveC = (rsiValue < 30) and (macdLine > signalLine) and (close < lowerBB)
// === LONG ENTRY CONDITION ===
longCondition = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine) and (close <= lowerBB) and not na(bullishFractal) and (wave1 or wave5)
// === SHORT ENTRY CONDITION ===
shortCondition = (rsiValue > overbought) and (smaShortValue < smaLongValue) and (macdLine < signalLine) and (close >= upperBB) and not na(bearishFractal) and (waveA or waveC)
// === ALERTS ===
if (longCondition)
alert("LONG_SIGNAL", alert.freq_once_per_bar)
if (shortCondition)
alert("SHORT_SIGNAL", alert.freq_once_per_bar)
// === VISUAL INDICATORS ===
// 이동평균선
plot(smaShortValue, title="SMA 50", color=color.blue)
plot(smaLongValue, title="SMA 200", color=color.red)
// 볼린저 밴드
plot(upperBB, title="Upper BB", color=color.green)
plot(lowerBB, title="Lower BB", color=color.red)
// RSI 레벨
hline(overbought, "RSI Overbought", color=color.red)
hline(oversold, "RSI Oversold", color=color.green)
plot(rsiValue, title="RSI", color=color.purple)
// 프랙탈 표시
plotshape(not na(bullishFractal), title="Bullish Fractal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="Bull")
plotshape(not na(bearishFractal), title="Bearish Fractal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="Bear")
// ENTRY POINT 표시
var float lastLongEntry = na
var float lastShortEntry = na
if (longCondition)
lastLongEntry := close
if (shortCondition)
lastShortEntry := close
plotshape(not na(lastLongEntry), title="Long Entry Point", style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(not na(lastShortEntry), title="Short Entry Point", style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")
Advanced Multi-Timeframe Trading Script9ema,200ema,21ema,vwap
volume_multiplier to determine when a candle has significantly higher volume than the 20-period SMA of volume.
Labels such candles on the chart with "High Volume" markers.
Custom Input for Volume Zones:
Toggle show_volume_zones to enable/disable high-volume markers.
Dynamic Volume Detection:
Detects areas of high buying/selling based on volume spikes.
Lokesh(bank nifty option buying) MA Crossover with RSI use it directly in bank nifty option chart for 5 minute time frame specialy for put buying