Wskaźniki i strategie
Dblocs 4 Year BTC Cycle Guide// Indicator Description:
// The "Dblocs 4 Year BTC Cycle Guide" indicator represents a fixed recurring profit-taking cycle that begins with each Bitcoin halving event.
// Functionality Explained:
// After every halving event, there has been a fixed number of weeks following that marked the area of highest profitability for taking profit.
// • 40 Weeks (Post-Halving) = Start of the optimal profit-taking zone.
// • 80 Weeks (Post-Halving) = "Last Call" for profit-taking before the bear market.
// • 135 Weeks (Post-Halving) = Optimal area to begin Dollar-Cost Averaging.
//@version=5
indicator(title='Dblocs 4 Year BTC Cycle Guide', overlay=true)
// Function to check if it's after a halving based on months (weekly)
isAfterHalvingWeeks(y, m, d, months) =>
halvingDate = timestamp(y, m, d)
startDate = request.security(syminfo.tickerid, 'D', halvingDate + 1)
endDate = startDate + months * 30 * 24 * 60 * 60 * 300
time >= startDate and time <= endDate
// Function to check if it's after a halving based on months (monthly)
isAfterHalvingMonths(y, m, d, months) =>
halvingDate = timestamp(y, m, d)
startDate = request.security(syminfo.tickerid, 'M', halvingDate + 1)
endDate = startDate + months * 36 * 30 * 24 * 60 * 60 * 100
time >= startDate and time <= endDate
// Set the future halving date
halvingDate4th = timestamp(2024, 4, 19)
halvingdate = input(defval=true, title="Halving Date")
var WeeklyProfitSTART = input(true, title="(Weekly) Profit ")
var WeeklyProfitEND = input(true, title="(Weekly) Profit ")
var MonthlyProfitSTART = input(true, title="(Monthly) Profit ")
var MonthlyProfitEND = input(true, title="(Monthly) Profit ")
var DCAstart = input(true, title="DCA (Show)")
var ShowBackgroundColor = input(true, title="Show Background Color")
isDate(y, m, d) => timestamp(y, m, d) <= time and timestamp(y, m, d) > time
// Check if it's a daily chart
isDaily = timeframe.isdaily
// Check if it's a weekly chart
isWeekly = timeframe.isweekly
// Check if it's a monthly chart
isMonthly = timeframe.ismonthly
// Weekly Plots & Calculations
profitStartOffsetWeekly = input.int(40, title="(Weekly) START Profit ", minval=-40)
profitEndOffsetWeekly = input.int(80, title="(Weekly) END Profit ", minval=0)
DCAstartOffsetWeekly = input.int(123, title="DCA Weekly ", minval=0)
// Monthly Plots & Calculations
profitStartOffsetMonthly = input.int(10, title="(Monthly) START Profit ", minval=-100)
profitEndOffsetMonthly = input.int(18, title="(Monthly) END Profit ", minval=0)
DCAstartOffsetMonthly = input.int(27, title="DCA Monthly ", minval=0)
// Use the same input for weekly
bgcolor(ShowBackgroundColor and isWeekly and (isAfterHalvingWeeks(2012, 11, 28, 5.5) or isAfterHalvingWeeks(2016, 7, 9, 5.5) or isAfterHalvingWeeks(2020, 5, 11, 5.5) or isAfterHalvingWeeks(2024, 4, 10, 6)) ? color.rgb(0, 255, 8, 90) : na, offset=+40)
bgcolor(ShowBackgroundColor and isWeekly and (isAfterHalvingWeeks(2012, 11, 28, 5.5) or isAfterHalvingWeeks(2016, 7, 9, 5.5) or isAfterHalvingWeeks(2020, 5, 11, 5.5) or isAfterHalvingWeeks(2024, 4, 10, 6)) ? color.rgb(0, 255, 8, 85) : na, offset=+47)
bgcolor(ShowBackgroundColor and isWeekly and (isAfterHalvingWeeks(2012, 11, 28, 5.5) or isAfterHalvingWeeks(2016, 7, 9, 5.5) or isAfterHalvingWeeks(2020, 5, 11, 5.5) or isAfterHalvingWeeks(2024, 4, 10, 6)) ? color.rgb(0, 255, 8, 80) : na, offset=+54)
bgcolor(ShowBackgroundColor and isWeekly and (isAfterHalvingWeeks(2012, 11, 28, 5.5) or isAfterHalvingWeeks(2016, 7, 9, 5.5) or isAfterHalvingWeeks(2020, 5, 11, 5.5) or isAfterHalvingWeeks(2024, 4, 10, 6)) ? color.rgb(0, 255, 8, 75) : na, offset=+61)
bgcolor(ShowBackgroundColor and isWeekly and (isAfterHalvingWeeks(2012, 11, 28, 5.5) or isAfterHalvingWeeks(2016, 7, 9, 5.5) or isAfterHalvingWeeks(2020, 5, 11, 5.5) or isAfterHalvingWeeks(2024, 4, 10, 6)) ? color.rgb(0, 255, 8, 60) : na, offset=+68)
bgcolor(ShowBackgroundColor and isWeekly and (isAfterHalvingWeeks(2012, 11, 28, 3.5) or isAfterHalvingWeeks(2016, 7, 9, 3.5) or isAfterHalvingWeeks(2020, 5, 11, 3.5) or isAfterHalvingWeeks(2024, 4, 10, 4)) ? color.rgb(0, 255, 8, 55) : na, offset=+75)
// Use the same input for monthly
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 85) : na, offset=+11)
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 80) : na, offset=+12)
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 75) : na, offset=+13)
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 65) : na, offset=+14)
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 55) : na, offset=+15)
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 45) : na, offset=+16)
bgcolor(ShowBackgroundColor and isMonthly and (isAfterHalvingMonths(2012, 11, 28, 0.25) or isAfterHalvingMonths(2016, 7, 9, 0.25) or isAfterHalvingMonths(2020, 5, 11, 0.25) or isAfterHalvingMonths(2024, 4, 10, 1)) ? color.rgb(0, 255, 8, 40) : na, offset=+17)
// Define a variable for label x-coordinate
labelX = isDaily ? bar_index + 280 : bar_index + 0
// Draw Halving function for daily
drawHalving(y, m, d, align, align2) =>
line.new(bar_index, low, bar_index, high, xloc.bar_index, extend.both, color=color.rgb(255, 123, 0), style=line.style_dashed, width=3)
if (halvingdate)
label.new(bar_index, high, text='⛏ Halving ' + str.tostring(m) + '/' + str.tostring(d) + '/' + str.tostring(y) + ' 🟠', style=label.style_label_lower_right, textcolor=color.rgb(0, 0, 0), color=color.rgb(255, 136, 0, 5), textalign=text.align_center, yloc=yloc.abovebar, size=size.normal)
if isWeekly
label.new(WeeklyProfitSTART ? labelX + profitStartOffsetWeekly : na, na, text='Profit START 🟢 ⛏ 40ʷ ᵃᵍᵒ', style=label.style_label_lower_right, textcolor=color.rgb(0, 0, 0), color=color.rgb(17, 255, 0), textalign=text.align_center, yloc=yloc.abovebar, size=size.normal)
label.new(WeeklyProfitEND ? labelX + profitEndOffsetWeekly : na, na, text='Profit END 🔴 ⛏ 80ʷ ᵃᵍᵒ', style=label.style_label_lower_left, textcolor=color.rgb(0, 0, 0), color=color.rgb(255, 0, 0), textalign=text.align_center, yloc=yloc.abovebar, size=size.normal)
label.new(DCAstart ? labelX + DCAstartOffsetWeekly : na, na, text='→ DCA 🟡 ⛏ 135ʷ ᵃᵍᵒ', style=label.style_label_up, textcolor=color.rgb(0, 0, 0), color=color.rgb(226, 246, 0, 25), textalign=text.align_center, yloc=yloc.belowbar, size=size.normal)
line.new(WeeklyProfitSTART ? labelX + profitStartOffsetWeekly : na, low, WeeklyProfitSTART ? labelX + profitStartOffsetWeekly : na, high, xloc.bar_index, extend.both, color=color.rgb(0, 255, 8), style=line.style_dotted, width=2)
line.new(WeeklyProfitEND ? labelX + profitEndOffsetWeekly : na, low, WeeklyProfitEND ? labelX + profitEndOffsetWeekly : na, high, xloc.bar_index, extend.both, color=color.rgb(255, 0, 0), style=line.style_dotted, width=2)
label.new(WeeklyProfitSTART ? labelX + profitStartOffsetWeekly : na, high, style=label.style_cross, yloc=yloc.abovebar, color=color.rgb(40, 255, 0), size=size.small)
label.new(WeeklyProfitEND ? labelX + profitEndOffsetWeekly : na, high, style=label.style_cross, yloc=yloc.abovebar, color=color.rgb(40, 255, 0), size=size.small)
label.new(DCAstart ? labelX + DCAstartOffsetWeekly + 0 : na, high, style=label.style_circle, yloc=yloc.belowbar, color=color.rgb(251, 226, 0), size=size.tiny)
label.new(DCAstart ? labelX + DCAstartOffsetWeekly + 12 : na, high, style=label.style_circle, yloc=yloc.belowbar, color=color.rgb(203, 249, 0, 35), size=size.tiny)
label.new(DCAstart ? labelX + DCAstartOffsetWeekly + 24 : na, high, style=label.style_circle, yloc=yloc.belowbar, color=color.rgb(170, 255, 59, 46), size=size.tiny)
label.new(DCAstart ? labelX + DCAstartOffsetWeekly + 36 : na, high, style=label.style_circle, yloc=yloc.belowbar, color=color.rgb(115, 255, 0, 58), size=size.tiny)
label.new(DCAstart ? labelX + DCAstartOffsetWeekly + 48 : na, high, style=label.style_circle, yloc=yloc.belowbar, color=color.rgb(38, 255, 0, 58), size=size.tiny)
if isMonthly
label.new(MonthlyProfitSTART ? labelX + profitStartOffsetMonthly : na, na, text='Profit START 🟢 ⛏ 40ʷ ᵃᵍᵒ', style=label.style_label_lower_right, textcolor=color.rgb(0, 0, 0), color=color.rgb(17, 255, 0), textalign=text.align_center, yloc=yloc.abovebar, size=size.normal)
label.new(MonthlyProfitEND ? labelX + profitEndOffsetMonthly : na, na, text='Profit END 🔴 ⛏ 80ʷ ᵃᵍᵒ', style=label.style_label_lower_left, textcolor=color.rgb(0, 0, 0), color=color.rgb(255, 0, 0), textalign=text.align_center, yloc=yloc.abovebar, size=size.normal)
... (35 lines left)
Highlight Nearly Doji Candles Highlight Nearly Doji Candles
Drawing a channel from two crosses and the high/low often results in the channel lines and their midline acting as reliable resistance and support levels."
十字線2つと高値/安値からチャンネルを引くと、チャンネルラインとその中央線はレジスタンス/サポートラインになることが多い
Tandem EMA TrendsThis indicator helps to identify trends using 2 (tandem) EMAs: a fast EMA and a slow EMA. Set the lengths of the EMAs in the inputs (fast EMA should be a smaller number than the slow EMA).
The trend is bullish if the current value of the fast EMA > current value of the slow EMA AND the current value of the fast EMA > the prior bar's value of the fast EMA.
The trend is bearish if the current value of the fast EMA < current value of the slow EMA AND the current value of the fast EMA < the prior bar's value of the fast EMA.
The fast EMA is countertrend to the slow EMA if either of the following 2 conditions exist:
The current value of the fast EMA > current value of the slow EMA AND the current value of the fast EMA < the prior bar's value of the fast EMA (bullish countertrend).
-OR-
The current value of the fast EMA < current value of the slow EMA AND the current value of the fast EMA > the prior bar's value of the fast EMA (bearish countertrend).
Use this script to set custom alerts based off of the current trend like sending webhooks when specific conditions exist.
Customize the colors of the plots.
Average Candle Size (5min, 14 days)It shows Average size of candle. Keep half of it as a box size of renko chart.
NWELux Algo Nadaraya Watson Envelope, simply modified to add alert for whenever it prints a label. All credit for Pine Script and indicator to Lux Algo.
Dev-Automatic Trendline & Pattern DetectorIndicator Name: Automatic Trendline & Pattern Detector
Purpose: This indicator is designed to automatically identify key price action patterns and draw relevant trendlines on your chart. It simplifies technical analysis by providing visual cues for common patterns like higher highs (HH), higher lows (HL), triangles, bullish flags, and bearish flags.
Features:
Trendline Detection:
Automatically detects and draws trendlines connecting key price points like higher highs, higher lows, and other patterns.
Higher Highs (HH) & Higher Lows (HL):
Marks higher highs and higher lows on the chart with labeled points.
Draws a connecting trendline to visualize the overall trend.
Triangle Patterns:
Identifies potential triangle patterns by finding the highest high and lowest low within a specified range.
Draws trendlines to connect these levels, helping identify breakout opportunities.
Bullish and Bearish Flags:
Detects flag patterns within price movements.
Automatically draws parallel trendlines to visualize consolidation zones.
Customization Options:
Allows users to enable or disable specific features, such as higher highs/lows, triangles, or flags.
Adjustable length parameter to control the sensitivity of pattern detection.
Benefits:
Saves time for traders by automating the process of identifying patterns and drawing trendlines.
Enhances chart analysis by providing a clear visual representation of trends and consolidation zones.
Helps traders spot potential breakout opportunities and key levels of support and resistance.
How to Use:
Add the indicator to your chart in TradingView.
Customize the settings to suit your trading strategy:
Adjust the length parameter for pattern sensitivity.
Toggle on/off specific patterns like HH/HL, triangles, or flags.
Observe the automatically drawn trendlines and use them as part of your technical analysis.
Combine this indicator with other tools or strategies for enhanced decision-making.
Note: While this indicator provides automated insights, it should be used in conjunction with proper risk management and other analysis techniques.
Trend with ADX/EMA - Buy & Sell SignalsThis script is designed to help traders make buy and sell decisions based on trend analysis using two key methods: ADX (Average Directional Index) and EMA (Exponential Moving Averages). Here's a breakdown in simple terms:
What Does It Do?
Identifies the Trend's Strength and Direction:
Uses the ADX indicator to determine how strong the trend is.
Compares two lines (DI+ and DI−) to identify whether the trend is moving up or down.
Generates Buy and Sell Signals:
Uses two EMAs (a fast one and a slow one) to check when the price crosses key levels, signaling a possible buy or sell opportunity.
Plots visual indicators (arrows and labels) for easy interpretation.
Color-Codes the Chart:
Highlights the background in green when the trend is bullish (uptrend).
Highlights the background in red when the trend is bearish (downtrend).
Alerts the User:
Creates alerts when specific conditions for buying or selling are met.
Key Components:
1. ADX (Trend Strength & Direction)
What is ADX?
ADX measures how strong the trend is (not the direction). Higher ADX means a stronger trend.
It also calculates two lines:
DI+: Measures upward movement strength.
DI−: Measures downward movement strength.
How It Works in the Script:
If DI+ is greater than DI−, it’s a bullish trend (upward).
If DI− is greater than DI+, it’s a bearish trend (downward).
The background turns green for an uptrend and red for a downtrend.
2. EMA (Buy and Sell Decisions)
What is EMA?
EMA is a moving average that gives more weight to recent prices. It’s used to smooth out price fluctuations.
How It Works in the Script:
The script calculates two EMAs:
Fast EMA (short-term average): Reacts quickly to price changes.
Slow EMA (long-term average): Reacts slower and shows overall trends.
When the Fast EMA crosses above the Slow EMA, it’s a signal to Buy.
When the Fast EMA crosses below the Slow EMA, it’s a signal to Sell.
These signals are marked on the chart as "Buy" and "Sell" labels.
3. Buy and Sell Alerts
The script sets up alerts for the user:
Buy Alert: When a crossover indicates a bullish signal.
Sell Alert: When a crossunder indicates a bearish signal.
Visual Elements on the Chart:
Background Colors:
Green: When the DI+ line indicates an uptrend.
Red: When the DI− line indicates a downtrend.
EMA Lines:
Green Line: Fast EMA.
Red Line: Slow EMA.
Buy/Sell Labels:
"Buy" label: Shown when the Fast EMA crosses above the Slow EMA.
"Sell" label: Shown when the Fast EMA crosses below the Slow EMA.
Why Use This Script?
Trend Analysis: Helps you quickly identify the strength and direction of the market trend.
Buy/Sell Signals: Gives clear signals to enter or exit trades based on trend and EMA crossovers.
Custom Alerts: Ensures you never miss a trading opportunity by notifying you when conditions are met.
Visual Simplicity: Makes it easy to interpret trading signals with color-coded backgrounds and labeled arrows.
Señales EUR/USD Este script está diseñado para generar señales de compra (⬆️) y venta (⬇️) en el par EUR/USD
, combinando múltiples indicadores técnicos para asegurar alta precisión.
NWSAll credit to Lux Algo for this indicator. This is the Nadaraya Watson Smoother indicator by Lux Algo that has simply been modified to set an alert whenever the smoother line changes color.
Timeframe-Based Dynamic MA [odnac]
This code is a Timeframe-Based Dynamic MA indicator, written in Pine Script, that dynamically calculates and displays the Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Moving Average (VWMA) based on a 24-hour period, according to the selected timeframe. It automatically adjusts the length of the moving averages for each timeframe, showing the appropriate value optimized for that specific timeframe.
Code Explanation:
Settings:
inputLength: A user input that allows setting the base time (24 hours by default). This value determines the reference for calculating the length of the moving averages according to the timeframe.
transp: A setting for the transparency of the moving average lines. It can accept values from 0 to 100 (0 is opaque, 100 is fully transparent).
Timeframe-Based Moving Average Calculation:
The length variable is dynamically calculated based on the current chart's timeframe.
For shorter timeframes like 1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, and 45-minute, the length is calculated by multiplying 60 / selected timeframe to obtain the moving average length based on a 24-hour period.
For longer timeframes like 1 hour, 4 hours, and 1 day, fixed values are used to set the moving average length.
Moving Average Calculation:
sma, ema, vwma: These are the Simple Moving Average, Exponential Moving Average, and Volume Weighted Moving Average calculated based on the length.
else_sma, else_ema, else_vwma: These represent the moving averages fetched from the 1-hour chart. For timeframes that are not calculated directly, the values are taken from the 1-hour chart.
Displaying the Moving Averages:
The moving averages are plotted according to the length calculated for the current timeframe.
If the length for the current timeframe is valid, the corresponding SMA, EMA, and VWMA values are displayed. Otherwise, the values fetched from the 1-hour chart are used.
The moving averages are displayed with the transparency (transp) value set by the user, controlling their opacity on the chart.
How to Use:
Base Time: The user sets a base time. For example, setting inputLength to 24 will calculate the moving average length based on a 24-hour period, which will be dynamically adjusted and displayed according to the selected timeframe.
Transparency Setting: The transparency of the moving average lines can be adjusted using the transp value.
Supported Timeframes:
For shorter timeframes (1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, 45-minute), the moving average lengths are dynamically calculated and displayed.
For longer timeframes (1 hour, 4 hours, 1 day), fixed length values are used.
This indicator allows you to dynamically calculate daily moving averages across different timeframes and visually check which moving average is the most appropriate for the selected timeframe.
CRTShort Description for Your EA
🚀Multi-Timeframe Swing Detector EA
This expert advisor scans multiple timeframes for bullish and bearish swing patterns based on three-candle formations. It provides real-time alerts and push notifications when a valid swing low or swing high is detected.
✅ Customizable timeframes (M1 to MN1)
✅ Instant alerts & push notifications - Available on MT5 Code
✅ No repainting – works on confirmed candles
✅ Optimized for precision & multi-timeframe analysis
Perfect for traders who want to identify swing points across different timeframes and receive alerts instantly. 📈🔥
Dynamic Time Zone EMA with Candle Trend AnalysisCandleTrend TZ is a powerful analytical tool that integrates time zones, exponential moving averages (EMA), and custom candle coloring based on trend direction. This indicator is ideal for traders looking to analyze market trends within specific time sessions effectively.
Key Features:
Time Zones:
Divides the chart into four distinct time intervals, each highlighted with a unique background color.
Fully customizable start and end times for each interval, allowing for adaptation to various trading schedules.
Exponential Moving Averages (EMA):
Displays three EMAs with user-defined lengths:
EMA 200 (blue) for long-term trends.
EMA 50 (green) for medium-term trends.
EMA 20 (red) for short-term trends.
Helps identify trend direction and strength.
Custom Candle Coloring:
Utilizes smoothed Heiken Ashi and Triple EMA (TEMA) calculations for enhanced candle coloring:
Green candles indicate an upward trend.
Red candles signal a downward trend.
Filters out market noise, providing a clear visual representation of market dynamics.
Customization Options:
Time Zones:
Adjustable start and end times for each of the four sessions:
Input hour and minute for start and end times (e.g., Interval 1 Start/End Hour/Minute).
Background colors are pre-defined but can be modified in the code.
EMAs:
User-defined lengths for each EMA:
EMA 200 Length (default: 200)
EMA 50 Length (default: 50)
EMA 20 Length (default: 20)
TEMA Settings:
Parameters for trend smoothing:
TEMA Length (default: 55)
EMA Length (default: 60)
Use Cases:
Intraday Session Analysis:
Use time zones to differentiate between morning, afternoon, and evening market activity.
The background colors make it easy to track session-specific trends.
Trend Trading:
Analyze EMA crossings and their slopes to confirm market direction.
Green candles indicate buying opportunities, while red candles highlight selling signals.
Noise Reduction:
TEMA smoothing removes market noise, allowing you to focus on the primary market trend.
Adaptation to Custom Strategies:
By adjusting time intervals, you can tailor the indicator to specific trading styles or market conditions.
Benefits:
Versatility for both trending and sideways markets.
Intuitive and user-friendly setup.
Suitable for traders of all skill levels, from beginners to professionals.
CandleTrend TZ is an indispensable tool for understanding market dynamics, enhancing your trading precision, and making well-informed decisions. 🚀
Feigenbaum Lyapunov POWERParamètres utilisateur :
Longueur des Prix (length_price): Période pour la normalisation des prix.
Longueur du Volume (length_volume): Période pour la normalisation des volumes.
Constante de Feigenbaum (feigenbaum_constant): Valeur utilisée pour les calculs logistiques.
Seuil Lyapunov (lyapunov_threshold): Seuil pour déterminer les phases imprévisibles.
Niveau de Fractalité (fractality_level): Nombre de niveaux pour l'analyse fractale.
Niveau de Profondeur du Carnet d'Ordres (depth_level): Période pour calculer la profondeur approximative.
Période RSI (rsi_length): Période pour calculer le RSI.
Période Stochastic RSI (stoch_rsi_length): Période pour calculer le Stochastic RSI.
Période K pour Stochastic RSI (stoch_rsi_k_period): Période pour la moyenne mobile K du Stochastic RSI.
Période D pour Stochastic RSI (stoch_rsi_d_period): Période pour la moyenne mobile D du Stochastic RSI.
Fonctions et calculs principaux :
Normalisation des prix et volumes : Les prix et volumes sont normalisés pour la période spécifiée.
Calcul logistique (Feigenbaum) : Utilisation de la constante de Feigenbaum pour modéliser les prix et volumes chaotiques.
Coefficients de Lyapunov : Mesure des différences entre les prix et volumes chaotiques actuels et précédents.
Analyse fractale : Moyenne des écarts pour plusieurs niveaux de fractalité.
Profondeur du carnet d'ordres : Approximation basée sur l'écart entre les prix d'achat et de vente.
Identification des phases : Détection des phases imprévisibles, de repos et prévisibles basées sur les coefficients de Lyapunov et la fractalité.
Signaux d'achat et de vente : Basés sur les moyennes mobiles du volume et les croisements du Stochastic RSI.
Affichage :
Couleurs des phases : Utilisation de couleurs pour représenter les différentes phases du marché.
Moyenne mobile du volume : Utilisée pour détecter les signaux d'achat et de vente.
Signaux Stochastic RSI : Basés sur les croisements du Stochastic RSI.
Visualisation des coefficients : Affichage des coefficients de Lyapunov, fractalité et profondeur.
Ce script fournit une analyse complexe des phases de marché en utilisant des concepts avancés tels que la théorie du chaos (Feigenbaum) et la fractalité. Il aide à identifier les moments opportuns pour acheter ou vendre en fonction des signaux générés par les indicateurs calculés.
4H Multi-Timeframe StrategyKey Fixes:
Removed Dynamic Array Access:
Replaced array iteration with explicit timeframe checks
Directly specified each timeframe ("5", "15", etc.) as string literals
Simplified Logic:
Combined trend and momentum checks into single expressions
Eliminated unnecessary function calls
Maintained Original Features:
Multi-timeframe confirmation (5m,15m,30m,1h,2h)
Double confirmation system (EMA + RSI)
Visual buy/sell signals
Take profit levels (1.5%)
Alert system
This version works identically to the original strategy but complies with Pine Script's
My strategy 1 optimization optimized strategy free to use thanks you learning curve, let me know what you think. thank you
TTM FCFF Yield %An indicator that shows the Free Cash Flow yield daily for the underlying ticker. Useful for when you need to screen for ideas, or the news just broke out and you want to make a calculated purchase - rather than buying at whatever price it is at the moment.
Green line tracks daily Free Cash Flow yield to Enterprise Value.
Where Free Cash Flow is defined as = Cashflow from Operations + Depreciation and Amortization (from the income statement) - Capital Expenditure (fixed assets) - Change in Working Capital
And where Enterprise Value is defined as = Market Capitalization + Net Debt
Red line tracks Free Cash Flow of financial year and what FCFF yield does that equate to if the stock current trades at the price right now.
Reminder: When working with international equities. Be mindful of whether they report FQ or FH. For example, France only reports FH, so it's better to use TTM FHFree Cash Flow results. If you didn't toggle FH in the indicator settings, it will automatically set as FQ and it will not show anything.
GLHF
London Killzone (1:45 AM to 6:00 AM Ny ) For Tue, Wed, ThuThis Indicator Marks the area out from 1:45-6am NY Time ( London Killzone)
Price Level Break & Candle Pattern DetectorPrice Level Break & Candle Pattern Detector
A powerful and customizable indicator that combines price level breakout detection with candlestick pattern analysis to generate precise trading signals.
Key Features
Monitors user-defined price levels for breakouts
Identifies bullish and bearish candle patterns
Generates real-time alerts when both conditions are met
Customizable alert settings for improved trade management
How It Works
The indicator continuously monitors price action around specified price levels. When price breaks through these levels AND forms either a bullish or bearish candle pattern (based on your settings), it triggers an alert. This dual-confirmation approach helps reduce false signals and provides more reliable trading opportunities.
Use Cases
Support/Resistance breakout trading
Key price level monitoring
Trend reversal identification
Breakout confirmation
Risk management tool
Benefits
Reduces false breakout signals through pattern confirmation
Saves time by automating price level monitoring
Helps identify higher-probability trading setups
Customizable to fit various trading strategies
Perfect for both day trading and swing trading
Alert Types
Price level break alerts
Candlestick pattern formation alerts
Combined confirmation alerts
Suggested Settings
Set price levels at major support/resistance zones
Adjust candle pattern sensitivity based on timeframe
Use with multiple timeframes for confirmation
Combine with volume analysis for better accuracy
Highs, Lows, BOS, and Reversals//@version=5
indicator("Highs, Lows, BOS, and Reversals", overlay=true)
// User Input
length = input.int(10, minval=1, title="Length")
bosThreshold = input.float(0.5, title="BOS Threshold (%)") / 100 // BOS threshold percentage
// Highs and Lows Calculation
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
// Plotting Highs and Lows as Lines
plot(highestHigh, color=color.red, linewidth=2, title="Highest High")
plot(lowestLow, color=color.green, linewidth=2, title="Lowest Low")
// Detecting Break of Structure (BOS)
var float previousHigh = na
var float previousLow = na
var bool bosUp = false
var bool bosDown = false
if (not na(previousHigh) and high > previousHigh)
bosUp := true
if (not na(previousLow) and low < previousLow)
bosDown := true
// BOS Conditions and Plotting
bosUpCondition = bosUp and high > previousHigh
bosDownCondition = bosDown and low < previousLow
plotshape(bosUpCondition, location=location.abovebar, color=color.blue, style=shape.labelup, title="BOS Up")
plotshape(bosDownCondition, location=location.belowbar, color=color.orange, style=shape.labeldown, title="BOS Down")
// Reversal Condition (Potential Reversal after BOS)
reversalUp = bosUpCondition and close > highestHigh
reversalDown = bosDownCondition and close < lowestLow
plotshape(reversalUp, location=location.abovebar, color=color.green, style=shape.labelup, title="Reversal Up")
plotshape(reversalDown, location=location.belowbar, color=color.red, style=shape.labeldown, title="Reversal Down")
// Store High and Low for Next Bar
previousHigh := highestHigh
previousLow := lowestLow
// Optional: Plot lines to visualize the highs and lows (for better clarity)
plotlineHigh = line.new(bar_index , highestHigh, bar_index, highestHigh, color=color.red, width=1, style=line.style_dotted)
plotlineLow = line.new(bar_index , lowestLow, bar_index, lowestLow, color=color.green, width=1, style=line.style_dotted)