EMA Deviation Divergence Indicator (EDDI)
Overview
This indicator analyzes price deviation from EMA200 and provides trading signals by detecting divergences using MACD and RSI.
Key Features
Deviation Analysis
• Calculates price deviation from 200-day EMA
• Color-coded histogram display:
• Positive: Red shades (>1%, 2%, 3%, 4%)
• Negative: Green shades (<-1%, -2%, -3%, -4%)
Dynamic Bands
• Upper/Lower bands based on 200-bar average deviation
• Adjustable deviation settings (extraDev parameter)
Divergence Detection
• Regular and Hidden divergence
• MACD histogram-based divergence
• RSI-based divergence
Parameter Settings
Basic Configuration
• EMA Period: 200 (default)
• Additional Deviation (%): 1.0 (default)
• Pivot Period: Customizable
• Maximum Bars to Check: Customizable
RSI Settings
• Length: 6 (default)
• Overbought: 80 (default)
• Oversold: 20 (default)
Display Options
• Customizable divergence line styles and colors
• Pivot point display options
• Divergence number display options
Trading Signals
Buy Signals
• Price breaks below lower band
• RSI enters oversold zone
• MACD histogram in negative zone
• Bullish divergence occurrence
Sell Signals
• Price breaks above upper band
• RSI enters overbought zone
• MACD histogram in positive zone
• Bearish divergence occurrence
Alert Settings
• Bullish/Bearish Regular divergence
• Bullish/Bearish Hidden divergence
• Band breakout alerts
• Combined signal alerts
Usage Tips
• Monitor histogram color changes
• Check band position during divergence
• Confirm RSI and MACD signals
• Higher reliability with multiple divergence signals
Important Notes
• Avoid excessive deviation settings
• Don't trade solely on divergence
• Consider overall market conditions
• Recommended backtesting for optimal parameters
Penunjuk dan strategi
EMA Deviation Divergence Indicator (EDDI)
Overview
This indicator analyzes price deviation from EMA200 and provides trading signals by detecting divergences using MACD and RSI.
Key Features
Deviation Analysis
• Calculates price deviation from 200-day EMA
• Color-coded histogram display:
• Positive: Red shades (>1%, 2%, 3%, 4%)
• Negative: Green shades (<-1%, -2%, -3%, -4%)
Dynamic Bands
• Upper/Lower bands based on 200-bar average deviation
• Adjustable deviation settings (extraDev parameter)
Divergence Detection
• Regular and Hidden divergence
• MACD histogram-based divergence
• RSI-based divergence
Parameter Settings
Basic Configuration
• EMA Period: 200 (default)
• Additional Deviation (%): 1.0 (default)
• Pivot Period: Customizable
• Maximum Bars to Check: Customizable
RSI Settings
• Length: 6 (default)
• Overbought: 80 (default)
• Oversold: 20 (default)
Display Options
• Customizable divergence line styles and colors
• Pivot point display options
• Divergence number display options
Trading Signals
Buy Signals
• Price breaks below lower band
• RSI enters oversold zone
• MACD histogram in negative zone
• Bullish divergence occurrence
Sell Signals
• Price breaks above upper band
• RSI enters overbought zone
• MACD histogram in positive zone
• Bearish divergence occurrence
Alert Settings
• Bullish/Bearish Regular divergence
• Bullish/Bearish Hidden divergence
• Band breakout alerts
• Combined signal alerts
Usage Tips
• Monitor histogram color changes
• Check band position during divergence
• Confirm RSI and MACD signals
• Higher reliability with multiple divergence signals
Important Notes
• Avoid excessive deviation settings
• Don't trade solely on divergence
• Consider overall market conditions
• Recommended backtesting for optimal parameters
EMA Deviation Divergence Indicator (EDDI)
Overview
This indicator analyzes price deviation from EMA200 and provides trading signals by detecting divergences using MACD and RSI.
Key Features
Deviation Analysis
• Calculates price deviation from 200-day EMA
• Color-coded histogram display:
• Positive: Red shades (>1%, 2%, 3%, 4%)
• Negative: Green shades (<-1%, -2%, -3%, -4%)
Dynamic Bands
• Upper/Lower bands based on 200-bar average deviation
• Adjustable deviation settings (extraDev parameter)
Divergence Detection
• Regular and Hidden divergence
• MACD histogram-based divergence
• RSI-based divergence
Parameter Settings
Basic Configuration
• EMA Period: 200 (default)
• Additional Deviation (%): 1.0 (default)
• Pivot Period: Customizable
• Maximum Bars to Check: Customizable
RSI Settings
• Length: 6 (default)
• Overbought: 80 (default)
• Oversold: 20 (default)
Display Options
• Customizable divergence line styles and colors
• Pivot point display options
• Divergence number display options
Trading Signals
Buy Signals
• Price breaks below lower band
• RSI enters oversold zone
• MACD histogram in negative zone
• Bullish divergence occurrence
Sell Signals
• Price breaks above upper band
• RSI enters overbought zone
• MACD histogram in positive zone
• Bearish divergence occurrence
Alert Settings
• Bullish/Bearish Regular divergence
• Bullish/Bearish Hidden divergence
• Band breakout alerts
• Combined signal alerts
Usage Tips
• Monitor histogram color changes
• Check band position during divergence
• Confirm RSI and MACD signals
• Higher reliability with multiple divergence signals
Important Notes
• Avoid excessive deviation settings
• Don't trade solely on divergence
• Consider overall market conditions
• Recommended backtesting for optimal parameters
Moving Averages Indicator with SignalsThis script is designed to provide visual insights into market trends using two configurable moving averages. Here's how it works:
Moving Averages Display:
The user can enable or disable the display of two moving averages (MA1 and MA2).
Both moving averages can be customized in terms of their type (Simple or Exponential) and period.
Crossover Detection:
The script identifies when the faster moving average (MA1) crosses above or below the slower moving average (MA2).
A crossover above (bullish signal) is marked as a "BUY" event.
A crossover below (bearish signal) is marked as a "SELL" event.
Dynamic Line Coloring:
The colors of the moving averages dynamically change based on the most recent crossover direction.
A bullish crossover changes both lines to a bright color (e.g., green), while a bearish crossover switches them to a contrasting color (e.g., red).
Buy and Sell Signal Visualization:
"BUY" and "SELL" signals are plotted on the chart as shapes (upward or downward triangles).
The colors of these signals, as well as the text color of the labels, are customizable in the indicator settings.
Flexibility in Aesthetics:
The user has full control over the appearance of the moving averages, the signals, and the labels via the settings, allowing for tailored visualization that suits individual preferences.
This tool helps traders quickly spot potential trend reversals and make informed decisions based on the behavior of the moving averages.
*****VOL & RSI indicator*****거래량 인디케이터 스크립트 제작
rsi 2개 선택
평균 거래량의 배수를 선택하여 보라바 생성
추가 rsi 기준이 넘고 배수가 넘게되면 알림 설정 가능
Volatility Cycle IndicatorFeatures
1. Volatility Cycle Visualization:
• Displays normalized volatility (standard deviation divided by ATR) on the chart.
2. Squeeze and Expansion Zones:
• Highlights periods of volatility compression (squeeze) and expansion using thresholds based on ATR multipliers.
3. Volume Confirmation:
• Adds a volume filter to confirm potential breakouts, requiring volume to exceed a threshold defined as a multiple of the average volume.
4. Alerts:
• Configurable alerts for volatility squeezes, expansions, and confirmed breakout opportunities.
How to Use
1. Apply to Any Market: Use on any time frame and market (stocks, crypto, etc.).
Best settings .05 and 3
Donchian Channel Width T3 Rma Buy Sell [WhiteStone_Ibrahim]Türkçe:
The English explanation is below.
Amacı:
Bu indikatör, Donchian Kanalları ile Tilson T3 hareketli ortalamasını birleştirerek trend tanımlama, dinamik destek/direnç seviyeleri ve al/sat sinyalleri sağlar. Renkli alanlar, çizgiler ve sinyal işaretleriyle görsel ipuçları sunar.
Parametreler:
Donchian Kanal Uzunluğu (length): En yüksek ve en düşük seviyelerin hesaplanması için bakılan geçmiş dönem.
Tilson T3 Uzunluğu (t3_length): Tilson T3 hareketli ortalamasının periyodunu tanımlar.
T3 Çarpanı (t3_multiplier): T3 hesaplamasının hassasiyetini belirler.
Doldurma Opaklığı (fill_opacity): Trend alanının şeffaflık ayarı.
Hacim Koşulu:
Hacim Koşulunu Etkinleştir (volume_condition_enabled): Sinyal doğrulamasında hacmi dahil eder.
Hacim Çarpan Eşiği (volume_threshold): Sinyalin geçerli olması için gereken minimum hacim çarpanı.
Çizgi Görünümü:
Üst, Alt ve Temel Çizgi açma/kapama seçenekleri.
Çizgi Stilleri: Üst, alt ve temel çizgiler için özelleştirilebilir renkler, genişlikler ve trende göre renk değişiklikleri.
Trend Alanı Renkleri: Yükselen ve düşen trendler için ayrı renkler.
Fonksiyonel Detaylar:
Donchian Kanal Hesaplama:
Üst Sınır: length periyodundaki en yüksek fiyat.
Alt Sınır: length periyodundaki en düşük fiyat.
Trend Belirleme:
Yükseliş Trendi: Kapanış fiyatı > Temel Çizgi.
Düşüş Trendi: Kapanış fiyatı < Temel Çizgi.
Temel Çizgi:
T3 veya kullanıcı tarafından seçilen hareketli ortalamayı (SMA, HMA, SMMA, WMA, T3) kullanır.
Hacim Filtreleme:
Mevcut hacim, belirlenen ortalama eşik ile karşılaştırılarak sinyaller doğrulanır.
Sinyaller:
Al Sinyali: Kapanış fiyatı, Temel Çizgiyi yukarı doğru geçerse (hacim koşulu sağlanırsa).
Sat Sinyali: Kapanış fiyatı, Temel Çizgiyi aşağı doğru geçerse (hacim koşulu sağlanırsa).
Görselleştirme:
Trend yönüne göre alanlar ve çizgiler için dinamik renklendirme.
Al ve Sat fırsatları için sinyal işaretleri.
Bu indikatör hem trend analizi yapmak hem de giriş/çıkış noktalarını tespit etmek için kapsamlı bir araçtır.
English:
Name:
Donchian Channel Width T3 RMA Buy Sell
Purpose:
This indicator combines Donchian Channels with Tilson T3 moving average for trend identification, dynamic support/resistance levels, and buy/sell signals. It provides visual cues through color-coded areas, lines, and signal markers.
Parameters:
Donchian Channel Length (length): Sets the lookback period for calculating the highest high and lowest low.
Tilson T3 Length (t3_length): Defines the period for the Tilson T3 moving average.
T3 Multiplier (t3_multiplier): Determines the sensitivity of the T3 calculation.
Fill Opacity (fill_opacity): Adjusts the transparency of the trend area.
Volume Condition:
Enable Volume Condition (volume_condition_enabled): Includes volume in signal validation.
Volume Multiplier Threshold (volume_threshold): Sets the minimum volume multiplier for signal validity.
Line Visibility:
Upper, Lower, and Basis Line toggles.
Line Styles: Customizable colors, widths, and trend-based color changes for upper, lower, and basis lines.
Trend Area Colors: Separate colors for upward and downward trends.
Functional Details:
Donchian Channel Calculation:
Upper Boundary: Highest high over length periods.
Lower Boundary: Lowest low over length periods.
Trend Determination:
Uptrend: Close price > Basis Line.
Downtrend: Close price < Basis Line.
Basis Line:
Uses T3 or user-selected moving average (SMA, HMA, SMMA, WMA, T3).
Volume Filtering:
Signals are validated by comparing current volume against an average threshold.
Signals:
Buy Signal: Close crosses above the Basis Line (if volume condition is satisfied).
Sell Signal: Close crosses below the Basis Line (if volume condition is satisfied).
Visualization:
Dynamic coloring for trend areas and lines based on trend direction.
Signal markers for buy and sell opportunities.
CamacTrading is not innate, it can be learned, the difference between a successful person and an ordinary person is only in the desire to repeat.
Repeat Repeat Repeat (Continuous) You yourself must decide on this path to learn.
This indicator is a shortcut that can guide you to enter the market in the best situations at the most opportune times.
But in the end it is your job.
Ultimately it is your own effort that brings you closer to success.
I also have experience working with 9 price action methods.
I used the advances of science and entrusted the identification of situations to my indicator.
German Market Opening UTC+1Description:
This script highlights the opening time of the German stock market (08:00 UTC+1) on a TradingView chart. It is designed to help traders quickly identify market openings and analyze price movements during this key trading period.
Key Features:
Market Opening Identification:
Automatically detects the exact moment the German stock market opens each day (08:00 UTC+1).
Marks the opening with a vertical line spanning the entire chart and a label for visual clarity.
Custom Indicators:
A blue line is drawn from the lowest to the highest price of the opening candle, extending across the chart to visually indicate the start of the trading day.
A labeled marker reading "DE-Opening" is placed at the top of the opening candle for additional clarity.
Ease of Use:
Simple overlay indicator that works seamlessly on any timeframe chart.
Helps traders focus on key opening price action.
Use Case:
This script is particularly useful for day traders and scalpers who want to identify and analyze the price behavior around the opening of the German stock market. It provides a visual cue to help traders develop strategies or make informed decisions during this active trading period.
Note:
Ensure your chart’s timezone is set to match UTC+1 or appropriately adjust for your location to ensure accurate time alignment.
If you have questions or suggestions, feel free to provide feedback!
Milvetti_TraderPost_LibraryLibrary "Milvetti_TraderPost_Library"
This library has methods that provide practical signal transmission for traderpost.Developed By Milvetti
cancelOrders(symbol)
This method generates a signal in JSON format that cancels all orders for the specified pair. (If you want to cancel stop loss and takeprofit orders together, use the “exitOrder” method.
Parameters:
symbol (string)
exitOrders(symbol)
This method generates a signal in JSON format that close all orders for the specified pair.
Parameters:
symbol (string)
createOrder(ticker, positionType, orderType, entryPrice, signalPrice, qtyType, qty, stopLoss, stopType, stopValue, takeProfit, profitType, profitValue, timeInForce)
This function is designed to send buy or sell orders to traderpost. It can create customized orders by flexibly specifying parameters such as order type, position type, entry price, quantity calculation method, stop-loss, and take-profit. The purpose of the function is to consolidate all necessary details for opening a position into a single structure and present it as a structured JSON output. This format can be sent to trading platforms via webhooks.
Parameters:
ticker (string) : The ticker symbol of the instrument. Default value is the current chart's ticker (syminfo.ticker).
positionType (string) : Determines the type of order (e.g., "long" or "buy" for buying and "short" or "sell" for selling).
orderType (string) : Defines the order type for execution. Options: "market", "limit", "stop". Default is "market"
entryPrice (float) : The price level for entry orders. Only applicable for limit or stop orders. Default is 0 (market orders ignore this).
signalPrice (float) : Optional. Only necessary when using relative take profit or stop losses, and the broker does not support fetching quotes to perform the calculation. Default is 0
qtyType (string) : Determines how the order quantity is calculated. Options: "fixed_quantity", "dollar_amount", "percent_of_equity", "percent_of_position".
qty (float) : Quantity value. Can represent units of shares/contracts or a dollar amount, depending on qtyType.
stopLoss (bool) : Enable or disable stop-loss functionality. Set to `true` to activate.
stopType (string) : Specifies the stop-loss calculation type. Options: percent, "amount", "stopPrice", "trailPercent", "trailAmount". Default is "stopPrice"
stopValue (float) : Stop-loss value based on stopType. Can be a percentage, dollar amount, or a specific stop price. Default is "stopPrice"
takeProfit (bool) : Enable or disable take-profit functionality. Set to `true` to activate.
profitType (string) : Specifies the take-profit calculation type. Options: "percent", "amount", "limitPrice". Default is "limitPrice"
profitValue (float) : Take-profit value based on profitType. Can be a percentage, dollar amount, or a specific limit price. Default is 0
timeInForce (string) : The time in force for your order. Options: day, gtc, opg, cls, ioc and fok
Returns: Return result in Json format.
addTsl(symbol, stopType, stopValue, price)
This method adds trailing stop loss to the current position. “Price” is the trailing stop loss starting level. You can leave price blank if you want it to start immediately
Parameters:
symbol (string)
stopType (string) : Specifies the trailing stoploss calculation type. Options: "trailPercent", "trailAmount".
stopValue (float) : Stop-loss value based on stopType. Can be a percentage, dollar amount.
price (float) : The trailing stop loss starting level. You can leave price blank if you want it to start immediately. Default is current price.
Quantum RSI Signals Suite [QuantAlgo]Introducing Quantum RSI Signals Suite 🎯💫
The Quantum RSI Signals Suite by QuantAlgo is a sophisticated technical indicator that combines statistical z-score analysis with enhanced trend following to identify market trends and reversals. This premium system integrates normalized RSI readings with multi-timeframe statistical measurements to help traders and investors identify trend direction and potential reversals. By evaluating both RSI dynamics and directional trend analysis together, this tool enables users to make data-driven trading decisions with statistical validation.
🌊 Indicator Architecture
The Quantum RSI Signals Suite provides a unique framework for assessing market trends through a blend of normalized RSI and dynamic trend-weighted z-score calculations. Unlike traditional RSI indicators that use fixed overbought/oversold levels, this system incorporates statistical measurements and directional trend analysis to adjust sensitivity automatically. By combining normalized RSI values with adaptive z-score zones and trend following analysis, it evaluates both current market conditions and historical context, while the statistical parameters ensure stable yet responsive signals. This quantum approach allows users to identify trending conditions while remaining aware of statistical extremes, enhancing both trend-following and mean-reversion strategies.
📊 Technical Composition and Calculation
The Quantum RSI Signals Suite is composed of several technical components that create a dynamic trending system:
RSI Normalization: Utilizes scaled RSI values (-1 to 1) for balanced momentum representation
Z-Score Analysis: Computes statistical significance of RSI movements to determine dynamic zones
Trend Following Analysis: Analyzes historical z-score movements to identify persistent trends
Signal Amplification: Combines z-score with trend analysis for enhanced signal generation
📈 Key Indicators and Features
The Quantum RSI Signals Suite utilizes normalized RSI with customizable length and z-score parameters to adapt to different trading styles. Advanced calculations are applied to determine statistical significance levels, providing context-aware boundaries for trend identification. The trend following component evaluates historical z-score movements to validate signals and identify potential reversals.
The indicator incorporates multi-layered visualization with:
Color-coded histogram and trend representation (bullish/bearish)
Combined statistical and trend-based signals
Dynamic trend-weighted scoring system
Mean reversion signals with distinct markers (⤻/↷)
Gradient fills for better visual clarity
Programmable alerts for trend changes
⚡️ Practical Applications and Examples
✅ Add the Indicator: Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites ⭐️
👀 Monitor Signals: Watch the final score's position relative to the zero line to identify trend direction and potential reversals. The combined histogram and line visualization makes trend changes clearly visible.
🎯 Track Signals: Pay attention to the mean reversion markers that appear above and below the price chart:
→ Upward triangles (⤻) signal potential bullish reversals when final score crosses above zero
→ X crosses (↷) indicate potential bearish reversals when final score crosses below zero
🔔 Set Alerts: Configure alerts for trend changes in both bullish and bearish directions, ensuring you can act on significant technical developments promptly.
🌟 Summary and Tips
The Quantum RSI Signals Suite by QuantAlgo is a sophisticated technical tool, designed to support both trend following and mean reversion strategies across different market environments. By combining normalized RSI analysis with statistical z-score measurements and trend following analysis, it helps traders and investors identify significant trend changes while measuring statistical extremes, providing validated signals. The tool's adaptability through customizable RSI length, z-score parameters, and trend analysis settings makes it suitable for various trading timeframes and styles, allowing users to capture opportunities while maintaining awareness of statistical market conditions.
Key parameters to optimize for your trading or investing style:
RSI Length: Adjust for more or less sensitivity to price changes (default: 14)
Z-Score Length: Fine-tune the statistical window for signal stability (default: 20)
Trend Analysis Range: Balance historical context with current market conditions
Source Data: Customize price input for specialized strategies
AURUM VOLUMEN MAX-MIN DIA ANTERIORThis indicator, written in Pine Script (version 5), is designed for use on TradingView. Here's a description of its functionality:
1. **Volume Analysis:**
- It calculates the average volume over the last 50 bars using a simple moving average (`ta.sma`).
- It compares the current volume to the average volume multiplied by a threshold factor (`inputVolThreshold`), which can be set by the user (default is 1.5).
2. **Volume Table:**
- A table is displayed at the bottom-right corner of the chart showing:
- The current volume.
- The calculated average volume over the past 50 bars.
- The table uses contrasting colors (white text on a black background) for better visibility.
3. **Daily High and Low Lines:**
- It identifies the **high** and **low** prices of the previous day using `request.security`.
- Horizontal yellow lines are drawn at these levels, extending to the right of the chart. These lines represent key price levels from the prior day, useful for analyzing potential support or resistance zones.
This indicator is simple yet effective, focusing on volume and essential price levels for intraday or short-term trading analysis.
Enhanced DEMAThe Enhanced DEMA (Double Exponential Moving Average) is a sophisticated trend-following indicator designed to identify and highlight market trends with precision.
The DEMA is calculated as:
DEMA=2×EMA(Source,Length)−EMA(EMA(Source,Length),Length)
This formula reduces lag while maintaining smoothness, enabling more responsive trend detection.
The DEMA is then further refined using a custom processing method that enhances both speed and robustness. This refinement improves the indicator’s responsiveness to market movements, ensuring timely identification of trends while minimizing the impact of noise and false signals.
Complementary Use:
The Enhanced DEMA works best when used alongside other indicators, such as the Michaelis-Menten-Based Trend Detector, to add confluence and improve decision-making. While the Enhanced DEMA excels at identifying trend direction and reducing lag, the Michaelis-Menten-Based Trend Detector can provide additional context, such as the intensity or sustainability of a trend.
By combining the two:
Traders can confirm signals from the Enhanced DEMA with the trend strength insights from the Michaelis-Menten-Based Trend Detector, reducing the likelihood of acting on false signals.
The pairing allows for more comprehensive market analysis, where the DEMA detects changes in trend direction and the Michaelis-Menten method gauges the trend’s reliability or potential for continuation.
This synergy enhances overall confidence in trading decisions, making it a powerful combination for both novice and experienced traders.
BTC Dominance over Selected AltsДоминация биткоина над выбранными монетами
BTC Dominance over Selected Alts
BTC Dominance over Selected AltsДоминация биткоина над выбранными монетами
BTC Dominance over Selected Alts
Stoch 3 SerangkaiDengan memahami jenis stoch anda akan jelas macam mana untuk mengetahui adakah trend benar-benar tukar arah atau sebenarnya sambung arah semasa, ini memastikan anda tidak terperangkap dengan trend semasa.
3 Candle stick 1 hour rule It indicates Context of the Market, it applicable in 1 hour time frame only.
Weekly-SeparatorThis TradingView indicator draws vertical lines at the weekly open, providing a visual reference for the start of the trading week. These lines help traders identify key price levels and track market movements relative to the opening price of each week.
tacLibrary "tac"
Customised techninal analysis functions
sar(start, inc, max)
returns parabolic sar with lagging value
Parameters:
start (float) : float: Start
inc (float) : float: Increment
max (float) : float: Maximum
Returns: Actual sar value and lagging sar value
Supply and Demand - Order Block StrategyCore Concepts:
Fractals: The strategy uses Bill Williams fractals to identify potential turning points in the market. A fractal high is formed when a high is higher than the n bars on either side, and a fractal low is formed when a low is lower than the n bars on either side. The parameter n is an input, and allows you to configure the lookback for the fractal identification.
Order Blocks (Supply and Demand Zones): The strategy defines order blocks (supply and demand zones) as the last red (bearish) candle before an upward break (demand zone) and the last green (bullish) candle before a downward break (supply zone).
Breakouts: The strategy triggers long entries when the price breaks above a demand zone and short entries when the price breaks below a supply zone.
Box Tracking: The strategy visually represents these order blocks using boxes.
Breakout Logic:
topBreakCheckSource and bottomBreakCheckSource are used to define the break-out check based on user input.
If the price crosses over the topValue (the high of the last fractal) and topBreakBlock is not set, then a long entry is generated after creating a demandBox, based on the last red candle's low and high.
If the price crosses under the bottomValue and bottomBreakBlock is not set, then a short entry is generated after creating a supplyBox, based on the last green candle's low and high.
If a long or short is active, and a breakout of the price happens, the script will draw a new line object to indicate the breakout, where x2 of the line is set to the current bar index
Fractal Detection:
If a new up fractal is detected, the topValue and topLine variables are updated, and the old line object is deleted
If a new down fractal is detected, the bottomValue and bottomLine variables are updated, and the old line object is deleted
Box Color Update:
The script loops through all the active boxes and changes their color if the current candle close price is outside the range of the box.
Plots: Plots the up and down fractals for visualization.
Checklist Table: A table displays the status of different conditions of the script on the bottom right.
Shows status of Up Fractal, Down Fractal, Top Break, Bottom Break, Last Red Candle, Last Green Candle, Box Color Change Active using check and cross mark symbols.
How the Strategy Works:
Fractal Identification: The strategy continuously looks for fractal highs and lows.
Order Block Identification: When a new fractal is formed, the script stores the high and low of the last opposing candle.
Breakout Confirmation: When price breaks the range of a fractal, it indicates an order block breakout.
Trade Execution: When there is a valid breakout, it triggers a long or short trade, depending on whether a demand or supply zone is broken.
Box Visualization: The script visually represents the order blocks using boxes that are colored green for demand zones and red for supply zones. These boxes can be optionally re-colored if the price breaks beyond them.
Checklist Display: A checklist table at the bottom right of the chart helps the user to quickly understand the script status.
Supply and Demand - Order Block StrategyCore Concepts:
Fractals: The strategy uses Bill Williams fractals to identify potential turning points in the market. A fractal high is formed when a high is higher than the n bars on either side, and a fractal low is formed when a low is lower than the n bars on either side. The parameter n is an input, and allows you to configure the lookback for the fractal identification.
Order Blocks (Supply and Demand Zones): The strategy defines order blocks (supply and demand zones) as the last red (bearish) candle before an upward break (demand zone) and the last green (bullish) candle before a downward break (supply zone).
Breakouts: The strategy triggers long entries when the price breaks above a demand zone and short entries when the price breaks below a supply zone.
Box Tracking: The strategy visually represents these order blocks using boxes.
Breakout Logic:
topBreakCheckSource and bottomBreakCheckSource are used to define the break-out check based on user input.
If the price crosses over the topValue (the high of the last fractal) and topBreakBlock is not set, then a long entry is generated after creating a demandBox, based on the last red candle's low and high.
If the price crosses under the bottomValue and bottomBreakBlock is not set, then a short entry is generated after creating a supplyBox, based on the last green candle's low and high.
If a long or short is active, and a breakout of the price happens, the script will draw a new line object to indicate the breakout, where x2 of the line is set to the current bar index
Fractal Detection:
If a new up fractal is detected, the topValue and topLine variables are updated, and the old line object is deleted
If a new down fractal is detected, the bottomValue and bottomLine variables are updated, and the old line object is deleted
Box Color Update:
The script loops through all the active boxes and changes their color if the current candle close price is outside the range of the box.
Plots: Plots the up and down fractals for visualization.
Checklist Table: A table displays the status of different conditions of the script on the bottom right.
Shows status of Up Fractal, Down Fractal, Top Break, Bottom Break, Last Red Candle, Last Green Candle, Box Color Change Active using check and cross mark symbols.
How the Strategy Works:
Fractal Identification: The strategy continuously looks for fractal highs and lows.
Order Block Identification: When a new fractal is formed, the script stores the high and low of the last opposing candle.
Breakout Confirmation: When price breaks the range of a fractal, it indicates an order block breakout.
Trade Execution: When there is a valid breakout, it triggers a long or short trade, depending on whether a demand or supply zone is broken.
Box Visualization: The script visually represents the order blocks using boxes that are colored green for demand zones and red for supply zones. These boxes can be optionally re-colored if the price breaks beyond them.
Checklist Display: A checklist table at the bottom right of the chart helps the user to quickly understand the script status.
Relative Strength Index 30 45 55 70 levelsi use this indicator to confirm my trades , u can change the settings and use it as u perefer , the diffrence between the main rsi and this is just added 45 and 55 levels , nothing else good luck
EMA Breakout Bot BY ALGERNON STONEKey Features:
Multiple Entries: The strategy allows for multiple entries in the same direction as long as the entry conditions are met on subsequent crosses.
Trend Following: The use of EMAs makes it a trend-following strategy, aiming to capture directional moves.
Visual Clarity: The plot of the EMAs and the fill between them give a clear visual of the trend direction.
Stop-Loss Visualization: The optional pivot point markers are useful for understanding where stop-losses might be placed and to visualize how it would work with pivot lows and highs.
Adjustable Parameters: The fast_ema, slow_ema, and Bars inputs allow the user to customize the strategy for different timeframes and market conditions.
How it Trades:
The strategy calculates the fast and slow EMAs.
It waits for the price to cross the fast EMA.
If the crossover happens in a bullish alignment (fast EMA above slow EMA), a long position is opened.
If the crossover happens in a bearish alignment (fast EMA below slow EMA), a short position is opened.
Positions are closed when the price crosses back against their respective EMA.
Things to Note:
No Stop-Loss or Take-Profit: The current code only has exit conditions based on the price crossing the opposite EMA, but no explicit stop-loss or take-profit is implemented. This strategy is vulnerable if a position is entered, and the price makes a sudden move against it.
Parameter Optimization: The effectiveness of the strategy will depend heavily on the selected EMA periods. Users will need to find optimal parameter settings for the market they are trading.
Overfitting: Be careful to not over-optimize parameters on historical data as it can lead to poor performance in live trading.
Market Conditions: This strategy will likely work better in trending markets than in choppy or ranging markets.
Risk Management: Consider implementing proper risk management, such as stop-losses and position sizing, before using this strategy in live trading.
bbmulti is not used: The input bbmulti is present but is unused, and can be removed or used for other future additions.