Crodl Position Size CalculatorThe Crodl Size Position Calculator is a powerful and intuitive tool designed for traders to calculate their position size, risk, and reward before entering a trade. This indicator simplifies trade planning by providing clear calculations of key metrics such as risk-to-reward ratio, position size, expected profit, and current PnL (Profit and Loss).
Features:
Dynamic Input Fields: Customize your trade parameters, including risk loss, leverage, entry price, stop loss, and take profit.
Position Size Calculation: Automatically calculate the number of units to trade based on your risk tolerance and leverage.
Risk/Reward Ratio: See the ratio of potential profit to risk for informed decision-making.
Real-Time PnL Tracking: Monitor your current profit or loss directly on the chart.
Expected Profit Projection: Displays the profit potential based on your risk-to-reward ratio.
Position Plotting: Visualize your entry, stop loss, and take profit levels directly on the chart with color-coded lines and zones.
User-Friendly Table: A detailed table provides clear visibility of all trade metrics, including:
Risk Loss
Leverage
Entry Price
Stop Loss
Take Profit
Risk/Reward Ratio
Bet Amount
Crypto Units
Real-Time PnL
Expected Profit
How It Works:
Set Your Parameters: Input your desired risk loss, leverage, entry price, stop loss, and take profit levels in the settings.
Get Instant Results: The indicator calculates position size, PnL, expected profit, and other key metrics.
Visualize on the Chart: See your entry, stop loss, and take profit levels plotted on the chart for clarity.
Review the Trade Table: A table at the bottom-right of the screen summarizes all calculations and updates dynamically as the market price changes.
Who is it for? This indicator is ideal for traders of all experience levels, whether you're a beginner learning risk management or a professional looking for efficient trade planning tools.
Customization Options:
Adjust the size of the plotted position zones.
Enable or disable zone plotting for a cleaner chart.
Tailor inputs to match your trading strategy.
Note: Always use proper risk management and ensure your trading parameters align with your personal trading goals and strategy. Use at Own Risk
ค้นหาในสคริปต์สำหรับ " TABLE "
MTF RSI CandlesThis Pine Script indicator is designed to provide a visual representation of Relative Strength Index (RSI) values across multiple timeframes. It enhances traditional candlestick charts by color-coding candles based on RSI levels, offering a clearer picture of overbought, oversold, and sideways market conditions. Additionally, it displays a hoverable table with RSI values for multiple predefined timeframes.
Key Features
1. Candle Coloring Based on RSI Levels:
Candles are color-coded based on predefined RSI ranges for easy interpretation of market conditions.
RSI Levels:
75-100: Strongest Overbought (Green)
65-75: Stronger Overbought (Dark Green)
55-65: Overbought (Teal)
45-55: Sideways (Gray)
35-45: Oversold (Light Red)
25-35: Stronger Oversold (Dark Red)
0-25: Strongest Oversold (Bright Red)
2. Multi-Timeframe RSI Table:
Displays RSI values for the following timeframes:
1 Min, 2 Min, 3 Min, 4 Min, 5 Min
10 Min, 15 Min, 30 Min, 1 Hour, 1 Day, 1 Week
Helps traders identify RSI trends across different time horizons.
3. Hoverable RSI Values:
Displays the RSI value of any candle when hovering over it, providing additional insights for analysis.
Inputs
1. RSI Length:
Default: 14
Determines the calculation period for the RSI indicator.
2. RSI Levels:
Configurable thresholds for RSI zones:
75-100: Strongest Overbought
65-75: Stronger Overbought
55-65: Overbought
45-55: Sideways
35-45: Oversold
25-35: Stronger Oversold
0-25: Strongest Oversold
How It Works:
1. RSI Calculation:
The RSI is calculated for the current timeframe using the input RSI Length.
It is also computed for 11 additional predefined timeframes using request.security.
2. Candle Coloring:
Candles are colored based on their RSI values and the specified RSI levels.
3. Hoverable RSI Values:
Each candle displays its RSI value when hovered over, via a dynamically created label.
Multi-Timeframe Table:
A table at the bottom-left of the chart displays RSI values for all predefined timeframes, making it easy to compare trends.
Usage:
1. Trend Identification:
Use candle colors to quickly assess market conditions (overbought, oversold, or sideways).
2. Timeframe Analysis:
Compare RSI values across different timeframes to determine long-term and short-term momentum.
3. Signal Confirmation:
Combine RSI signals with other indicators or patterns for higher-confidence trades.
Best Practices
Use this indicator in conjunction with volume analysis, support/resistance levels, or trendline strategies for better results.
Customize RSI levels and timeframes based on your trading strategy or market conditions.
Limitations
RSI is a lagging indicator and may not always predict immediate market reversals.
Multi-timeframe analysis can lead to conflicting signals; consider your trading horizon.
Line Break Chart StrategyHello All!
We should not pass this year without a gift!
My last publication in 2024 is Complete Line Break Chart Strategy with many features!
What is Line Break Chart?
" Line Break is a Japanese chart style that disregards time intervals and only focuses on price movements, similar to the Kagi and Renko chart styles. Line Break charts form a series of up and down bars (referred to as lines). Up lines represent rising prices, and down lines represent falling prices. New confirmed lines only form on the chart when closing prices break the range covered by previous lines. Users can control the number of past lines used in the calculation via the "Number of Lines" input in the chart settings. The typical "Number of Lines" setting is 3, meaning the chart forms a new up line when the closing price is above the high prices of the last three lines, and it forms a new down line when the closing price is below the past three lines' low prices. If the current price is higher, it is an up line and if it is lower, it is a down line. If the current closing price is the same or the move in the opposite direction is not large enough to warrant a reversal, l then no new line is draw n" by Tradingview. You can find it here
Now let's start examining the features of the indicator:
By using Line break reversals it shows trend on the main chart. You can create alert .
Moreover, you can decide which trade should be taken by using Risk Management in the indicator. You can set the " Maximum Risk " and then if the risk is more than you set then the trade is not taken. When trend changed it checks the distance between reversal level and open price and compare it with the Maximum Risk
Breakout:
It can find breakouts and shows on the chart. You can create alert for breakouts
It can show breakouts on the main chart:
Flip-Flops:
Upon looking at set of price break charts, the trader will notice that there are instances when uptrend blocks is followed by one reversal block, and then by a reversal to a series of uptrend blocks. The opposite is also possible: a series of downtrend blocks is followed by one reversal box and then by an immediate reversal to downtrend. This price action is called a " Flip-Flop ". This structure usually produces trend continuation signal. when we see this then we better use Buy/Sell stop order. lets see this on the chart:
Temporal Sequence Table:
Sequence frequency shows the frequency distribution of the number of sequential highs and the number of sequential lows that have been generated. This is quite important to the trader who is seeking to join a trend or put on a trade when the price break reverses into a new trend direction. For example, if the pattern over the past year has been that there never were more than nine consecutive high closes, it would make sense not to enter a position late into the sequence of new high closes.
also you can see market structure. I have tried to formalize it and show it under the table. so you can understand if it's choppy market.
"Number of Lines" has very important role. While using low time frames such seconds/minutes time frame you may want to choose higher number of lines such 5,6. ( this may minimize the risk of a whipsaw )
Gaps feature:
You can set Gaps on/off. if Gaps on then you can see how long it takes for each box
Reversal and Continuation Probability:
The script calculated Reversal level and Continuation probability of the trend by using Sequence frequency.
It also shows unconfirmed box and current closing price level:
Last but not least it has Overlay option for all items, and can show all items in the main chart!
P.S. I added alerts :)
Wish you all a happy new year!
Enjoy!
BTC Dominance/Price vs Alts Logic (QKWESI)BTC Dominance & Price vs. Alts Indicator
Overview: The BTC Dominance & Price vs. Alts indicator is designed to help cryptocurrency traders understand the relationship between Bitcoin's market dominance, its price movements, and the subsequent impact on altcoin trends. By analyzing these key metrics, the indicator provides actionable insights to inform trading decisions.
Key Features:
BTC Dominance Tracking: Monitors Bitcoin's dominance percentage to assess its influence over the crypto market.
Real-Time BTC Price: Displays the latest Bitcoin price movements for informed analysis.
Alts Trend Prediction: Predicts altcoin behavior—such as Pump, Dump, Stable, or Increase—based on the combined trends of BTC Dominance and BTC Price.
Color-Coded Table: Presents data in a structured table with color indicators for easy interpretation.
Trend Indicators: Utilizes clear symbols to represent the direction of each metric, aiding quick decision-making.
Logic Table:
BTC Dominance BTC Price Alts Result
Increases Increases Decrease
Increases Decreases Dump
Increases Stable Stable
Decreases Increases Pump
Decreases Decreases Stable
Decreases Stable Increase
Explanation:
Increases in BTC Dominance & Increases in BTC Price: Altcoins are likely to Decrease in value.
Increases in BTC Dominance & Decreases in BTC Price: Altcoins may Dump, experiencing a sharp drop.
Increases in BTC Dominance & Stable BTC Price: Altcoins are expected to remain Stable.
Decreases in BTC Dominance & Increases in BTC Price: Altcoins may Pump, gaining significant value.
Decreases in BTC Dominance & Decreases in BTC Price: Altcoins are likely to remain Stable.
Decreases in BTC Dominance & Stable BTC Price: Altcoins may Increase moderately.
Benefits:
Informed Trading Decisions: Leverage BTC metrics to anticipate altcoin movements.
Efficient Market Analysis: Quickly assess market conditions without multiple indicators.
Structured Insights: The color-coded table and trend indicators provide a clear overview of key market dynamics.
ds-Income Statement Analyzer for TradersPURPOSE: Identifies trends in Revenue, Margins, and Earnings (RME), providing a quick indication of areas that may warrant further focus.
FOCUS:
This tool focuses exclusively on quarterly data, making it especially useful for traders who follow the styles of William O'Neil, Mark Minervini, and David Ryan. Built on the concept that fundamental trends support technical price trends, this indicator is designed to assist swing and position traders in analyzing income statements by highlighting recent trends in revenue, margins, and earnings. It requires three quarters of data to establish a trend, emphasizing the last three quarters. Tools and indicators should 'tell something useful,' and in this case, the tool reveals whether revenue, margins, and earnings are expanding, contracting, or remaining flat, as well as whether these movements are accelerating or decelerating. Finally, built-in logic offers an at-a-glance interpretation of whether a stock warrants closer examination of its fundamental and technical data.
SETTINGS:
# Qtrs to Include: Allows you to select how many quarters of available data to display. (5-16)
Size: Allows you to adjust the size of the displayed table.
KPI Data Text Size: Allows you to adjust the size of the text in the KPI Row. Some text here is more verbose than others.
Position: Allows you to position the table.
Show Minervini 2Qtr Avgs.?: Hover of the “i” in settings for explanation.
Show Estimates vs Actuals?: Hover of the “i” in settings for explanation.
Emphasized Data Only in Headline Indicator?: Hover of the “i” in settings for explanation.
TABLE SECTIONS
Vertically: The table is divided into three sections: Revenues, Profit Margins, and Earnings.
Horizontally:
The top row contains section headers and key information.
The second row includes column headers and summary indicator symbols.
The main body displays quarterly data, with a default of 5 quarters and a maximum of 16.
Analysis sections include 3Q Trend, KPI, and ATH.
The bottom row shows the version number and provides a column symbol indicator for each data column.
TABLE - TOP ROW (Left to Right):
SYM: Displays the symbol being viewed.
Qtrs Avail: Shows the quarters of data available from TradingView, typically up to a maximum of 32 quarters, or 8 years. If this displays less than 8 years, the company is relatively young.
REVENUES: Header label for the Revenues section. To its right is a symbol that indicates the worst case from the bottom row of symbols, based on your settings.
PROFIT MARGINS: Header label for the Profit Margins section. To its right is a symbol that indicates the worst case from the bottom row of symbols, based on your settings.
EARNINGS: Header label for the Earnings section. To its right is a symbol that indicates the worst case from the bottom row of symbols, based on your settings.
TABLE - HEADER ROW:
This row displays the column header labels. Note the Emphasized column headers “yellow text” highlight the most important column data “Rev Actual ($)”, “Rev YoY Qtr Chg (%)”, “Net Margin (NM) (%)”, “NP YoY Qtr Chg (%)”, “EPS YoY Qtr Chg (%)”. This can be modified in the settings. If you hover over the header, a label will pop up to provide more details.
TABLE BODY ROWS: Shows up to 16 rows of quarterly data.
A black or blank background cell without text indicates that data is unavailable from TradingView. Green text shows a value higher than the prior quarter, while red text shows a value lower than the prior quarter, allowing you to quickly spot trends within each data column. A yellow background highlights cells with negative values, marking them as unfavorable. The yellow cells indicate data points that ideally should not be negative.
ANAYSIS ROWS: Shown with brown background.
3Q TREND: Analyzes the last three quarters of data in each column to determine if the trend is rising, falling, or flat.
KPI: Key Performance Indicator. Highlights critical information, such as whether the current quarter is an all-time high (ATH), momentum (MOM) is sideways or accelerating upward, or percentage margins have fallen below all-time highs. You may sometimes see "struct." in the cell here which indicates there is a structural issue. e.g., Net Margin is higher than Operating, EBITDA, or Gross Margin. This might reflect a one-time event that boasted earnings and is worth investigating.
ATH: All-time-high value. If KPI shows ATH then the value in this cell should be equal to the most recent quarters value.
TABLE - BOTTOM ROW (Left to Right):
Version Number: Displays the version number of the indicator code.
Column-Specific Symbol Indicator: Shown at the bottom of each column, this indicator assesses the data in that column for trends, performance, and other factors.
Symbols include:
Green Checkmark: Indicates acceptable performance.
Yellow Triangle: Suggests caution; a closer inspection of this column's data may be warranted.
Orange Diamond: Signals extreme caution, more serious than the Yellow Triangle but not as critical as a Red Flag.
Red Flag: Warns of undesirable performance characteristics associated with this column's data, indicating potential danger.
Minervini CODE33 from Trade Like a Stock Market Wizard
Code 33 situation, three quarters of acceleration in earnings, sales, and profit margins. This can be observed in this indicator by focusing on the “Rev YoY Qtr Chg (%)”, “Net Margin (NM) (%)”, “EPS YoY Qtr Chg (%)” looking for the green text in the last two quarters of data. Remember green text simply indicates the value is greater than the prior value. Note I have chosen not to represent the “Net Margin (NM) (%)” as a Year-over-Year (YoY) figure. If you wish to see the bottom line represented as a YoY, you can approximate that by using the “NP YoY Qtr Chg (%)”.
Minervini Smoothing Volatility: Quarterly financial results can be volatile. By averaging the earnings, sales, or other key financial metrics over the last two quarters, Minervini aims to reduce the impact of any one-off events or seasonal fluctuations, providing a more stable view of the company's operational performance. In this indicator I incorporated it for “Rev 2Qtr Chg (%)” and “NP 2Qtr Avg Chg (%)” which averages the last two quarters of Quarter-over-Quarter (QoQ) change.
Financial GrowthOverview
The script named "Financial Growth" is written in Pine Script v5.
It is designed to display various financial metrics and ratios in a tabular format on TradingView charts.
The code pulls financial data like revenue, net income, EPS, etc., and presents these metrics along with ratios such as P/E, D/E, and others.
The table can display these values for different time periods such as quarterly, yearly, or trailing twelve months (TTM).
Additionally, it can show QoQ (Quarter-over-Quarter), YoY (Year-over-Year), and CAGR (Compound Annual Growth Rate) changes for selected financial items.
The code includes plotting options for visual representation of financial data and labels.
Explanation of Code Sections
Revision Notes
The revision notes indicate changes made in different versions of the code.
Each version update introduces new financial metrics and code restructuring.
Indicator Definition
indicator("Financial Growth", overlay=false, format=format.volume): Defines a standalone indicator with the name "Financial Growth". The overlay=false parameter ensures it is not overlaid on the chart but shown in a separate panel.
Text Sizes and Table Positions
Different text sizes and table positions are defined using variables such as text_size_SMALL, tb_pos_POS01, etc.
These variables help in formatting the visual display of the table and labels.
Financial Items
The script defines several financial items like revenue, net income, EPS, EBITDA, debt, and ratios such as ROE, ROA, and D/E.
Each financial item is assigned a corresponding unique identifier, e.g., _revenue_id = 'TOTAL_REVENUE'.
Calculated Financial Ratios
Ratios such as P/E, P/BV, P/S, and P/FCF are calculated using:
price_to_earning
price_to_book_value
price_to_sales
price_to_free_cash_flow
These calculations are done using request.financial function calls.
User Inputs
The code uses input functions to allow users to select financial items and time periods:
financial_item_selection_01 and financial_item_selection_02 enable the selection of financial metrics.
period_selection allows users to choose between periods like FQ (Fiscal Quarter), FY (Fiscal Year), and TTM (Trailing Twelve Months).
Users can control the table's visibility and the display of QoQ, YoY, and CAGR changes using input.bool() settings.
Financial Data Retrieval
The function retreive_financial_data(_financial_item, _period) retrieves financial data based on the selected financial item and period.
It uses the request.financial function to get data for a specific ticker.
Table Creation and Formatting
The script uses table.new() to create a table for displaying financial data.
The table’s headers and values are populated using custom functions like header_column, date_column, and value_column.
QoQ, YoY, and CAGR columns are conditionally displayed based on the user’s input settings.
Plotting Data
The script can also plot the selected financial metrics using the plot() function.
Labels for plotted data are created using the label.new() function.
Handling of Bar States
The barstate.islast condition ensures that the table and plots are only updated at the last bar state, which optimizes performance and prevents unnecessary calculations.
Code Formatting and Optimization
Proper use of variables, functions, and conditional statements adheres to TradingView’s guidelines for efficient Pine Script development.
The use of ignore_invalid_symbol=true in request.financial calls ensures the script handles non-existent financial data gracefully.
Key Functions
is_calculated_data(_financial_item)
Determines whether a given financial item is a calculated metric (e.g., P/E, P/BV) instead of being directly available from TradingView’s data.
get_financial_id(_financial_item)
Returns the financial identifier based on the selected item (e.g., TOTAL_REVENUE for revenue).
get_value_formating(_financial_item)
Returns the appropriate value divider, suffix, and formatting style based on the selected financial item.
create_array(arrayId, val)
Adds a new value to a specified array, used for storing historical financial data for table display.
get_cagr(_data_array, _id, _idmax)
Calculates the compound annual growth rate (CAGR) based on the given data array and index.
GL LineIntroduction
The GL Line Indicator is a versatile tool designed to assist traders in identifying market trends by utilizing three different types of moving averages (EMA, SMA, VWMA) across multiple timeframes. This indicator provides a comprehensive view of market conditions, making it easier to spot potential trading opportunities.
Features
Multiple Moving Average Types:
Choose between Exponential Moving Average (EMA), Simple Moving Average (SMA), and Volume Weighted Moving Average (VWMA) for more tailored analysis.
Triple Timeframe Analysis:
Analyze trends across three different timeframes (Main, Secondary, Tertiary) to get a clearer picture of market direction.
Configurable Parameters:
Customizable lengths for fast and slow-moving averages. Adjustable ATR length and multiplier to refine trend detection sensitivity.
Visual Trend Indication:
Bullish and bearish trends are marked with color-coded lines and fills, enhancing visual clarity.
Confluence Table:
Optional confluence table that shows trend direction across the selected timeframes, aiding in decision-making.
How It Works
Main Trend Calculation:
Select the type of moving average and set the lengths for fast and slow MAs. The difference between these MAs, adjusted by the ATR multiplier, determines the trend direction.
Secondary and Tertiary Trends:
Similar calculations are done for secondary and tertiary timeframes, providing a broader market overview.
Trend Direction and Plotting:
The indicator plots the moving averages and fills the area between them with colors to denote bullish (green) and bearish (red) trends.
How to Use
Select Moving Average Type:
Choose between EMA, SMA, or VWMA based on your trading strategy.
Set Lengths and Multipliers:
Customize the lengths for the fast and slow-moving averages and adjust the ATR length and multiplier for better trend sensitivity.
Analyze Trends:
Use the color-coded plots and fills to identify market trends and make informed trading decisions.
Check Confluence Table:
Optionally display the confluence table to see trend directions across different timeframes.
Disclaimer
This indicator is designed to work best when the secondary and tertiary trends are set to higher timeframes than the chart's timeframe. Using higher timeframes for additional trends provides a broader market perspective and enhances the reliability of trend signals.
IDX Financials v2This indicator adds financial data, ratios, and valuations to your chart. The main objective is to present financial overview that can be glanced quickly to add to your considerations.
The visualization of the indicator consists of two parts:
A. Plots (lines alongside the candlestick)
B. Financial table on the right. Drag your candlestick to the left to provide blank area for the table.
Programatically, the financial data is obtained by using these Pine API:
request.earnings(...) API for the EPS values that are used by the price at average PER line , and
request.financial(..) API for the rest of financial data required by the indicator.
See What financial data is available in Pine for more info on getting financial data in Pine.
A. THE PLOTS
The plots produces two lines, price at average PER in blue and price at average PBV line in pink, calculated over some adjustable time period (the default is one year). By default, only price at average PER line is shown.
Note that PER stands for Price to Earning Ratio.
The price at average PER line shows the price level at the average PER. It is calculated using formula as follows:
line = AVGPER * EPSTTM
where AVGPER is the average PER over some time period (default is one year, adjustable) and EPSTTM is the standardized EPS TTM.
Note that the EPS is updated at the actual time of earning report publication , and not at standard quarter dates such as March 31st, Dec 31st, etc.. This approach is chosen to represent the actual PE at the time.
The price at average PBV line (PBV stands for Price to Book Value), which can be enabled in settings, shows the price at average PBV. It is calculated using formula as follows:
line = AVGPBV * BVPS
where AVGPBV is the average PBV over some period of time (default is one year, adjustable) and BVPS is the book value per share. Note that the PBV is clipped to range to avoid values that are too small/large.
Also note that unlike PER, the BVPS is updated at each quarterly date (such as March 31st, Dec 31st, etc.).
Apart from those lines, some values are written to the status line (i.e. the numbers next to indicator name), which represent the corresponding value at the currently hovered bar:
PER TTM
Average PER
Std value (zvalue) of PER TTM (equal to = (PERTTM - AVGPER)/STDPER)
PBV
The meaning for these abbreviations should be straightforward.
Using the price at average PER line
There are several ways to use the price at average PER line .
You can quickly get the sense of current valuation by seeing the price relative to the price at average PER line . If the price is above the line, the valuation is higher than the average valuation, and vice versa if the price is lower.
The distance between the price and the average is measured in unit of standard deviation. This is represented by the third number in the status line. Value zero indicates the price is exactly at the average PER line. Positive value indicates price is higher than average, and negative if price is lower than average. Usually people use value +2 and -2 to indicate extreme positions.
The second way to use the line is to see how the line jumps up or down at the earning report date . If the line jumps up, this indicates the increase of EPSTTM. And vice versa when the line jumps down.
When EPSTTM is trending up over several quarters, or if EPSTTM is expected to go up, usually the price is also trending up and the valuation is over the average. And vice versa when EPSTTM is trending down or expected to go down. Deviation from this pattern may present some buying or selling opportunity.
B. THE FINANCIAL TABLE
The second visual part is the financial table. The financial table contains financial information at the last bar . It has four sections:
1. Revenue
2. Income
3. Valuations
4. Ratios
Let's discuss them in detail.
1. Revenue and income sections
The revenue and income table are organized into rows and columns.
Each row shows the data at the specified time frame, as follows:
The first four rows shows quarterly revenue/income of the last four quarters.
Then followed by TTM data.
Then followed by forecast of next quarter revenue/income, if such forecast exists. Note the "(F)" notation next to the quarter name.
Then followed by forecast of TTM data of next quarter (only for income), if such forecast exists. Note the "(F)" notation next to the TTM name.
The columns of revenue and income sections show the following:
The time frame information (such as quarter name, TTM, etc.)
The revenue/income value, in billions or millions (configurable).
YoY (year on year) growth, i.e. comparing the value with the value one year earlier, if any.
QoQ (quarter on quarter) growth, i.e. comparing the value with previous quarter value, if any.
GPM/NPM (gross profit margin or net profit margin), i.e. the margin on the specified time period.
Using the Revenue and Income table
The table provides quick way to see the revenue and income trend. You can see the YoY growth as well as QoQ, if that is applicable (non seasonal stocks). You can also see how the margins change over the periods.
The values are also presented with relevant background color . Green indicates "good" value and red indicates "bad" value. The intensity represents how good/bad the value is. The limits of the good and bad values are currently hardcoded in the script.
2. Valuations section
The valuation shows current stock valuation. The section is organized in rows and columns. Each row contains one type of valuation criteria, as follows:
PER (Price Earning Ratio)
Next quarter PER forecast (marked by "(F)" notation) when available
PBV (Price to Book value)
For each valuation criteria, several values are presented as columns:
The current value of the criteria. By current, it means the value at the last bar.
The one year standard deviation position
The three years standard deviation position
3. Ratios Section
The ratios section contains the following useful financial ratios:
ROA (Return on Asset), equal to: NET_INCOME_TTM / TOTAL_ASSETS
ROE (Return on Equity), equal to: NET_INCOME_TTM / BOOK_VALUE_PER_SHARE
PEG (PER to Growth Ratio), equal to PER_TTM / (INCOME_TTM_GROWTH*100)
DER (Debt to Equity Ratio), taken from request.financial(syminfo.tickerid, "DEBT_TO_EQUITY", "FQ")
DPR (Dividend Payout Ratio), taken from request.financial(syminfo.tickerid, "DIVIDEND_PAYOUT_RATIO", "FY")
Dividend yield, equal to (DPR * (NET_INCOME_TTM / TOTAL_SHARES_OUTSTANDING)) / close
KNOWN BUGS
Currently does not handle when the financial quarter contains gap, i.e. there is missing quarter. This usually happens on newly IPO stocks.
LevelUp^ Trend Follower All-In-OneLevelUp is an all-in-one collection of the most popular trend following tools merged into one indicator. LevelUp automates many aspects of technical analysis to find and highlight chart patterns and signals based on the principles of William O'Neil, Stan Weinstein, Jesse Livermore and other well-known trend followers.
The 10-EMA, 21-EMA and 50-SMA are foundational in LevelUp. LevelUp uses the term moving average alignment to refer to patterns that meet your specific requirements as it relates to moving averages and their relationship to price and one another. For example, you can request the start of MA alignment begin when the low is > 21-EMA, the 21-EMA is > 50-SMA and the 50-SMA is trending up.
LevelUp includes indicators for intraday, daily and weekly timeframes.
Key Features:
Daily Timeframe:
▪ Configure moving average alignment and preferred price action.
▪ Custom RS Line:
▪ Symbol overlays showing new RS highs.
▪ Custom moving average with optional cloud.
▪ View 10-week SMA on daily chart.
▪ Set exit criteria based on moving averages and % below entry.
▪ Stats table to simplify calculating entry/exit points.
▪ Signals table to quickly view if stock is trending up.
▪ Power trend tools and analysis.
Daily & Weekly Timeframe:
▪ Flat base detection with custom configuration.
▪ Consolidation detection with custom configuration.
▪ Highlight lower lows and lower closes (pullbacks).
▪ Highlight 52-week highs.
Weekly Timeframe:
▪ Customizable tight closes.
▪ Customizable up weeks.
Intraday Timeframe:
▪ View daily 10-EMA, 21-EMA and 50-SMA.
▪ 1-day and 2-day AVWAP.
▪ 5-day moving average.
All Timeframes:
▪ Marked highs/lows with lines showing support/resistance.
▪ Custom moving averages.
Daily Chart Examples
The following charts show a range of examples on customization and features in LevelUp when viewing a daily chart.
Weekly Chart Examples
Weekly charts are helpful for identifying longer-term trends and patterns. Trend followers often limit the number of indicators and signals on a weekly timeframe, making for a cleaner chart with less noise.
Intraday Chart Examples
Daily 10-EMA, 21-EMA and 50-SMA on an intraday chart.
AVWAP and marked highs/lows.
RS Line ~ Relative Strength
The RS Line compares a stock's performance to the S&P 500 index. A rising RS Line means the stock is outperforming the overall market. Another important signal is when the RS Line reaches a new high before price. When this occurs, it indicates strong demand for the stock and may precede a significant price increase as buyers accumulate shares. Both signals are customizable within LevelUp providing multiple visual cues when the required conditions are met.
LevelUp also adds a few unique visuals as it relates to the typical RS Line. Included are options to show symbols on the RS line that represent RS Line new high and RS Line new high before price. This provides an at-a-glance view of the trend. Additionally, LevelUp allows for custom moving averages to be applied to the RS Line as well as an optional cloud to help identify support/resistance levels.
Power Trends
When a power trend is active, there is a stronger than usual uptrend underway. The concept of a power trend was created by Investor's Business Daily (IBD) based on extensive backtesting and historical analysis.
A power trend by definition uses a major index, such as the Nasdaq Composite (IXIC), as the data source for determining a power trend's state, either off or on. The LevelUp indicator builds upon this concept by allowing the current active chart symbol to be the data source for the power trend.
What Starts A Power Trend:
▪ Low is above the 21-day EMA for at least 10 days.
▪ 21-day EMA is above the 50-day SMA for at least five days.
▪ 50-day SMA is in an uptrend.
▪ Close up for the day.
What Ends A Power Trend:
▪ 21-day EMA crosses under 50-day SMA and the close is below prior day close.
▪ Close below the 50-day SMA and low is 10% below recent high.
Important Note: The power trend as created by IBD uses the daily 21-EMA and 50-SMA. Hence, the power trend is only shown when on the daily timeframe.
AVWAP - Anchored VWAP
The Anchored Volume Weighted Average Price (AVWAP) , created by Brian Shannon, is used to assess the average price at which an asset has traded since a specific time, event or milestone. This could be the beginning of a trading day, the release of important news, or any other event deemed significant. By anchoring the VWAP to a specific point in time, it helps market participants analyze how prices have evolved relative to that anchor.
If a stock is above a rising AVWAP, buyers are in control, while a declining AVWAP indicates sellers are in control. By analyzing AVWAP, traders can make informed decisions on timing entries, managing losses and profits, or deciding to stay on the sidelines during periods of market indecision.
Tight Weeks And Up Weeks
William O'Neil primarily focused on weekly charts. Two common patterns he looked for were tight weeks and up weeks.
Tight weeks occur when there are small variations in price from one week to the next. This indicates a lack of supply and accumulation by institutions. You can configure the minimum number of weeks and the maximum % change in price from week to week.
Up weeks are defined as multiple weeks where each close is higher than the previous week. This pattern is often a signal of institutional buying. At a minimum, O'Neil looked for three weeks of upward price action. You can configure the minimum number of up weeks required.
Flat Base
A flat based is relatively tight price action within a range. A flat base takes 5+ weeks (25+ days) to form. Although flat bases are often found after a more significant advance in price, this isn't always the case. With that in mind, LevelUp does not currently have requirements for a prior uptrend while scanning for flat bases.
In a flat base, price declines should be no more than 15% from intraday peak to trough. This is an important distinction, as with a consolidation (see below) the maximum depth is based on the high of first bar that started the base.
Default Requirements:
▪ Daily minimum length: 25 days.
▪ Weekly minimum length: 5 weeks.
▪ Depth maximum: 15% (daily or weekly).
Consolidation
A consolidation differs from a flat base in that the former can be much deeper and last longer. In addition, the fluctuations in price of a flat base are often tighter than a consolidation.
Unlike a flat base, the maximum depth is calculated from the high at the start of the consolidation. The minimum length and maximum depth can be customized for all flat base and consolidation patterns.
Default Requirements:
▪ Daily minimum length: 30 days.
▪ Weekly minimum length: 6 weeks.
▪ Depth maximum: 35% (daily or weekly).
Pullback In Price And Potential Bounce
A pullback occurs when the price declines after an initial advance. This is normal price action as prior support levels are tested. Pullbacks also act as a way to shakeout weak holders before the primary trend resumes.
With LevelUp you specify the type of pullback to track: lower lows, lower closes or both. You also set the minimum number of bars required. Different values can be set for daily and weekly charts. Once your requirements are met, LevelUp will highlight the bar after the pullback is complete. This is often a potential entry/add point.
52-Week Highs
A 52-week high refers to the highest closing price within the past 52 weeks. Trend followers often use the 52-week high as a signal to identify assets with upward momentum, considering it as an indication of a potential trend continuation. This approach assumes that assets that have reached a 52-week high are more likely to experience further price appreciation.
52-week highs can be shown on both weekly and daily charts. You can set the location where the 52-week high symbol is shown: above the bar, below the bar, at the top of the chart or at the bottom of the chart.
Marked Highs And Lows
Marked highs/lows, often referred to as pivot highs/lows, can be helpful to find areas of potential support and resistance. As defined by William O'Neil, on a daily chart, a marked high is the highest high going back nine bars and forward nine bars. The number of days forward/backward is referred to as the period. The same concept applies to finding marked lows.
One benefit of LevelUp marked highs/lows is that you can customize the high and low periods on all timeframes.
There is an additional option when viewing marked highs/lows to see where a breakout occurs. The highlight is shown if the current bar high is above the most recent pivot high.
Comparing Stock Performance
With two or more copies of LevelUp installed, you can configure different settings and compare and contrast how indicators and signals perform relative to one another.
This is a great way to come up with your own custom layout for each timeframe, tailored to your preferences and trading style.
Stats And The Signals Table
The stats and signal tables can be very helpful to see price information and patterns at a glance. For example, you can quickly determine potential stoploss placement based on the distance to/from a moving average. The signals tables show the status of several key trend indicators, including 52-week highs, RS Line new high and RS Line new high before price.
Managing Long Term Trends
Depending on your trading style, there are many ways to take advantage of long term trends. For example, the chart that follows show how an uptrend can be a profitable trade whether holding for the duration or taking shorter term trades along the way.
Machine Learning: Optimal RSI [YinYangAlgorithms]This Indicator, will rate multiple different lengths of RSIs to determine which RSI to RSI MA cross produced the highest profit within the lookback span. This ‘Optimal RSI’ is then passed back, and if toggled will then be thrown into a Machine Learning calculation. You have the option to Filter RSI and RSI MA’s within the Machine Learning calculation. What this does is, only other Optimal RSI’s which are in the same bullish or bearish direction (is the RSI above or below the RSI MA) will be added to the calculation.
You can either (by default) use a Simple Average; which is essentially just a Mean of all the Optimal RSI’s with a length of Machine Learning. Or, you can opt to use a k-Nearest Neighbour (KNN) calculation which takes a Fast and Slow Speed. We essentially turn the Optimal RSI into a MA with different lengths and then compare the distance between the two within our KNN Function.
RSI may very well be one of the most used Indicators for identifying crucial Overbought and Oversold locations. Not only that but when it crosses its Moving Average (MA) line it may also indicate good locations to Buy and Sell. Many traders simply use the RSI with the standard length (14), however, does that mean this is the best length?
By using the length of the top performing RSI and then applying some Machine Learning logic to it, we hope to create what may be a more accurate, smooth, optimal, RSI.
Tutorial:
This is a pretty zoomed out Perspective of what the Indicator looks like with its default settings (except with Bollinger Bands and Signals disabled). If you look at the Tables above, you’ll notice, currently the Top Performing RSI Length is 13 with an Optimal Profit % of: 1.00054973. On its default settings, what it does is Scan X amount of RSI Lengths and checks for when the RSI and RSI MA cross each other. It then records the profitability of each cross to identify which length produced the overall highest crossing profitability. Whichever length produces the highest profit is then the RSI length that is used in the plots, until another length takes its place. This may result in what we deem to be the ‘Optimal RSI’ as it is an adaptive RSI which changes based on performance.
In our next example, we changed the ‘Optimal RSI Type’ from ‘All Crossings’ to ‘Extremity Crossings’. If you compare the last two examples to each other, you’ll notice some similarities, but overall they’re quite different. The reason why is, the Optimal RSI is calculated differently. When using ‘All Crossings’ everytime the RSI and RSI MA cross, we evaluate it for profit (short and long). However, with ‘Extremity Crossings’, we only evaluate it when the RSI crosses over the RSI MA and RSI <= 40 or RSI crosses under the RSI MA and RSI >= 60. We conclude the crossing when it crosses back on its opposite of the extremity, and that is how it finds its Optimal RSI.
The way we determine the Optimal RSI is crucial to calculating which length is currently optimal.
In this next example we have zoomed in a bit, and have the full default settings on. Now we have signals (which you can set alerts for), for when the RSI and RSI MA cross (green is bullish and red is bearish). We also have our Optimal RSI Bollinger Bands enabled here too. These bands allow you to see where there may be Support and Resistance within the RSI at levels that aren’t static; such as 30 and 70. The length the RSI Bollinger Bands use is the Optimal RSI Length, allowing it to likewise change in correlation to the Optimal RSI.
In the example above, we’ve zoomed out as far as the Optimal RSI Bollinger Bands go. You’ll notice, the Bollinger Bands may act as Support and Resistance locations within and outside of the RSI Mid zone (30-70). In the next example we will highlight these areas so they may be easier to see.
Circled above, you may see how many times the Optimal RSI faced Support and Resistance locations on the Bollinger Bands. These Bollinger Bands may give a second location for Support and Resistance. The key Support and Resistance may still be the 30/50/70, however the Bollinger Bands allows us to have a more adaptive, moving form of Support and Resistance. This helps to show where it may ‘bounce’ if it surpasses any of the static levels (30/50/70).
Due to the fact that this Indicator may take a long time to execute and it can throw errors for such, we have added a Setting called: Adjust Optimal RSI Lookback and RSI Count. This settings will automatically modify the Optimal RSI Lookback Length and the RSI Count based on the Time Frame you are on and the Bar Indexes that are within. For instance, if we switch to the 1 Hour Time Frame, it will adjust the length from 200->90 and RSI Count from 30->20. If this wasn’t adjusted, the Indicator would Timeout.
You may however, change the Setting ‘Adjust Optimal RSI Lookback and RSI Count’ to ‘Manual’ from ‘Auto’. This will give you control over the ‘Optimal RSI Lookback Length’ and ‘RSI Count’ within the Settings. Please note, it will likely take some “fine tuning” to find working settings without the Indicator timing out, but there are definitely times you can find better settings than our ‘Auto’ will create; especially on higher Time Frames. The Minimum our ‘Auto’ will create is:
Optimal RSI Lookback Length: 90
RSI Count: 20
The Maximum it will create is:
Optimal RSI Lookback Length: 200
RSI Count: 30
If there isn’t much bar index history, for instance, if you’re on the 1 Day and the pair is BTC/USDT you’ll get < 4000 Bar Indexes worth of data. For this reason it is possible to manually increase the settings to say:
Optimal RSI Lookback Length: 500
RSI Count: 50
But, please note, if you make it too high, it may also lead to inaccuracies.
We will conclude our Tutorial here, hopefully this has given you some insight as to how calculating our Optimal RSI and then using it within Machine Learning may create a more adaptive RSI.
Settings:
Optimal RSI:
Show Crossing Signals: Display signals where the RSI and RSI Cross.
Show Tables: Display Information Tables to show information like, Optimal RSI Length, Best Profit, New Optimal RSI Lookback Length and New RSI Count.
Show Bollinger Bands: Show RSI Bollinger Bands. These bands work like the TDI Indicator, except its length changes as it uses the current RSI Optimal Length.
Optimal RSI Type: This is how we calculate our Optimal RSI. Do we use all RSI and RSI MA Crossings or just when it crosses within the Extremities.
Adjust Optimal RSI Lookback and RSI Count: Auto means the script will automatically adjust the Optimal RSI Lookback Length and RSI Count based on the current Time Frame and Bar Index's on chart. This will attempt to stop the script from 'Taking too long to Execute'. Manual means you have full control of the Optimal RSI Lookback Length and RSI Count.
Optimal RSI Lookback Length: How far back are we looking to see which RSI length is optimal? Please note the more bars the lower this needs to be. For instance with BTC/USDT you can use 500 here on 1D but only 200 for 15 Minutes; otherwise it will timeout.
RSI Count: How many lengths are we checking? For instance, if our 'RSI Minimum Length' is 4 and this is 30, the valid RSI lengths we check is 4-34.
RSI Minimum Length: What is the RSI length we start our scans at? We are capped with RSI Count otherwise it will cause the Indicator to timeout, so we don't want to waste any processing power on irrelevant lengths.
RSI MA Length: What length are we using to calculate the optimal RSI cross' and likewise plot our RSI MA with?
Extremity Crossings RSI Backup Length: When there is no Optimal RSI (if using Extremity Crossings), which RSI should we use instead?
Machine Learning:
Use Rational Quadratics: Rationalizing our Close may be beneficial for usage within ML calculations.
Filter RSI and RSI MA: Should we filter the RSI's before usage in ML calculations? Essentially should we only use RSI data that are of the same type as our Optimal RSI? For instance if our Optimal RSI is Bullish (RSI > RSI MA), should we only use ML RSI's that are likewise bullish?
Machine Learning Type: Are we using a Simple ML Average, KNN Mean Average, KNN Exponential Average or None?
KNN Distance Type: We need to check if distance is within the KNN Min/Max distance, which distance checks are we using.
Machine Learning Length: How far back is our Machine Learning going to keep data for.
k-Nearest Neighbour (KNN) Length: How many k-Nearest Neighbours will we account for?
Fast ML Data Length: What is our Fast ML Length? This is used with our Slow Length to create our KNN Distance.
Slow ML Data Length: What is our Slow ML Length? This is used with our Fast Length to create our KNN Distance.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!
Average Range Levels [Pro+]Description:
The Average Range Levels builds on the concepts of ADR projections showcased in its lite version.
Average Daily Range (ADR) is a common metric used to measure volatility in an asset. It calculates the average difference between the highest and lowest price over a time interval – normally five days.
The Inner Circle Trader teaches the importance of this metric from an algorithmic point of view; in particular the 1/3ADR price level is deemed to be a threshold used to determine the area at which a Judas Swing – false move to trick market participants, protraction, manipulation – might exhaust.
Another key difference in the ICT-use of this metric compared to the classic approach is that the average range is calculated from New York midnight Time, rather than the daily candle's open.
This exact concept was upscaled to higher Timeframe fractals obtaining the Average Weekly Range (AWR) and the Average Monthly Range (AMR). The latter two metrics are anchored at the first Monday’s midnight (New York Time) of the respective interval – however they also have the option to be anchored at the True Week Open (Tuesday’s Daily Open) and True Month Open (Second Week Open).
It is crucial to remember that the elements of Time are key when it comes to interpreting how price action will, or won't, react to these levels: what Time of the day is it? what day of the week? what week of the month?
If one thinks about the Power of Three of a candle (Accumulation, Manipulation Distribution), it is highly unlikely that a Manipulation event will happen later in the candle’s development – seeing the 1/3ADR hold in London session or New York open, seeing the 1/3AWR hold on Tuesday or Wednesday, or seeing price race to the 1/3AMR early on in the month gives undeniable edge to an Analyst.
Apart from the 1/3 level seen from a Judas perspective, the opposing 1/3 level, and the full AR projections, are excellent algorithmic levels at which we will see orderflow or reactions worth studying. These can be take profit targets, reversal opportunities, pyramid entries, …
Last but not least, the tool is equipped with a Data Table. You have a clear narrative but you are unsure of when price will expand? Track the previous 5 ARs and the current Range for Daily, Weekly, and Monthly – the smaller the AR the higher the chance for an expansion, the larger the AR the higher the chance for a consolidation.
Tool Features:
Auto Color the drawings based on your chart’s background or choose your own
Decide whether to consider daily candles, or New York (00:00 to 00:00 NY Time) for the basis of the calculation
Show the last 10 Historical Levels
– See the AR Range, the AR price levels and 1/3AR price levels by hovering over the text labels
Plot the AR levels from their Time Anchor, or as offset markers on the side for a cleaner look
Show/Hide all elements individually
In the Idea below, you can see how INDEX:BTCUSD hit the 1/3AMR level at the end of the second week of the month. The subsequent rejection from this level suggests we might have witnessed a Judas Swing, hence we flip to bullish bias.
In the more recent AWR levels, we can see how price did not touch any level until friday – this is a consolidation week with low probability setups. This was expected, if one looks at the precious two week's ranges and respective average ranges in the Data Table: both breached the AR value, due to to the great expansion higher.
Lastly for the ADR levels we can see how the Judas higher got beautifully stopped at the 1/3 level, and the full ADR level on the opposite side catches price while it falls.
To Get Access, and Level Up see the Author's Instructions below!
This indicator is available only on the TradingView platform.
⚠️ Intellectual Property Rights ⚠️
While this tool's base concepts are public, its interpretation, code, and presentation are protected intellectual property. Unauthorized copying or distribution is prohibited.
⚠️ Terms and Conditions ⚠️
This financial tool is for educational purposes only and not financial advice. Users assume responsibility for decisions made based on the tool's information. Past performance doesn't guarantee future results. By using this tool, users agree to these terms.
Round Numbers Breakouts Smart Formula Signals and AlertsThis indicator uses Round Numbers breakouts and then uses smart formula with the near Round Numbers to determine best TP (take profit)/SL (stop loss) areas. Furthermore, it calculates win percentage, shows in-profit/in-loss peaks and the price amount result over a customizable date range, which when combined well with the smart formula provides decent profitable outcome. I have decided to write my own backtesting engine as the integrated TradingView strategy one has limitations and has shown inconsistencies when compared to manual backtesting…
There are many settings you can manually change to trade any instrument, any style, any approach and there are presets included for Bitcoin(BTCUSD), FOREX(EURUSD), SPY(S&P500), so you can start trading immediately! Alerts correspond to indicator settings and are turned on with a few clicks. There are 3 tables (each can be shown/hidden) showing everything you need to see/know to calibrate the indicator as you wish.
Labels, lines, tables explanations (everything can be hidden/shown):
- LONG Labels: medium-green: position open, dark-green: SL, bright-green: TP, blue: TP2
- SHORT Labels: medium-red: position open, dark-red: SL, bright-red: TP, purple: TP2
- Gray circles: position entry area | Yellow crosses: SL area
- Green line: Long TP1, Blue line: Long TP2 | Red Line: Short TP1, Purple line: Short TP2
- Grey lines: Round Numbers (customized via “Round Number up/down measure unit” input)
- Yellow labels at end of each week: end of week OVERALL total results
- Red colored background: power segment
- 3 tables: 1) INFO | STATS, 2) SPY Options Calculator, 3) Indicator Settings
If you decide to fully customize the indicator yourself, on the very top - under “PRESETS” select “MANUAL”! NOTE: If you select any of the pre-set presets, only GLOBAL settings can be changed, the rest of the settings will be “frozen” until you switch it to “MANUAL”!
- Global Settings are self-explanatory and mainly observational, show/hide, etc.
- Manual TP2 (Multi-Take-Profit) Settings:
>>>>> Include TP2 System? Turn on/off multi-profit system, with this unchecked, every trade will either end with SL or with TP1.
>>>>> TP2 System: NEAREST/FORMULA, NEAREST – after TP1 is taken > next TP2 will be a round number price target nearest to where TP1 was taken (sometimes it can be very near, sometimes further away…), FORMULA – 2nd round number price target will be optimally selected based on the distance behind and ahead of TP1 area. For TP2 – FORMULA would be the most logical choice as with multi-take-profit setting turned on – you’d want to ride it out as far as possible.
>>>>> TP1/TP2 division type: 1) Each price target (TP1, TP2) will be ½ of the position 2) TP1 will be 2/3 of the position and TP2 will be the remaining 1/3.
>>>>> TP2 hit type: “close” > candle has to close on top/crossing the price target line, “touch” > once candle touches the price target – you will be immediately alerted to take the partial profit (if you will use such setting – you will need to take the partial profits as soon as you receive the alert.
>>>>> TP1 > Back to Entry hit type: similar to TP2, “close” > candle close, “touch” > candle touch. Please note: this is a very tricky setting as if you use “close” option – your profitable trade may become a loss if a huge candle will close against your position eliminating your TP1 profit, however often the price will touch and cross the entry area to only bounce and continue with your position direction for even bigger profits… so experiment with the date range results to see what works best for your instrument/setting/strategy.
>>>>> TP2 count towards trades count: this can be a bit confusing, but it is simply how should TP2 be treated towards trades count. The indicator will show you Win Percentage and Win % is obtained from winning trades count divided by total trades count. While TP2 is not “a new trade”, it expands the profit of the trade. This is an experimental setting to count TP2 as the whole winning trade, ½ of a trade, or not count it at all.
- Manual Signals/TP1 Settings:
>>>>> TP1/TP2 offset: this one is really cool, with this feature you can hunt these conditions when the price comes very near the profit target area, but never touches it. With this setting turned on and with a good offset amount – you will be able to catch these for TP1 and TP2!
>>>>> TP1/TP2 offset amount: just what the title says, please be careful with this as this number varies significantly depending on the instrument you will be trading. Examples: 1) For SPY 0.1 would be $0.10 offset - if TP1 is $400 and price hits $399.90 > TP1 considered taken/signal shown/alert) | 2) For EURUSD, it is very different and if wrong will show TP1 immediately at position open, typical good offset for EURUSD is: 0.0005 | 3) For BTCUSD, 10 - $10 offset, if TP is $15,000 > $14,990, etc.
>>>>> Round Number up/down measure unit (in dollars $): this one is very important if you will be using “MANUAL” selection to build your own setup as it is very different for every instrument. For SPY, round numbers are single dollars or even half-dollar 50 cent numbers: 1 or 0.5 (350, 351, 352, etc. or 350.50, 351, 351.50, 352, etc.), while for Bitcoin (BTCUSD) a single unit ($1) is too small to be a round number as Bitoin moves much faster and wider every second and it would have to be at least 50 ($50) to make sense. Similar for FOREX (EUR/USD) a single 1 unit ($1) will be too big as EURUSD will never move a whole $1 in 15 minutes or even a day.. and would have to be something like 1.05500. You can easily determine if this number makes sense for your instrument by observing the grey Round Number lines which will correspond based on this setting. You can also visually observer if the price of the instrument appreciates these round numbers.
>>>>> Close Position Before Market Closes: just what the title says. Indicator will close the position 15 minutes before market closes (US session), update backtesting stats, alert you.
>>>>> Close Position Before Power Hour: 3PM – 4PM ET is the last hour of US trading session, where sudden move in any direction can happen with huge volatility, while sometimes nothing will happen at all… Many try to avoid it, so if you wish to avoid it as well - turn this on and it will alert you to close your positions 15 minutes before Power Hour starts, backtesting/stats will be adjusted accordingly.
>>>>> Skip OVERSIZED candles in signals: turn on this setting to skip signals, which happen to fall on big candles. This is basically a protection from huge volatility moves, which usually happen during financial news/events and if you are not a fan of these – you can set this option for indicator to not open anything based on the candle size.
>>>>> Color OVERSIZED candles: this will help you calibrate the size of the OVERSIZED candles if you decide to use this setting and overall visually see them.
>>>>> OVERSIZED candle size: OVERSIZED candle size must be input as it varies significantly. Please note: for each instrument – the size number is completely different, as for SPY: 2 would mean any candle bigger than $2 distance will be considered OVERSIZED, for Bitcoin it would have to be several hundred dollars, like 400-500. For FOREX, this would have to be a decimal, for EURUSD something like 0.0005. It’s best to experiment visually with this setting depending on the instrument you will be trading while setting up the size. To see a typical huge unusual candle – look up financial calendar for something like FOMC meeting, then measure the candle input it into this setting.
>>>>> OVERSIZED candle size calculation type: this is just more flexibility for your preference. If you wish to calculate the size of the candle based on the open/close – select “BODY”, if you wish to use high/low – select “STICKS (from tip to tip)”. Hard to say which one is better, so it is up to you to decide.
>>>>> Include EMA in signal formula: LONG signals will only be shown only if above EMA, SHORT if below EMA. EMA length is of course customizable in below.
>>>>> Skip opposite candle types in signals: signals where the candle color confirms the direction of the trade, but the candle type is opposite (like a green colored bearish hammer for example) will be avoided (such candles can be very uncertain/deceptive).
>>>>> Skip doji: signals where the signal candle is doji (uncertain) will be avoided.
>>>>> TP1 hit type/system: same thing as TP2 hit type/system.
>>>>> SL hit type/system: same as TP1 and TP2 types/systems.
>>>>> Intraday Session Signals Active Time in ET: time range during the day when indicator will show signals (open trades, alert you, etc.). This is specifically for intraday trading. You can turn it off completely by selecting a BLANK option.
>>>>> Intraday TP/SL Active Time in ET: same as above, but for taking profits/stop losses.
*** To add the alerts
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Alert name: Whatever you want
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
If you wish to try this out for a week or so – please write me directly and I will give you access.
SUPERTREND MIXED ICHI-DMI-DONCHIAN-VOL-GAP-HLBox@RLSUPERTREND MIXED ICHI-DMI-VOL-GAP-HLBox@RL
by RegisL76
This script is based on several trend indicators.
* ICHIMOKU (KINKO HYO)
* DMI (Directional Movement Index)
* SUPERTREND ICHIMOKU + SUPERTREND DMI
* DONCHIAN CANAL Optimized with Colored Bars
* HMA Hull
* Fair Value GAP
* VOLUME/ MA Volume
* PRICE / MA Price
* HHLL BOXES
All these indications are visible simultaneously on a single graph. A data table summarizes all the important information to make a good trade decision.
ICHIMOKU Indicator:
The ICHIMOKU indicator is visualized in the traditional way.
ICHIMOKU standard setting values are respected but modifiable. (Traditional defaults = .
An oriented visual symbol, near the last value, indicates the progression (Ascending, Descending or neutral) of the TENKAN-SEN and the KIJUN-SEN as well as the period used.
The CLOUD (KUMO) and the CHIKOU-SPAN are present and are essential for the complete analysis of the ICHIMOKU.
At the top of the graph are visually represented the crossings of the TENKAN and the KIJUN.
Vertical lines, accompanied by labels, make it possible to quickly visualize the particularities of the ICHIMOKU.
A line displays the current bar.
A line visualizes the end of the CLOUD (KUMO) which is shifted 25 bars into the future.
A line visualizes the end of the chikou-span, which is shifted 25 bars in the past.
DIRECTIONAL MOVEMENT INDEX (DMI) : Treated conventionally : DI+, DI-, ADX and associated with a SUPERTREND DMI.
A visual symbol at the bottom of the graph indicates DI+ and DI- crossings
A line of oriented and colored symbols (DMI Line) at the top of the chart indicates the direction and strength of the trend.
SUPERTREND ICHIMOKU + SUPERTREND DMI :
Trend following by SUPERTREND calculation.
DONCHIAN CHANNEL: Treated conventionally. (And optimized by colored bars when overshooting either up or down.
The lines, high and low of the last values of the channel are represented to quickly visualize the level of the RANGE.
SUPERTREND HMA (HULL) Treated conventionally.
The HMA line visually indicates, according to color and direction, the market trend.
A visual symbol at the bottom of the chart indicates opportunities to sell and buy.
VOLUME:
Calculation of the MOBILE AVERAGE of the volume with comparison of the volume compared to the moving average of the volume.
The indications are colored and commented according to the comparison.
PRICE: Calculation of the MOBILE AVERAGE of the price with comparison of the price compared to the moving average of the price.
The indications are colored and commented according to the comparison.
HHLL BOXES:
Visualizes in the form of a box, for a given period, the max high and min low values of the price.
The configuration allows taking into account the high and low wicks of the price or the opening and closing values.
FAIR VALUE GAP :
This indicator displays 'GAP' levels over the current time period and an optional higher time period.
The script takes into account the high/low values of the current bar and compares with the 2 previous bars.
The "gap" is generated from the lack of overlap between these bars. Bearish or bullish gaps are determined by whether the gap is above or below HmaPrice, as they tend to fill, and can be used as targets.
NOTE: FAIR VALUE GAP has no values displayed in the table and/or label.
Important information (DATA) relating to each indicator is displayed in real time in a table and/or a label.
Each information is commented and colored according to direction, value, comparison etc.
Each piece of information indicates the values of the current bar and the previous value (in "FULL" mode).
The other possible modes for viewing the table and/or the label allow a more synthetic view of the information ("CONDENSED" and "MINIMAL" modes).
In order not to overload the vision of the chart too much, the visualization box of the RANGE DONCHIAN, the vertical lines of the shifted marks of the ICHIMOKU, as well as the boxes of the HHLL Boxes indicator are only visualized intermittently (managed by an adjustable time delay ).
The "HISTORICAL INFO READING" configuration parameter set to zero (by default) makes it possible to read all the information of the current bar in progress (Bar #0). All other values allow to read the information of a historical bar. The value 1 reads the information of the bar preceding the current bar (-1). The value 10 makes it possible to read the information of the tenth bar behind (-10) compared to the current bar, etc.
At the bottom of the DATAS table and label, lights, red, green or white indicate quickly summarize the trend from the various indicators.
Each light represents the number of indicators with the same trend at a given time.
Green for a bullish trend, red for a bearish trend and white for a neutral trend.
The conditions for determining a trend are for each indicator:
SUPERTREND ICHIMOHU + DMI: the 2 Super trends together are either bullish or bearish.
Otherwise the signal is neutral.
DMI: 2 main conditions:
BULLISH if DI+ >= DI- and ADX >25.
BEARISH if DI+ < DI- and ADX >25.
NEUTRAL if the 2 conditions are not met.
ICHIMOKU: 3 main conditions:
BULLISH if PRICE above the cloud and TENKAN > KIJUN and GREEN CLOUD AHEAD.
BEARISH if PRICE below the cloud and TENKAN < KIJUN and RED CLOUD AHEAD.
The other additional conditions (Data) complete the analysis and are present for informational purposes of the trend and depend on the context.
DONCHIAN CHANNEL: 1 main condition:
BULLISH: the price has crossed above the HIGH DC line.
BEARISH: the price has gone below the LOW DC line.
NEUTRAL if the price is between the HIGH DC and LOW DC lines
The 2 other complementary conditions (Datas) complete the analysis:
HIGH DC and LOW DC are increasing, falling or stable.
SUPERTREND HMA HULL: The script determines several trend levels:
STRONG BUY, BUY, STRONG SELL, SELL AND NEUTRAL.
VOLUME: 3 trend levels:
VOLUME > MOVING AVERAGE,
VOLUME < MOVING AVERAGE,
VOLUME = MOVING AVERAGE.
PRICE: 3 trend levels:
PRICE > MOVING AVERAGE,
PRICE < MOVING AVERAGE,
PRICE = MOVING AVERAGE.
If you are using this indicator/strategy and you are satisfied with the results, you can possibly make a donation (a coffee, a pizza or more...) via paypal to: lebourg.regis@free.fr.
Thanks in advance !!!
Have good winning Trades.
**************************************************************************************************************************
SUPERTREND MIXED ICHI-DMI-VOL-GAP-HLBox@RL
by RegisL76
Ce script est basé sur plusieurs indicateurs de tendance.
* ICHIMOKU (KINKO HYO)
* DMI (Directional Movement Index)
* SUPERTREND ICHIMOKU + SUPERTREND DMI
* DONCHIAN CANAL Optimized with Colored Bars
* HMA Hull
* Fair Value GAP
* VOLUME/ MA Volume
* PRIX / MA Prix
* HHLL BOXES
Toutes ces indications sont visibles simultanément sur un seul et même graphique.
Un tableau de données récapitule toutes les informations importantes pour prendre une bonne décision de Trade.
I- Indicateur ICHIMOKU :
L’indicateur ICHIMOKU est visualisé de manière traditionnelle
Les valeurs de réglage standard ICHIMOKU sont respectées mais modifiables. (Valeurs traditionnelles par défaut =
Un symbole visuel orienté, à proximité de la dernière valeur, indique la progression (Montant, Descendant ou neutre) de la TENKAN-SEN et de la KIJUN-SEN ainsi que la période utilisée.
Le NUAGE (KUMO) et la CHIKOU-SPAN sont bien présents et sont primordiaux pour l'analyse complète de l'ICHIMOKU.
En haut du graphique sont représentés visuellement les croisements de la TENKAN et de la KIJUN.
Des lignes verticales, accompagnées d'étiquettes, permettent de visualiser rapidement les particularités de l'ICHIMOKU.
Une ligne visualise la barre en cours.
Une ligne visualise l'extrémité du NUAGE (KUMO) qui est décalé de 25 barres dans le futur.
Une ligne visualise l'extrémité de la chikou-span, qui est décalée de 25 barres dans le passé.
II-DIRECTIONAL MOVEMENT INDEX (DMI)
Traité de manière conventionnelle : DI+, DI-, ADX et associé à un SUPERTREND DMI
Un symbole visuel en bas du graphique indique les croisements DI+ et DI-
Une ligne de symboles orientés et colorés (DMI Line) en haut du graphique, indique la direction et la puissance de la tendance.
III SUPERTREND ICHIMOKU + SUPERTREND DMI
Suivi de tendance par calcul SUPERTREND
IV- DONCHIAN CANAL :
Traité de manière conventionnelle.
(Et optimisé par des barres colorées en cas de dépassement soit vers le haut, soit vers le bas.
Les lignes, haute et basse des dernières valeurs du canal sont représentées pour visualiser rapidement la fourchette du RANGE.
V- SUPERTREND HMA (HULL)
Traité de manière conventionnelle.
La ligne HMA indique visuellement, selon la couleur et l'orientation, la tendance du marché.
Un symbole visuel en bas du graphique indique les opportunités de vente et d'achat.
*VI VOLUME :
Calcul de la MOYENNE MOBILE du volume avec comparaison du volume par rapport à la moyenne mobile du volume.
Les indications sont colorées et commentées en fonction de la comparaison.
*VII PRIX :
Calcul de la MOYENNE MOBILE du prix avec comparaison du prix par rapport à la moyenne mobile du prix.
Les indications sont colorées et commentées en fonction de la comparaison.
*VIII HHLL BOXES :
Visualise sous forme de boite, pour une période donnée, les valeurs max hautes et min basses du prix.
La configuration permet de prendre en compte les mèches hautes et basses du prix ou bien les valeurs d'ouverture et de fermeture.
IX - FAIR VALUE GAP
Cet indicateur affiche les niveaux de 'GAP' sur la période temporelle actuelle ET une période temporelle facultative supérieure.
Le script prend en compte les valeurs haut/bas de la barre actuelle et compare avec les 2 barres précédentes.
Le "gap" est généré à partir du manque de recouvrement entre ces barres.
Les écarts baissiers ou haussiers sont déterminés selon que l'écart est supérieurs ou inférieur à HmaPrice, car ils ont tendance à être comblés, et peuvent être utilisés comme cibles.
NOTA : FAIR VALUE GAP n'a pas de valeurs affichées dans la table et/ou l'étiquette.
Les informations importantes (DATAS) relatives à chaque indicateur sont visualisées en temps réel dans une table et/ou une étiquette.
Chaque information est commentée et colorée en fonction de la direction, de la valeur, de la comparaison etc.
Chaque information indique la valeurs de la barre en cours et la valeur précédente ( en mode "COMPLET").
Les autres modes possibles pour visualiser la table et/ou l'étiquette, permettent une vue plus synthétique des informations (modes "CONDENSÉ" et "MINIMAL").
Afin de ne pas trop surcharger la vision du graphique, la boite de visualisation du RANGE DONCHIAN, les lignes verticales des marques décalées de l'ICHIMOKU, ainsi que les boites de l'indicateur HHLL Boxes ne sont visualisées que de manière intermittente (géré par une temporisation réglable ).
Le paramètre de configuration "HISTORICAL INFO READING" réglé sur zéro (par défaut) permet de lire toutes les informations de la barre actuelle en cours (Barre #0).
Toutes autres valeurs permet de lire les informations d'une barre historique. La valeur 1 permet de lire les informations de la barre précédant la barre en cours (-1).
La valeur 10 permet de lire les information de la dixième barre en arrière (-10) par rapport à la barre en cours, etc.
Dans le bas de la table et de l'étiquette de DATAS, des voyants, rouge, vert ou blanc indique de manière rapide la synthèse de la tendance issue des différents indicateurs.
Chaque voyant représente le nombre d'indicateur ayant la même tendance à un instant donné. Vert pour une tendance Bullish, rouge pour une tendance Bearish et blanc pour une tendance neutre.
Les conditions pour déterminer une tendance sont pour chaque indicateur :
SUPERTREND ICHIMOHU + DMI : les 2 Super trends sont ensemble soit bullish soit Bearish. Sinon le signal est neutre.
DMI : 2 conditions principales :
BULLISH si DI+ >= DI- et ADX >25.
BEARISH si DI+ < DI- et ADX >25.
NEUTRE si les 2 conditions ne sont pas remplies.
ICHIMOKU : 3 conditions principales :
BULLISH si PRIX au dessus du nuage et TENKAN > KIJUN et NUAGE VERT DEVANT.
BEARISH si PRIX en dessous du nuage et TENKAN < KIJUN et NUAGE ROUGE DEVANT.
Les autres conditions complémentaires (Datas) complètent l'analyse et sont présents à titre informatif de la tendance et dépendent du contexte.
CANAL DONCHIAN : 1 condition principale :
BULLISH : le prix est passé au dessus de la ligne HIGH DC.
BEARISH : le prix est passé au dessous de la ligne LOW DC.
NEUTRE si le prix se situe entre les lignes HIGH DC et LOW DC
Les 2 autres conditions complémentaires (Datas) complètent l'analyse : HIGH DC et LOW DC sont croissants, descendants ou stables.
SUPERTREND HMA HULL :
Le script détermine plusieurs niveaux de tendance :
STRONG BUY, BUY, STRONG SELL, SELL ET NEUTRE.
VOLUME : 3 niveaux de tendance :
VOLUME > MOYENNE MOBILE, VOLUME < MOYENNE MOBILE, VOLUME = MOYENNE MOBILE.
PRIX : 3 niveaux de tendance :
PRIX > MOYENNE MOBILE, PRIX < MOYENNE MOBILE, PRIX = MOYENNE MOBILE.
Si vous utilisez cet indicateur/ stratégie et que vous êtes satisfait des résultats,
vous pouvez éventuellement me faire un don (un café, une pizza ou plus ...) via paypal à : lebourg.regis@free.fr.
Merci d'avance !!!
Ayez de bons Trades gagnants.
Advanced Candle Patterns detector-GSK-VIZAG-AP-INDIA 📌 Description
This indicator automatically detects and highlights common candlestick patterns on the chart and provides a reference table with explanations. It is designed as a visual and educational tool for learning candlestick psychology and price action.
🔍 Features
Pattern Detection (on-chart):
Detects well-known bullish, bearish, and neutral patterns:
Bullish Engulfing, Bearish Engulfing
Hammer, Inverted Hammer
Morning Star, Evening Star
Three White Soldiers, Three Black Crows
Bullish Harami, Bearish Harami
Piercing Line, Dark Cloud Cover
Tweezer Bottom, Tweezer Top
Doji
Patterns are marked directly on the chart using labels.
Labels can show pattern names or serial numbers (user choice).
Bullish = Green, Bearish = Red, Neutral = Yellow.
Reference Table (on-chart panel):
Lists all detected patterns with color-coded text.
Option to show short explanations for each pattern, or just identifiers.
Table includes a “Serial” column so users can match with chart labels.
Chart & Table Settings (customizable):
Table Position: choose Top Left, Top Right, Bottom Left, Bottom Right.
Text Size: choose Tiny, Small, Normal, Large, or Huge.
Toggle Options:
Show/Hide explanation table.
Show/Hide descriptions in table.
Show serial numbers instead of pattern labels on chart.
🎓 Educational Purpose
This tool is meant for study and research. Candlestick patterns alone are not reliable signals; their strength depends on trend, volume, and market context. Use this script to visually learn patterns and combine with other analysis methods.
⚠️ Disclaimer:
This indicator is for educational purposes only. It does not provide trading or investment advice. No candlestick pattern guarantees future price movement. Always confirm with other tools and do your own research before making trading decisions.
MTF Target Prediction LiteMTF Target Prediction Enhanced
Description:
MTF Target Prediction Enhanced is an advanced multi-timeframe technical analysis indicator that identifies and clusters target price levels based on trendline breakouts across multiple timeframes. The indicator uses sophisticated clustering algorithms to group similar price targets and provides visual feedback through dynamic arrows, cluster boxes, and detailed statistics.
Key Features:
Multi-Timeframe Analysis: Simultaneously analyzes up to 8 different timeframes to identify convergence zones
Smart Clustering: Groups nearby target prices into clusters with quality scoring
Predictive Arrows: Dynamic arrows that track price movement toward cluster targets
Grace Period System: Prevents false cluster loss signals with configurable waiting period
Enhanced Quality Scoring: 5-component quality assessment (Density, Consistency, Reachability, Size, Momentum)
Real-time Statistics: Track performance with win rate, P&L, and success metrics
Adaptive Performance Modes: Optimize for speed or accuracy based on your needs
How It Works:
The indicator identifies pivot points and trendlines on each selected timeframe
When a trendline breakout occurs, it calculates a target price based on the measured move
Multiple targets from different timeframes are grouped into clusters when they converge
Each cluster receives a quality score based on multiple factors
High-quality clusters generate prediction arrows showing potential price targets
The system tracks whether targets are reached or clusters are lost
Settings Guide:
⚡ Performance
Performance Mode: Choose between Fast (200 bars), Balanced (500 bars), Full (1000 bars), or Unlimited processing
🎯 Clustering
Max Cluster Distance (%): Maximum price difference to group targets (default: 1.5%)
Min Cluster Size: Minimum number of targets to form a cluster (default: 2)
One Direction per TF: Allow only one direction signal per timeframe
Cluster Grace Period: Bars to wait before considering cluster lost (default: 10)
➡️ Prediction Arrows
Min Quality for Arrow: Minimum cluster quality to create arrow (0.1-1.0)
Quality Weights: Adjust importance of each quality component
Close Previous Arrows: Auto-close arrows when new ones appear
Use Trend Filter: Create arrows only in trend direction
Trend Filter Intensity: Sensitivity of trend detection (High/Medium/Low)
📅 Timeframes
Pivot Length: Bars for pivot calculation (default: 3)
Timeframes 1-8: Select up to 8 timeframes for analysis
Visualize
Show Cluster Analysis: Display cluster boxes and labels
Show Cluster Boxes: Rectangle visualization around clusters
Show TP Lines: Display individual target price lines
Show Trend Filter: Visualize trend cloud
Show Prediction Arrows: Display directional arrows to targets
Show Statistics Table: Performance metrics display
Visual Elements:
Green/Red Boxes: Cluster zones with transparency based on quality
Arrows: Diagonal lines pointing to cluster targets
Green/Red: Active and tracking
Orange: In grace period
Gray: Cluster lost
Labels: Detailed cluster information including:
Timeframes involved
Center price (C)
Quality score (Q)
Component scores (D,C,R,S,M)
Distance from current price
Result Markers:
✓ Green: Target reached successfully
✗ Red/Gray: Cluster lost
Quality Components Explained:
D (Density): How tightly packed the TPs are relative to ATR
C (Consistency): How close the timeframes are to each other
R (Reachability): Likelihood of reaching target based on distance and trend
S (Size): Number of TPs in cluster (with diminishing returns)
M (Momentum): Alignment with current price momentum
Best Practices:
Start with Balanced performance mode and default settings
Use higher timeframes (D, W) for more reliable clusters
Look for clusters with quality scores above 0.7
Enable trend filter to reduce false signals
Adjust grace period based on your timeframe (higher TF = longer grace)
Monitor the statistics table to track indicator performance
Alerts Available:
High-quality cluster formation (UP/DOWN)
Target reached notifications
Cluster lost warnings
RUSSIAN VERSION
MTF Target Prediction Enhanced
Описание:
MTF Target Prediction Enhanced - это продвинутый мультитаймфреймовый индикатор технического анализа, который идентифицирует и кластеризует целевые уровни цен на основе пробоев трендовых линий на нескольких таймфреймах. Индикатор использует сложные алгоритмы кластеризации для группировки схожих ценовых целей и предоставляет визуальную обратную связь через динамические стрелки, кластерные боксы и детальную статистику.
Ключевые особенности:
Мультитаймфреймовый анализ: Одновременный анализ до 8 различных таймфреймов для определения зон схождения
Умная кластеризация: Группировка близких целевых цен в кластеры с оценкой качества
Прогнозные стрелки: Динамические стрелки, отслеживающие движение цены к целям кластера
Система Grace Period: Предотвращение ложных сигналов потери кластера с настраиваемым периодом ожидания
Улучшенная оценка качества: 5-компонентная оценка (Плотность, Согласованность, Достижимость, Размер, Импульс)
Статистика в реальном времени: Отслеживание эффективности с винрейтом, P&L и метриками успеха
Адаптивные режимы производительности: Оптимизация скорости или точности по вашим потребностям
Как это работает:
Индикатор определяет опорные точки и трендовые линии на каждом выбранном таймфрейме
При пробое трендовой линии рассчитывается целевая цена на основе измеренного движения
Множественные цели с разных таймфреймов группируются в кластеры при схождении
Каждый кластер получает оценку качества на основе нескольких факторов
Высококачественные кластеры генерируют стрелки прогноза, показывающие потенциальные цели
Система отслеживает достижение целей или потерю кластеров
Руководство по настройкам:
⚡ Производительность
Performance Mode: Выбор между Fast (200 баров), Balanced (500), Full (1000) или Unlimited
🎯 Кластеризация
Max Cluster Distance (%): Максимальная разница цен для группировки (по умолчанию: 1.5%)
Min Cluster Size: Минимальное количество целей для формирования кластера (по умолчанию: 2)
One Direction per TF: Разрешить только один сигнал направления на таймфрейм
Cluster Grace Period: Бары ожидания перед потерей кластера (по умолчанию: 10)
➡️ Стрелки прогноза
Min Quality for Arrow: Минимальное качество кластера для создания стрелки (0.1-1.0)
Quality Weights: Настройка важности каждого компонента качества
Close Previous Arrows: Автозакрытие стрелок при появлении новых
Use Trend Filter: Создавать стрелки только в направлении тренда
Trend Filter Intensity: Чувствительность определения тренда (Высокая/Средняя/Низкая)
📅 Таймфреймы
Pivot Length: Бары для расчета пивота (по умолчанию: 3)
Timeframes 1-8: Выбор до 8 таймфреймов для анализа
Визуализация
Show Cluster Analysis: Отображение боксов и меток кластеров
Show Cluster Boxes: Визуализация прямоугольников вокруг кластеров
Show TP Lines: Отображение линий целевых цен
Show Trend Filter: Визуализация облака тренда
Show Prediction Arrows: Отображение направленных стрелок к целям
Show Statistics Table: Отображение метрик эффективности
Визуальные элементы:
Зеленые/Красные боксы: Зоны кластеров с прозрачностью на основе качества
Стрелки: Диагональные линии, указывающие на цели кластера
Зеленые/Красные: Активные и отслеживающие
Оранжевые: В периоде ожидания
Серые: Кластер потерян
Метки: Детальная информация о кластере:
Задействованные таймфреймы
Центральная цена (C)
Оценка качества (Q)
Оценки компонентов (D,C,R,S,M)
Расстояние от текущей цены
Маркеры результата:
✓ Зеленый: Цель успешно достигнута
✗ Красный/Серый: Кластер потерян
Объяснение компонентов качества:
D (Density/Плотность): Насколько плотно расположены TP относительно ATR
C (Consistency/Согласованность): Насколько близки таймфреймы друг к другу
R (Reachability/Достижимость): Вероятность достижения цели с учетом расстояния и тренда
S (Size/Размер): Количество TP в кластере (с убывающей отдачей)
M (Momentum/Импульс): Соответствие текущему импульсу цены
Лучшие практики:
Начните с режима Balanced и настроек по умолчанию
Используйте старшие таймфреймы (D, W) для более надежных кластеров
Ищите кластеры с оценкой качества выше 0.7
Включите фильтр тренда для уменьшения ложных сигналов
Настройте grace period в зависимости от вашего таймфрейма (старший TF = дольше grace)
Следите за таблицей статистики для отслеживания эффективности индикатора
Доступные алерты:
Формирование высококачественного кластера (ВВЕРХ/ВНИЗ)
Уведомления о достижении цели
Предупреждения о потере кластера
Disclaimer / Отказ от ответственности:
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own analysis and risk management.
Данный индикатор предназначен только для образовательных и информационных целей. Прошлые результаты не гарантируют будущих результатов. Всегда проводите собственный анализ и управление рисками.
MTF Target Prediction LiteMTF Target Prediction Enhanced Lite
Description:
MTF Target Prediction Enhanced is an advanced multi-timeframe technical analysis indicator that identifies and clusters target price levels based on trendline breakouts across multiple timeframes. The indicator uses sophisticated clustering algorithms to group similar price targets and provides visual feedback through dynamic arrows, cluster boxes, and detailed statistics.
Key Features:
Multi-Timeframe Analysis: Simultaneously analyzes up to 8 different timeframes to identify convergence zones
Smart Clustering: Groups nearby target prices into clusters with quality scoring
Predictive Arrows: Dynamic arrows that track price movement toward cluster targets
Grace Period System: Prevents false cluster loss signals with configurable waiting period
Enhanced Quality Scoring: 5-component quality assessment (Density, Consistency, Reachability, Size, Momentum)
Real-time Statistics: Track performance with win rate, P&L, and success metrics
Adaptive Performance Modes: Optimize for speed or accuracy based on your needs
How It Works:
The indicator identifies pivot points and trendlines on each selected timeframe
When a trendline breakout occurs, it calculates a target price based on the measured move
Multiple targets from different timeframes are grouped into clusters when they converge
Each cluster receives a quality score based on multiple factors
High-quality clusters generate prediction arrows showing potential price targets
The system tracks whether targets are reached or clusters are lost
Settings Guide:
⚡ Performance
Performance Mode: Choose between Fast (200 bars), Balanced (500 bars), Full (1000 bars), or Unlimited processing
🎯 Clustering
Max Cluster Distance (%): Maximum price difference to group targets (default: 1.5%)
Min Cluster Size: Minimum number of targets to form a cluster (default: 2)
One Direction per TF: Allow only one direction signal per timeframe
Cluster Grace Period: Bars to wait before considering cluster lost (default: 10)
➡️ Prediction Arrows
Min Quality for Arrow: Minimum cluster quality to create arrow (0.1-1.0)
Quality Weights: Adjust importance of each quality component
Close Previous Arrows: Auto-close arrows when new ones appear
Use Trend Filter: Create arrows only in trend direction
Trend Filter Intensity: Sensitivity of trend detection (High/Medium/Low)
📅 Timeframes
Pivot Length: Bars for pivot calculation (default: 3)
Timeframes 1-8: Select up to 8 timeframes for analysis
Visualize
Show Cluster Analysis: Display cluster boxes and labels
Show Cluster Boxes: Rectangle visualization around clusters
Show TP Lines: Display individual target price lines
Show Trend Filter: Visualize trend cloud
Show Prediction Arrows: Display directional arrows to targets
Show Statistics Table: Performance metrics display
Visual Elements:
Green/Red Boxes: Cluster zones with transparency based on quality
Arrows: Diagonal lines pointing to cluster targets
Green/Red: Active and tracking
Orange: In grace period
Gray: Cluster lost
Labels: Detailed cluster information including:
Timeframes involved
Center price (C)
Quality score (Q)
Component scores (D,C,R,S,M)
Distance from current price
Result Markers:
✓ Green: Target reached successfully
✗ Red/Gray: Cluster lost
Quality Components Explained:
D (Density): How tightly packed the TPs are relative to ATR
C (Consistency): How close the timeframes are to each other
R (Reachability): Likelihood of reaching target based on distance and trend
S (Size): Number of TPs in cluster (with diminishing returns)
M (Momentum): Alignment with current price momentum
Best Practices:
Start with Balanced performance mode and default settings
Use higher timeframes (D, W) for more reliable clusters
Look for clusters with quality scores above 0.7
Enable trend filter to reduce false signals
Adjust grace period based on your timeframe (higher TF = longer grace)
Monitor the statistics table to track indicator performance
Alerts Available:
High-quality cluster formation (UP/DOWN)
Target reached notifications
Cluster lost warnings
------------------------------------------------------------------------------------------------------------------
MTF Target Prediction Enhanced Lite
Описание:
MTF Target Prediction Enhanced - это продвинутый мультитаймфреймовый индикатор технического анализа, который идентифицирует и кластеризует целевые уровни цен на основе пробоев трендовых линий на нескольких таймфреймах. Индикатор использует сложные алгоритмы кластеризации для группировки схожих ценовых целей и предоставляет визуальную обратную связь через динамические стрелки, кластерные боксы и детальную статистику.
Ключевые особенности:
Мультитаймфреймовый анализ: Одновременный анализ до 8 различных таймфреймов для определения зон схождения
Умная кластеризация: Группировка близких целевых цен в кластеры с оценкой качества
Прогнозные стрелки: Динамические стрелки, отслеживающие движение цены к целям кластера
Система Grace Period: Предотвращение ложных сигналов потери кластера с настраиваемым периодом ожидания
Улучшенная оценка качества: 5-компонентная оценка (Плотность, Согласованность, Достижимость, Размер, Импульс)
Статистика в реальном времени: Отслеживание эффективности с винрейтом, P&L и метриками успеха
Адаптивные режимы производительности: Оптимизация скорости или точности по вашим потребностям
Как это работает:
Индикатор определяет опорные точки и трендовые линии на каждом выбранном таймфрейме
При пробое трендовой линии рассчитывается целевая цена на основе измеренного движения
Множественные цели с разных таймфреймов группируются в кластеры при схождении
Каждый кластер получает оценку качества на основе нескольких факторов
Высококачественные кластеры генерируют стрелки прогноза, показывающие потенциальные цели
Система отслеживает достижение целей или потерю кластеров
Руководство по настройкам:
⚡ Производительность
Performance Mode: Выбор между Fast (200 баров), Balanced (500), Full (1000) или Unlimited
🎯 Кластеризация
Max Cluster Distance (%): Максимальная разница цен для группировки (по умолчанию: 1.5%)
Min Cluster Size: Минимальное количество целей для формирования кластера (по умолчанию: 2)
One Direction per TF: Разрешить только один сигнал направления на таймфрейм
Cluster Grace Period: Бары ожидания перед потерей кластера (по умолчанию: 10)
➡️ Стрелки прогноза
Min Quality for Arrow: Минимальное качество кластера для создания стрелки (0.1-1.0)
Quality Weights: Настройка важности каждого компонента качества
Close Previous Arrows: Автозакрытие стрелок при появлении новых
Use Trend Filter: Создавать стрелки только в направлении тренда
Trend Filter Intensity: Чувствительность определения тренда (Высокая/Средняя/Низкая)
📅 Таймфреймы
Pivot Length: Бары для расчета пивота (по умолчанию: 3)
Timeframes 1-8: Выбор до 8 таймфреймов для анализа
Визуализация
Show Cluster Analysis: Отображение боксов и меток кластеров
Show Cluster Boxes: Визуализация прямоугольников вокруг кластеров
Show TP Lines: Отображение линий целевых цен
Show Trend Filter: Визуализация облака тренда
Show Prediction Arrows: Отображение направленных стрелок к целям
Show Statistics Table: Отображение метрик эффективности
Визуальные элементы:
Зеленые/Красные боксы: Зоны кластеров с прозрачностью на основе качества
Стрелки: Диагональные линии, указывающие на цели кластера
Зеленые/Красные: Активные и отслеживающие
Оранжевые: В периоде ожидания
Серые: Кластер потерян
Метки: Детальная информация о кластере:
Задействованные таймфреймы
Центральная цена (C)
Оценка качества (Q)
Оценки компонентов (D,C,R,S,M)
Расстояние от текущей цены
Маркеры результата:
✓ Зеленый: Цель успешно достигнута
✗ Красный/Серый: Кластер потерян
Объяснение компонентов качества:
D (Density/Плотность): Насколько плотно расположены TP относительно ATR
C (Consistency/Согласованность): Насколько близки таймфреймы друг к другу
R (Reachability/Достижимость): Вероятность достижения цели с учетом расстояния и тренда
S (Size/Размер): Количество TP в кластере (с убывающей отдачей)
M (Momentum/Импульс): Соответствие текущему импульсу цены
Лучшие практики:
Начните с режима Balanced и настроек по умолчанию
Используйте старшие таймфреймы (D, W) для более надежных кластеров
Ищите кластеры с оценкой качества выше 0.7
Включите фильтр тренда для уменьшения ложных сигналов
Настройте grace period в зависимости от вашего таймфрейма (старший TF = дольше grace)
Следите за таблицей статистики для отслеживания эффективности индикатора
Доступные алерты:
Формирование высококачественного кластера (ВВЕРХ/ВНИЗ)
Уведомления о достижении цели
Предупреждения о потере кластера
Disclaimer / Отказ от ответственности:
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own analysis and risk management.
Данный индикатор предназначен только для образовательных и информационных целей. Прошлые результаты не гарантируют будущих результатов. Всегда проводите собственный анализ и управление рисками.
Moving Average Heat MapThe MA Trend Heatmap transforms complex moving average analysis into an intuitive visual display. By calculating the slope angle of seven moving averages and presenting them as a color-coded heatmap, this indicator provides instant insight into market momentum across multiple timeframes.
Key Features:
8 Moving Average Types: Choose from EMA, SMA, WMA, HMA, RMA, VWMA, DEMA, or TEMA.
Customizable Periods: 7 configurable MA lengths (default: 3, 5, 8, 13, 21, 34, 55)
Dynamic Angle Calculation: Measures MA slope angles with automatic chart scale normalization
9-Level Color Gradient: Visual momentum strength from extreme bullish to extreme bearish
Comprehensive Info Table: Real-time display of all angles and momentum statistics
4 Alert Conditions: Extreme and majority momentum alerts for automated trading
How to Use:
Trend Identification: Green rows indicate bullish momentum, red rows show bearish momentum
Momentum Strength: Color intensity reflects angle steepness (brighter = stronger)
Confluence Trading: Look for alignment when multiple rows show the same color
Divergence Detection: Spot when short and long-term MAs show opposing colors
Alert Setup: Configure alerts for extreme momentum conditions
Settings:
Select MA type and customize each of the 7 period lengths
Calculation Settings
Slope Period: Lookback for angle calculation (default: 5)
Max Angle: Normalization threshold (default: 90°)
Display Settings
Heatmap Height: Adjust row size
Grid Lines: Toggle on/off
Info Table: Show/hide detailed statistics
Colors
Fully customizable 9-level color scheme
Interpretation
All Green: Strong uptrend across all timeframes
Mixed Colors: Transitional market or ranging conditions
All Red: Strong downtrend across all timeframes
Color Transitions: Potential trend change developing
Best Practices
Combine with price action for confirmation
Use multiple timeframes for better perspective
Wait for color alignment before entering trades
Monitor the info table for precise angle measurements
What Makes This Unique
Unlike traditional MA crossover systems, this indicator quantifies momentum through angle measurement and presents it visually. The heatmap format allows traders to assess market conditions at a glance, making it ideal for quick decision-making and multi-timeframe analysis.
Kelly Optimal Leverage IndicatorThe Kelly Optimal Leverage Indicator mathematically applies Kelly Criterion to determine optimal position sizing based on market conditions.
This indicator helps traders answer the critical question: "How much capital should I allocate to this trade?"
Note that "optimal position sizing" does not equal the position sizing that you should have. The Optima position sizing given by the indicator is based on historical data and cannot predict a crash, in which case, high leverage could be devastating.
Originally developed for gambling scenarios with known probabilities, the Kelly formula has been adapted here for financial markets to dynamically calculate the optimal leverage ratio that maximizes long-term capital growth while managing risk.
Key Features
Kelly Position Sizing: Uses historical returns and volatility to calculate mathematically optimal position sizes
Multiple Risk Profiles: Displays Full Kelly (aggressive), 3/4 Kelly (moderate), 1/2 Kelly (conservative), and 1/4 Kelly (very conservative) leverage levels
Volatility Adjustment: Automatically recommends appropriate Kelly fraction based on current market volatility
Return Smoothing: Option to use log returns and smoothed calculations for more stable signals
Comprehensive Table: Displays key metrics including annualized return, volatility, and recommended exposure levels
How to Use
Interpret the Lines: Each colored line represents a different Kelly fraction (risk tolerance level). When above zero, positive exposure is suggested; when below zero, reduce exposure. Note that this is based on historical returns. I personally like to increase my exposure during market downturns, but this is hard to illustrate in the indicator.
Monitor the Table: The information panel provides precise leverage recommendations and exposure guidance based on current market conditions.
Follow Recommended Position: Use the "Recommended Position" guidance in the table to determine appropriate exposure level.
Select Your Risk Profile: Conservative traders should follow the Half Kelly or Quarter Kelly lines, while more aggressive traders might consider the Three-Quarter or Full Kelly lines.
Adjust with Volatility: During high volatility periods, consider using more conservative Kelly fractions as recommended by the indicator.
Mathematical Foundation
The indicator calculates the optimal leverage (f*) using the formula:
f* = μ/σ²
Where:
μ is the annualized expected return
σ² is the annualized variance of returns
This approach balances potential gains against risk of ruin, offering a scientific framework for position sizing that maximizes long-term growth rate.
Notes
The Full Kelly is theoretically optimal for maximizing long-term growth but can experience significant drawdowns. You should almost never use full kelly.
Most practitioners use fractional Kelly strategies (1/2 or 1/4 Kelly) to reduce volatility while capturing most of the growth benefits
This indicator works best on daily timeframes but can be applied to any timeframe
Negative Kelly values suggest reducing or eliminating market exposure
The indicator should be used as part of a complete trading system, not in isolation
Enjoy the indicator! :)
P.S. If you are really geeky about the Kelly Criterion, I recommend the book The Kelly Capital Growth Investment Criterion by Edward O. Thorp and others.
MissedPrice Volume Method[KiomarsRakei]█ Core Concept:
This script detects price zones that are highly likely to be revisited — areas where price moved too quickly to fully fill market activity. Using sharp volume shifts and volatility filters, the script identifies these “missed” levels and generates signals pointing toward them.
Signals are generated before price reaches the zone, allowing you to analyze price behavior both before and after the zone is touched. These zones often act like magnets for price, making them ideal for short-term.
Examples of signals and high hit rate of Missed zones
█ How It Works:
The script monitors 3-candle volume and price behavior to detect moments where volume accelerates abnormally compared to recent averages. When a potential missed zone is found and price hasn’t revisited it yet, a signal is created in advance, pointing to that zone as a likely future target.
█ Features:
Zone Visualization: Dynamic boxes show price targets based on missed volume areas.
Pre-Zone Signals: Alerts fire before price returns, offering early trade setups.
Stat Tracking System: Automatically logs signals, win rate, and average profit.
Live Performance Table: On-chart stats including hit/miss breakdown and late-return analysis.
Works on All Markets: Compatible with any chart that provides volume — crypto, forex, indices, or stocks.
A signal is considered successful when price touches the zone. However, not all zones are guaranteed to be revisited.
█ Key Inputs & Stats Table:
Volume Filters: Control signal sensitivity using min/max relative volume shift.
Zone & Line Settings: Adjust how long the zone stays visible and whether entry lines are drawn.
Custom Colors: Choose colors for buy/sell zones, lines, and visuals.
📊 Table Metrics:
Total Signals: Count of all generated signals.
Win Rate: % of signals where price returned to the zone (hit = touched the zone, regardless of timing).
Bad Signals: Signals that took too long to hit or were never hit.
Bad but Hit: Signals marked bad but eventually touched the zone.
Bad signals are marked in red. These indicate zones that price failed to reach within the expected time window, showing where the script identified a target that remained unfulfilled.
Indicator DashboardThis script creates an 'Indicator Dashboard' designed to assist you in analyzing financial markets and making informed decisions. The indicator provides a summary of current market conditions by presenting various technical analysis indicators in a table format. The dashboard evaluates popular indicators such as Moving Averages, RSI, MACD, and Stochastic RSI. Below, we'll explain each part of this script in detail and its purpose:
### Overview of Indicators
1. **Moving Averages (MA)**:
- This indicator calculates Simple Moving Averages (“SMA”) for 5, 14, 20, 50, 100, and 200 periods. These averages provide a visual summary of price movements. Depending on whether the price is above or below the moving average, it determines the market direction as either “Bullish” or “Bearish.”
2. **RSI (Relative Strength Index)**:
- The RSI helps identify overbought or oversold market conditions. Here, the RSI is calculated for a 14-period window, and this value is displayed in the table. Additionally, the 14-period moving average of the RSI is also included.
3. **MACD (Moving Average Convergence Divergence)**:
- The MACD indicator is used to determine trend strength and potential reversals. This script calculates the MACD line, signal line, and histogram. The MACD condition (“Bullish,” “Bearish,” or “Neutral”) is displayed alongside the MACD and signal line values.
4. **Stochastic RSI**:
- Stochastic RSI is used to identify momentum changes in the market. The %K and %D lines are calculated to determine the market condition (“Bullish” or “Bearish”), which is displayed along with the calculated values for %K and %D.
### Table Layout and Presentation
The dashboard is presented in a vertical table format in the top-right corner of the chart. The table contains two columns: “Indicator” and “Status,” summarizing the condition of each technical indicator.
- **Indicator Column**: Lists each of the indicators being tracked, such as SMA values, RSI, MACD, etc.
- **Status Column**: Displays the current status of each indicator, such as “Bullish,” “Bearish,” or specific values like the RSI or MACD.
The table also includes rounded indicator values for easier interpretation. This helps traders quickly assess market conditions and make informed decisions based on multiple indicators presented in a single location.
### Detailed Indicator Status Calculations
1. **SMA Status**: For each moving average (5, 14, 20, 50, 100, 200), the script checks if the current price is above or below the SMA. The status is determined as “Bullish” if the price is above the SMA and “Bearish” if below, with the value of the SMA also displayed.
2. **RSI and RSI Average**: The RSI value for a 14-period is displayed along with its 14-period SMA, which provides an average reading of the RSI to smooth out volatility.
3. **MACD Indicator**: The MACD line, signal line, and histogram are calculated using standard parameters (12, 26, 9). The status is shown as “Bullish” when the MACD line is above the signal line, and “Bearish” when it is below. The exact values for the MACD line, signal line, and histogram are also included.
4. **Stochastic RSI**: The %K and %D lines of the Stochastic RSI are used to determine the trend condition. If %K is greater than %D, the condition is “Bullish,” otherwise it is “Bearish.” The actual values of %K and %D are also displayed.
### Conclusion
The 'Indicator Dashboard' provides a comprehensive overview of multiple technical indicators in a single, easy-to-read table. This allows traders to quickly gauge market conditions and make more informed decisions. By consolidating key indicators like Moving Averages, RSI, MACD, and Stochastic RSI into one dashboard, it saves time and enhances the efficiency of technical analysis.
This script is particularly useful for traders who prefer a clean and organized overview of their favorite indicators without needing to plot each one individually on the chart. Instead, all the crucial information is available at a glance in a consolidated format.
Sri Yantra MTF - AynetSri Yantra MTF - Aynet Script Overview
This Pine Script generates a Sri Yantra-inspired geometric pattern overlay on price charts. The pattern is dynamically updated based on multi-timeframe (MTF) inputs, utilizing high and low price ranges, and adjusting its size relative to a chosen multiplier.
The Sri Yantra is a sacred geometric figure used in various spiritual and mathematical contexts, symbolizing the interconnectedness of the universe. Here, it is applied to visualize structured price levels.
Scientific and Technical Explanation
Multi-Timeframe Integration:
Base Timeframe (baseRes): This is the primary timeframe for the analysis. The opening price and ATR (Average True Range) are calculated from this timeframe.
Pattern Timeframe (patternRes): Defines the granularity of the pattern. It ensures synchronization with price movements on specific time intervals.
Geometric Construction:
ATR-Based Scaling: The script uses ATR as a volatility measure to dynamically size the geometric pattern. The sizeMult input scales the pattern relative to price volatility.
Pattern Width (barOffset): Defines the horizontal extent of the pattern in terms of bars. This ensures the pattern is aligned with price movements and scales appropriately.
Sri Yantra-Like Geometry:
Outer Square: A bounding box is drawn around the price level.
Triangles: Multiple layers of triangles (primary, secondary, and tertiary) are calculated and drawn to mimic the structure of the Sri Yantra. These triangles converge and diverge based on price levels.
Horizontal Lines: Added at key levels to provide additional structure and aesthetic alignment.
Dynamic Updates:
The pattern recalculates and redraws itself on the last bar of the selected timeframe, ensuring it adapts to real-time price data.
A built-in check identifies new bars in the chosen timeframe (patternRes), ensuring accurate updates.
Information Table:
Displays the selected base and pattern timeframes in a table format on the top-right corner of the chart.
Allows traders to see the active settings for quick adjustments.
Key Inputs
Style Settings:
Pattern Color: Customize the color of the geometric patterns.
Size Multiplier (sizeMult): Adjusts the size of the pattern relative to price movements.
Line Width: Controls the thickness of the geometric lines.
Timeframe Settings:
Base Resolution (baseRes): Timeframe for calculating the pattern's anchor (default: daily).
Pattern Resolution (patternRes): Timeframe granularity for the pattern’s formation.
Geometric Adjustments:
Pattern Width (barOffset): Horizontal width in bars.
ATR Multiplier (rangeSize): Vertical size adjustment based on price volatility.
Scientific Concepts
Volatility Representation:
ATR (Average True Range): A standard measure of market volatility, representing the average range of price movements over a defined period. Here, ATR adjusts the vertical height of the geometric figures.
Geometric Symmetry:
The script emulates symmetry similar to the Sri Yantra, aligning with the principles of sacred geometry, which often appear in nature and mathematical constructs. Symmetry in financial data visualizations can aid in intuitive interpretation of price movements.
Multi-Timeframe Fusion:
Synchronizing patterns with multiple timeframes enhances the relevance of overlays for different trading strategies. For example, daily trends combined with hourly patterns can help traders optimize entries and exits.
Visual Features
Outer Square:
Drawn to encapsulate the geometric structure.
Represents the broader context of price levels.
Triangles:
Three layers of interlocking triangles create a fractal pattern, providing a visual alignment to price dynamics.
Horizontal Lines:
Emphasize critical levels within the pattern, offering visual cues for potential support or resistance areas.
Information Table:
Displays the active timeframe settings, helping traders quickly verify configurations.
Applications
Trend Visualization:
Patterns overlay on price movements provide a clearer view of trend direction and potential reversals.
Volatility Mapping:
ATR-based scaling ensures the pattern adjusts to varying market conditions, making it suitable for different asset classes and trading strategies.
Multi-Timeframe Analysis:
Integrates higher and lower timeframes, enabling traders to spot confluences between short-term and long-term price levels.
Potential Enhancements
Add Fibonacci Levels: Overlay Fibonacci retracements within the pattern for deeper price level insights.
Dynamic Alerts: Include alert conditions when price intersects key geometric lines.
Custom Labels: Add text descriptions for critical intersections or triangle centers.
This script is a unique blend of technical analysis and sacred geometry, providing traders with an innovative way to visualize market dynamics.
BTX27-MAXIndicator Description: BTX27-MAX
The BTX27-MAX is a comprehensive trading indicator designed to provide traders with customizable signals and alerts based on RSI and ATR calculations. It offers both automatic and manual configurations, making it adaptable to various currency pairs and trading styles. The indicator integrates with Telegram for real-time alerts and includes features for trade management and performance tracking.
Key Features:
Customizable Color Themes: Choose between Dark and Light color styles to match your chart preferences.
Automatic or Manual Configuration: Automatically sets optimal parameters for selected currency pairs or allows manual input for personalized settings.
RSI and ATR-Based Signals: Utilizes RSI smoothing and ATR calculations to identify potential trading opportunities.
Automatic SL and TP Levels: Projects customizable Stop-Loss and Take-Profit levels directly on the chart.
Telegram Integration: Sends customized buy or sell alerts with trade details to your Telegram channel.
Day and Time Filters: Allows selection of trading days and specific trading hours for signal generation.
Trade Summary Table: Displays the results of the last three trades (Win/Loss) directly on the chart.
Customizable Alert Messages: Personalize the messages sent to Telegram for both buy and sell signals.
Visual Enhancements: Colors candles based on trend direction and highlights the trading session on the chart.
How Does the Indicator Work?
Color Style Selection:
- Choose between "Dark" or "Light" themes to match your chart setup.
Currency Pair Selection:
- Select from predefined currency pairs: "EURUSD M5", "USDCAD M3", "GBPUSD M9", "XAUUSD M9".
Automatic vs. Manual Configuration:
- Automatic Configuration: When enabled, the indicator automatically sets parameters optimized for the selected currency pair.
- Manual Configuration: Allows you to input your own parameters for RSI period, smoothing factor, liquidity factors, and SL/TP ticks.
Telegram Integration:
- Input your Telegram chat ID to receive real-time alerts when signals are generated.
Trading Days and Hours:
- Customize which days of the week you want to receive signals.
- Set specific trading start and end hours to focus on preferred trading sessions.
Indicator Calculations:
- Calculates RSI and applies smoothing to identify the trend.
- Uses ATR for volatility measurement and to set dynamic liquidity bands.
Signal Generation:
- A Buy Signal is generated when specific RSI and ATR conditions are met.
- A Sell Signal is generated under the opposite conditions.
- Signals are only generated during the specified trading days and hours.
Trade Execution Visuals:
- Automatically draws SL and TP boxes on the chart for each signal.
- Colors candles based on trend direction: bullish, bearish, or neutral.
Telegram Alerts:
- Sends customized messages to your Telegram channel, including trade details like entry price, SL, TP, volatility, and trend direction.
Trade Summary Table:
- Displays the results of the last three trades ("✅ TP" for Take Profit hit, "❌ SL" for Stop Loss hit) on the chart.
How to Use the Indicator?
Setup:
- Add the indicator to your TradingView chart.
- Choose your preferred Color Style (Dark or Light).
- Select the Currency Pair you are trading.
- Decide whether to use Automatic Configuration or input your own settings.
Configure Telegram Alerts:
- Input your Telegram Chat ID to receive alerts.
- Customize the Buy and Sell alert messages if desired.
Set Trading Days and Hours:
- Enable or disable trading on specific days of the week.
- Set your preferred trading session hours.
Monitor Signals:
- Watch for buy or sell labels appearing on the chart.
- Use the SL and TP boxes to plan your trade entries and exits.
Review Trade Performance:
- Check the trade summary table to see the outcomes of recent trades.
What Makes This Indicator Original?
Adaptable Configuration: Offers both automatic and manual settings, making it suitable for traders of all levels and various trading instruments.
Comprehensive Alerts: Provides detailed alerts via Telegram, including custom messages and comprehensive trade information.
Trade Management Tools: Automatically calculates and visualizes SL and TP levels, aiding in effective risk management.
Performance Tracking: Includes an on-chart summary of recent trade results, helping traders assess the indicator's effectiveness over time.
Visual Customization: Enhances chart visuals with color themes, candle coloring, and trading session highlights.
Additional Considerations
Testing and Optimization: Before using the indicator in live trading, test it in a demo account and adjust settings as needed.
Complementary Analysis: Use in conjunction with other technical or fundamental analysis tools to confirm signals.
Risk Management: Ensure that the automatically calculated SL and TP levels align with your risk tolerance and trading strategy.
Market Awareness: Stay informed about economic events that may impact the instruments you are trading.
Example Configuration
Assuming you are trading "EURUSD M5" with Automatic Configuration enabled:
RSI Period: 15
RSI Smoothing Factor: 14
Rapid Liquidity Factor: 2.238
Liquidity Threshold: 15
SL Ticks: 100
TP Ticks: 300
Trading Days: Tuesday, Wednesday, Thursday
Trading Hours: Start at 8:00, End at 10:00
Telegram Chat ID: Your unique Telegram chat ID
Conclusion
The BTX27-MAX indicator is a versatile tool that combines technical analysis with automated trade management and alerting features. Its adaptability through automatic and manual configurations makes it suitable for a wide range of trading styles and instruments. By integrating real-time Telegram alerts and providing on-chart visual aids, it enhances decision-making processes and helps traders manage their trades more effectively.
Ready for immediate use in TradingView, this indicator can be a valuable addition to your trading toolkit.
Trend, Momentum and Price value analysis [deepakks444]Trend, Momentum, and Price Value Analysis
This indicator combines several key technical analysis tools to help traders evaluate the market's trend strength, momentum, and overall price behavior. It uses a variety of signals to generate a "Buy," "Sell," or "No Clear Indication" based on multiple indicators and plots them directly on the chart. A customizable table also summarizes these signals, making it easy to interpret the market conditions in real-time.
Key Features:
VWAP (Volume-Weighted Average Price): Indicates whether the price is above or below the VWAP line, helping to identify buying or selling opportunities based on fair value.
Alligator Indicator: Utilizes three simple moving averages (SMAs) to track trend direction, providing a clear "Buy" or "Sell" signal when the averages are aligned.
Supertrend: A widely-used trend-following indicator, this script identifies potential buy or sell zones based on the price's relationship with the Supertrend line.
20-period Moving Average (MA): A simple moving average to track the overall trend direction. The signal is based on the price crossing above or below the MA.
ADX (Average Directional Index): Measures the strength of the trend. A reading above 25 indicates a "Buy" signal, while a reading below suggests a "Sell."
RSI (Relative Strength Index): Generates a buy signal when RSI exceeds 60 and a sell signal when it drops below 40. Values between 40 and 60 indicate a neutral condition.
MACD (Moving Average Convergence Divergence): Provides a signal for buying when the MACD line crosses above the signal line, and selling when it crosses below.
Volume Signal: Compares current volume against the 20-period moving average to identify significant volume spikes. This helps in determining if the market is supported by strong volume.
Customization Options:
Moving Average Length: Customize the 20-period MA length to better fit your trading style or the asset you’re analyzing.
Supertrend Settings: Adjust the Supertrend factor and ATR period for different timeframes or volatility environments.
Table Position: Customize where the signal table is displayed on the chart (Top Right, Top Left, Bottom Right, or Bottom Left).
Table Appearance: Set the table background color and choose between small or tiny text size for better readability.
Signal Summary:
The indicator computes a combined signal based on the number of "Buy" or "Sell" signals from the individual indicators. If 5 or more indicators suggest a "Buy" or "Sell," the table will display a combined signal for easier decision-making. This feature consolidates the signals into one straightforward output, helping you filter noise and act on clear trends.
Table Display:
The customizable table organizes the signals of the key indicators, showing:
Indicator: Lists all the indicators in use, such as VWAP, Alligator, Supertrend, etc.
Signal: Displays "Buy," "Sell," or "Neutral" for each indicator based on the current market conditions.
Intended Use:
This script is designed to help traders monitor multiple technical indicators at once, giving them a clearer view of the market’s trend strength, momentum, and volatility. While it simplifies the process of interpreting various signals, users should use it in combination with their own research and risk management strategies.
Disclaimer: This script is for educational purposes only and should not be considered financial advice. All trading involves risk, and the performance of an indicator in the past does not guarantee future results. Always perform due diligence and use proper risk management techniques.
3 days ago
Release Notes
A "Buy" triangle is plotted below the bar if the signal changes to "Buy".
A "Sell" triangle is plotted above the bar if the signal changes to "Sell".
Script Name: Trend, Momentum, and Price Value Analysis
The Trend, Momentum, and Price Value Analysis script provides a multi-faceted approach to market analysis, combining several technical indicators into a single tool. This script offers an easy-to-interpret table summarizing various indicator signals, along with visual buy/sell signals on the chart.
Key Features:
VWAP (Volume Weighted Average Price):
The VWAP provides insights into whether the current price is above or below the average weighted price, helping traders identify potential buy or sell opportunities.
Alligator Indicator (Simplified):
Using three simple moving averages (SMAs), this tool helps identify the beginning of trends and potential buy/sell zones based on the Alligator jaw, teeth, and lips.
Supertrend:
A trend-following indicator that determines whether the market is in a bullish or bearish phase based on ATR and factor inputs. The Supertrend line is plotted on the chart.
20-period Moving Average (MA):
A basic moving average that assists in gauging price direction and the overall trend.
ADX (Average Directional Index):
Helps identify the strength of a trend. A value above 25 indicates a strong trend.
RSI (Relative Strength Index):
Measures momentum by identifying overbought and oversold conditions. A signal is triggered when RSI is above 60 (buy) or below 40 (sell).
MACD (Moving Average Convergence Divergence):
A momentum indicator that provides signals when the MACD line crosses the signal line.
Volume Signal:
Compares the current volume with a 20-period average to determine if volume supports the current trend direction.
Signal Table:
A table is generated on the chart, displaying real-time signals from each of the above indicators. The table is customizable with background colors and text sizes.
The position of the table can be set to any corner of the chart for convenience.
Combined Signal Logic:
The script calculates a Combined Signal based on the majority of buy or sell signals across all the indicators. If 5 or more indicators give a buy or sell signal, a combined signal is generated.
Buy/Sell Signal Plots:
The script plots buy (green triangle) and sell (red triangle) signals on the chart based on the combined signal when transitioning from a previous opposite signal.
Customizable Inputs:
Users can customize the length of the moving averages, adjust the background and text colors of the table, and choose the position of the table on the chart.