Purchasing Managers Index (PMI)The Purchasing Managers Index (PMI) is a widely recognized economic indicator that provides crucial insights into the health and performance of an economy's manufacturing and services sectors. This index is a vital tool for anticipating economic developments and trends, offering an early warning system for changes in these sectors.
The PMI is calculated based on surveys conducted among purchasing managers in various businesses and organizations. These managers are asked about their perceptions of current business conditions and their expectations for future economic activity within their sectors. The responses are then compiled and used to calculate the PMI value.
A PMI value above 50 typically indicates that the manufacturing or services sector is expanding, suggesting a positive economic outlook. Conversely, a PMI value below 50 suggests contraction, which may be an early indication of economic challenges or a potential recession.
In summary, the Purchasing Managers Index (PMI) is an essential economic indicator that assesses the health of manufacturing and services sectors by surveying purchasing managers' opinions. It serves as an early warning system for changes in economic activity and is a valuable tool for forecasting economic trends and potential crises.
This code combines the Purchasing Managers Index (PMI) data with two Simple Moving Averages (SMA) and some visual elements.
Let's break down how this indicator works:
1. Loading PMI Data:
The indicator loads data for the "USBCOI" symbol, which represents the PMI data. It fetches the monthly closing prices of this symbol.
2. Calculating Moving Averages:
Two Simple Moving Averages (SMAs) are calculated based on the PMI data. The first SMA, sma_usbcoi, has a length defined by the input parameter (default: 2). The second SMA, sma2_usbcoi, has a different length defined by the second input parameter (default: 14).
3. Color Coding and Thresholds:
The line color of the PMI plot is determined based on the value of the PMI. If the PMI is above 52, the color is teal; if it's below 48, the color is red; otherwise, it's gray. These threshold values are often used to identify specific conditions in the PMI data.
4. Crossing Indicator:
A key feature of this indicator is to determine if the PMI crosses the first SMA (sma_usbcoi) from top to bottom while also being above the value of 52. This is indicated by the crossedUp variable. This condition suggests a specific situation where the PMI crosses a short-term moving average while indicating strength (above 52).
5. Visual Elements:
A "💀" skull emoji is defined as skullEmoji.
The PMI is plotted on the chart with color coding based on its value, as described earlier.
The two SMAs are also plotted on the chart.
When the crossedUp condition is met (PMI crosses the first SMA from top to bottom while above 52), a skull emoji (indicating potential danger) is plotted at the top of the indicator window.
Lei
US Composite Leading Indicator (CLI)The US Composite Leading Indicator (CLI), normalized for the United States, closely mirrors the Conference Board "Leading Economic Index" (LEI). It offers unique insights into economic and financial dynamics.
The Composite Leading Indicator (CLI) is an economic tool designed to anticipate economic developments. It is created by aggregating and normalizing a wide range of economic and financial data from various sources.
The normalized data is then aggregated, and a composite indicator is calculated by taking a weighted average of individual indicators.
The CLI is used to provide early insights into the state of the economy and to anticipate future economic trends. It is particularly valuable for predicting economic downturns, including recessions.
The CLI is an essential tool for economists, governments, businesses, and investors seeking to understand economic trends and make informed decisions.
Key Features:
1. Early Warning: Just like its counterpart, the CLI indicator excels at offering early warnings about significant economic events, particularly economic crises. This makes it an indispensable asset for analysts and investors.
2. Recession Indicators: The moving average serves as an early warning system for potential economic recessions. When it crosses the indicator line from the bottom to the top while surpassing a predefined threshold (e.g., 101), it signals a potential crisis.
3. Market Impact: The CLI indicator provides valuable insights into the performance of financial markets, offering cues about indices such as the S&P 500, Nasdaq, Dow Jones, and more.
Why It Matters:
Understanding the US Composite Leading Indicator (CLI) indicator, normalized for the United States, is crucial for anticipating economic shifts and preparing for changes in financial markets. By analyzing a diverse array of economic factors, it provides a holistic view of economic well-being. Whether you're an investor or economist, this indicator can be an invaluable resource for staying informed about market trends and major economic developments.
Source:
www.data.oecd.org
TradiKator 01 MATradiKator 01 MA is the a visual indicator that plots market capitalized cost following moving average (SMA and EMA) , based on LEI & LoneCapital defined metrology method and includes the TradiKator creative idea to help visualize the Price action in relation to the market capitalized cost.
Q&A
Q1.Why Moving Average ?
As LEI & LoneCapital explained moving average is indicating market capitalized cost moving.
If you are a trend following trader, you should participate in upside while sidestepping downside.
You need a indicator that help you to make money while prices are rising, then exit when they are falling.
A classical approach is the moving average strategy.
Nevertheless as efficient-market hypothesis (EMH) states that asset prices will reflect all available information.
The smart trader should focus on price moving i.s.o. reading all available information which is not practical.
Q2.What is Moving Average ?
As the name implies, the moving average is an average of a price's movement over time.
The simple moving average (SMA) is a just simple average over time.
The exponential moving average (EMA) on the other hand gives greater weight to more recent price action.
Q2.What are the Period Moving Average based on ?
The default Moving Average Period setting are based on LEI & LoneCapital defined Short term 20 (days in month), Mid term 60 (days in quarter), Long term 120 (days in half year).
We use 3 colors to represent these 3 periods. Black as Short term , Red as Mid term , Blue as Long term
You will see same color scheme in our indicators.
Of cause you can change the default setting to switch to your favorite Moving Average Period. How to do it is listed in setting.
Function and Setting
1.MA period setting
"Adjust All MA Period" --> Users can increase or decrease all 3 period in the same time. For example, input "-1" , you will have 3 periods as "19","59","119"
"Fix the M_MA=3*S_MA,L_MA = 6*S_MA (overwrite below 2 settings)" --> It will fix the Mid period as 3 times of short, Long period as 6 times of short. Meanwhile the separated setting for Mid and long will be ignored.
"3 period separated settings" --> Please disable the "fix ..." setting for individual 3 periods
"Source" --> Allow user switch used source from "close" to any other data source like"hl2","hlc3" and etc.
2.Deduction price Setting
"Show deduction price label (Pls disable the angle)" --> Will show 3 deduction price. Please disable the "Show Angle ..." before enable this switch.
"Arrow on Slope (Deduction vs Today Which is higher)" --> Will show 3 arrows aim to the higher price between Deduction and Today.
Also the dashed slope line will change to solid line. It helps when Deduction is very close to Today
3.Angle for slope line ---> Killer feature
"Show Angle ..." --> As LEI & LoneCapital explained current trend can be described as "o'clock direction wise" .
By measuring current trend's "angle" we can has a fuzzy image about current trend.
Note: In fact there is real 12 o'clock or 90 degree, therefore we define our "90 degree" and all called value of "angle" is based on our defined metric.
Also everyone has different opinion about the start point of current trend.
We choose the 3 MA periods as the start point to measure the angles.
There are 3 mod prepared for the angle measure metrology.
Abs % --> "90 deg" = increase 100% in 20 days. It is the most robust mod.
1Y rel % --> "90 deg" = increase 50% of 1Y Absolute price range in 20 days. It can't be used in case of minus price.(like CL future in 2020 Mar)
1Y rel log --> "90 deg" = increase 50% of 1Y log scaled price range in 20 days. Also it can't be used in case of minus price.
4.Deduction price trail and Background color
"Show Deduction price trail" --> Enable it to show the 3 Deduction prices' trail.
"Show trail in the coming days" --> Enable : the prices' trail is showed in the coming days. Disable : the prices' trail is showed on the MA period historical days.
"MA long term Trend Background Color" --> Similar to the "fill EMA with color", fill the Background with color which represent the EMA trend.
5.High volume and Show gap
"High volume label" --> Highlight the high volume with label.
We define the volume which is higher than percentile value of 3 MA historical volume statistical metrics.
So the black label means this volume is higher than 97 percentile value of 20 days' volume. Red 60 days and Blue 120 days.
The percentile can be set by user. Also the MA period can be adjusted by user.
"Show gap" --> Highlight the gap between close and next day open.
Note: We don't measure whether the gap is closed or not.
6.Forecast SMA ---> Killer feature
As you noticed the dashed line after today, it is our killer feature: forecast SMA.
Green Dashed line: The close price according to the assumption user input.
3 colors' Dashed lines: The SMA based on the Green Dashed line's close price.
"Days to plot forecast SMA (Max=14, SwitchOff=0)" --> Please decide how many days' SMA user would like to forecast.
"Mod1 Assumed chg ratio ‰ in the every days (10=1%)" --> Mod1: User should give the change rate in the coming every days. For example, user's assumption is that price will increase 10% everyday.
"Mod2 Assumed chg % in the ?th day (1=1%)(Pls set Mod1 to 0)" --> Mod2: User should give the change rate in the future ?th days. For example, user's assumption is that price will increase 30% in the 3rd day.
"Mod2 Need ? day to reach the chg % (tomorrow = 1 day)" --> Mod2: User should give the future ?th days.
note: While using Mod2, user has to disable Mod1 by set Mod1 to 0 (default setting)
TradiKator is Traders' indicator.
Please visit TraiKator for more free script.
We also support Chinese.
TWO by Jchang274In statistics, a moving average is a calculation used to analyze data points by creating a series of averages of different subsets of the full data set. In finance, a moving average (MA) is a stock indicator that is commonly used in technical analysis. The reason for calculating the moving average of a stock is to help smooth out the price data by creating a constantly updated average price.
By calculating the moving average, the impacts of random, short-term fluctuations on the price of a stock over a specified time-frame are mitigated.
Rebuild this code, make it more easy to understand.
Multi-Sub by jchang274How it begin?
Traders and investors use market breadth in order to assess the index’s overall health. Market breadth can be a reliable, if not an accurate, indicator of an upcoming price rise in the index. Similarly, it can also provide early warning signs for a future price decline.
What is it?
Market breadth indicators analyze the number of stocks advancing relative to those that are declining in a given index or on a stock exchange.
Market breadth refers to how many stocks are participating in a given move in an index or on a stock exchange. An index may be rising yet more than half the stocks in the index are falling because a small number of stocks have such large gains that they drag the whole index higher.
How it works?
Market breadth studies attempt to uncover strength or weakness in the movements of an index that are not visible simply by looking at a chart of the index.
Two MA Sys by Jchang274The MA System is indicating historical cost on the market.
This script will help you observe the relationship among MA.
This script is inspired by LEI & LoneCapital.
Thanks to LEI.
Welcome to enjoy and test it!
Version 1.0