Cris0x7 - two consecutive engulfingCris0x7 - two consecutive engulfing
Explanation of Changes:
bullish_engulfing_signal and bearish_engulfing_signal now check for two consecutive engulfing pairs, meaning they look back over four candles.
The script identifies a "Buy" label (for bullish) and a "Sell" label (for bearish) when both conditions for two engulfing pairs are met.
This should work to detect and label four-candle patterns on the chart. Let me know if you need additional adjustments!
Indikatoren und Strategien
ATR TrailStop w/Fib Targets MTFPorted this indicator from Tradovate.
ATR and Fib values are adjustable.
Teo Volatility Signal Systemdump ve pump sinyallerini girdi ayarlarını değiştirebileceğiniz şekilde güncelledim gayet kullanışlı oldu diye düşünüyorum
lluoV_Stochastic RSI with Long/Short Signals 1MStochastic RSI with Long/Short Signals 1M позволяет определить зоны перекупленности или перепродонности на графике определея приемлемые точки входа
Teo Volatility Signal System Xtream 1mevcut sistem üzerinde mfı da ekleyerek sistemin güncellenmiş hali
Velocity and AccelerationThe area of acceleration has been added.
In addition to velocity and acceleration, the area of acceleration provides another means to gauge divergence. In many cases, extreme volatilities may produce high readings of velocity and acceleration, thus making finding divergence difficult. The area of acceleration takes accumlated reading and is less susceptible to short term extremes.
The Pattern-Synced Moving Average System (PSMA)Description:
The Pattern-Synced Moving Average System (PSMA) is a comprehensive trading indicator that combines the reliability of moving averages with automated candlestick pattern detection, real-time alerts, and dynamic risk management to enhance both trend-following and reversal strategies. The PSMA system integrates key elements of trend analysis and pattern recognition to provide users with configurable entry, stop-loss, and take-profit levels. It is designed for all levels of traders who seek to trade in alignment with market context, using signals from trend direction and established candlestick patterns.
Key Functional Components:
Multi-Type Moving Average:
Provides flexibility with multiple moving average options: SMA, EMA, WMA, and SMMA.
The selected moving average helps users determine market trend direction, with price positions relative to the MA acting as a trend confirmation.
Automatic Candlestick Pattern Detection:
Identifies pivotal patterns, including bullish/bearish engulfing and reversal signals.
Helps traders spot potential market turning points and adjust their strategies accordingly.
Configurable Entry, Stop-Loss, and Take-Profit:
Risk management is customizable through risk/reward ratios and risk tolerance settings.
Entry, stop-loss, and take-profit levels are automatically plotted when patterns appear, facilitating rapid trade decision-making with predefined exit points.
Higher Timeframe Trend Confirmation:
Optional feature to verify trend alignment on a higher timeframe (e.g., checking a daily trend on an intraday chart).
This added filter improves signal reliability by focusing on patterns aligned with the broader market trend.
Real-Time Alerts:
Alerts can be set for key pattern detections, allowing traders to respond promptly without constant chart monitoring.
How to Use PSMA:
Set Moving Average Preferences:
Choose the preferred moving average type and length based on your trading strategy. The MA acts as a foundational trend indicator, with price positions indicating potential uptrends (price above MA) or downtrends (price below MA).
Adjust Risk Management Settings:
Set a Risk/Reward Ratio for defining take-profit levels relative to the entry and stop-loss levels.
Modify the Risk Tolerance Percentage to adjust stop-loss placement, adding flexibility in managing trades based on market volatility.
Activate Higher Timeframe Confirmation (Optional):
Enable higher timeframe trend confirmation to filter out counter-trend trades, ensuring that detected patterns are in sync with the larger market trend.
Review Alerts and Trade Levels:
With PSMA’s real-time alerts, traders receive notifications for detected patterns without having to continuously monitor charts.
Visualized entry, stop-loss, and take-profit lines simplify trade execution by highlighting levels directly on the chart.
Execute Based on Entry and Exit Levels:
The entry line suggests the potential entry price once a bullish or bearish pattern is detected.
The stop-loss line is based on your set risk tolerance, establishing a predefined risk level.
The take-profit line is calculated according to your preferred risk/reward ratio, providing a clear profit target.
Example Strategy:
Ensure price is above or below the selected moving average to confirm trend direction.
Await a PSMA signal for a bullish or bearish pattern.
Review the plotted entry, stop-loss, and take-profit lines, and enter the trade if the setup aligns with your risk/reward criteria.
Activate alerts for continuous monitoring, allowing PSMA to notify you of emerging trade opportunities.
Release Notes:
Line Color and Style Customization: Customizable colors and line styles for entry, stop-loss, and take-profit levels.
Dynamic Trade Tracking: Tracks trade statistics, including total trades, win rate, and average P/L, displayed in the data window for comprehensive trade performance analysis.
Summary: The PSMA indicator is a powerful, user-friendly tool that combines trend detection, pattern recognition, and risk management into a cohesive system for improved trade decision-making. Suitable for stocks, forex, and futures, PSMA offers a unique blend of adaptability and precision, making it valuable for day traders and long-term investors alike. Enjoy this tool as it enhances your ability to execute timely, well-informed trades on TradingView.
Teo Volatility Signal System Xtream & RSI MFI WPR Combobir kaç indikatörün daha eklenmesi ile sinyallerin sık gelse de doğru yerde girilen işlemlerdeki başarı oranı yüksek görünüyor
Pine Execution MapPine Script Execution Map
Overview:
This is an educational script for Pine Script developers. The script includes data structure, functions/methods, and process to capture and print Pine Script execution map of functions called while pine script execution.
Map of execution is produced for last/latest candle execution.
The script also has example code to call execution map methods and generate Pine Execution map.
Use cases:
Pine script developers can get view of how the functions are called
This can also be used while debugging the code and know which functions are called vs what developer expect code to do
One can use this while using any of the open source published script and understand how public script is organized and how functions of the script are called.
Code components:
User defined type
type EMAP
string group
string sub_group
int level
array emap = array.new()
method called internally by other methods to generate level of function being executed
method id(string tag) =>
if(str.startswith(tag, "MAIN"))
exe_level.set(0, 0)
else if(str.startswith(tag, "END"))
exe_level.set(0, exe_level.get(0) - 1)
else
exe_level.set(0, exe_level.get(0) + 1)
exe_level.get(0)
Method called from main/global scope to record execution of main scope code. There should be only one call to this method at the start of global scope.
method main(string tag) =>
this = EMAP.new()
this.group := "MAIN"
this.sub_group := tag
this.level := "MAIN".id()
emap.push(this)
Method called from main/global scope to record end of execution of main scope code. There should be only one call to this method at the end of global scope.
method end_main(string tag) =>
this = EMAP.new()
this.group := "END_MAIN"
this.sub_group := tag
this.level := 0
emap.push(this)
Method called from start of each function to record execution of function code
method call(string tag) =>
this = EMAP.new()
this.group := "SUB"
this.sub_group := tag
this.level := "SUB".id()
emap.push(this)
Method called from end of each function to record end of execution of function code
method end_call(string tag) =>
this = EMAP.new()
this.group := "END_SUB"
this.sub_group := tag
this.level := "END_SUB".id()
emap.push(this)
Pine code which generates execution map and show it as a label tooltip.
if(barstate.islast)
for rec in emap
if(not str.startswith(rec.group, "END"))
lvl_tab = str.repeat("", rec.level+1, "\t")
txt = str.format("=> {0} {1}> {2}", lvl_tab, rec.level, rec.sub_group)
debug.log(txt)
debug.lastr()
Snapshot 1:
This is the output of the script and can be viewed by hovering mouse pointer over the blue color diamond shaped label
Snapshot 2:
How to read the Pine execution map
Smart Ribbon V2 [FXSMARTLAB]The Smart Ribbon V2 indicator is designed to analyze market trends and momentum by plotting a series of moving averages with varying periods, all within a single overlay on the price chart. This approach creates a "ribbon" effect, enabling traders to visualize trend strength, reversals, and potential entry or exit points. The indicator provides flexibility through different moving average types, including some advanced ones like QUEMA (Quadruple Exponential Moving Average) and QuintEMA (Quintuple Exponential Moving Average). Each moving average is color-coded to indicate trend direction and momentum, making it visually intuitive and effective for quick decision-making in trend-following strategies.
The Smart Ribbon V2 helps traders:
Identify Trend Direction
Gauge Momentum
Spot Trend Reversals
Determine Entry and Exit Points
Detailed Explanation of QUEMA and QuintEMA
The QUEMA (Quadruple Exponential Moving Average) and QuintEMA (Quintuple Exponential Moving Average) are advanced smoothing techniques that build on traditional exponential moving averages (EMAs). Both offer higher sensitivity to recent price changes than standard EMAs by adding layers of exponential smoothing. These moving averages are particularly useful for traders looking for a more responsive indicator without the noise often present in shorter-period EMAs.
QUEMA (Quadruple Exponential Moving Average)
The QUEMA is calculated by applying the EMA calculation four times in succession. This method smooths out fluctuations in the price data, creating a balance between sensitivity to recent data and resistance to short-term noise.
The mathematical formula for QUEMA is:
QUEMA=4×EMA1−6×EMA2+4×EMA3−EMA4
This formula results in a moving average that is smoother than a triple EMA (TEMA) and provides a better response to price trends without excessive lag.
QuintEMA (Quintuple Exponential Moving Average)
The QuintEMA goes one step further by applying the EMA calculation five times in a row. This level of exponential smoothing is useful for identifying strong, persistent trends while remaining adaptive to recent price shifts.
The QuintEMA is calculated as :
QuintEMA=5×EMA1−10×EMA2+10×EMA3−5×EMA4+EMA5
The additional layer in QuintEMA further reduces the impact of short-term price fluctuations, making it especially useful in strongly trending markets.
The Smart Ribbon V2 combines the benefits of several moving average types to deliver a versatile tool for analyzing market trends, momentum, and potential reversals. With QUEMA and QuintEMA as advanced options, it allows traders to tailor the indicator to match their preferred trading style, whether it involves higher responsiveness or smoother trend visualization. This adaptability makes Smart Ribbon V2 a powerful choice for both novice and experienced traders seeking to improve their trend-following and market analysis strategies.
This is my first published indicator! If you like it, leave a comment, like, subscribe, or show your support. Based on your feedback and appreciation, I'll be happy to release more of my personal indicators in the future.
Hodrick-Prescott Filter (YavuzAkbay)The Hodrick-Prescott (HP) Filter Trend indicator offers a condensed version of the traditional HP filter, which is frequently employed in time series analysis related to the economy and finance. To assist traders and analysts in determining the underlying long-term trend of an asset, this indicator smoothes the price series in order to extract a trend component.
How It Operates: A time series is divided into its trend and cycle using the HP filter. By eliminating short-term noise and emphasising the market's direction with a smoother line, this approach concentrates solely on the trend component. The trend's degree of adherence to price data can be adjusted by varying the smoothness parameter (lambda); a smoother line is produced by higher values.
Examples of Use:
Trend Identification: By separating the long-term trend and making it simpler to disregard short-term noise, the HP Filter Trend helps identify the dominant market direction.
Trading Signal Confirmation: To keep traders in line with the general trend, the HP trend line can be used to validate other trend-following signals.
Important Notes:
The choice of lambda is essential. Recommended lambda levels are 100, 1600 and 14,400.
This indicator will be much more useful if it is used together with another indicator of mine, HP Filter Cycle Component.
Trading is risky, and most traders lose money. The indicators Yavuz Akbay offers are for informational and educational purposes only. All content should be considered hypothetical, selected after the facts to demonstrate my product, and not constructed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
This indicator is experimental and will always remain experimental. The indicator will be updated by Yavuz Akbay according to market conditions.
Engulfing Pattern with Multiple EMAs and AlertsCreated in copilot for pine script for bullish and bearish engulfing where the signal appears if the engulfing candle closed above or below the 14ema and it must close with the ema passing through either the wick or the candle body, also another stipulation the engulfing candle must be at least a min of 2x the size of the previous candle. The AI created this already adding the 14 ema so I added the 50 and 200 Emas as extras
SSL Hybrid with MA Baseline ehsanehsan and dr akrami cancle stick heikin ashi . when beta candle cross over heikin ashi it gave us signal
STDEMA Z-ScoreSTDEMA Z-Score Indicator
Overview
The STDEMA Z-Score Indicator provides a statistical approach to understanding price movements relative to its trend, using the Standard Deviation Exponential Moving Average (StdEMA) and Z-Score calculations.
Key Features
Z-Score Calculation: The Z-Score measures how far the current price deviates from its StdEMA, providing insight into whether the price is statistically overbought or oversold.
EMA of Z-Score: This smooths the Z-Score for easier interpretation and signals potential reversals or continuation patterns.
Customizable Inputs: Users can easily adjust the EMA length, standard deviation multiplier, and smoothing length to fit their trading style and market conditions.
How to Use
Buy Signals: Look for the Z-Score EMA to cross above the 0 line, indicating potential bullish momentum.
Sell Signals: Watch for the Z-Score EMA to cross below the 0 line, suggesting potential bearish momentum.
Buyer & Seller Strength EstimatorCreating a buyer and seller strength indicator based on order flow data involves analyzing volume, bid/ask imbalances, or volume at price levels. However, in TradingView, access to raw order flow data (like bid/ask volume or depth of market) is limited. TradingView mainly provides data on volume per bar, so true order flow analysis—common in specialized software like Sierra Chart or NinjaTrader—is restricted.
Instead, I can create a script that estimates buyer and seller strength based on price and volume movements. This approximation can use metrics like Volume Delta (the difference between up-volume and down-volume) and identify momentum to infer which side might be stronger. Here's a Pine Script that does this:
Imbalance OscillatorCalculates the average of n most recent imbalances and creates an oscillator out of them. Default is 10. Can help to show change in market direction and/or trend. Useful when volatility picks up since it shows institutional order flow.
RANDI RONEDISCLAIMER
This indicator is not promoting scalping related activities and give financial advise to buy or sell.
This indicator is made for educational purpose only which gives the idea about the trend based on strength.
This script is provided for educational purposes only and is not intended as financial advice. It serves as a tool for analyzing historical price movements but does not guarantee profitability or predict future price trends. Trading involves significant risk, and you should only trade with capital you can afford to lose. Always conduct thorough research and consult a qualified financial advisor before engaging in trading.
Strategy Explanation
The RANDI RONE indicator combines the Relative Strength Index (RSI) and Bollinger Bands to identify potential trend zones based on customizable timeframes. It highlights these zones on the chart background.
It helps to throw some lights on that area where trend is at early stage.
Customization Options
The script offers flexibility in timeframe selection for RSI and Bollinger Bands and customizable thresholds for both buy and sell conditions. This versatility enables users to adjust settings according to various market conditions or trading styles.
By integrating RSI and Bollinger Bands across multiple timeframes, this indicator is designed to capture significant market movements and offer actionable insights based on price momentum and volatility.
Imbalance Finder (DTC Company)Imbalance Finder (DTC Company)An In-Balance Indicator (IBI) is a technical analysis tool used in financial markets, particularly in trading and investing. It is designed to help identify when an asset's price movement is becoming excessively one-sided, indicating potential exhaustion of the current trend or the need for a change.
Here's how it works:
Description:
The In-Balance Indicator plots two lines on a chart: the Balance Line and the Offset Line. The Balance Line represents the difference between the demand (buying) volume and the supply (selling) volume at each price level, while the Offset Line is an offset of the Balance Line by a specified percentage (usually 50%).
Interpretation:
The intersection of these two lines serves as a warning sign for potential market imbalances. When the Balance Line crosses below the Offset Line, it indicates that buying pressure has diminished, and selling volume may be increasing, potentially leading to a price decline.
Conversely, when the Balance Line rises above the Offset Line, it suggests that buying momentum is growing stronger, possibly signaling a price upswing.
Key aspects:
Balance: This term refers to the equilibrium between demand (buying) and supply (selling) volumes at each price level.
Offset Line: The offset value represents a percentage of the Balance Line (usually 50%), which creates an envelope for the balance line, helping to visually highlight potential imbalances.
Cross-over points: When these lines intersect, they signal potential changes in market sentiment and momentum.
Indications:
Overbought/oversold conditions: Excessive divergence between the Balance Line and the Offset Line may indicate overbought or oversold situations, potentially leading to price corrections.
Trend exhaustion: The IBI can help identify when a trend is approaching its limit, making it a useful tool for traders and investors looking to adjust their strategies.
Limitations:
While the In-Balance Indicator provides valuable insights into market sentiment and potential imbalances, it should not be used in isolation. Combine it with other technical analysis tools and fundamental analysis to form a well-rounded perspective on market trends.
Trading strategy implications:
When trading based on the IBI signals:
Short-term traders: Focus on using these signals as confirmation for existing trades, rather than the sole reason for entering or exiting positions.
Long-term investors: Consider using the In-Balance Indicator to identify potential shifts in market trends, which can inform investment decisions over longer time frames.
Conclusion:
The In-Balance Indicator is a useful tool for traders and investors looking to gauge market sentiment and potential imbalances. By understanding how this indicator works and combining it with other analysis tools, you'll be better equipped to make informed trading or investment decisions.
Economic Profit (YavuzAkbay)The Economic Profit Indicator is a Pine Script™ tool for assessing a company’s economic profit based on key financial metrics like Return on Invested Capital (ROIC) and Weighted Average Cost of Capital (WACC). This indicator is designed to give traders a more accurate understanding of risk-adjusted returns.
Features
Customizable inputs for Risk-Free Rate and Corporate Tax Rate assets for people who are trading in other countries.
Calculates Economic Profit based on ROIC and WACC, with values shown as both plots and in an on-screen table.
Provides detailed breakdowns of all key calculations, enabling deeper insights into financial performance.
How to Use
Open the stock to be analyzed. In the settings, enter the risk-free asset (usually a 10-year bond) of the country where the company to be analyzed is located. Then enter the corporate tax of the country (USCTR for the USA, DECTR for Germany). Then enter the average return of the index the stock is in. I prefer 10% (0.10) for the SP500, different rates can be entered for different indices. Finally, the beta of the stock is entered. In future versions I will automatically pull beta and index returns, but in order to publish the indicator a bit earlier, I have left it entirely up to the investor.
How to Interpret
We see 3 pieces of data on the indicator. The dark blue one is ROIC, the dark orange one is WACC and the light blue line represents the difference between WACC and ROIC.
In a scenario where both ROIC and WACC are negative, if ROIC is lower than WACC, the share is at a complete economic loss.
In a scenario where both ROIC and WACC are negative, if ROIC has started to rise above WACC and is moving towards positive, the share is still in an economic loss but tending towards profit.
A scenario where ROIC is positive and WACC is negative is the most natural scenario for a company. In this scenario, we know that the company is doing well by a gradually increasing ROIC and a stable WACC.
In addition, if the ROIC and WACC difference line goes above 0, the company is now economically in net profit. This is the best scenario for a company.
My own investment strategy as a developer of the code is to look for the moment when ROIC is greater than WACC when ROIC and WACC are negative. At that point the stock is the best time to invest.
Trading is risky, and most traders lose money. The indicators Yavuz Akbay offers are for informational and educational purposes only. All content should be considered hypothetical, selected after the facts to demonstrate my product, and not constructed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
This indicator is experimental and will always remain experimental. The indicator will be updated by Yavuz Akbay according to market conditions.
Custom MACD Signal with FiltersSử dụng chỉ báo MACD để xác định đỉnh đáy, thêm vào các bộ lọc như EMA20 để giảm nhiễu.
6 Candle Rule Indicator BetaThe "6 Candle Rule" is a method used to identify trend reversals in price action by observing specific sequences of candlestick patterns over a span of six candles. Here's a quick breakdown:
1. **Sequence Analysis**: It involves looking at sequences of bullish (up) and bearish (down) candles over a six-candle period.
2. **Bullish Trend Reversal**: If, within those six candles, there are two consecutive bullish candles, then two bearish candles, followed by two more bullish candles, it signals a potential uptrend.
3. **Bearish Trend Reversal**: Conversely, if there are two consecutive bearish candles, then two bullish candles, followed by two more bearish candles, it signals a potential downtrend.
This pattern helps traders identify potential shifts in market direction by capturing the transitional movements that indicate a reversal of an existing trend.
Real Relative Strength Indicator (Multi-Index Comparison)The Real Relative Strength (RRS) indicator implements the "Real Relative Strength" equation, as detailed on the Real Day Trading subreddit wiki. This equation measures whether a stock is outperforming a benchmark (such as SPY or any preferred ETF/index) by calculating price change normalized by the Average True Range (ATR) of both the stock and the indices it’s being compared to.
The RRS metric often highlights potential accumulation by institutional players. For example, in this chart, you can observe accumulation in McDonald’s beginning at 1:25 pm ET on the 5-minute chart and continuing until 2:55 pm ET. When used in conjunction with other indicators or technical analysis, RRS can provide valuable buy and sell signals.
This indicator also supports multi-index analysis, allowing you to plot relative strength against two indices simultaneously—defaulting to SPY and QQQ—to gain insights into the "real relative strength" across different benchmarks. Additionally, this indicator includes an EMA line and background coloring to help automatically identify relative strength trends, providing a clearer visualization than typical Relative Strength Comparison indicators.