Follow LineFollow Line is a common MT4 FX indicator based on trend following.
The main idea behind the calculation is volatility:
-Indicator Line increases as price goes above Bollinger Bands but with 1 standard deviation.
-Likewise when price moves below the lower Bollinger Band with 1 Standard deviation, Follow -Line decreases down.
-As you can imagine, indicator stays as a flat line when price moves between the bands.
There are two critical settings about the indicator:
1- Bollinger Bands Deviation is set to 1 as default but if you want to have early signals you have to decrease that amount. Also you'd better increase that to have flat values on sideways market conditions for not getting chopped by the early but false signals.
2- ATR Filter is activated in default settings and the indicator follows the trend with a distance from Highs and Lows considering ATR (default length 5) values. If you turn off the ATR filter, the indicator line only takes into account the Highs and the Lows. Indicator will get more agile but the risk of choppy signals can be taken that time. I personally advise you to increase the Bollinger Band Deviation from 1 to between 1.5-2 to stabilize the fake signals when ATR filter is turned off.
Signals can be shown on the graph:
BUY: when Follow Line changes direction from red to blue.(which means Price is above Bollinger Upper Band with 1 standard deviation)
SELL: when Follow Line changes direction from blue to red. (which means Price moves below Bollinger Lower Band with 1 standard deviation)
Finally, some of you may know there are also several Follow Line indicators on TradingView but unfortunately they don't show the same exact values (close but not same) comparing with original version of MT4 and the Metastock version that I've coded recently. So, I shared this stuff to have the exact same values on graphs on all platforms.
指標和策略
Wavy Tunnel + Trend ATR Buy Sell Signal by PaRn:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Flat Tops/Bottoms aka Devil's MarkThis Pine script indicator is designed to visually depict price inefficiencies, as identified by Flat Top/Bottom Candles (aka Devil's Mark). A Flat Top/Bottom Candle is a scenario where there is an absence of a wick at the top or the bottom of the candle. These represent zones of inefficiency and will frequently act as magnets for price that the market will strive to rebalance in accordance with ICT principles.
Relevance:
Flat Top/Bottom Candles are zones where price delivery didn't provide opportunity for manipulation representing an inefficiency that the market will seek to rebalance. Consequently, these zones can provide good targets for entries in the opposite direction or take profit targets for previous entries in the direction of the Flat Top/Bottom Candle.
How It Works:
The indicator keeps track of all Flat Top/Bottom Candles from the beginning of the available history. It automatically removes all mitigated Flat Top/Bottom Candles, which are situations where the price has gone past the candle without a wick.
Configurability:
You can configure the colors, style & width of the lines used to represent flat top/bottom candles.
What makes this indicator different:
Designed with high performance in mind, to reduce impact on chart render time.
Only keeping the currently valid flat top/bottoms on the chart.
CAPE / Shiller PE RatioThe CAPE (Cyclically Adjusted Price-to-Earnings) or Shiller PE ratio is a popular valuation measure used by investors to assess whether a stock or index is over or undervalued relative to its historical earnings. Unlike the traditional P/E ratio, the CAPE ratio smooths earnings over ten years, adjusting for inflation and providing a more stable and long-term view of valuation.
This indicator lets you quickly calculate and visualize the CAPE ratio for any stock on TradingView, helping you make informed decisions about the sustainability of current price levels. With its clear presentation and intuitive setup, you can compare historical CAPE levels and identify potential opportunities for long-term investments or avoid overvalued markets.
Advantages of the CAPE Ratio:
Long-Term Focus : Smooth earnings over ten years, reducing the impact of short-term volatility.
Inflation-Adjusted : Provides a more precise, inflation-adjusted valuation measure over time.
Historical Comparison : Allows for benchmarking against long-term historical averages.
Market Sentiment Indicator : Can highlight overvalued or undervalued markets for long-term investors.
Reduces Noise : Filters out short-term earnings fluctuations, offering a more stable view.
Disadvantages of the CAPE Ratio:
Ignores Recent Earnings : Misses short-term earnings changes, which can affect current valuations.
Outdated Data : Relies on old earnings data that may not reflect recent company performance.
Less Effective for Growth Stocks : May undervalue high-growth stocks focused on future earnings.
Sector Limitations : Works best for broad markets, less so for fast-changing industries.
Debated Predictive Power : It’s unreliable for timing short-term market movements.
In short, the CAPE ratio is excellent for long-term valuation but has limitations for short-term or growth-focused investing.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Vertical Lines & Price RangeThis Pine Script indicator visually marks significant historical price points on the chart by drawing vertical lines at intervals of 6 months, 3 months, and 1 month ago. Each vertical line is accompanied by a label indicating the time frame (6M, 3M, 1M). Additionally, it calculates and displays the percentage change between the closing prices at 6 months ago and 3 months ago, as well as between 3 months ago and 1 month ago, using horizontal lines to connect these price points. This tool is useful for analyzing trends and price movements over time, providing traders with a clear visual representation of historical performance.
Dynamic Darvas Lines [CHE] Dynamic Darvas Lines
Unlock Precision Trading with Dynamic Darvas Lines
Overview:
Dynamic Darvas Lines is an advanced trading indicator designed for traders seeking to enhance their market analysis and decision-making process. Building upon the classic Darvas Box theory, this indicator introduces dynamic zone detection and comprehensive customization features, making it an indispensable tool for both novice and experienced traders.
Key Features & Advantages:
1. Dynamic Zone Detection:
- Adaptive Boxes: Automatically identifies and adjusts support and resistance levels based on market volatility and price movements, ensuring that the indicator remains relevant in varying market conditions.
- Real-Time Updates: Continuously recalculates box boundaries, providing up-to-the-minute insights into potential breakout or reversal points.
2. Enhanced Signal Accuracy:
- Buy & Sell Signals: Generates clear and actionable buy and sell signals based on the crossover and crossunder of price with dynamic Darvas lines, helping traders capitalize on optimal entry and exit points.
- Signal Confirmation: Reduces false signals by requiring confirmation through multiple conditions, enhancing overall trade reliability.
3. Comprehensive Customization:
- Adjustable Parameters: Tailor the indicator to your specific trading style with customizable box length, signal colors, and plot shapes.
- Color Management: Differentiate between various market signals with intuitive color coding for buy/sell signals, box boundaries, and debug lines, enhancing visual clarity on your charts.
4. Advanced Visualization:
- Signal Circles: Visual markers highlight significant price levels where buy and sell signals are triggered, making it easier to spot opportunities at a glance.
- Debug Mode: Activate debug lines to display the lowest lows and highest highs within the defined box length, aiding in in-depth market analysis and strategy refinement.
5. Robust Alert System:
- Custom Alerts: Set up real-time alerts for buy and sell signals, ensuring you never miss critical trading opportunities even when you're away from your screen.
- Automated Notifications: Receive instant notifications directly through your trading platform, keeping you informed and ready to act.
6. Seamless Integration:
- Overlay Capability: Easily integrates with your existing charts, allowing you to combine Dynamic Darvas Lines with other technical indicators for a more comprehensive market view.
- Optimized Performance: Efficiently coded in Pine Script V5, ensuring smooth performance without lag, even on lower-end devices.
Use Cases:
- Trend Identification: Detect and follow market trends by observing the formation and breakout of dynamic Darvas boxes, helping you stay aligned with the market’s momentum.
- Breakout Trading: Capitalize on significant price movements when the price breaks out of established Darvas zones, indicating potential strong directional moves.
- Reversal Detection: Identify potential market reversals by monitoring when the price crosses under the lower Darvas line or above the upper Darvas line, signaling a change in market sentiment.
- Risk Management: Utilize the indicator’s clear support and resistance levels to set strategic stop-loss and take-profit points, enhancing your risk-reward ratio.
- Market Analysis: Combine with other technical tools and indicators to perform comprehensive market analysis, improving the accuracy of your trading strategies.
Why Choose Dynamic Darvas Lines ?
Dynamic Darvas Lines stands out with its blend of traditional Darvas Box principles and modern enhancements. Its dynamic nature ensures adaptability across different market conditions, while the extensive customization options provide traders with the flexibility to tailor the indicator to their unique trading strategies. Whether you’re aiming to identify trends, execute breakout trades, or manage risks more effectively, Dynamic Darvas Lines offers the precision and reliability you need to elevate your trading game.
Get Started Today:
Enhance your trading toolkit with Dynamic Darvas Lines and experience the difference in your market analysis and trading performance. Download now and take the first step towards more informed and strategic trading decisions!
Note: Always backtest any trading indicator and use it in conjunction with other analysis tools to develop a robust trading strategy. Trading involves risk, and it's essential to practice sound risk management.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Business Cycle Indicators (Normalized)This script aggregates and normalizes several key economic indicators to provide a comprehensive view of the business cycle and overall market conditions. By combining these indicators into a single, normalized average line, the script helps identify overarching trends and shifts in the economy, aiding in more informed trading and investment decisions.
Included Indicators:
Inverted National Financial Conditions Index (NFCI):
Symbol: FRED:NFCI
Measures financial stress in the markets. An inverted NFCI aligns higher values with positive financial conditions.
Inverted Net Percentage of Banks Tightening Lending Standards (DRTSCIS):
Symbol: FRED:DRTSCIS
Reflects changes in bank lending practices. Inverting this indicator means higher values indicate easing lending standards, which is generally positive for economic growth.
HYG Close Price (iShares High Yield Corporate Bond ETF):
Symbol: AMEX:HYG
Represents the performance of high-yield corporate bonds, providing insight into credit market conditions.
Inverted High-Yield Credit Spread (BAMLH0A0HYM2):
Symbol: FRED:BAMLH0A0HYM2
Measures the spread between high-yield bonds and risk-free securities. A narrower (inverted) spread indicates better market conditions.
Manufacturing/Non-Manufacturing New Orders Ratio:
Symbols: ECONOMICS:USMNO (Manufacturing), ECONOMICS:USNMNO (Non-Manufacturing)
Compares manufacturing to non-manufacturing new orders to gauge shifts in economic activity.
US PMI (Purchasing Managers' Index):
Symbol: ECONOMICS:USBCOI
An indicator of the economic health of the manufacturing sector.
10-Year Inflation Breakeven (T10YIE):
Symbol: FRED:T10YIE
Represents market expectations of inflation over the next ten years.
Inverted 10-Year Real Yield (DFII10):
Symbol: FRED:DFII10
Reflects the real yield on 10-year Treasury Inflation-Protected Securities (TIPS). Inverted to align higher values with positive economic sentiment.
Copper/Gold Ratio:
Symbols: CAPITALCOM:COPPER (Copper), TVC:GOLD (Gold)
Compares the prices of copper and gold, often used as a barometer for global economic activity.
Features:
Normalized Indicators: Each indicator is normalized to a 0-100 scale to facilitate direct comparison, regardless of their original units or scales.
Normalized Average Line: Calculates and plots the average of all available normalized indicators, providing a single line that represents the combined economic signals.
Customizable Display:
Show Individual Indicators: Option to display individual normalized indicators for detailed analysis.
Show Normalized Average Line: Option to display the normalized average line for a consolidated view.
Dynamic Labeling: Displays the latest value of the normalized average directly on the chart for quick reference.
How to Use:
Adding the Script:
Apply the script to a chart in TradingView using a timeframe that aligns with the frequency of the economic data (daily or weekly recommended).
Customization:
Show Normalized Average Line: Enabled by default to display the combined indicator.
Show Individual Indicators: Enable this option in the script settings to display all individual normalized indicators.
Interpretation:
Normalized Scale (0-100): Higher values generally indicate stronger economic conditions, while lower values may suggest weakening conditions.
Trend Analysis: Use the normalized average line to identify trends and potential turning points in the business cycle.
Notes:
Data Availability: Ensure you have access to all the data sources used in the script. Some data feeds may require specific TradingView subscriptions.
Indicator Limitations: Economic indicators are subject to revisions and may not reflect real-time market conditions.
No Investment Advice: This script is a tool for analysis and should not be considered as financial advice. Always conduct your own research before making investment decisions.
PRINT_DROVINGLibrary "PRINT_DROVING"
method print_droving(foot_bar, sup)
printing all footprint objects
Namespace types: footprint_type.Footprint_bar
Parameters:
foot_bar (Footprint_bar type from Alesetup/PRINT_TYPE/1) : instance of Footprint_bar type
sup (Support_objects type from Alesetup/PRINT_TYPE/1) : instance of Support_objects type
Returns: Void.
PRINT_LOGICLibrary "PRINT_LOGIC"
method fill_imba_line(imba_line, foot_bar, sup)
fill imbalance line
Namespace types: footprint_type.Imbalance_line
Parameters:
imba_line (Imbalance_line type from Alesetup/PRINT_TYPE/1) : instance of Imbalance_line type
foot_bar (Footprint_bar type from Alesetup/PRINT_TYPE/1) : instance of Footprint_bar type
sup (Support_objects type from Alesetup/PRINT_TYPE/1) : instance of Support_objects type
Returns: Void
method fill_footprint_type(foot_bar, sup)
Namespace types: footprint_type.Footprint_bar
Parameters:
foot_bar (Footprint_bar type from Alesetup/PRINT_TYPE/1) : instance of Footprint_bar type
sup (Support_objects type from Alesetup/PRINT_TYPE/1) : instance of Support_objects type
Returns: Void
method fill_footprint_object(foot_bar, sup)
fill all footprint objects
Namespace types: footprint_type.Footprint_bar
Parameters:
foot_bar (Footprint_bar type from Alesetup/PRINT_TYPE/1) : instance of Footprint_bar type
sup (Support_objects type from Alesetup/PRINT_TYPE/1) : instance of Support_objects type
Returns: Void
PRINT_TYPELibrary "PRINT_TYPE"
Inputs
Inputs objects
Fields:
inbalance_percent (series int) : percentage coefficient to determine the Imbalance of price levels
stacked_input (series int) : minimum number of consecutive Imbalance levels required to draw extended lines
show_summary_footprint (series bool)
procent_volume_area (series int) : definition size Value area
new_imbalance_cond (series bool) : bool input for setup alert on new imbalance buy and sell
new_imbalance_line_cond (series bool) : bool input for setup alert on new imbalance line buy and sell
stop_past_imbalance_line_cond (series bool) : bool input for setup alert on stop past imbalance line buy and sell
Constants
Constants all Constants objects
Fields:
imbalance_high_char (series string) : char for printing buy imbalance
imbalance_low_char (series string) : char for printing sell imbalance
color_title_sell (series color) : color for footprint sell
color_title_buy (series color) : color for footprint buy
color_line_sell (series color) : color for sell line
color_line_buy (series color) : color for buy line
color_title_none (series color) : color None
Calculation_data
Calculation_data data for calculating
Fields:
detail_open (array) : array open from calculation timeframe
detail_high (array) : array high from calculation timeframe
detail_low (array) : array low from calculation timeframe
detail_close (array) : array close from calculation timeframe
detail_vol (array) : array volume from calculation timeframe
previos_detail_close (array) : array close from calculation timeframe
isBuyVolume (series bool) : attribute previosly bar buy or sell
Footprint_row
Footprint_row objects one footprint row
Fields:
price (series float) : row price
buy_vol (series float) : buy volume
sell_vol (series float) : sell volume
imbalance_buy (series bool) : attribute buy inbalance
imbalance_sell (series bool) : attribute sell imbalance
buy_vol_box (series box) : for ptinting buy volume
sell_vol_box (series box) : for printing sell volume
buy_vp_box (series box) : for ptinting volume profile buy
sell_vp_box (series box) : for ptinting volume profile sell
row_line (series label) : for ptinting row price
empty (series bool) : = true attribute row with zero volume buy and zero volume sell
Imbalance_line_var_object
Imbalance_line_var_object var objects printing and calculation imbalance line
Fields:
cum_buy_line (array) : line array for saving all history buy imbalance line
cum_sell_line (array) : line array for saving all history sell imbalance line
Imbalance_line
Imbalance_line objects printing and calculation imbalance line
Fields:
buy_price_line (array) : float array for saving buy imbalance price level
sell_price_line (array) : float array for saving sell imbalance price level
var_imba_line (Imbalance_line_var_object) : var objects this type
Footprint_bar
Footprint_bar all objects one bar with footprint
Fields:
foot_rows (array) : objects one row footprint
imba_line (Imbalance_line) : objects imbalance line
row_size (series float) : size rows
total_vol (series float) : total volume one footprint bar
foot_buy_vol (series float) : buy volume one footprint bar
foot_sell_vol (series float) : sell volume one footprint bar
foot_max_price_vol (map) : map with one value - price row with max volume buy + sell
calc_data (Calculation_data) : objects with detail data from calculation resolution
Support_objects
Support_objects support object for footprint calculation
Fields:
consts (Constants) : all consts objects
inp (Inputs) : all input objects
bar_index_show_condition (series bool) : calculation bool value for show all objects footprint
row_line_color (series color) : calculation value - color for row price
dop_info (series string)
show_table_cond (series bool)
Weekly Initial BalanceWeekly Initial Balance Indicator
The Weekly Initial Balance (IB) indicator is a powerful tool designed for traders to identify key support and resistance levels based on the market's initial activity at the start of each week. By analyzing the first 30 hours of trading.
Key Features:
Customizable IB Period: Define the start hour and duration of the initial balance period to suit your trading schedule and the specific market you are analyzing, I have it set at 30 hours by default.
IB High, Low, and Midpoint Levels: Automatically plots the high, low, and midpoint of the IB period, providing immediate visual reference to critical price levels.
Extension Levels: Calculate and display extension levels based on customizable percentages (e.g., 50%, 100%, 150%), allowing you to project potential breakout targets and identify areas of interest beyond the initial balance range.
Dynamic Lines and Labels: The indicator updates in real-time, extending lines and repositioning labels as new bars form, ensuring you always have the most current information.
Customizable Appearance: Adjust line styles, widths, colors, and label positions to match your charting preferences and improve visual clarity.
How to Use:
Set the IB Parameters:
Week Start Hour (UTC): Specify the hour when the weekly IB period begins. I use 1800EST as that is when the futures market opens.
IB Duration in Hours: Define how many hours constitute the IB period.
Configure Extension Levels:
Input the desired extension percentages to calculate levels beyond the IB range.
Customize Visual Settings:
Adjust line colors, styles, widths, and label offsets to tailor the indicator's appearance.
Interpret the Levels:
Use the IB high and low as immediate support and resistance levels.
Monitor the midpoint for potential pivot areas.
Watch for price interactions with extension levels to anticipate breakouts or reversals.
Benefits:
Identify Key Weekly Levels: Understand the market's initial sentiment each week to gauge potential trends.
Enhance Trading Strategies: Incorporate the IB levels into your trading plan for better entry and exit points.
Adaptable to Various Markets: Suitable for Forex, commodities, indices, and other markets where weekly analysis is beneficial.
Accurate 10x Volume Spike with Corrected Next Candle AnalysisDescription :
The Volume Ten Candles indicator is a technical analysis tool that helps traders identify candles with volume exceeding the previous one by 10 times. This can indicate a potential trend reversal or continuation of the current price movement.
Signal :
The indicator generates a signal when a candle with volume exceeding the previous one by 10 times appears. The signal is displayed on the chart as an arrow or other symbol.
Statistics :
The indicator also displays statistics in the form of a table that shows the number of candles with volume exceeding the previous one by 10 times for a certain period of time. This helps traders assess the strength of the trend and make a decision about entering a trade.
Example of Use :
The Volume Ten Candles indicator can be useful for traders who want to find candles with high volume and use them to enter a trade. For example, if a candle with volume exceeding the previous one by 10 times appears, it may indicate that the market is ready for a price movement. In this case, the trader can open a trade in the direction of this movement.
It is important to note that the Volume Ten Candles indicator is not a guarantee of profit and may produce false signals. Therefore, before using the indicator, it is necessary to conduct testing on historical data and develop a trading strategy.
Statistics Table :
The table displays the number of candles with volume exceeding the previous one by 10 times for each day.
Stochastic RMIThe Relative Momentum Index (RMI) is a technical analysis indicator used to analyze the price movements of assets in a financial market. Similar to the RSI (Relative Strength Index), it helps measure the momentum and strength of the asset's price movements over the recent period. However, the RMI offers a "smoother" view, unlike the RSI. This means that there is less "noise" in the indicator.
As is known, the Stochastic RSI indicator is based on the RSI. What I did was to create a stochastic based on the RMI. If you compare this indicator with the "Stochastic RSI", you will see that there is no difference between them, except that the "Stochastic RMI" is more "smooth" and noiseless.
Industry Group StrengthThe Industry Group Strength indicator is designed to help traders identify the best-performing stocks within specific industry groups. The movement of individual stocks is often closely tied to the overall performance of their industry. By focusing on industry groups, this indicator allows you to find the top-performing stocks within an industry.
Thanks to a recent Pine Script update, an indicator like this is now possible. Special thanks to @PineCoders for introducing the dynamic requests feature.
How this indicator works:
The indicator contains predefined lists of stocks for each industry group. To be included in these lists, stocks must meet the following basic filters:
Market capitalization over 2B
Price greater than $10
Primary listing status
Once the relevant stocks are filtered, the indicator automatically recognizes the industry group of the current stock displayed on the chart. It then retrieves and displays data for that entire industry group.
Data Points Available:
The user can choose between three different data points to rank and compare stocks:
YTD (Year-To-Date) Return: Measures how much a stock has gained or lost since the start of the year.
RS Rating: A relative strength rating for a user-selected lookback period (explained below).
% Return: The percentage return over a user-selected lookback period.
Stock Ranking:
Stocks are ranked based on their performance within their respective industry groups, allowing users to easily identify which stocks are leading or lagging behind others in the same sector.
Visualization:
The indicator presents stocks in a table format, with performance metrics displayed both as text labels and color-coded lines. The color gradient represents the percentile rank, making it visually clear which stocks are outperforming or underperforming within their industry group.
Relative Strength (RS):
Relative Strength (RS) measures a stock’s performance relative to a benchmark, typically the S&P 500 (the default setting). It is calculated by dividing the closing price of the stock by the closing price of the S&P 500.
If the stock rises while the S&P 500 falls, or if the stock rises more sharply than the S&P 500, the RS value increases. Conversely, if the stock falls while the S&P 500 rises, the RS value decreases. This indicator normalizes the RS value into a range from 1 to 99, allowing for easier comparison across different stocks, regardless of their raw performance. This normalized RS value helps traders quickly assess how a stock is performing relative to others.
Consecutive CandlesTrading as Easy as One, Two, and Three
Unlock the power of simplicity in trading with this innovative script inspired by KepalaBesi. Designed for traders of all levels, this script provides a user-friendly approach to market analysis, enabling you to make informed trading decisions effortlessly.
Key Features:
Simplified Signals: Receive clear buy and sell signals based on robust technical indicators. The script streamlines your trading process, allowing you to focus on execution rather than analysis.
Customizable Settings: Tailor the script to fit your trading style. Adjust parameters to suit your risk tolerance and market preferences, ensuring a personalized trading experience.
Visual Clarity: Benefit from intuitive visual cues on your chart, making it easy to identify optimal entry and exit points. The clean interface helps you make quick decisions without confusion.
Whether you’re a seasoned trader or just starting, "Trading as Easy as One, Two, and Three" simplifies your trading journey, turning complex strategies into straightforward actions. Embrace a more efficient way to trade and elevate your performance in the markets!
Get Started Today!
Join the community of traders who have discovered the ease of trading with KepalaBesi's inspired script. Elevate your trading experience and achieve your financial goals with confidence!
Three Bar Reversal Pattern [LuxAlgo]The Three Bar Reversal Pattern indicator identifies and highlights three bar reversal patterns on the user price chart.
The script also provides an option for incorporating various trend indicators used to filter out detected signals, allowing them to enhance their accuracy and help obtain a more comprehensive analysis.
🔶 USAGE
The script automates the detection of three-bar reversal patterns and provides a clear, visually identifiable signal for potential trend reversals.
When a reversal chart pattern is confirmed and price action aligns with the pattern, the pattern's boundaries are extended, forming levels, with the upper boundary often acting as a resistance and the lower boundary as a support.
The script allows users to filter patterns based on a specific trend direction detected by multiple trend indicators. Users can choose to view patterns that are either aligned with the detected trend or opposite to it.
Included trend indicators are: Moving Average Cloud, Supertrend, and Donchian Channels.
🔶 DETAILS
The three-bar reversal pattern is a technical analysis pattern that signals a potential reversal in the prevailing trend. The pattern consists of three consecutive bar formations:
First Bar and Second Bar: 2 consecutive of the same sentiment, representing the prevailing trend in the market.
Third Bar: Confirms the reversal by closing beyond the high or low of the first bar, signaling a potential change in market sentiment.
Various types of three-bar reversal patterns are documented. The script supports two main types:
Normal Pattern: Detects three-bar reversal patterns without requiring the third bar closing price to surpass the high (bullish pattern) or low (bearish pattern) of the first bar. It identifies basic formations signaling potential trend reversals.
Enhanced Pattern: Specifically identifies three-bar reversal patterns where the third bar closing price surpasses the high (bullish pattern) or low (bearish pattern) of the first bar. This type provides a more selective signal for stronger trend reversals.
🔶 SETTINGS
Pattern Type: Users can choose the type of 3-bar reversal patterns to detect: Normal, Enhanced, or All. "Normal" detects patterns that do not necessarily surpass the high/low of the first bar. "Enhanced" detects patterns where the third bar surpasses the high/low of the first bar. "All" detects both Normal and Enhanced patterns.
Derived Support and Resistance: Toggles the visibility of the support and resistance levels/zones.
🔹 Trend Filtering
Filtering: Allows users to filter patterns based on the trend indicators: Moving Average Cloud, Supertrend, and Donchian Channels. The "Aligned" option only detects patterns that align with the trend and conversely, the "Opposite" option detects patterns that go against the trend.
🔹 Trend Indicator Settings
Moving Average Cloud: Allows traders to choose the type of moving averages (SMA, EMA, HMA, etc.) and set the lengths for fast and slow-moving averages.
Supertrend: Options to set the ATR length and factor for Supertrend.
Donchian Channels: Option to set the length for the channel calculation.
🔶 RELATED SCRIPTS
Reversal-Candlestick-Structure .
Reversal-Signals .
Long Wick Indicator
This indicator identifies and highlights candles with long wicks, which can be useful for various trading strategies.
Key Features:
1. Timeframe Limitation:
- Optional feature to limit the indicator to specific timeframes
- User can set a maximum timeframe (default: 5 minutes)
2. Customizable Wick-to-Body Ratio:
- User-defined minimum ratio for wick length to body length (default: 0.8)
3. Customizable Visual Indicators:
- Triangles appear above or below candles with long wicks (user can change triangles to another symbol)
- Yellow triangle pointing up: long bottom wick
- Yellow triangle pointing down: long top wick
Functionality:
- Calculates body size and wick sizes for each candle
- Compares wick sizes to body size using the user-defined ratio
- Plots indicators only if the current timeframe is within the specified limit (if enabled)
Usage:
Add this indicator to your TradingView chart to identify potential setups.
Customization:
Users can adjust the wick-to-body ratio and timeframe limitations in the indicator settings to suit their trading style and strategy.
[ AlgoChart ] - Pearson Index CorrelationCorrelation Indicator (Pearson Index)
The correlation indicator measures the strength and direction of the relationship between two financial assets using the Pearson Index.
Correlation values range from +100 to -100, where:
+100 indicates perfect positive correlation, meaning the two assets tend to move in the same direction.
-100 indicates perfect negative correlation, where the two assets move in opposite directions.
The neutral zone ranges from +25% to -25%, suggesting that the asset movements are independent, with no clear correlation between them.
Interpreting Correlation Levels:
Correlation above +75%: The two assets tend to move similarly and in the same direction. This may indicate a risk of overexposure if both assets are traded in the same direction, as their movements will be very similar, increasing the likelihood of double losses or gains.
Correlation below -75%: The two assets tend to move similarly but in opposite directions. This correlation level can be useful for strategies that benefit from opposing movements between assets, such as trading pairs with inverse dynamics.
Practical Use of the Indicator:
Risk management: Use the indicator to monitor asset correlations before opening positions. High correlation may indicate you are duplicating exposure, as two highly correlated assets tend to move similarly. This helps avoid excessive risk and improves portfolio diversification.
Statistical Arbitrage: During moments of temporary decorrelation between two assets, the indicator can be used for statistical arbitrage strategies. In such cases, you can take advantage of the divergence by opening positions and closing them when the correlation returns to higher or positive levels, thus potentially profiting from the reconvergence of movements.
While the correlation indicator provides valuable insights into asset relationships, it is most effective when used in conjunction with other concepts and tools. On its own, it may offer limited relevance in trading decisions.
Overnight Positioning w EMA - Strategy [presentTrading]I've recently started researching Market Timing strategies, and it’s proving to be quite an interesting area of study. The idea of predicting optimal times to enter and exit the market, based on historical data and various indicators, brings a dynamic edge to trading. Additionally, it is integrated with the 3commas bot for automated trade execution.
I'm still working on it. Welcome to share your point of view.
█ Introduction and How it is Different
The "Overnight Positioning with EMA " is designed to capitalize on market inefficiencies during the overnight trading period. This strategy takes a position shortly before the market closes and exits shortly after it opens the following day. What sets this strategy apart is the integration of an optional Exponential Moving Average (EMA) filter, which ensures that trades are aligned with the underlying trend. The strategy provides flexibility by allowing users to select between different global market sessions, such as the US, Asia, and Europe.
It is integrated with the 3commas bot for automated trade execution and has a built-in mechanism to avoid holding positions over the weekend by force-closing positions on Fridays before the market closes.
BTCUSD 20 mins Performance
█ Strategy, How it Works: Detailed Explanation
The core logic of this strategy is simple: enter trades before market close and exit them after market open, taking advantage of potential price movements during the overnight period. Here’s how it works in more detail:
🔶 Market Timing
The strategy determines the local market open and close times based on the selected market (US, Asia, Europe) and adjusts entry and exit points accordingly. The entry is triggered a specific number of minutes before market close, and the exit is triggered a specific number of minutes after market open.
🔶 EMA Filter
The strategy includes an optional EMA filter to help ensure that trades are taken in the direction of the prevailing trend. The EMA is calculated over a user-defined timeframe and length. The entry is only allowed if the closing price is above the EMA (for long positions), which helps to filter out trades that might go against the trend.
The EMA formula:
```
EMA(t) = +
```
Where:
- EMA(t) is the current EMA value
- Close(t) is the current closing price
- n is the length of the EMA
- EMA(t-1) is the previous period's EMA value
🔶 Entry Logic
The strategy monitors the market time in the selected timezone. Once the current time reaches the defined entry period (e.g., 20 minutes before market close), and the EMA condition is satisfied, a long position is entered.
- Entry time calculation:
```
entryTime = marketCloseTime - entryMinutesBeforeClose * 60 * 1000
```
🔶 Exit Logic
Exits are triggered based on a specified time after the market opens. The strategy checks if the current time is within the defined exit period (e.g., 20 minutes after market open) and closes any open long positions.
- Exit time calculation:
exitTime = marketOpenTime + exitMinutesAfterOpen * 60 * 1000
🔶 Force Close on Fridays
To avoid the risk of holding positions over the weekend, the strategy force-closes any open positions 5 minutes before the market close on Fridays.
- Force close logic:
isFriday = (dayofweek(currentTime, marketTimezone) == dayofweek.friday)
█ Trade Direction
This strategy is designed exclusively for long trades. It enters a long position before market close and exits the position after market open. There is no shorting involved in this strategy, and it focuses on capturing upward momentum during the overnight session.
█ Usage
This strategy is suitable for traders who want to take advantage of price movements that occur during the overnight period without holding positions for extended periods. It automates entry and exit times, ensuring that trades are placed at the appropriate times based on the market session selected by the user. The 3commas bot integration also allows for automated execution, making it ideal for traders who wish to set it and forget it. The strategy is flexible enough to work across various global markets, depending on the trader's preference.
█ Default Settings
1. entryMinutesBeforeClose (Default = 20 minutes):
This setting determines how many minutes before the market close the strategy will enter a long position. A shorter duration could mean missing out on potential movements, while a longer duration could expose the position to greater price fluctuations before the market closes.
2. exitMinutesAfterOpen (Default = 20 minutes):
This setting controls how many minutes after the market opens the position will be exited. A shorter exit time minimizes exposure to market volatility at the open, while a longer exit time could capture more of the overnight price movement.
3. emaLength (Default = 100):
The length of the EMA affects how the strategy filters trades. A shorter EMA (e.g., 50) reacts more quickly to price changes, allowing more frequent entries, while a longer EMA (e.g., 200) smooths out price action and only allows entries when there is a stronger underlying trend.
The effect of using a longer EMA (e.g., 200) would be:
```
EMA(t) = +
```
4. emaTimeframe (Default = 240):
This is the timeframe used for calculating the EMA. A higher timeframe (e.g., 360) would base entries on longer-term trends, while a shorter timeframe (e.g., 60) would respond more quickly to price movements, potentially allowing more frequent trades.
5. useEMA (Default = true):
This toggle enables or disables the EMA filter. When enabled, trades are only taken when the price is above the EMA. Disabling the EMA allows the strategy to enter trades without any trend validation, which could increase the number of trades but also increase risk.
6. Market Selection (Default = US):
This setting determines which global market's open and close times the strategy will use. The selection of the market affects the timing of entries and exits and should be chosen based on the user's preference or geographic focus.
Options Strategy Straddle StrangleThe "Options Strategy Straddle Strangle" indicator is designed to assist traders in identifying and executing optimal options trading strategies by leveraging the foundational principles of option greeks. This tool focuses on two prevalent strategies in options trading: straddles and strangles, providing a systematic approach to determining appropriate strike prices based on real-time market data.
At its core, the indicator calculates strike prices by analyzing key option greeks, including Delta, Gamma, Theta, and Vega. By evaluating these sensitivities, the tool assesses the potential risks and rewards associated with different strike prices, ensuring that the selected levels align with the trader's specified thresholds. Users can input their desired thresholds for each greek, allowing for a customized approach that reflects individual risk tolerance and market outlook.
Once the thresholds are set, the indicator applies its underlying logic to filter and identify the most suitable strike prices for both straddle and strangle strategies. A straddle involves purchasing both a call and a put option at the same strike price, benefiting from significant price movements in either direction. Conversely, a strangle involves buying a call and a put option at different strike prices, which can be more cost-effective while still capitalizing on substantial market shifts.
The output of the "Options Strategy Straddle Strangle" indicator is presented in a clear and organized table format. This table displays the recommended strike prices for implementing either a straddle or a strangle strategy, based on the current market conditions and the predefined greek thresholds. By providing this information in an accessible manner, the indicator enables traders to make informed decisions quickly, enhancing their ability to respond to market volatility effectively.
Note:
Used methodology of the following indicator:
Pivot Liquidity Sweep + SignalsCore Functionalities:
Sweep Signals:
The indicator identifies sweeps of liquidity by detecting when price exceeds recent pivot highs (swing highs) or pivot lows (swing lows) and then reverses direction. It draws attention to these scenarios by labeling them on the chart.
For bullish sweep signals, the entry point is the closing price of the sweep candle, with the stop loss placed at the highest point between the sweep candle and the previous candle.
For bearish sweeps, the entry point is similarly identified, with the stop loss being the lowest price of the sweep candle and the candle before it. The profit target is dynamically set to the low or high of the closest valid pivot depending on the direction of the trade.
Rejection Signals:
Rejection signals are identified when price attempts to break a pivot high or low but fails, causing a rejection.
Bullish rejections involve price trying to break a pivot low but closing back above it, indicating potential for a bounce.
Bearish rejections follow a similar pattern, with price attempting to break a pivot high but failing to hold above it, signaling a potential bearish move.
High-Precision Intrabar Data:
The "Intrabar Precision" feature allows the indicator to use lower timeframe data to accurately plot sweeps and rejections, providing traders with precise entry and exit points.
The intrabar settings are particularly useful for traders looking for high-precision trades, such as scalpers who want to capture small yet consistent moves.
ATR and Percentage-Based Filters:
The indicator allows for customizable filters to ensure signals meet certain thresholds before being validated. Traders can use ATR (Average True Range) or percentage-based conditions to filter out low-quality signals, ensuring that the trades captured have enough volatility or price movement potential.
Dashboard:
The built-in dashboard provides a quick overview of trades executed using the indicator, displaying metrics such as the total number of sweep and rejection trades, their success rates, and total profit in points.
The dashboard is color-coded for easy reading and offers traders insights into the overall performance of their strategy, helping with ongoing evaluation and optimization.
Labeling and Alerts:
Every time a sweep or rejection signal is detected, the indicator automatically labels the chart to help traders quickly identify the trading opportunities.
Alerts are also generated for each trading signal, providing the trader with real-time notifications, which can be useful for those who are not constantly monitoring their charts.
Stop Loss and Target Adaptation:
The stop loss levels are adjusted dynamically based on the recent pivot points, and the target profit is derived from valid subsequent pivot levels to ensure realistic and efficient trade exits.
[MAD MBS] L3 Float Operations & ML-NormalizersFirst of all:
This indicator is not a standalone tool ; it relies on other script series for its inputs.
This script is an indicator designed for multi-path float operations with integrated machine learning normalizers.
It supports up to four distinct paths, each customizable with multiple sources, factors, and operations.
Users can perform various mathematical operations on price data, including addition, subtraction, multiplication, division, and percentage changes, as well as more advanced tasks like double and triple moving averages or power operations.
The script also integrates several normalization methods (e.g., Min-Max, Z-Score, Robust) to standardize data—an important step for machine learning models.
Each path supports multiple smoothing techniques (e.g., EMA, SMA, and specialized Ehlers smoothers) to further refine the output.
Designed to handle multiple data inputs simultaneously, this tool is especially useful for traders looking to analyze and normalize data from different price sources.
The combination of advanced mathematical operations, normalization techniques, and smoothing enhances data management, aiding in more effective trading decisions.
Here you can see a single path, out of the four possible:
Details to the screenshot:
First Series
Second Series
Option to override the second series with a custom constant (or when normalizing, use the length instead)
The first selection box sets the mathematical operation or activates the normalizer.
The second selection box sets the normalization method.
The third selection box sets the final smoothing technique, followed by parameters for smoothing length.
These settings are repeated identically for Paths 2–4.
At the bottom of the setup, there's a general offset option (add the 'close' price for overlay purposes).
Additionally, there's an option to display a line at zero for centered results.
Adaptive MA Scalping StrategyAdaptive MA Scalping Strategy
The Adaptive MA Scalping Strategy is an innovative trading approach that merges the strengths of the Kaufman's Adaptive Moving Average (KAMA) with the Moving Average Convergence Divergence (MACD) histogram. This combination results in a momentum-adaptive moving average that dynamically adjusts to market conditions, providing traders with timely and reliable signals.
How It Works
Kaufman's Adaptive Moving Average (KAMA): Unlike traditional moving averages, KAMA adjusts its sensitivity based on market volatility. It becomes more responsive during trending markets and less sensitive during periods of consolidation, effectively filtering out market noise.
MACD Histogram Integration: The strategy incorporates the MACD histogram, a momentum indicator that measures the difference between a fast and a slow exponential moving average (EMA). By adding the MACD histogram values to the KAMA, the strategy creates a new line—the momentum-adaptive moving average (MOMA)—which captures both trend direction and momentum.
Signal Generation:
Long Entry: The strategy enters a long position when the closing price crosses above the MOMA. This indicates a potential upward momentum shift.
Exit Position: The position is closed when the closing price crosses below the MOMA, signaling a potential decline in momentum.
Cloud Calculation Detail
The MOMA is calculated by adding the MACD histogram value to the KAMA of the price. This addition effectively adjusts the KAMA based on the momentum indicated by the MACD histogram. When momentum is strong, the MACD histogram will have higher values, causing the MOMA to adjust accordingly and provide earlier entry or exit signals.
Performance on Stocks
This strategy has demonstrated excellent performance on stocks when applied to the 1-hour timeframe. Its adaptive nature allows it to respond swiftly to market changes, capturing profitable trends while minimizing the impact of false signals caused by market noise. The combination of KAMA's adaptability and MACD's momentum detection makes it particularly effective in volatile market conditions commonly seen in stock trading.
Key Parameters
KAMA Length (malen): Determines the sensitivity of the KAMA. A length of 100 is used to balance responsiveness with noise reduction.
MACD Fast Length (fast): Sets the period for the fast EMA in the MACD calculation. A value of 24 helps in capturing short-term momentum changes.
MACD Slow Length (slow): Sets the period for the slow EMA in the MACD calculation. A value of 52 smooths out longer-term trends.
MACD Signal Length (signal): Determines the period for the signal line in the MACD calculation. An 18-period signal line is used for timely crossovers.
Advantages of the Strategy
Adaptive to Market Conditions: By adjusting to both volatility and momentum, the strategy remains effective across different market phases.
Enhanced Signal Accuracy: The fusion of KAMA and MACD reduces false signals, improving the accuracy of trade entries and exits.
Simplicity in Execution: With straightforward entry and exit rules based on price crossovers, the strategy is user-friendly for traders at all experience levels