US Inflation Rate [nb]This is the United States inflation rate, based on the total Consumer Price Index published by the U.S. Bureau of Labor Statistics.
Option to toggle:
A line to display the inflation rate in December. It does not change until the next December.
What the color change to red is indicative of:
According to the Federal Open Market Committee (FOMC) regarding inflation rate, "2% is a bae number to be around". This does not imply a strict 2% inflation for success and allows room for federal rate cuts should they be needed.
Although FOMC declared 2% to be "bae" in 2012, James Bullard, of federal banking fame, claims that started to become the norm in 1995. Therefore the inflation rate line will only turn red 1995 onwards, and serves as a friendly reminder that inflation has been over at or over 2% for more than one month.
Sources:
www.bls.gov
www.federalreserve.gov
www.stlouisfed.org
Taxa de Variação (ROC)
Rate Of Change - Weekly SignalsRate of Change - Weekly Signals
This indicator gives a potential "buy signal" using Rate of Change of SPX and VIX together,
using the following criteria:
SPX Weekly ROC(10) has been BELOW -9 and now rises ABOVE -5
*PLUS*
VIX Weekly ROC(10) has been ABOVE +80 and now falls BELOW +10
The background will turn RED when ROC(SPX) is below -9 and ROC(VIX) is above +80.
The background will turn GREEN when ROC(SPX) is above -5 and ROC(VIX) is below +10.
So the potential "buy signal" is when you start to get GREEN BARS AFTER RED - usually with
some white/empty bars in between...but wait for the green. This indicates that the volatility
has settled down, and the market is starting to turn up.
This indicator gives excellent entry points, but be careful of the occasional false signals.
See Nov. 2001 and Nov. 2008, in both cases the market dropped another 25-30% before the final
bottom was formed. Always have an exit strategy, especially when buying in after a downtrend.
How I use this indicator, pretty much as shown in the preview. Weekly SPX as the main chart with
some medium/long moving averages to identify the trend, VIX added as a "Compare Symbol" in red,
and then the Weekly ROC signals below.
For the ROC graphs, you can show SPX+VIX together, SPX alone, or VIX alone. I prefer to display
them separately because they don't scale well together (VIX crowds out the SPX when it spikes).
Background color is still based on both SPX/VIX together, regardless of which graph is shown.
Note that there is no VIX data available on Trading View prior to 1990, so for those dates the
formula is using only ROC(SPX) and the assigned thresholds (-9 and -5, or whatever you choose).
COVID-19: Daily change per capita (EU only)New confirmed cases per day (daily change) is one thing, just an absolute value but when we put this number in context of population (per million people) of each country the situation is a bit different.
We can easily see that, at the moment (Apr 2nd, 2020), the most affected country is Spain (~150 new cases per million people per day) and surprisingly the second one is Switzerland (CH). We can also see Spain or Belgium's steep curve relative to other countries.
I know that some countries run more tests than the others and the outcome might not be reflect the reality but this is the official data that is available.
COVID-19: Daily momentumThis indicator shows 14-days moving average of daily rate of change (momentum, acceleration), in other words:
- up trends means that virus accelerates at the rate displayed on the right scale
- consolidation/horizontal movement - virus spreads at constant rate
- down trend - virus looses momentum IMPORTANT: the virus STILL accelerates but at a lower rate
By default the graphic displays World vs. EU vs. US vs. Asia while individual countries are available in Settings.
- EU includes the following countries (DE, FR, IT, ES, CH), all with more than 10k confirmed cases and more than 1k new daily infections.
- Asia includes CH and KR
To use the indicator it is important to disconnect main chart from the right scale, on main chart click on More (the 3 dots) -> Pin to scale -> Select "No Scale".
GMS: RSI & ROC StrategyThis is a basic strategy like the RSI one I posted. This one adds in the Rate of Change indicator as well.
You can separate the two for RSI only and ROC only. Everything else is the same as the RSI strategy.
- Simple moving average trend filter.
- Simple moving average trade exit.
- Both long and short or each on it's own.
The source code should be open if you want to see it or modify it for your own project. I hope it helps!
Andre
Global Market Signals
SMU Binary Decimal CandlesThis script creates a Decimal and Binary representation of the price using ROC. The idea is to simplify the price action into a distance from Zero to upside and downside.
You can see clearly trend develops in the ROC in the decimal view, kind of like MACD but based on raw price action change. I'm' a big fan of raw price action, so my scripts are super simple.
You can also use this script in a binary mode close higher = 1 and lower is -1. I use the binary mode to remove the psychological pressure of watching the stock going against me. I turn off the actual price and only focus on number of reds vs blue. On a Quantum physics level, when I short, I observe /wish for more reds like last night 1% sell-off
The main message form all my scripts is think outside the box, experiment with something crazy that doesn't make sense at first and make it to make sense. I always start with an idea that pops into my head, script with Pine script super simple and then watch it for hours to see what is trying to tell me. I have many work in progress that still doesn't make sense but looks really weird and wonderful. When I figure out what is trying to tell me I publish it
Growing or Waning Patterns [Alerts]Example how to color patterns of 3 bodies growing or waning by percentage with or without trend. Also included option for alert triggers. The yellow triangles on the chart denote where the alert triggers will fire.
• Choose Pattern Of Filter: shows bodies growing or waning or both.
• Sample Lengths Of AvgBar: number of recent bars to use for average size.
• BigBar Is Min% Of AvgBar: the minimum percent of average the big bar must be.
• MedBar Is Max% Of BigBar: the maximum percent of big bar the medium bar can be.
• SmlBar Is Max% Of MedBar: the maximum percent of medium bar the small bar can be.
• Repeat Pattern If n Bars: the number of bars to ignore repeat patterns, 1 allows all.
• Trending: on requires the growing or waning patterns to also be trending.
• GrayBars: colors non pattern bodies gray.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Rate Of Change Earnings Move - ROCEMRate Of Change Earnings Move
What is it and how does it work?
The Rate of Change Earnings Move indicator or ROCEM is an indicator designed for giving the user an idea of how much a stock has moved up or down in past earnings reports. This is ideal for options traders who can use ROCEM to calculate whether or not their long straddles are actually probable of happening.
How it works
The indicator measures the absolute value rate of change and then calculates the average rate of change for the day of the earnings report for the past 8 earnings reports (2 years). It then takes the current stock price and finds the upper and lower price based on the average rate of change for past earnings.
I have also included a moving average (purple line), use this to see if the current rate of change is higher than usual.
Additionally, earnings reports are marked with a red x on the indicator.
How to trade ROCEM
This is primarily made for options trading so I will be explaining how it can be used for that. It is not suited for traditional stock trading as it does not determine a market direction.
Select a stock with an upcoming earnings
Enter your per leg commissions in the indicator if you want it to calculate new upper and lower prices (makes it easier to determine if the options trade will pass the breakeven when commissions are factored in)
Compare your long straddle breakevens with the upper and lower prices of the indicator. If the upper breakeven is smaller than the upper price in ROCEM and the lower breakeven is larger than the lower price in ROCEM, then a long straddle position could be considered a reasonable trade based on past earnings performance.
Multiple Rate Of ChangeConvergence of Multiple period Rates of Change near the Zero line shows contraction in volatility.
Soon we can expect expansion in volatility.
Ideal strategy would be to buy ATM Straddles when different period ROCs converge near Zero line.
(Also check implied volatility of options before going for this strategy)
RVol & RoC - Relative Volume & Rate of Change by haciyatmazRelative Volume ( RVol ) is a critical measure of volume flows. It measures current volume in relation to the "usual" volume for this time of the day.
Rate of Change ( RoC ) is a momentum-based technical indicator that measures the percentage change in price between the current price and the price a certain number of periods ago.
Breakout Reversal Entry on WMA - NG1! Overnight ver 1This script is for learning purposes only
This strategy will plot arrows when price breaks so far above/below WMA. The strategy will enter when the price breaks away from WMA. All entries are reversals. Users can set WMA length and source; also the distance of the price away from WMA to enter. Adjustable bracket orders are placed for exit, with trailing stop or market stop choice. Last, users can set the time of day they want to enter a trade.
My Preference: I am testing this strategy on NG1! over night on 1 minute candle. with .003 on price drop/climb, I get entries almost every night. Also 10 tick stop and 5 tick profit seems backward to most, but with a high win/loss ratio, it performs quite well. Trailing stops generally help out as well.
INPUTS:
Length - The is the WMA length
Source - WMA source (High, Low, Open, Close...)
When Price Drops - This is the distance in ticks when the price drops away from WMA, an arrow is plotted, and reversal entry order is placed
When Price Climbs - Same as price drop, just in the opposite direction
Trailing Stop check box - Check if you want to place a trailing stop so many tick away from entry. Unchecked is Market (hard) stop so many ticks from entry.
Stop - Number of ticks away from entry a the stop or trailing stop is set (for NG 1 tick = $0.001)
Limit Out - Number of ticks away from entry a limit order is placed to take profits
Limit Time of day check box - check to use the time of day to limit what time of day order entry will occur.
Start/Stop Trades (Est Time) - First box is when the strategy will be allowed to start buying and stop is when the strategy will stop being allowed to buy. Sell orders continue until a stop or limit triggers an exit. These times are Eastern time zone
PROPERTIES:
Pyramiding - This feature will allow multiple entries to occur. If set to 1, the strategy should only trade 1 contract at a time. If set to 2, the strategy will enter a second order if entry requirements are met. This allows you to be holding 2 contracts. Basically on a good day, it will multiply your earnings, on a bad day, you'll just lose more. For testing, I keep this on 1.
TIPS:
- If you want to go long only, set "When Price Climbs" to an impossible number, like 10,000. It's not possible for NG to move $10 is a matter of minutes so it will not enter the market with a short order. Also keep in mind you can set different requirements for going long vs going short. If you think there is more pull on the market in a particular direction.
Rate of Change w/ Moving AverageThis is a small spin on the Rate of Change (ROC) indicator where I overlay a simple moving average of the indicator over the prior days.
ROC Divergence — SharkCIAThis script helps to identify ROC pivot points and aims to show you when the trend has changed direction.
[RESEARCH] Rate of ChangeHello traders and developers!
I was wondering how built-in "roc" function in Pine is defined and calculated so I made a little research.
I examined 4 samples:
1) "roc" function itself
2) "roc" according to its description
3) price change ratio
4) price percent change ratio
The results of the first and fourth samples are identical.
So, TV built-in roc(source, length) = 100 * change(source, length) / source .
And it's description is incorrect.
If you didnt know it - now you know it.
Good luck!
TRIXThis indicator was originally developed by Jack K. Hutson (Stocks & Commodities (July 1983): "Good TRIX").
Percent Change Smoothed (PCT + EMA)ROC works great on data with only positive numbers (like prices).
But it fails to correctly represent the rate of change when source series have negative values.
ROC is positive when:
Source is positive AND Source is rising
OR Source is negative AND Source is falling
Percent change (PCT) is just a ROC that deals with this sign confusion.
Anyone with Data Science backgroud would likely know about it.
PCT is positive only when:
Source is rising
When applying to only positive data PCT = ROC they are exactly equal.
I've also added EMA smoothing option.
Enjoy!
modificated rate of changeBased on ROC this indicator has been smoothed with filter and the zero line changed by a longer period of inverted ROC filtred as well . Buy/sell at the cross.
Closing Leverage and Rate of ChangeShows BTCUSDLONGS vs BTCUSDSHORTS along with their rate of change on a scale that's friendly for a combined indicator. ROC is increased proportionally so you can see it in relationship to Open Shorts and Open Longs on the same graph without zooming. I had been using an offset as well, but using an offset to adjust position causes the highs to look lower and it makes the lows look less low. It was significant enough to seem like a bad idea to include.
Cross Exchange ChangeThe indicator itself looks at different Exchanges and compares the change in price of them. If one spikes up, we go long with it as we assume our Exchange will follow. Vice versa for short.
Inverse Fisher WMA Smoothed Price ROC and RSI by drnkkInverse Fisher WMA Smoothed Price ROC and RSI by drnkk