Oops!Oops! is based on an overemotional response, then a quick reversal of the concomitant overreaction of price. The overreaction we are looking for to give us a buy signal is an opening that is below the previous day's low. The entry comes when, following the lower open, price then rallies back to the previous day's low (selling pressures have been abated and a market rally should follow). A sell signal is just the opposite. We will be looking for an open greater than the prior day's high. Our entry then comes from price falling back to the prior high, giving us a strong short-term suggestion of lower prices to come.
Educational
Stx Monthly Trades ProfitMonthly profit displays profits in a grid and allows you to know the gain related to the investment during each month.
The profit could be computed in terms of gain/trade_cost or as percentage of equity update.
Settings:
- Profit: Monthly profit percentage or percentage of equity
- Table position
This strategy is intended only as a container for the code and for testing the script of the profit table.
Setting of strategy allows to select the test case for this snippet (percentage grid).
Money management: not relevant as strategy is a test case.
This script stand out as take in account the gain of each trade in relation to the capital invested in each trade. For example consider the following scenario:
Capital of 1000$ and we invest a fixed amount of 1000$ (I know is too risky but is a good example), we gain 10% every month.
After 10 months our capital is of 2000$ and our strategy is perfect as we have the same performance every month.
Instead, evaluating the percentage of equity we have 10% the first month, 9.9% the second (1200$/1100$ - 1) and 5.26% the tenth month. So seems that strategy degrade with times but this is not true.
For this reason, to evaluate my strategy I prefer to see the montly return of investment.
WARNING: The strategy provided with this script is only a test case and allows to see the behavior with different "trades" management, for these reason commision are set to zero.
At the moment only the provided test cases are handled:
test 1 - single entry and single exit;
test 2 - single entry and multiple exits;
test 3 - single entry and switch position;
TickerWhen viewing an asset's chart, the ticker symbol and company description are automatically displayed in the top left corner, providing quick identification of the asset being analyzed.
Leading Industry [TrendX__]Leading Industry indicator functions like an Industry-meter, a tool that measures the strength of different industries in a country or region.
It consists of the fields of Technology, Finance, Industrial, Energy, Real-estate, and Construction.
USAGE
The Industry-meter indicates which industry is the strongest by using an arrow that points to the field with the highest score.
The default fields are set for Vietnam’s industry, but the user can customize them according to their preferences and needs.
The Industry-meter is a useful way to visualize the economic landscape and identify the opportunities and challenges in various sectors.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur.
Therefore, one should always exercise caution and judgment when making decisions based on past performance.
Sticky Notes v1.0 [NL]This Sticky notes.
It can be used for simple reminders, checklists, notes, and strategy descriptions.
You can enter up to 10 sentences.
Notes are highly customizable:
Chose Note Position
Chose Note Color
Chose Font Size
Chose Font Family
Chose Font Color
Screenshots how does it look.
Light theme:
Dark theme:
Goldmine Wealth Builder - DKK/SKKGoldmine Wealth Builder
Version 1.0
Introduction to Long-Term Investment Strategies: DKK, SKK1 and SKK2
In the dynamic realm of long-term investing, the DKK, SKK1, and SKK2 strategies stand as valuable pillars. These strategies, meticulously designed to assist investors in building robust portfolios, combine the power of Super Trend, RSI (Relative Strength Index), Exponential Moving Averages (EMAs), and their crossovers. By providing clear alerts and buy signals on a daily time frame, they equip users with the tools needed to make well-informed investment decisions and navigate the complexities of the financial markets. These strategies offer a versatile and structured approach to both conservative and aggressive investment, catering to the diverse preferences and objectives of investors.
Each part of this strategy provides a unique perspective and approach to the accumulation of assets, making it a versatile and comprehensive method for investors seeking to optimize their portfolio performance. By diligently applying this multi-faceted approach, investors can make informed decisions and effectively capitalize on potential market opportunities.
DKK Strategy for ETFs and Funds:
The DKK system is a strategy designed for accumulating ETFs and Funds as long-term investments in your portfolio. It simplifies the process of identifying trend reversals and opportune moments to invest in listed ETFs and Funds, particularly during bull markets. Here's a detailed explanation of the DKK system:
Objective: The primary aim of the DKK system is to build a long-term investment portfolio by focusing on ETFs and Funds. It facilitates the identification of stocks that are in the process of reversing their trends, allowing investors to benefit from upward price movements in these financial instruments.
Stock Selection Criteria: The DKK system employs specific criteria for selecting ETFs and Funds:
• 200EMA (Exponential Moving Average): The system monitors whether the prices of ETFs and Funds are consistently below the 200-day Exponential Moving Average. This is considered an indicator of weakness, especially on a daily time frame.
• RSI (Relative Strength Index): The system looks for an RSI value of less than 40. An RSI below 40 is often seen as an indication of a weak or oversold condition in a financial instrument.
Alert Signal: Once the DKK system identifies ETFs and Funds meeting these criteria, it provides an alert signal:
• Red Upside Triangle Sign: This signal is automatically generated on the daily chart of ETFs and Funds. It serves as a clear indicator to investors that it's an opportune time to accumulate these financial instruments for long-term investment.
It's important to note that the DKK system is specifically designed for ETFs and Funds, so it should be applied to these types of investments. Additionally, it's recommended to track index ETFs and specific types of funds, such as REITs (Real Estate Investment Trusts) and INVITs (Infrastructure Investment Trusts), in line with the DKK system's approach. This strategy simplifies the process of identifying investment opportunities within this asset class, particularly during periods of market weakness.
SKK1 Strategy for Conservative Stock Investment:
The SKK 1 system is a stock investment strategy tailored for conservative investors seeking long-term portfolio growth with a focus on stability and prudent decision-making. This strategy is meticulously designed to identify pivotal market trends and stock price movements, allowing investors to make informed choices and capitalize on upward market trends while minimizing risk. Here's a comprehensive overview of the SKK 1 system, emphasizing its suitability for conservative investors:
Objective: The primary objective of the SKK 1 system is to accumulate stocks as long-term investments in your portfolio while prioritizing capital preservation. It offers a disciplined approach to pinpointing potential entry points for stocks, particularly during market corrections and trend reversals, thereby enabling you to actively participate in bullish market phases while adopting a conservative risk management stance.
Stock Selection Criteria: The SKK 1 system employs a stringent set of criteria to select stocks for investment:
• Correction Mode: It identifies stocks that have undergone a correction, signifying a decline in stock prices from their recent highs. This conservative approach emphasizes the importance of seeking stocks with a history of stability.
• 200EMA (Exponential Moving Average): The system diligently analyses daily stock price movements, specifically looking for stocks that have fallen to or below the 200-day Exponential Moving Average. This indicator suggests potential overselling and aligns with a conservative strategy of buying low.
Trend Reversal Confirmation: The SKK 1 system doesn't merely pinpoint stocks in correction mode; it takes an extra step to confirm a trend reversal. It employs the following indicators:
• Short-term Downtrends Reversal: This aspect focuses on identifying the reversal of short-term downtrends in stock prices, observed through the transition of the super trend indicator from the red zone to the green zone. This cautious approach ensures that the trend is genuinely shifting.
• Super Trend Zones: These zones are crucial for assessing whether a stock is in a bullish or bearish trend. The system consistently monitors these zones to confirm a potential trend reversal.
Alert & Buy Signals: When the SKK 1 system identifies stocks that have reached a potential bottom and are on the verge of a trend reversal, it issues vital alert signals, aiding conservative investors in prudent decision-making:
• Orange Upside Triangle Sign: This signal serves as a cautious heads-up, indicating that a stock may be poised for a trend reversal. It advises investors to prepare funds for potential investment without taking undue risks.
• Green Upside Triangle Sign: This is the confirmation of a trend reversal, signifying a robust buy signal. Conservative investors can confidently enter the market at this point, accumulating stocks for a long-term investment, secure in the knowledge that the trend is in their favor.
In summary, the SKK 1 system is a systematic and conservative approach to stock investing. It excels in identifying stocks experiencing corrections and ensures that investors act when there's a strong indication of a trend reversal, all while prioritizing capital preservation and risk management. This strategy empowers conservative investors to navigate the intricacies of the stock market with confidence, providing a calculated and stable path toward long-term portfolio growth.
Note: The SKK1 strategy, known for its conservative approach to stock investment, also provides an option to extend its methodology to ETFs and Funds for those investors who wish to accumulate assets more aggressively. By enabling this feature in the settings, you can harness the SKK1 strategy's careful criteria and signal indicators to accumulate aggressive investments in ETFs and Funds.
This flexible approach acknowledges that even within a conservative strategy, there may be opportunities for more assertive investments in assets like ETFs and Funds. By making use of this option, you can strike a balance between a conservative stance in your stock portfolio while exploring an aggressive approach in other asset classes. It offers the versatility to cater to a variety of investment preferences, ensuring that you can adapt your strategy to suit your financial goals and risk tolerance.
SKK 2 Strategy for Aggressive Stock Investment:
The SKK 2 strategy is designed for those who are determined not to miss significant opportunities within a continuous uptrend and seek a way to enter a trend that doesn't present entry signals through the SKK 1 strategy. While it offers a more aggressive entry approach, it is ideal for individuals willing to take calculated risks to potentially reap substantial long-term rewards. This strategy is particularly suitable for accumulating stocks for aggressive long-term investment. Here's a detailed description of the SKK 2 strategy:
Objective: The primary aim of the SKK 2 strategy is to provide an avenue for investors to identify short-term trend reversals and seize the opportunity to enter stocks during an uptrend, thereby capitalizing on a sustained bull run. It acknowledges that there may not always be clear entry signals through the SKK 1 strategy and offers a more aggressive alternative.
Stock Selection Criteria: The SKK 2 strategy utilizes a specific set of criteria for stock selection:
1. 50EMA (Exponential Moving Average): It targets stocks that are trading below the 50-day Exponential Moving Average. This signals a short-term reversal from the top and indicates that the stock is in a downtrend.
2. RSI (Relative Strength Index): The strategy considers stocks with an RSI of less than 40, which is an indicator of weakness in the stock.
Alert Signals: The SKK 2 strategy provides distinct alert signals that facilitate entry during an aggressive reversal:
• Red Downside Triangle Sign: This signal is triggered when the stock is below the 50EMA and has an RSI of less than 40. It serves as a clear warning of a short-term reversal from the top and a downtrend, displayed on the daily chart.
• Purple Upside Triangle Sign: This sign is generated when a reversal occurs through a bullish candle, and the RSI is greater than 40. It signifies the stock has bottomed out from a short-term downtrend and is now reversing. This purple upside triangle serves as an entry signal on the chart, presenting an attractive opportunity to accumulate stocks during a strong bullish phase, offering a chance to seize a potentially favorable long-term investment.
In essence, the SKK 2 strategy caters to aggressive investors who are willing to take calculated risks to enter stocks during a continuous uptrend. It focuses on identifying short-term reversals and provides well-defined signals for entry. While this strategy is more aggressive in nature, it has the potential to yield substantial rewards for those who are comfortable with a higher level of risk and are looking for opportunities to build a strong long-term portfolio.
Introduction to Strategy Signal Information Chart
This chart provides essential information on strategy signals for DKK, SKK1, and SKK2. By quickly identifying "Buy" and "Alert" signals for each strategy, investors can efficiently gauge market conditions and make informed decisions to optimize their investment portfolios.
In Conclusion
These investment strategies, whether conservative like DKK and SKK1 or more aggressive like SKK2, offer a range of options for investors to navigate the complex world of long-term investments. The combination of Super Trend, RSI, and EMAs with their crossovers provides clear signals on a daily time frame, empowering users to make well-informed decisions and potentially capitalize on market opportunities. Whether you're looking for stability or are ready to embrace more risk, these strategies have something to offer for building and growing your investment portfolio.
HDBhagat multi time frame box analysis
Title: Multi-Timeframe Box Analysis Indicator
Description:
The Multi-Timeframe Box Analysis Indicator is a powerful tool designed for use on the TradingView platform. It provides a visual representation of price movements across multiple timeframes, allowing traders to gain insights into potential trend changes and key support/resistance levels.
Key Features:
Multi-Timeframe Analysis: The indicator analyzes price data across different timeframes (1W, 1D, 4H, and 1H) simultaneously, providing a comprehensive view of market trends.
Box Visualization: The indicator represents price movements within each timeframe as colored boxes. Green boxes indicate bullish price action, while red boxes represent bearish movements.
Customizable Settings: Traders can easily adjust the input parameters to suit their specific trading preferences, including timeframe selection and box appearance settings.
Historical and Real-Time Updates: The indicator updates in real-time, ensuring that traders have access to the latest information. It also accounts for historical data to provide context for past price movements.
How to Use:
Apply the Multi-Timeframe Box Analysis Indicator to your TradingView chart.
Customize the indicator settings according to your preferred timeframes and visual preferences.
Observe the boxes on the chart to identify trends, potential reversals, and key support/resistance levels.
Use the information provided by the indicator to make informed trading decisions.
Disclaimer:
This indicator is a visual representation of historical and real-time price movements and is intended for informational purposes only. It does not guarantee future performance or trading success. Traders should conduct their own analysis and consider additional factors before making any trading decisions.
Note: Past performance is not indicative of future results. Always use proper risk management and consider consulting a financial advisor before making any trading decisions.
Intersection PointThis publication focusses at the intersection of 2 lines, and a trend estimation derived from a comparison of Intersection Point value against current price value.
The formula to calculate the Intersection Point (IP) is:
change1 = ta.change (valueLine1)
change2 = ta.change (valueLine2)
sf = (valueLine2 - valueLine1 ) / (change1 - change2)
I = valueLine1 + change1 * sf
🔶 USAGE
🔹 Future / Past Intersection
The position where 2 lines would intersect in the future is shown here by extending both lines and a yellow small line to indicate its location:
Of course this can change easily when price changes.
If "Back" is enabled, the IP in history can be seen:
The yellow line which indicates the IP is only visible when it is not further located then +/- 500 bars from current bar.
If this point is further away, lines towards the IP still will be visible (max 500 bars further) without the IP.
🔹 Trend
The calculated intersection price is compared with the latest close and used for estimating the trend direction.
When close is above the intersection price (I), this is an indication the market is trending up, if close is below I, this would indicate the market is trending down.
The included bands can be useful for entry/SL/TP,...
🔶 DETAILS
🔹 Map.new()
All values are put in a map.new() with the function value()
The latest Intersection is also placed in this map with the function addLastIntersectValue() and retrieved at the last bar (right top)
🔹 Intersection Point Line
The intersection price can be made visible by enabling "Intersection Price" in SETTINGS -> STYLE. To ensure lines aren't drawn all over the place, this value is limited to maximum high + 200 days-ATR and minimum low - 200 days-ATR.
🔶 SETTINGS
🔹 Choose the value for both lines :
Type : choose between
• open, high, low, close,
• SMA, EMA, HullMA, WMA, VWMA, DEMA, TEMA
• The Length setting sets 1 of these Moving Averages when chosen
• src 1 -> You can pick an external source here
🔹 Length Intersection Line : Max length of line:
Intersection Line will update untillthe amount of bars reach the "Length Intersection Line"
💜 PURPLE BARS 😈
• Since TradingView has chosen to give away our precious Purple coloured Wizard Badge, bars are coloured purple 😊😉
Take Profit ModelThis Indicator allows you to define 9 Taking Profit levels between your floor price and a target price you define for 10 selectable Assets and tweak the levels to your preference. It does not do any fancy dynamic calculations, it just draws lines on the chart where you want them so that you have an easy reference for when to take profit (or not).
Example:
So, if your floor price for an asset is e.g. $10 and your target price is $110 (its up to you to define, who knows right, I do not have a crystal ball), You have a range of $100 where you can set your levels as follows
The first level is the Floor price you entered = $10
Formula: Level x (Target - Floor) + Floor = Take Profit level
Levels
0.1 x (110 - 10) + 10 = $20
0.2 x (110 - 10) + 10 = $30
0.3 x (110 - 10) + 10 = $40
0.4 x (110 - 10) + 10 = $50
0.5 x (110 - 10) + 10 = $60
0.6 x (110 - 10) + 10 = $70
0.7 x (110 - 10) + 10 = $80
0.8 x (110 - 10) + 10 = $90
0.9 x (110 - 10) + 10 = $100
And finally the last level is drawn for the target price
Target Price = $110
To change the settings, go to the cog icon of the Indicator, select the assets (Tickers) you have and next enter a value between 0 and 1 (as shown above) for each level, and if you want a different color. Instead of using 0.1-0.9 you e.g. can also use Fibonacci numbers like 0.235, 0.382, 0.618, 0.786 and disable (using the check mark) the rest of the levels. Experiment with this as you see fit.
Make sure that the chart you are looking at in TradingView is the same as you select in the indicator configuration e.g. COINBASE:BTCUSD should be selected as the chart as well as the Ticker in the configuration.
The Start date of the script is configurable (one date across all assets and levels)
The colors of the Levels is configurable (I am colorblind so go wild)
The standard values in the script are just examples, you need to determine the values that apply in your case and do your own research.
Your feedback is most welcome
The only Indicator you need
Maybe even a bit more than you need.
Gives you the option to color the bars based on Trading Sessions (Asia, London and US).
Session timings are based on UTC-4, but can be changed individually as needed.
Helps keeping a clear view of what happened during the Sessions without having to stack multiple Session Indicators, or having the background of your chart looking like a rainbow.
Keeping it plain and simple.
Also has the Option for plotting previous Weeks High and Low on Chart.
Found this to be helpful in determining Price behaviour in these Areas.
Also has an option to color the chart background for different time periods.
Helps marking News Releases on the Chart and avoid entering a Trade before major releases.
Has 2 presets for 30min / 2h into US Session and 2 Custom Timeperiods. All can of course be changed as you see fit.
Colors and plotting can obviously be changed as usual.
I am thankful for further Input and Ideas!
Camarilla Pivots using Heikin Ashi by SeloriaPlots Heikin-Ashi Camarilla levels and alerts you when the market gets close to any of these levels.
New York Sessions Morning, Lunch and afternoon. AMKDescription
The script is designed to highlight the New York Stock Exchange's trading day, broken down into three specific sub-sessions: morning, lunchtime, and afternoon. Each sub-session is color-coded to provide an immediate visual cue about which portion of the trading day is currently active. Additionally, this script allows the user to adjust the time zone offset, making it adaptable for traders in different time zones around the world.
Originality
While there are scripts that highlight the entire trading day or specific market hours, this script adds granularity by breaking down the New York trading session into its typical behavioral parts: the morning rush, the lunchtime lull, and the afternoon action. The addition of an adjustable time zone offset is a unique feature that makes the tool more versatile and accommodating to a global user base.
Usefulness
The ability to visualize these different trading sessions can be valuable for various types of traders:
Day Traders: The script helps to immediately identify which session they are in, aiding in their trading strategy as market behavior can vary between these periods.
Swing Traders: They may use these sub-sessions to time their entries or exits, especially if they're based in different time zones.
Market Analysts: The color-coded sessions provide a quick way to analyze the historical performance and volatility of an asset during different trading periods.
Global Traders: The time zone adjustment feature makes it easy for traders outside of the Eastern Time Zone to customize the script according to their local time, increasing its utility across different markets.
Educational Purpose: For new traders, this could serve as an educational tool to understand the typical behavior of the stock market at different times of the day.
So, whether you're timing an intraday entry or looking for patterns tied to specific market sessions, this script offers a straightforward, visual way to keep track of where you are in the trading day.
NCI Trading Plan (Individual Asset)NCI Trading Plan (Individual Asset)- By LightNCI
NCI, which stands for New Concept Integration by Jayce PHAM, is a comprehensive approach that incorporates various critical aspects of trading to provide a logical, structured, and integrated approach to the financial markets. NCI covers market structure, key levels, smart money concepts, multiple timeframes and market cycles
About the NCI Trading Plan (Individual Asset) Indicator
The NCI Trading Plan is just a table allowing traders to keep track of a single asset, but multiple timeframe status on a single table, ensuring a comprehensive overview of trading statuses and strategies for each timeframe. The status is not automatically update. Using the NCI strategy, you may update it yourself the status of each timeframe.
Features
1. Display column for Daily, H4, H1, M15, M5, M1: Designed to support multi-timeframe analysis.
2. Direction Status Indication: Visualise the direction of each timeframe.
3. Dynamic Status Indication: Visualize the trading status for each asset:
i. Monitor: Asset is under review or surveillance.
ii. Confirmation: A potential trading signal or setup is being confirmed.
iii. Entry Set: An order for the asset has been placed.
iv. Forward-Test: An asset under monitored for it to being forward test.
4. Strategy Indication: Each asset can be tagged with a specific strategy identifier:
i. CKL: Confluence Key Level
ii. UKL: Un-Confluence Key Level
iii. SMC: Smart Money Concept
iv. BRT: Break & Re-Test
v. RTNKL: Re-Test of New Key Level
5. Stylisation: Color-code the statuses, table and fonts to suit your visual preference.
How to use
1. Asset Name: Select asset from the list
2. Timeframe Direction: Choose direction for each timeframe.
3. Status Selection: Choose the current trading status for each asset.
4. Strategy Selection: Assign a trading strategy to each asset.
5. Style: Customise the appearance of your trading plan by selecting preferred colours for different statuses and headers.
Conclusion
The NCI Trading Plan ensures a systematic and organised approach to multi-time frame trading. By maintaining a visual overview of multi-time frame analysis and their corresponding trading statuses and strategies, traders can efficiently manage their portfolio and ensure timely decision-making.
Tip: To reset or modify an asset's status or strategy, simply adjust the settings in the panel on the left. The table will update in real-time.
Learning Understanding ta.change//First script I have published. Constructive criticism is welcome.
// I hope this may be helpful to you.
// Initially, I did this for myself as I was getting some odd results from the ta.change function. Turns out it was my error LOL. What a surprise!
// Typical syntax: ta.change(source, value)
// value doesn't need to be included. If it isn't, it will only calculate the change between the last and current value.
// Conclusion. ta.change simply calculates the difference between a previous value/candle and the latest value/candle current value in that series. Positive number states that the recent is higher.
// Bonus :-) Function on line 34 outputs the changes in a positive figure (so as to be able to sum the changes/volatility of the series of values)
Choose Symbol, candle and Trend modeThis Pine Script code is designed for technical analysis and visualization of price movements on the TradingView platform. It serves as a tool for traders and investors to:
Price Chart Analysis: The code plots the price chart of a selected symbol and utilizes Heikin-Ashi candlesticks to visualize price movements. This aids in better understanding price trends, support and resistance levels, retracements, and other price actions.
Trend Identification: The code also employs the Exponential Moving Average (EMA) to identify the price trend. EMA is commonly used to determine the strength and direction of a trend. Traders and investors can use this information to track trends and develop trading strategies.
Buy and Sell Signals: The code generates buy and sell signals based on EMA. These signals provide information on when to consider buying or selling a specific symbol. This is particularly useful for traders when making trading decisions.
Timeframe Customization: Users can adapt the code to different timeframes. This flexibility is valuable for those looking to develop strategies for both short-term and long-term trading.
Customization: The code allows users to customize various parameters, including the symbol, timeframe, Heikin-Ashi mode, and others. This enables it to be tailored to different assets and trading styles.
Please note that this code is provided for educational and informational purposes only. It does not constitute financial advice or recommendations for specific trading actions. Any trading decisions made using this code should be based on individual research, analysis, and a clear understanding of the associated risks.
Absorbing System Support and ResistanceHello Traders :)
I am Only Fibonacci.
My purpose in coding this indicator was to detect support and resistance more easily.
What is the working principle of this indicator?
This tool detects pivot points.
If the length of the sell pin is higher than the length of the buy pin, it is considered as resistance.
It detects the formation according to the length of the pivot point and draws a line until this level is broken.
The main purpose is to add a new perspective to support and resistance detection and to prepare an educational code sequence.
The codes are open to everyone, you can develop as you wish.
In the settings you can choose whether you want to see the breakdowns, you can also choose whether the breakdowns will be with the wicks or the body.
func("RES")
func("SUP")
It is written in a functional way.
If you call "RES" inside the func method, it draws the resistors. If you throw a call other than "RES" it draws the supports.
The main concept here;
"RES" = Resistance
"SUP" = Support
3x MTF MACD v3.0MACD's on 3 different Time Frames
Indicator Information
- Each Time Frame shows start of Trend and end of trend of the MACD vs the Signal Cross
- They are labled 1,2,3 with respective up or down triangle for possible direction.
User Inputs
- configure the indicator by specifying various inputs. These inputs include colors for bullish
and bearish conditions, the time frame to use, whether to show a Simple Moving Average
(SMA) line, and other parameters.
- Users can choose time frames for analysis (like 30 minutes, 1 hour, etc.)
but they must be in mintues.
- The code also allows users to customize how the indicator looks on the chart by providing
options for position and color.
Main Calculations
- The script calculates the Simple Moving Average (SMA) based on the user-defined time
frame.
- It then determines the color of the plot (line) based on certain conditions, such as whether
the SMA is rising or falling. These conditions help users quickly identify market trends.
Label Creation
- The code creates labels that can be displayed on the chart.
These labels indicate whether there's a bullish or bearish signal.
Level Detection
- The script determines and labels key levels or points of interest in the chart based on
certain conditions.
- It can show labels like "①" and "▲" for bullish conditions and "▼" for bearish conditions.
Table Display
- There's an option to show a table on the chart that displays information about the MACD
indicator Chosen and the NUmber Bubble assocated with that time frame
- The table can include information like which time frame is being analyzed, whether the SMA
line is shown, and other relevant data.
Plotting on the Chart
- The script plots the Simple Moving Average (SMA) on the chart. The color of this line
changes based on the calculated trend conditions.
ATR (Average True Range)
- The script also plots the Average True Range (ATR) on the chart. ATR is used to measure
market volatility.
"In essence, this script is a highly customizable MACD and SMA indicator for traders. It assists traders in comprehending market trends, offering insights into different MACD cycles concerning various timeframes.
Users can configure it to match their trading strategies, and it presents information in a user-friendly manner with colors, labels, and tables.
This simplifies market analysis, allowing traders to make more informed decisions without the distraction of multiple indicators."
Harmonic PatternsHarmonic Patterns
Harmonic Pattern utilizes the recognition of specific structures that possess distinct and consecutive Fibonacci ratio alignments that quantify and validate harmonic patterns. These patterns calculate the Fibonacci aspects of these price structures to identify highly probable reversal points in the financial markets. This methodology assumes that harmonic patterns, like many patterns and cycles in life, continually repeat.
Input Parameters:
Zigzag Setup:
These group of parameters are used to identify the swing points. The script also draws the Zigzag line and swing labels based on these parameters.
Harmonic Pattern Setup:
Ignore XD leg calculations – Optionally one can choose to ignore the XD leg calculation.
Fixed value leg offset % - Fixed value leg parameters are such parameters where single value Fibonacci value is used. This makes pattern identification very rare. To overcome this one can input % value which would be used to derive the range of Fibonacci numbers for pattern identification. E.g. XD leg in Bat pattern has fixed leg of 88.6%, If we input 5% as fixed value leg offset % then instead of fixed value of 88.6%, script calculates range as 88.6% + 5% (Value 1) and 88.6% - 5% (Value 2) and uses the same for pattern identification.
The script plots a diamond shape label on the last candle of the chart. The label has been enabled with a tooltip which shows number of patterns of each type along with the time where latest pattern is located.
This script covers harmonic patterns listed in the table below. Each harmonic pattern has bullish and bearish variants. All these patterns have 4 legs known as XABCD.
The Patterns have been configured as specified in the table below. Refer to Figure 1 and Figure 2 to understand how to read and interpret the table.
Figure 1
Figure 2
HTF - Candles with polylines"HTF - Candles with polylines" draws the previous Higher TimeFrame candles with the new feature polylines .
🔶 USAGE
This publication makes it possible to see Higher Time Frame (HTF) candles on current chart, so you can see the bigger picture without switching to a HTF
The current HTF is represented with a dashed-line box, covering the recent HTF open & close
🔹 Examples :
• current timeframe 1 minute, HTF: 4 hour
• current timeframe 15 minutes, HTF: 1 Day
• current timeframe 1 hour, HTF: 1 Week
Enabling " curved " gives a nice visual effect:
"Pine - Apple" 😀
🔶 DETAILS
The candle is made by starting a polyline at the bottom left. It then goes around, connecting the open-high-low-close values while making sure the width/height of the candle correspondends with the current timeframe candles. Arriving at the top left side, the polyline is connected back with the initial start point by setting the "closed" argument of polyline.new to "true".
-> closed (series bool) If true, the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.
🔶 SETTINGS
• HTF + "curved"
• colours
RSI Radar Multi Time FrameHello All!
First of all many Thanks to Tradingview and Pine Team for developing Pine Language all the time! Now we have a new feature and it's called Polylines and I developed RSI Radar Multi Time Frame . This script is an example and experimental work, you can use it as you wish.
The scripts gets RSI values from 6 different time frames, it doesn't matter the time frame you choose is higher/lower or chart time frame. it means that the script can get RSI values from higher or lower time frames than chart time frame.
It's designed to show RSI Radar all the time on the chart even if you zoom in/out or scroll left/right.
You can set OB/OS or RSI line colors. Also RSI polyline is shown as Curved/Hexagon optionally.
Some screenshots here:
Doesn't matter if you zoom out, it can show RSI radar in the visible area:
Another example:
You can change the colors, or see the RSI as Hexagon:
Time frames from seconds to 1Day in this example while chart time frame is any ( 30mins here )
Enjoy!
Volume Profile with a few polylinesThe base of "Volume Profile with a few polylines" is another script of mine, Volume Profile (Maps) .
The structure of maps is used to gather the data. However, the drawings is done with polylines.
This enables coders to draw an entire volume profile with just a few polylines, while the range is broader.
This results in the benefit to draw more "lines" than with line.new() / box.new() alone.
🔶 CONCEPTS
🔹 Polylines
polyline.new creates a new polyline instance and displays it on the chart, sequentially connecting all of the points in the `points` array with line segments.
The segments in the drawing can be straight or curved depending on the `curved` parameter.
In this script, points are connected, starting from the bottom. The created line moves up until there is a price level where a volume value needs to be displayed,
at which the line goes to the left to the concerning volume value, coming back at the same price level until the line returns to its initial x-axis,
after which the line will continue to rise until all values are displayed.
A polyline can contain maximum 10000 points (10K).
Since the line has to go back and forth, each price/volume line takes 3 points.
In the case that 20K bars all have a different price, we would need 60K points, or just 6 polylines. A maximum of 100 polylines can be displayed.
The 3 highest volume values are displayed with line.new(), each with their own colour.
🔹 Maps
A map object is a collection that consists of key - value pairs
Each key is unique and can only appear once. When adding a new value with a key that the map already contains, that value replaces the old value associated with the key .
You can change the value of a particular key though, for example adding volume (value) at the same price (key), the latter technique is used in this script.
Volume is added to the map, associated with a particular price (default close, can be set at high, low, open,...)
When the map already contains the same price (key), the value (volume) is added to the existing volume at the associated price.
A map can contain maximum 50K values, which is more than enough to hold 20K bars (Basic 5K - Premium plan 20K), so the whole history can be put into a map.
🔹 Rounding function
This publication contains 2 round functions, which can be used to widen the Volume Profile
Round
• "Round" set at zero -> nothing changes to the source number
• "Round" set below zero -> x digit(s) after the decimal point, starting from the right side, and rounded.
• "Round" set above zero -> x digit(s) before the decimal point, starting from the right side, and rounded.
Example: 123456.789
0->123456.789
1->123456.79
2->123456.8
3->123457
-1->123460
-2->123500
Step
Another option is custom steps.
After setting "Round" to "Step", choose the desired steps in price,
Examples
• 2 -> 1234.00, 1236.00, 1238.00, 1240.00
• 5 -> 1230.00, 1235.00, 1240.00, 1245.00
• 100 -> 1200.00, 1300.00, 1400.00, 1500.00
• 0.05 -> 1234.00, 1234.05, 1234.10, 1234.15
•••
🔶 FEATURES
🔹 Volume * currency
Let's take as example BTCUSD, relative to USD, 10 volume at a price of 100 BTCUSD will be very different than 10 volume at a price of 30000 (1K vs. 300K)
If you want volume to be associated with USD, enable Volume * currency . Volume will then be multiplied by the price:
• 10 volume, 1 BTC = 100 -> 1000
• 10 volume, 1 BTC = 30K -> 300K
Polylines has the attributes curved & closed.
When "curved" is enabled the drawing will connect all points from the `points` array using curved line segments.
When "closed" is enabled the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.
They are default disabled, but can be enabled:
🔶 DETAILS
🔹 Put
When the map doesn't contain a price, it will be added, using map.put(id, key, value)
In our code:
map.put(originalMap, price, volume)
or
originalMap.put(price, volume)
A key (price) is now associated with a value (volume) -> key : value
Since all keys are unique, we don't have to know its position to extract the value, we just need to know the key -> map.get(id, key)
We use map.get() when a certain key already exists in the map, and we want to add volume with that value.
if originalMap.contains(price)
originalMap.put(price, originalMap.get(price) + volume)
-> At the last bar, all prices (source) are now associated with volume.
🔶 SETTINGS
Source : Set source of choice; default close , can be set as high , low , open , ...
Volume & currency : Enable to multiply volume with price (see Features )
Amount of bars : Set amount of bars which you want to include in the Volume Profile
🔹 Round -> ' Round/Step '
Round -> see Concepts
Step -> see Concepts
🔹 Display Volume Profile
Offset: shifts the Volume Profile (max. 500 bars to the right of last bar, see Features )
Max width Volume Profile: largest volume will be x bars wide, the rest is displayed as a ratio against largest volume (see Features )
Colours
Curved: make lines curved
Closed: connect last with first point
🔶 LIMITATIONS
• Lines won't go further than first bar (coded).
• The Volume Profile can be placed maximum 500 bar to the right of last price.
Scoopy StacksWaffle Around Multiple
(Open, High, Low, Close) Stacks On
Pre/Post Market & (Daily, Weekly,
Monthly, Yearly) Sessions With
Meticulous Columns, Rows, Tooltips,
Colors, Custom Ideas, and Alerts.
Sessions Use Two Step Incremental Values
Default Value: (1) Shows Two Previous
(O, H, L, C); Increasing Value Swaps
Sessions With Next Two Stacks.
⬛️ KEY WORDS:
🟢 Crossover | 🔴 Crossunder
📗 High | 📕 Low
📔 Open | 📓 Close
🥇 First Idea | 🥈 Second Idea
🥉 Third Idea | 🎖️ Fourth Idea
🟥 ALERTS:
Default Option: (Per Bar)
Alerts Once Conditions Are Met
(Bar Close) Alerts When Bar Closes
Default Option: (Reg)
Alerts During Regular Market
Trading Hours, (0930-1600)
(Ext) Alerts During Extended
Market Hours, (1600-0930)
(24/7) Alerts All Day
Optional Preferences:
Regular Alerts - Stocks
Extended Alerts - Futures
24/7 Alerts - Crypto
🟧 STACKS:
Default Value: (1)
Incremental Stack Value, Increasing Value
Swaps Sessions With the Next Two Stacks
(✓) Swap Stacks?
Pre/Post Market High/Lows,
1-2 Day High/Lows, 1-2 Week High/Lows,
1-2 Month High/Lows, 1-2 Year High/Lows
( ) Swap Stacks?
Pre/Post Market Open/Close,
1-2 Day Open/Close, 1-2 Week Open/Close,
1-2 Month Open/Close, 1-2 Year Open/Close
🟨 EXAMPLES:
Default Stack:
🟢 | 📗 Pre Market High (PRE) | 4600.00
🔴 | 📕 Post Market Low (POST) | 420.00
Optional: (Open)
🟢 | 📔 Post Market Open (POST) | 4400.00
Optional: (Close)
🔴 | 📓 Pre Market Close (PRE) | 430.00
Default Stack Value: (1)
🔴 | 📗 1 Day High (1DH) | 460.00
Next Stack Value: (3)
🟢 | 📕 4 Day Low (4DL) | 420.00
Optional: (Open)
🔴 | 📔 2 Day Open (2DO) | 440.00
Optional: (Close)
🟢 | 📓 3 Day Close (3DC) | 430.00
Default Stack Value: (5)
🟢 | 📗 5 Week High (5WH) | 460.00
Next Stack Value: (7)
🔴 | 📕 8 Week Low (8WL) | 420.00
Optional: (Open)
🔴 | 📔 7 Week Open (7WO) | 4400.00
Optional: (Close)
🟢 | 📓 6 Week Close (6WC) | 430.00
Default Stack Value: (9)
🔴 | 📗 9 Month High (9MH) | 460.00
Next Stack Value: (11)
🟢 | 📕 12 Month Low (12ML) | 420.00
Optional: (Open)
🟢 | 📔 11 Month Open (11MO) | 4400.00
Optional: (Close)
🔴 | 📓 10 Month Close (10MC) | 430.00
Default Stack Value: (13)
🟢 | 📗 13 Year High (13YH) | 460.00
Next Stack Value: (15)
🟢 | 📕 16 Year Low (16YL) | 420.00
Optional: (Open)
🔴 | 📔 15 Year Open (15YO) | 4400.00
Optional: (Close)
🔴 | 📓 14 Year Close (14YC) | 430.00
🟩 TABLES:
Default Value: (1)
Moves Table Up, Down, Left, or Right
Based on Second Default Value
First Default Value: (Top Right)
Sets Table Placement, Middle Center
Allows Table To Move In All Directions
Second Default Value: (Default)
Fixed Table Position, Switching Values
Moves Direction of the Table
🟦 IDEAS:
(✓) Show Ideas?
Shows Four Ideas With Custom Texts
and Values; Ideas Are Based Around
Post-It Note Reminders with Alerts
Suggestions For Text Ideas:
Take Profit, Stop Loss, Trim, Hold,
Long, Short, Bounce Spot, Retest,
Chop, Support, Resistance, Buy, Sell
🟪 EXAMPLES:
Default Value: (5)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🥇)
Shown On First Table Cell and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥇 | 5.00
Default Value: (10)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🥈)
Shown On Second Table Cell and
Message Appearing On Alerts
Alert Shows: 🔴 | 🥈 | 10.00
Default Value: (50)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🥉)
Shown On Third Table Cell and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥉 | 50.00
Default Value: (100)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🎖️)
Shown On Fourth Table Cell and
Message Appearing On Alerts
Alert Shows: 🔴 | 🎖️ | 100.00
⬛️ REFERENCES:
Pre-market Highs & Lows on regular
trading hours (RTH) chart
By Twingall
Previous Day Week Highs & Lows
By Sbtnc
Screener for 40+ instruments
By QuantNomad
Daily Weekly Monthly Yearly Opens
By Meliksah55
Ribbit RangesBounce Around Multiple
(Open, High, Low, Close) Ranges
On Pre/Post Market & (Daily, Weekly,
Monthly, Yearly) Sessions With
Meticulous Lines, Labels, Tooltips,
Colors, Custom Ideas, and Alerts.
Sessions Use Two Step Incremental Values
Default Value: (1) Shows Two Previous
(O, H, L, C); Increasing Value Swaps
Sessions With Next Two Ranges.
⬛️ KEY WORDS:
🟢 Crossover | 🔴 Crossunder
📗 High | 📕 Low
📔 Open | 📓 Close
🥇 First Idea | 🥈 Second Idea
🥉 Third Idea | 🎖️ Fourth Idea
🟥 ALERTS:
Default Option: (Per Bar)
Alerts Once Conditions Are Met
(Bar Close) Alerts When Bar Closes
Default Option: (Reg)
Alerts During Regular Market
Trading Hours, (0930-1600)
(Ext) Alerts During Extended
Market Hours, (1600-0930)
(24/7) Alerts All Day
Optional Preferences:
Regular Alerts - Stocks
Extended Alerts - Futures
24/7 Alerts - Crypto
🟧 RANGES:
Default Value: (1)
Incremental Range Value, Increasing Value
Swaps Sessions With the Next Two Ranges
(✓) Swap Ranges?
Pre/Post Market High/Lows,
1-2 Day High/Lows, 1-2 Week High/Lows,
1-2 Month High/Lows, 1-2 Year High/Lows
( ) Swap Ranges?
Pre/Post Market Open/Close,
1-2 Day Open/Close, 1-2 Week Open/Close,
1-2 Month Open/Close, 1-2 Year Open/Close
🟨 EXAMPLES:
Default Range:
🟢 | 📗 Pre Market High (PRE) | 4600.00
🔴 | 📕 Post Market Low (POST) | 420.00
Optional: (Open)
🟢 | 📔 Post Market Open (POST) | 4400.00
Optional: (Close)
🔴 | 📓 Pre Market Close (PRE) | 430.00
Default Range Value: (1)
🔴 | 📗 1 Day High (1DH) | 460.00
Next Range Value: (3)
🟢 | 📕 4 Day Low (4DL) | 420.00
Optional: (Open)
🔴 | 📔 2 Day Open (2DO) | 440.00
Optional: (Close)
🟢 | 📓 3 Day Close (3DC) | 430.00
Default Range Value: (5)
🟢 | 📗 5 Week High (5WH) | 460.00
Next Range Value: (7)
🔴 | 📕 8 Week Low (8WL) | 420.00
Optional: (Open)
🔴 | 📔 7 Week Open (7WO) | 4400.00
Optional: (Close)
🟢 | 📓 6 Week Close (6WC) | 430.00
Default Range Value: (9)
🔴 | 📗 9 Month High (9MH) | 460.00
Next Range Value: (11)
🟢 | 📕 12 Month Low (12ML) | 420.00
Optional: (Open)
🟢 | 📔 11 Month Open (11MO) | 4400.00
Optional: (Close)
🔴 | 📓 10 Month Close (10MC) | 430.00
Default Range Value: (13)
🟢 | 📗 13 Year High (13YH) | 460.00
Next Range Value: (15)
🟢 | 📕 16 Year Low (16YL) | 420.00
Optional: (Open)
🔴 | 📔 15 Year Open (15YO) | 4400.00
Optional: (Close)
🔴 | 📓 14 Year Close (14YC) | 430.00
🟩 COLORS:
(✓) Swap Colors?
Text Color Is Shown Using
Background Color
( ) Swap Colors?
Background Color Is Shown
Using Text Color
🟦 IDEAS:
(✓) Show Ideas?
Plots Four Ideas With Custom Lines
and Labels; Ideas Are Based Around
Post-It Note Reminders with Alerts
Suggestions For Text Ideas:
Take Profit, Stop Loss, Trim, Hold,
Long, Short, Bounce Spot, Retest,
Chop, Support, Resistance, Buy, Sell
🟪 EXAMPLES:
Default Value: (5)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🥇)
Shown On First Label and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥇 | 5.00
Default Value: (10)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🥈)
Shown On Second Label and
Message Appearing On Alerts
Alert Shows: 🔴 | 🥈 | 10.00
Default Value: (50)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🥉)
Shown On Third Label and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥉 | 50.00
Default Value: (100)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🎖️)
Shown On Fourth Label and
Message Appearing On Alerts
Alert Shows: 🔴 | 🎖️ | 100.00
⬛️ REFERENCES:
Pre-market Highs & Lows on regular
trading hours (RTH) chart
By Twingall
Previous Day Week Highs & Lows
By Sbtnc
Screener for 40+ instruments
By QuantNomad
Daily Weekly Monthly Yearly Opens
By Meliksah55