Interactive MA Stop Loss [TANHEF]This indicator is "Interactive." Once added to the chart, you need to click the start point for the moving average stoploss. Dragging it afterward will modify its position.
Why choose this indicator over a traditional Moving Average?
To accurately determine that a wick has crossed a moving average, you must examine the moving average's range on that bar (blue area on this indicator) and ensure the wick fully traverses this area.
When the price moves away from a moving average, the average also shifts towards the price. This can make it look like the wick crossed the average, even if it didn't.
How is the moving average area calculated?
For each bar, the moving average calculation is standard, but when the current bar is involved, its high or low is used instead of the close. For precise results, simply setting the source in a typical moving average calculation to 'Low' or 'High' is not sufficient in calculating the moving average area on a current bar.
Moving Average Options:
Simple Moving Average
Exponential Moving Average
Relative Moving Average
Weighted Moving Average
Indicator Explanation
After adding indicator to chart, you must click on a location to begin an entry.
The moving average type can be set and length modified to adjust the stoploss. An optional profit target may be added.
A symbol is display when the stoploss and profit target are hit. If a position is create that is not valid, "Overlapping MA and Bar" is displayed.
Alerts
'Check' alerts to use within indicator settings (stop hit and/or profit target hit).
Select 'Create Alert'
Set the condition to 'Interactive MA''
Select create.
Alert messages can have additional details using these words in between two Curly (Brace) Brackets:
{{stop}} = MA stop-loss (price)
{{upper}} = Upper MA band (price)
{{lower}} = Lower MA band (price)
{{band}} = Lower or Upper stoploss (word)
{{type}} = Long or Short stop-loss (word)
{{stopdistance}} = Stoploss Distance (%)
{{targetdistance}} = Target Distance (%)
{{starttime}} = Start time of stoploss (day:hour:minute)
{{maLength}} = MA Length (input)
{{maType}} = MA Type (input)
{{target}} = Price target (price)
{{trigger}} = Wick or Close Trigger input (input)
{{ticker}} = Ticker of chart (word)
{{exchange}} = Exchange of chart (word)
{{description}} = Description of ticker (words)
{{close}} = Bar close (price)
{{open}} = Bar open (price)
{{high}} = Bar high (price)
{{low}} = Bar low (price)
{{hl2}} = Bar HL2 (price)
{{volume}} = Bar volume (value)
{{time}} = Current time (day:hour:minute)
{{interval}} = Chart timeframe
{{newline}} = New line for text
I will add further moving averages types in the future. If you suggestions post them below.
Educational
Clone Pivots. Oct_2023Conceptually very simple.
The all time high or low of the chart (this indicator can be used with non-price sources as well), is used to divide the price pane continuously by 2.
For example the first pivot is (All Time High + All Time Low)/2.
From this point the price chart is further divided by 2.
The user can set the depth of division, and the lines for depth are only shown around the price.
About clone pivots.
- they can be used for ladder trading
- they are based on the range of the stock or instrument price
An alternative is available to use Fib divisions rather than simple divide by 2 method.
Labels may be placed with price or without. And depth of labelling is also an option.
Clone pivots at 50% tend to work very well with price structures - give it a try and see if it helps your trading!
Pine source uses UDTs, Methods, Arrays and Maps.
Double RSI 00 1.0This script creates a custom indicator, visualizes two RSI values (RSI1 and RSI2) on the chart and generates alerts based on different RSI-related conditions, which can be used for technical analysis and trading strategies. Users can customize the RSI parameters and alert levels according to their preferences.
It includes several input parameters that allow the user to customize the RSI calculations and overbought/oversold levels. These parameters include:
length_1: RSI1 Length (default: 7)
length_2: RSI2 Length (default: 12)
overbought_1: Overbought Signal level for RSI1 (default: 75)
oversold_1: Oversold Signal level for RSI1 (default: 25)
overbought_2: High Overbought Signal level for RSI1 (default: 85)
oversold_2: High Oversold Signal level for RSI1 (default: 15)
The script calculates two RSI values: rsi_1 and rsi_2, based on the high and low prices averaged (hl2) and the specified RSI lengths.
It plots these RSI values on the chart using different colors and line widths.
Several horizontal lines are drawn on the chart to represent key levels:
h0: 0 (Lower Band)
h1: 50 (Middle Band)
h2: 100 (Upper Band)
h3: The Oversold level (customizable)
h4: The Overbought level (customizable)
h5: The High Oversold level (customizable)
h6: The High Overbought level (customizable)
The script defines alert conditions for various signals, including overbought, oversold, high overbought, high oversold, long (crossover between RSI1 and RSI2), and short (crossunder between RSI1 and RSI2).
It sends alerts when these conditions are met, indicating potential trading signals.
Please note that this script is meant for educational purposes and should be used cautiously in a real trading environment. It's important to have a thorough understanding of technical analysis and risk management when using such indicators in actual trading.
IU Break of any session StrategyHow this script works:
1. This script is an intraday trading strategy script which buy and sell on the bases of user-defined intraday session range breakout and gives alert(if the alert is set) message too when the new position is open.
2. It calculate the session as per the user inputs or user defined custom session.
3. The script stores the highest and lowest value of the whole session.
4. It take a long position on the first break and close above the highest value.
5. It take a short position on the break and close below the lowest value.
6. The script takes one position in one day.
7. The stop loss for this script is the previous low(if long) or high(if short).
8. Take profit is 1:2 and it's adjustable.
9. This script work on every kind of market.
How The Useful For The User :
1. User can backtest any session range breakout he wants to trade.
2. User can get alert when the new position is open.
3. User can change the Risk to Reward in order to find the best Risk to Reward.
4. User can see the highest and lowest value of the session with respect to analyzing his trading objective.
5. This strategy script highlights which session range breakout performs best and which performs worst.
SizeblockPrice change indicator in the form of diagonal rows.
The calculation is based on the percentage or tick deviation of the price movement (indicated in the "Deviation" parameter), which is displayed on the chart in the form of rows.
The row consists of the base middle line, upper and lower limits:
The middle line is the basis for the upper and lower limits of the current row.
The upper and lower limits are deviations from the base middle line of the current row.
The base middle line is equal to the upper or lower limits of the previous row (if the price changes rapidly in one time interval, then the base middle line of the current row is greater than the upper limit of the previous row or less than the lower limit of the previous row by an equal number of deviations depending on the direction of price movement). At the beginning of the calculation, the base middle line is equal to the initial value of the first row.
The "Quantity" parameter determines the deviation for the upper or lower limits depending on the direction of the price movement, and the "U-turn" parameter determines the deviation for changing the direction of the price movement.
The rule for constructing a new row:
The "Source" parameter accepts, depending on the choice, the price of high, low values or the closing price from the time interval of the chart.
When the price reaches the upper or lower limits of the row and goes beyond them, a new row is formed with the same parameters for deviation of the upper and lower limits from the base middle line, depending on the direction of price movement.
By adjusting certain deviations, you can clearly see the local trend and reversal points on the chart.
A useful tool for tracking price direction.
Thanks for your attention!
IU Probability CalculatorHow This Script Works:
1. This script calculate the probability of price reaching a user-defined price level within one candle with the help Normal Distribution Probability Table.
2. Normal Distribution Probability Table is use for calculating probability of events, it's very powerful for calculation of probability and this script is fully based on that table.
3. It takes the Average True Range value or Standard Deviation value of past user-defined length bar.
4. After that it take this formula z = ( price_level - close ) / (ATR or Standard Deviation) and return the value for z, for the bearish side it take z = (close - price level) / (ATR or Standard Deviation ) formula.
5. Once we have the z it look into Normal Distribution Probability Table and match the value.
6. Now the value of z is multiple buy 100 in order to make it look in percentage term.
7. After that this script subtract the final value with 100 because probability always comes under 100%
8. finally we plot the probability at the bottom of the chart the red line indicates "The probability of price not reaching that price level", While the green line indicates "Probability of price Reaching that level " .
9. This script will work fine for both of the directions
How This Is Useful For The User:
1. With this script user can know the probability of price reaching the certain level within one candle for both Directions .
2. This is useful while creating options hedging strategies
3. This can be helpful for deciding stop loss level.
4. It's useful for scalpers for managing their traders and it can be use by binary option traders.
IU Average move How The Script Works :
1. This script calculate the average movement of the price in a user defined custom session and plot the data in a table from on top left corner of the chart.
2. The script takes highest and lowest value of that custom session and store their difference into an array.
3. Then the script average the array thus gets the average price.
4. Addition to that the script converter the price pip change into percentage in order to calculate the value in percentage form.
5. This script is pure price action based the script only take price value and doesn't take any indicator for calculation.
6. The script works on every type of market.
7. If the session is invalid it returns nothing
8. The background color, text color and transparency is changeable.
How User Can Benefit From This Script:
1. User can understand the volatility of any session that he/she wish to trade.
2. It can be helpful for understanding the average price moment of any tradeble asset.
3. It will give the average price movement both in percentage and points bases.
4. By understanding the volatility user can adjust his stop loss or take profit with respect his risk management.
Global Central Banks Balance Sheet USD-AdjustedSumming up central banks balance sheet of:
US , China, EU, Japan, UK,
Swiss, Australia, Canada, Norway
Brazil, Russia, India, Mexico, Indonesia
Taiwan, HK, Korea, SG, Thailand
Then adjusting it to USD as the common denominator for comparison.
Net Foreign Assets (or foreign reserves) + Net Domestic Assets (or domestic credit, usually Money Supply M1) = Total Assets of the Central Bank Balance Sheet
In some way, the central bank balance sheet could be M2. However, I find some of the indicators don't add up and I don't have the time to check them out. This indicator is just a proxy. The issue with using central bank balance sheet to determine liquidity in the system is that it doesn't account for 1) collateral used for liquidity management in the public and private system, 2) shadow-banking financial system. As usual, US + EU + Japan publishes their data every weekly and the rest of the central banks publish monthly. I have removed any country with hard-pegged currencies except HK.
Additional materials to aid understanding:
www.imf.org
Tops & Bottoms - Time of Day Report█ OVERVIEW
The indicator tracks and reports the percentage of occurrence of daily tops and bottoms by the time of the day.
█ CONCEPTS
At certain times during the trading day, the market reverses and marks the high or low of the day. Tops and bottoms are vital when entering a trade, as they will decide if you are catching the train or being straight offside. They are equally crucial when exiting a position, as they will determine if you are closing at the optimal price or seeing your unrealized profits vanish.
This indicator is before all for educational purposes. It aims to make the knowledge available to all traders, facilitate understanding of the various markets, and ultimately get to know your trading pairs by heart.
Tops and bottoms percentage of occurrence on EURGBP (London time).
Up days versus down days on EURUSD (London time).
█ FEATURES
Selectable time zones
Present the column chart in your local time zone (or other market participants).
Configurable time range filter
Select the period to report from.
Day type filter
Analyze all days, or filter only up days or down days.
█ HOW TO USE
Plot the indicator and visit the 1-hour or 30-minute timeframe.
█ NOTES
Timeframe choice
The 1-hour timeframe produces a higher number of days sampled. Prefer the usage of the 30-minute timeframe when your market starts at 9:30 AM.
Daylight Saving Time (DST)
The exchange time and geographical time zone options may observe Daylight Saving Time, unlike UTC+0.
BearMetricsLooking at the financial health of a company is a critical aspect of stock analysis because it provides essential insights into the company's ability to generate profits, meet its financial obligations, and sustain its operations over the long term. Here are several reasons why assessing a company's financial health is important when evaluating a stock:
1. **Profitability and Earnings Growth**: A company's financial statements, particularly the income statement, provide information about its profitability. Analyzing earnings and revenue trends over time can help you assess whether the company is growing or declining. Investors generally prefer companies that show consistent earnings growth.
2. **Risk Assessment**: Financial statements, including the balance sheet and income statement, offer a comprehensive view of a company's assets, liabilities, and equity. By evaluating these components, you can gauge the level of financial risk associated with the stock. A healthy balance sheet typically includes a manageable debt load and strong equity.
3. **Cash Flow Analysis**: Cash flow statements reveal how effectively a company manages its cash, which is crucial for day-to-day operations, debt servicing, and future investments. Positive cash flow is essential for a company's stability and growth prospects.
4. **Debt Levels**: Examining a company's debt levels and debt-to-equity ratio can help you determine its leverage. High debt levels can be a cause for concern, as they may indicate that the company is at risk of financial distress, especially if it struggles to meet interest payments.
5. **Liquidity**: Liquidity is vital for a company's short-term survival. By assessing a company's current assets and current liabilities, you can gauge its ability to meet its short-term obligations. Companies with low liquidity may face difficulties during economic downturns or unexpected financial challenges.
6. **Dividend Sustainability**: If you're an income-oriented investor interested in dividend-paying stocks, you'll want to ensure that the company can sustain its dividend payments. A healthy balance sheet and consistent cash flow can provide confidence in dividend sustainability.
7. **Investment Confidence**: A company with a strong financial position is more likely to attract investor confidence and positive sentiment. This can lead to higher stock prices and a lower cost of capital for the company, which can be beneficial for its growth initiatives.
8. **Risk Mitigation**: By assessing a company's financial health, you can mitigate investment risk. Understanding a company's financial position allows you to make more informed decisions about the level of risk you are comfortable with and whether a particular stock aligns with your risk tolerance.
9. **Long-Term Viability**: Ultimately, investors are interested in companies that have the potential for long-term success. A company with a healthy financial foundation is more likely to weather economic downturns, adapt to industry changes, and thrive over the years.
In summary, examining a company's financial health is a fundamental aspect of stock analysis because it provides a comprehensive picture of the company's current state and its ability to navigate future challenges and capitalize on opportunities. It helps investors make informed decisions and assess the long-term prospects of a stock in their portfolio.
sᴛᴀɢᴇ ᴀɴᴀʏʟsɪsStage analysis is a technical analysis approach that involves categorizing a stock's price movements into different stages to help traders and investors make more informed decisions. It was popularized by Stan Weinstein in his book, "Secrets for Profiting in Bull and Bear Markets." The stages are used to identify the overall trend and to time entries and exits in the market. Here's an explanation of the typical stages in stage analysis:
1. **Stage 1: Accumulation Phase**
- In this stage, the stock is in a downtrend or has been trading sideways for an extended period.
- Volume is relatively low, indicating that institutions and smart money may be quietly accumulating shares.
- The stock may test and hold support levels, showing signs of stability.
- The goal for traders in this stage is to identify the potential for a trend reversal.
2. **Stage 2: Markup (Bull Market) Phase**
- This is the stage where the stock starts a significant uptrend.
- Volume increases as institutional and retail investors become more interested in the stock.
- Technical indicators like moving averages and trendlines confirm the uptrend.
- Traders and investors look for buying opportunities during pullbacks or consolidations within the uptrend.
3. **Stage 3: Distribution Phase**
- In this stage, the stock's price begins to show signs of weakness.
- Volume might decrease as institutions and smart money start selling their positions.
- The stock may start forming a trading range or exhibit bearish chart patterns.
- Traders should consider taking profits or reducing exposure to the stock as it may enter a downtrend.
4. **Stage 4: Markdown (Bear Market) Phase**
- This is the stage where the stock enters a significant downtrend.
- Volume may remain elevated as selling pressure dominates.
- Technical indicators confirm the downtrend.
- Traders and investors should avoid buying the stock and may consider short-selling or staying on the sidelines.
Stage analysis helps traders and investors make decisions based on the current stage of a stock's price movement. The goal is to enter during the accumulation phase or early in the markup phase and exit during the distribution phase or before the markdown phase to maximize profits and minimize losses.
=============================================================
try to just show the Stage number in a table, but always double check for yourself
skThis Pine Script is an indicator designed to mark and highlight specific trading sessions on a TradingView chart. Here's a description of the script's functionality:
1. *Session Selection*: The script allows you to select a session time frame using the `session_input` input. The available options for session time frames are "D" (daily), "W" (weekly), "M" (monthly), "H" (hourly), "15" (15 minutes), "5" (5 minutes), and "1" (1 minute).
2. *Session Times*: You can specify the start and end times for three different trading sessions - CBDR (Central Bank Dealer Range), Asia, and London - using the corresponding input options. These times are specified in Indian Standard Time (IST).
3. *Time Calculation*: The script calculates the start and end times for each session based on the specified hours and minutes. It uses the `timestamp` function to create time objects for these sessions.
4. *Session Highlighting*: The script creates rectangles on the chart to highlight each session:
- CBDR Session: A gray rectangle is drawn during the CBDR session time.
- Asia Session: Another gray rectangle is drawn during the Asia session time.
- London Session: A green rectangle is drawn at the top of the chart during the London session time.
5. *Transparency*: The rectangles have a transparency level of 90%, allowing you to see the price data beneath them while still marking the sessions.
6. *Overlay*: The indicator is set to overlay on the price chart, so it doesn't obstruct the price data.
7. *Customization*: You can customize the session times and appearance by adjusting the input values in the settings panel of the indicator.
Overall, this script provides a visual way to identify and highlight specific trading sessions on your TradingView chart, helping traders understand price action in different market sessions.
Double MACD Pattern 1.0This script is designed to assist traders in identifying potential trading signals and trends based on the MACD indicator. Users can adjust the input parameters to fine-tune the indicator to their trading preferences. When specific conditions are met, alerts are generated to notify the user of potential trading opportunities.
Indicator Description:
The script defines a custom indicator that calculates and plots two sets of Moving Average Convergence Divergence (MACD) lines along with their signal lines.
It allows users to configure various parameters for MACD calculation, such as fast and slow lengths for both MACD 1 and MACD 2, as well as signal lengths for both.
Plotting:
The script plots the MACD lines and signal lines for both MACD 1 and MACD 2 on the chart with different colors and line styles.
It also plots a middle line at zero for reference.
Alerts:
The script defines conditions for generating alerts based on MACD crossover and crossunder events for both MACD 1 and MACD 2.
Alerts are generated for the following scenarios:
A long signal is generated when MACD 1 crosses under its signal line while MACD 2 crosses over its signal line.
A short signal is generated when MACD 1 crosses over its signal line while MACD 2 crosses under its signal line.
An up trend signal is generated when MACD 2 crosses over MACD 1.
A down trend signal is generated when MACD 1 crosses over MACD 2.
Alerts are included in the script to notify users of these specific trading signals.
Please note that this script is meant for educational purposes and should be used cautiously in a real trading environment. It's important to have a thorough understanding of technical analysis and risk management when using such indicators in actual trading.
Rule of 16 - LowerThe "Rule of 16" is a simple guideline used by traders and investors to estimate the expected annualized volatility of the S&P 500 Index (SPX) based on the level of the CBOE Volatility Index (VIX). The VIX, often referred to as the "fear gauge" or "fear index," measures the market's expectations for future volatility. It is calculated using the implied volatility of a specific set of S&P 500 options.
The Rule of 16 provides a rough approximation of the expected annualized percentage change in the S&P 500 based on the VIX level. Here's how it works:
Find the VIX level: Look up the current value of the VIX. Let's say it's currently at 20.
Apply the Rule of 16: Divide the VIX level by 16. In this example, 20 divided by 16 equals 1.25.
Result: The result of this calculation represents the expected annualized percentage change in the S&P 500. In this case, 1.25% is the estimated annualized volatility.
So, according to the Rule of 16, a VIX level of 20 suggests an expected annualized volatility of approximately 1.25% in the S&P 500.
Here's how you can use the Rule of 16:
Market Sentiment: The VIX is often used as an indicator of market sentiment. When the VIX is high (above its historical average), it suggests that investors expect higher market volatility, indicating potential uncertainty or fear in the markets. Conversely, when the VIX is low, it suggests lower expected volatility and potentially more confidence in the markets.
Risk Management: Traders and investors can use the Rule of 16 to estimate the potential risk associated with their portfolios. For example, if you have a portfolio of S&P 500 stocks and the VIX is at 20, you can use the Rule of 16 to estimate that the annualized volatility of your portfolio may be around 1.25%. This information can help you make decisions about position sizing and risk management.
Option Pricing: Options traders may use the Rule of 16 to get a quick estimate of the implied annualized volatility priced into S&P 500 options. It can help them assess whether options are relatively expensive or cheap based on the VIX level.
It's important to note that the Rule of 16 is a simplification and provides only a rough estimate of expected volatility. Market conditions and the relationship between the VIX and the S&P 500 can change over time. Therefore, it should be used as a guideline rather than a precise forecasting tool. Traders and investors should consider other factors and use additional analysis to make informed decisions.
Median of Means Estimator Median of Means (MoM) is a measure of central tendency like mean (average) and median. However, it could be a better and robust estimator of central tendency when the data is not normal, asymmetric, have fat tails (like stock price data) and have outliers. The MoM can be used as a robust trend following tool and in other derived indicators.
Median of means (MoM) is calculated as follows, the MoM estimator shuffles the "n" data points and then splits them into k groups of m data points (n= k*m). It then computes the Arithmetic Mean of each group (k). Finally, it calculate the median over the resulting k Arithmetic Means. This technique diminishes the effect that outliers have on the final estimation by splitting the data and only considering the median of the resulting sub-estimations. This preserves the overall trend despite the data shuffle.
Below is an example to illustrate the advantages of MoM
Set A Set B Set C
3 4 4
3 4 4
3 5 5
3 5 5
4 5 5
4 5 5
5 5 5
5 5 5
6 6 8
6 6 8
7 7 10
7 7 15
8 8 40
9 9 50
10 100 100
Median 5 5 5
Mean 5.5 12.1 17.9
MoM 5.7 6.0 17.3
For all three sets the median is the same, though set A and B are the same except for one outlier in set B (100) it skews the mean but the median is resilient. However, in set C the group has several high values despite that the median is not responsive and still give 5 as the central tendency of the group, but the median of means is a value of 17.3 which is very close to the group mean 17.9. In all three cases (set A, B and C) the MoM provides a better snapshot of the central tendency of the group. Note: The MoM is dependent on the way we split the data initially and the value might slightly vary when the randomization is done sevral time and the resulting value can give the confidence interval of the MoM estimator.
Average True Range (ATR) % KTSLSome traders calculate using percentages when trading. The original ATR indicator calculates using price movements, so it differs for each stock. To avoid this, I changed the ATR indicator to show price movement as a percentage. The red line is the percentage value of the volatility of the original ATR indicator. The white line is 1.6 times the original indicator. The green line is 2.5 times the white line. These values can be adjusted. I wish you good luck.
Position calculator [krazke]This indicator will help you calculate your position. This will automatically calculate potential liquidation price and select leverage for your stop loss and risk size.
How to use it:
1. Select position direction. (long checkmark - selected if it's long)
2. Select entry. If you want to use custom entry price select checkmark and set value. (Current price is default entry)
3. Enter stop loss.
4. Enter risk.
5. Enter max leverage for current ticker.
P.S. Liquidation price is not 100% correct but it almost.
Alxuse Supertrend 4EMA Buy and Sell for tutorialAll abilities of Supertrend, moreover :
Drawing 4 EMA band & the ability to change values, change colors, turn on/off show.
Sends Signal Sell and Buy in multi timeframe.
The ability used in the alert section and create customized alerts.
To receive valid alerts the replay section , the timeframe of the chart must be the same as the timeframe of the indicator.
Supertrend with a simple EMA Filter can improve the performance of the signals during a strong trend.
For detecting the continuation of the downward and upward trend we can use 4 EMA colors.
In the upward trend , the EMA lines are in order of green, blue, red, yellow from bottom to top.
In the downward trend, the EMA lines are in order of yellow, red, blue, green from bottom to top.
How it works:
x1 = MA1 < MA2 and MA2 < MA3 and MA3 < MA4 and ta.crossunder(MA3, MA4)
x2 = MA1 < MA2 and MA2 < MA3 and MA3 < MA4 and ta.crossunder(MA2, MA3)
x3 = MA1 < MA2 and MA2 < MA3 and MA3 < MA4 and ta.crossunder(MA1, MA2)
y1 = MA4 < MA3 and MA3 < MA2 and MA2 < MA1 and ta.crossover(MA3, MA4)
y2 = MA4 < MA3 and MA3 < MA2 and MA2 < MA1 and ta.crossover(MA2, MA3)
y3 = MA4 < MA3 and MA3 < MA2 and MA2 < MA1 and ta.crossover(MA1, MA2)
Red triangle = x1 or x2 or x3
Green triangle = y1 or y2 or y3
Long = BUY signal and followed by a Green triangle
Exit Long = SELL signal
Short = SELL signal and followed by a Red triangle
Exit Short = BUY signal
It is also possible to get help from the Stochastic RSI and MACD indicators for confirmation.
For receiving a signal with these two conditions or more conditions, i am making a video tutorial that I will release soon.
Supertrend
Definition
Supertrend is a trend-following indicator based on Average True Range (ATR). The calculation of its single line combines trend detection and volatility. It can be used to detect changes in trend direction and to position stops.
The basics
The Supertrend is a trend-following indicator. It is overlaid on the main chart and their plots indicate the current trend. A Supertrend can be used with varying periods (daily, weekly, intraday etc.) and on varying instruments.
The Supertrend has several inputs that you can adjust to match your trading strategy. Adjusting these settings allows you to make the indicator more or less sensitive to price changes.
For the Supertrend inputs, you can adjust atrLength and multiplier:
the atrLength setting is the lookback length for the ATR calculation;
multiplier is what the ATR is multiplied by to offset the bands from price.
When the price falls below the indicator curve, it turns red and indicates a downtrend. Conversely, when the price rises above the curve, the indicator turns green and indicates an uptrend. After each close above or below Supertrend, a new trend appears.
Summary
The Supertrend helps you make the right trading decisions. However, there are times when it generates false signals. Therefore, it is best to use the right combination of several indicators. Like any other indicator, Supertrend works best when used with other indicators such as MACD, Parabolic SAR, or RSI.
Exponential Moving Average
Definition
The Exponential Moving Average (EMA) is a specific type of moving average that points towards the importance of the most recent data and information from the market. The Exponential Moving Average is just like it’s name says - it’s exponential, weighting the most recent prices more than the less recent prices. The EMA can be compared and contrasted with the simple moving average.
Similar to other moving averages, the EMA is a technical indicator that produces buy and sell signals based on data that shows evidence of divergence and crossovers from general and historical averages. Additionally, the EMA tries to amplify the importance that the most recent data points play in a calculation.
It is common to use more than one EMA length at once, to provide more in-depth and focused data. For example, by choosing 10-day and 200-day moving averages, a trader is able to determine more from the results in a long-term trade, than a trader who is only analyzing one EMA length.
It’s best to use the EMA when for trending markets, as it shows uptrends and downtrends when a market is strong and weak, respectively. An experienced trader will know to look both at the line the EMA projects, as well as the rate of change that comes from each bar as it moves to the next data point. Analyzing these points and data streams correctly will help the trader determine when they should buy, sell, or switch investments from bearish to bullish or vice versa.
Short-term averages, on the other hand, is a different story when analyzing Exponential Moving Average data. It is most common for traders to quote and utilize 12- and 26-day EMAs in the short-term. This is because they are used to create specific indicators. Look into Moving Average Convergence Divergence (MACD) for more information. Similarly, the 50- and 200-day moving averages are most common for analyzing long-term trends.
Moving averages can be very useful for traders using technical analysis for profit. It is important to identify and realize, however, their shortcomings, as all moving averages tend to suffer from recurring lag. It is difficult to modify the moving average to work in your favor at times, often having the preferred time to enter or exit the market pass before the moving average even shows changes in the trend or price movement for that matter.
All of this is true, however, the EMA strives to make this easier for traders. The EMA is unique because it places more emphasis on the most recent data. Therefore, price movement and trend reversals or changes are closely monitored, allowing for the EMA to react quicker than other moving averages.
Limitations
Although using the Exponential Moving Average has a lot of advantages when analyzing market trends, it is also uncertain whether or not the use of most recent data points truly affects technical and market analysis. In addition, the EMA relies on historical data as its basis for operating and because news, events, and other information can change rapidly the indicator can misinterpret this information by weighting the current prices higher than when the event actually occurred.
Summary
The Exponential Moving Average (EMA) is a moving average and technical indicator that reflects and projects the most recent data and information from the market to a trader and relies on a base of historical data. It is one of many different types of moving averages and has an easily calculable formula.
The added features to the indicator are made for training, it is advisable to use it with caution in tradings.
Alxuse Stochastic RSI for tutorial All abilities of Stochastic RSI, moreover :
Drawing upper band and lower band & the ability to change values, change colors, turn on/off show.
Crossing K line and D line in multi timeframe & there are symbols (Circles) with green color (Buy) and red color (Sell) & the ability to change colors, turn on/off show.
Crossing K line and D line in multi timeframe according to the values of upper band and lower band & there are symbols (Triangles) with green color (Long) and red color (Short) & the ability to change colors, turn on/off show.
The ability used in the alert section and create customized alerts.
To receive valid alerts the replay section , the timeframe of the chart must be the same as the timeframe of the indicator.
Stochastic RSI (STOCH RSI)
Definition
The Stochastic RSI indicator (Stoch RSI) is essentially an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means that it is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which is then plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.
The basics
It is important to remember that the Stoch RSI is an indicator of an indicator making it two steps away from price. RSI is one step away from price and therefore a stochastic calculation of the RSI is two steps away. This is important because as with any indicator that is multiple steps away from price, Stoch RSI can have brief disconnects from actual price movement. That being said, as a range bound indicator, the Stoch RSI's primary function is identifying crossovers as well as overbought and oversold conditions.
The basics
It is important to remember that the Stoch RSI is an indicator of an indicator making it two steps away from price. RSI is one step away from price and therefore a stochastic calculation of the RSI is two steps away. This is important because as with any indicator that is multiple steps away from price, Stoch RSI can have brief disconnects from actual price movement. That being said, as a range bound indicator, the Stoch RSI's primary function is identifying crossovers as well as overbought and oversold conditions.
Overbought/Oversold
Overbought and Oversold conditions are traditionally different than the RSI. While RSI overbought and oversold conditions are traditionally set at 70 for overbought and 30 for oversold, Stoch RSI are typically .80 and .20 respectively. When using the Stoch RSI, overbought and oversold work best when trading along with the underlying trend.
During an uptrend, look for oversold conditions for points of entry.
During a downtrend, look for overbought conditions for points of entry.
Summary
When using Stoch RSI in technical analysis, a trader should be careful. By adding the Stochastic calculation to RSI, speed is greatly increased. This can generate many more signals and therefore more bad signals as well as the good ones. Stoch RSI needs to be combined with additional tools or indicators in order to be at its most effective. Using trend lines or basic chart pattern analysis can help to identify major, underlying trends and increase the Stoch RSI's accuracy. Using Stoch RSI to make trades that go against the underlying trend is a dangerous proposition.
The added features to the indicator are made for training, it is advisable to use it with caution in tradings.
Alxuse MACD for tutorialAll abilities of MACD, moreover :
Drawing upper band and lower band & the ability to change values, change colors, turn on/off show.
Crossing MACD line and SIGNAL line in multi timeframe & there are symbols (Circles) with green color (Buy) and red color (Sell) & the ability to change colors, turn on/off show.
Crossing MACD line and SIGNAL line in multi timeframe according to the values of upper band and lower band & there are symbols (Triangles) with green color (Long) and red color (Short) & the ability to change colors, turn on/off show.
The ability used in the alert section and create customized alerts.
To receive valid alerts the replay section , the timeframe of the chart must be the same as the timeframe of the indicator.
MACD (Moving Average Convergence/Divergence)
Definition
MACD is an extremely popular indicator used in technical analysis. MACD can be used to identify aspects of a security's overall trend. Most notably these aspects are momentum, as well as trend direction and duration. What makes MACD so informative is that it is actually the combination of two different types of indicators. First, MACD employs two Moving Averages of varying lengths (which are lagging indicators) to identify trend direction and duration. Then, MACD takes the difference in values between those two Moving Averages (MACD Line) and an EMA of those Moving Averages (Signal Line) and plots that difference between the two lines as a histogram which oscillates above and below a center Zero Line. The histogram is used as a good indication of a security's momentum.
MACD Line is a result of taking a longer term EMA and subtracting it from a shorter term EMA.The most commonly used values are 26 days for the longer term EMA and 12 days for the shorter term EMA, but it is the trader's choice.
The Signal Line.
The Signal Line is an EMA of the MACD Line described in Component 1. The trader can choose what period length EMA to use for the Signal Line however 9 is the most common.
The MACD Histogram.
As time advances, the difference between the MACD Line and Signal Line will continually differ. The MACD histogram takes that difference and plots it into an easily readable histogram. The difference between the two lines oscillates around a Zero Line.
A general interpretation of MACD is that when MACD is positive and the histogram value is increasing, then upside momentum is increasing. When MACD is negative and the histogram value is decreasing, then downside momentum is increasing.
What to look for
The MACD indicator is typically good for identifying three types of basic signals; Signal Line Crossovers, Zero Line Crossovers, and Divergence.
SIGNAL LINE CROSSOVERS
A Signal Line Crossover is the most common signal produced by the MACD. First one must consider that the Signal Line is essentially an indicator of an indicator. The Signal Line is calculating the Moving Average of the MACD Line. Therefore the Signal Line lags behind the MACD line. That being said, on the occasions where the MACD Line crosses above or below the Signal Line, that can signify a potentially strong move.
The strength of the move is what determines the duration of Signal Line Crossover. Understanding and being able to analyze move strength, as well as being able to recognize false signals, is a skill that comes with experience.
The first type of Signal Line Crossover to examine is the Bullish Signal Line Crossover. Bullish Signal Line Crossovers occur when the MACD Line crosses above the Signal Line.
The second type of Signal Line Crossover to examine is the Bearish Signal Line Crossover. Bearish Signal Line Crossovers occur when the MACD Line crosses below the Signal Line.
Zero line crossovers
Zero Line Crossovers have a very similar premise to Signal Line Crossovers. Instead of crossing the Signal Line, Zero Line Crossovers occur when the MACD Line crossed the Zero Line and either becomes positive (above 0) or negative (below 0).
The first type of Zero Line Crossover to examine is the Bullish Zero Line Crossover. Bullish Zero Line Crossovers occur when the MACD Line crosses above the Zero Line and go from negative to positive.
The second type of Zero Line Crossover to examine is the Bearish Zero Line Crossover. Bearish Zero Line Crossovers occur when the MACD Line crosses below the Zero Line and go from positive to negative.
Divergence
Divergence is another signal created by the MACD. Simply put, divergence is when the MACD and actual price are not in agreement.
For example, Bullish Divergence occurs when price records a lower low, but the MACD records a higher low. The movement of price can provide evidence of the current trend, however changes in momentum as evidenced by the MACD can sometimes precede a significant reversal.
Bearish Divergence is, of course, the opposite. Bearish Divergence occurs when price records a higher high while the MACD records a lower high.
Summary
What makes the MACD such a valuable tool for technical analysis is that it is almost like two indicators in one. It can help to identify not just trends, but it can measure momentum as well. It takes two separate lagging indicators and adds the aspect of momentum which is much more active or predictive That kind of versatility is why it has been and is used by trader's and analysts across the entire spectrum of finance.
Despite MACD's obvious attributes, just like with any indicator, the trader or analyst needs to exercise caution. There are just some things that MACD doesn't do well which may tempt a trader regardless. Most notably, traders may be tempted into using MACD as a way to find overbought or oversold conditions. This is not a good idea. Remember, MACD is not bound to a range, so what is considered to be highly positive or negative for one instrument may not translate well to a different instrument.
With sufficient time and experience, almost anybody who wants to analyze chart data should be able to make good use out of the MACD.
The added features to the indicator are made for training, it is advisable to use it with caution in tradings.
MTF - Zigzag + Tech IndicatorsMTF - Zigzag + Tech Indicators
At high level the indicator can be a useful tool while analyzing the charts. It marks swing points (Zigzag) on 3 different timeframes along with capability to view key technical indicator values at each of the swing point.
Normally Zaizag indicators are useful for identifying primary trend and retracements. Zigzags also help in identifying key support and resistance areas. Traders develop various trading strategies based on Zigzags.
Most of the published Zigzag indicators use single timeframe / chart timeframe to draw the Zigzag lines but, many traders/chart analysts would like to analyze trends on multiple timeframes. Single timeframe Zigzags makes such analysis little difficult.
This indicator is an advanced version of Zigzag which allow users to draw Zigzag lines on multiple timeframes. It allows users to input 2 additional higher timeframes and in total it draws Zigzag on 3 timeframes i.e., on chart timeframe and 2 additional higher timeframes.
Once loaded on the chart, it draws Zigzag lines and plot labels (HH, LL, HL, LH) which denotes swing points. Each of the swing point label has a tooltip attached to it, which provide few additional data point, to view the additional data points, hover the mouse over the label.
Swing label tooltip shows these additional data points:
Tag: Swing type (HH, LL, HL, LH) + Bar time (in dd-mm-yyyy hh:mm format)
Price point: Swing price point
Price change: Price change since previous swing point along with change %
Swing volume: Volume since previous swing point in million
Key technical indicator values:
RSI (close, 14)
Stochastic (close, high, low, 14)
ADX (14, 14)
SMA20
SMA50
SMA100
SMA200
Use cases:
Support resistance: Though most of the swing points of a zigzag are treated as a support or resistance. This indicator allows to add more depth to the analysis. E.g., swing points based on lowest timeframe (chart timeframe) can be treated as weak support/resistance whereas swing points based on higher timeframe can treated as strong support/resistance and prices need to hit it multiple time to cross/break the same.
Trend identification: Trend on lowest timeframe (chart timeframe) can be a immediate term trend, trend on the mid-level higher timeframe can be a short term trend and trend on the highest level timeframe can be a long term trend.
Trade identification, entry, and exit: MTF Zigzag can also be creatively used while trading. Eg. One can identify a trend on highest level timeframe and use mid-level timeframe for trade entry and lowest level timeframe can be used for Take Profit levels (TP1, TP2, ..) and Stop loss. Alternatively, Trend can be identified on highest or mid-level timeframe and trade entry/exit can be based on lowest level timeframe.
Use of information displayed in tooltip: Analysts/traders look for confirmations from other indicators while initiating trades. These additional indicator values become handy/readily available source of information without specifically navigating through different indicators/charts. These indicator values can be creatively used in many ways. Some of the examples are:
Easy comparison of values of moving averages on all 3 timeframes
Better assessment of momentum and overbought/oversold based on value of stochastic and rsi
Use of ADX to determine the strength of the trend
Trade decision based on increasing or decreasing order of moving averages
Trade decision, based order of moving averages combined with overbought/oversold and strength of the trend
Chart examples: TCS on 60m/4h/1D
ITC 4h/1D
Input Parameters:
1. Chart timeframe zigzag setup: to plot zigzag based on chart timeframe
2. Higher timeframe zigzag setup: to plot zigzag based on higher timeframe
3. Higher timeframe zigzag setup 1: to plot zigzag based on another higher timeframe
Each of these have user selectable options:
1. Color/width of the zigzag line
2. plot zigzag line - select/unselect
3. plot HHLL labels - select/unselect
Both (2 and 3) Higher timeframe setups allow to select higher timeframe and offset. Offset can be 0 or 1. This setting normally used to avoid repainting. Select offset as 1 to avoid repainting.
For Pine script developers:
Script elements:
1. Input parameters
2. Type definition (UDT) for ohlc and ph, pl data elements
3. Map definition for visual properties
4. Type instances for chart_tf, higher_tf1, higher_tf2
5. Important variable – for indicator values
6. Methods –
a. get_ph_pl() – get ph, pl data for each of the tf along with indicator values
b. add_ph(), add_pl() – add ph, pl data to timeframe specific udt, plot the zigzag and labels, add tooltip to label
Script structure
1. Input parameters
2. Variable and type definitions
3. Methods and functions
4. For each of timeframe, call functions and methods
a. Check ph, pl (if swing point formed)
b. Plot ph, pl (if applicable) i.e. zigzag line, labels
KSMT Toolbox - MidTFThis tool allows you to quickly identify the macro and micro trend's direction and enter and exit position at a more favorable price.
When the pink lines are angled up you should look for a long position and enter only when the candles are colored green.
And when the pink lines are angled down you should look for a short position and enter only when the candles are colored red.
This tool is only meant to be a practice tool and should be used to train your eye on candle movements to gain a sense of when you should enter/exit.
Practice is what differentiates a good trader and a bad one.
#KSMT #KSMT_Armenia
Volume EntropyKey Components :
📍 Natural Logarithm Function : The script starts by employing a custom Taylor Series approximation for natural logarithms. This function serves to calculate entropy with higher accuracy than conventional methods, laying the foundation for further calculations.
📍 Entropy Calculation : The core of this indicator is its entropy function. It employs the custom natural log function to compute the randomness of the trading volume over a user-defined micro-pattern length, offering insights into market stability or volatility.
📍 Micro-Pattern Length : This is the parameter that sets the stage for the level of detail in the entropy calculation. Users can adjust it to suit different time frames or market conditions, thus customizing the indicator's sensitivity to randomness in trading volume.