Momentum Acceleration by DGTItalian physicist Galileo Galilei is usually credited with being the first to measure speed by considering the distance covered and the time it takes. Galileo defined speed as the distance covered during a period of time. In equation form, that is v = Δd / Δt where v is speed, Δd is change in distance, and Δt is change in time. The Greek symbol for delta, a triangle (Δ), means change.
Is the speed getting faster or slower?
Acceleration will be the answer, acceleration is defined as the rate of change of speed over a set period of time, meaning something is getting faster or slower. Mathematically expressed, acceleration denoted as a is a = Δv / Δt , where Δv is the change in speed and Δt is the change in time.
How to apply in trading
Lets think about Momentum, Rate of Return, Rate of Change all are calculated in almost same approach with Speed
Momentum measures change in price over a specified time period,
Rate of Change measures percent change in price over a specified time period,
Rate of Return measures the net gain or loss over a specified time period,
And Speed measures change in distance over a specified time period
So we may state that measuring the change in distance is also measuring the change in price over a specified time period which is length, hence
speed can be calculated as (source – source )/length and acceleration becomes (speed – speed )/length
In this study acceleration is used as signal line and result plotted as arrows demonstrating bull or bear direction where direction changes can be considered as trading setups
Just a little fun, since we deal with speed the short name of the study is named after famous cartoon character Speedy Gonzales
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
Disclaimer: The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Change
TKP RSI BAR COLORThis script was influenced by Scilentor's- "RSI Bar Colors / Scilentor". I improved upon the Idea by adding the ability to change the full range of RSI (Between 0 through 100) to any color you want within 5 point increments.
Traditional use of RSI is to use it as an "Overbought" and "Oversold" indicator. A more uncommon/unknown use, especially among new traders, is to use is as a "Momentum" indicator. I personally like to look for stocks where RSI>50
Default settings are set to color all bars red when below 50, and white when above 50, but try for your self setting different colors above 70, and below 30 to better see overbought and oversold conditions. I got a lot of requests for this script and I hope it helps you in your trading journey :-)
Nth Order Differencing Oscillator Perform higher order differencing through convolution, the result is equivalent to cascading N momentum oscillators of periods P :
mom(mom(mom(mom(x,P)...,P)
Settings
length - Period of the oscillator, indicate the lag to use (equivalent to the period in a momentum oscillator)
order - Differencing order, indicate how many times differencing is performed (number of times a momentum oscillator is cascaded)
src - Input of the indicator
Usage
Differencing consists in subtracting an input to a previous input, this is what the momentum oscillator performs. This is often done in order to remove longer-term variations in the price. Differencing also induces a 90-degree phase shift for all sinusoids in a signal, this is why oscillators can have this leading effect, as such higher differencing can sometimes help have a faster and more visible lead.
In red the indicator with period 50 and differencing order 2, below a momentum oscillator of the same period.
It is important to note that differencing is an operation that increases noise, in fact, you might have seen some oscillators use the median price hl2 instead of the closing price, this is because the median price contains less noise than the closing price, as such more differencing require a smoother input.
Here both the sma and the oscillator period are equal to 20 with a differencing order of 5.
In time series analysis the order of differencing is chosen depending on the order of integration, more simply put we should choose a differencing order that responds to the question: "How many time should I differentiate my time series so that the result is stationary?", for stocks prices this differencing order should be 1.
Technically speaking differencing orders higher than 3 might be overkill, as higher orders return noisier outputs that might no longer be representative of the original input.
here a period of 14 with differencing order of 20 is used, we can see more periodic results but they are not really representative of the closing prices.
Details
Simple differencing is actually achieved thought convolution, if we take a first-order difference x - x(1) , we can see that this is equivalent to 1*x + -1*x(1) , the coefficients are 1 and -1, for the momentum oscillator the difference is that the coefficients include 0 values. So we only need a function generating the coefficients of our Nth order difference oscillator, in order to get them lets analyze the impulse response of a cascaded change function.
Here 5 change function are cascaded, the coefficients are: (1,-5,10,-10,5,-1)
If you look at these coefficients and the ones of higher/lower order differences we can deduce various things
The impulse response is symmetric
The first coefficient is always 1 and the last always -1
The number of coefficients increase with higher differencing orders
The sign of the current coefficient is different from the sign of the previous one
From the shape of the impulse response, we can deduce that the coefficients of an Nth order differencing operator is a windowed series of 1,-1,1...,-1 , and that's actually the case, for an Nth order differencing operator the values of this window are given by the Nth row of the Pascal triangle.
There are various ways to get the values in the row of the Pascal triangle, one involving using the combination formula, however, we can do it way faster by using the recursive formula used in line number 13. Now that we have our coefficients we only need to separate them with 0 values and that's all.
Conclusion
We can see that oscillators are noisier than the original input signal, this is can be a desired effect in order to make lagging indicators more reactive, but it can also be overlooked due to the results appearing leading the price or just looking more predictable, however, we should note that higher-order differencing does not provide a consistent nor reliable solution toward minimizing lag, nor does classical oscillators.
The indicator is not useful, but if for some reason you require a lot of differencing operations to be done and don't want to use consecutive change or mom functions, then this script might results useful to you.
COVID-19: Daily changeNew daily infections (daily change) of COVID-19.
The chart shows new daily cases across the entire planet, the US, EU (de+fr+it+es only) and a small country (RO) that does not matter to anybody but me. You can show/hide different country in Settings.
Select "COVID-19: CONFIRMED" data in main chart and add the indicator.
Percentage Change FunctionThis is little code snippet can be copied and pasted into your own strategies and indicators to easily calculate some interesting percentage change levels within a given lookback period.
The function will return:
The price change from the start to the end of the period
The price change from the start of the period to the highest point within the period
The price change from the start of the period to the lowest point within the period
It was originally intended to be used in conjunction with other scripts to assist with decision making. However, it doesn't look too bad as an indicator and so plots have been added.
For more information regarding the code, some commentary and free tutorials, you can visit the Bactest-Rookies (.com) website.
Any Security vs. Any Security Change Comparison [BigBitsIO]This script allows you to compare the percentage-based change in the price of any two securities on any given (and supported) timeframe on the chart. This can give you a very simple way to compare any two securities against one another.
Ex: If your base security gained 5%, and the other security gained 3% in a single day, the change comparison would show a green bar of 2% because your base security outgained your other security by 2%.
Features:
- 2 securities to compare. A base and other.
- Shortlist of default securities to choose from.
- Ability to override the default securities list and use any security supported by TradingView. You must use the correct security string to do so.
- Resolution is tied to whatever the current chart is using. This way the view of the indicator always reflects the correct resolution of the chart.
- If either market has a 0% change, it is considered likely closed during that period and will result in a change of 0%, as they shouldn't be compared at that time.
Alts vs Btc percentage changesCatch differences and over-corrections between Alts and Bitcoin via Ftx's indexes
A more visual description : i.imgur.com
Rate of change[UO]Shows the rate of change of prices. The rate of change is the percent "change" of the related bar.
When tje rate of change is too different, there is a trade opportunity.
Seeing the rate of change you can guess if you can judge if you are making a good trade
Yes the information is already on the bar chart but without knowing you might easily miss the importance of that %10 change over there.
Close-to-Close % Change DistributionThis is a graphical representation of things you see everyday in your watchlists - % Changes. This tool uses the entire history of an instrument. Different instruments have different distributions.
Oil
Gold
Bitcoin
Moving Average Color Direction Detection Moving Average Color Direction Detection, possibility to configure:
- Type: SMA, EMA, WMA, VWMA, SMMA, DEMA, TEMA, HULLMA, ZEMA, TMA, SSMA
- Lenght
- Source
- Colour direction
GMS: Percent Change With LengthBasic Percentage Change Over Time. Works on any timeframe.
- Global Market Signals
SMA_TKP_TREND SYSTEMI took the "EMA_TKP_TREND SYSTEM" and converted it to plot a simple moving average for the "slow moving average".
EMA_TKP_TREND_ SYSTEMThis script was cannibalized by another member on here (Kudos given in Script). I trimmed down the script and created this to give a visual representation of the changing slope on exponential moving averages.
Month-to-Month % ReturnAn utility tool to see month-to-month performance of the asset and to eliminate the need in drawings. It works everywhere but better in use on the daily timeframe.
LINEdicator - Trendanalysis toolThis indicator creates an trend channel based on an EMA/SMA combo and a Parabolc SAR indicator.
Watch for the peaks and the size of the red/green channel for possible trend change.
Can also be used as an Entry/Exit/Stop-Loss setting tool.
VelocityI was wondering how Jurik's Velocity works and after some time I created a little bit different Velocity.
What is this?
Everybody heard about the momentum indicator. The classic momentum shows the difference between the current price and the price N periods ago. How far in the past the comparison is made is up to the trader.
When the indicator reaches extremely high (low) values and then turns in the opposite direction it can be considered a sell (buy) signal. Sometimes it is better than waiting for the 0-line crossovers. Another way is to use the indicator to find out divergences with the price.
What's wrong with it?
The classical momentum indicator produces many misleading values and false signals due to its jagged nature. To remove noise and smooth out its line users apply the different moving averages. No matter how cool is your average - you always add a lag. And the lag will seriously decrease the performance of the momentum indicator.
All of this can be avoided using a special smoothing technique.
Settings
Period (default: 30 )
Price Source (default: hlc3 )
Peaks Highlighting (default: false )
Velocity with peaks highlighting
NOTE : This is not Bullish/Bearish Phases . Phases is a pure volume-based indicator and doesn't use the price to measure the dominance.
I attached some screenshots to show you how it works with other instruments so, you can compare it with Jurik' Velocity.
Good luck!
[RESEARCH] MomentumHello traders and developers!
I compared different techniques to get momentum of the series.
The 4 samples are:
1) Raw difference between price and price some bars ago
2) Built-in "change" function
3) Built-in "mom" function
4) Jedi's momentum - difference between current and previous SMA multiplied by it's period
All results are identical.
So, we have two built-in functions that do the same thing: "change" and "mom". For brevity it is better to use "mom" when you need to get momentum of the series.
Good luck!
interval change/ period change/ standard deviation ($)Calculates the following in nominal terms, not in percentages.
Phase Change IndexPhase Change Index script.
This indicator was developed and described by M. H. Pee (Stocks & Commodities V.22:5 (28-37): Phase Change Index).
Other indicators of M. H. Pee:
Price Change HistoryDisplay a histogram of price changes over a given interval. Show change as a percentage or in dollar amount. Highlight changes that exceed a particular value.
Percent change bar chart Strategy This histogram displays price or % change from previous bar.
WARNING:
- This script to change bars colors.
Ticker Change AlertScript can be used to create an alert when the specified change percentage occurs for a given period, on a given exchange/pair.
Originally intended to be used to spot 4% change in BTC
Smoothed Rate of ChangeSmoothed Rate of Change indicator script.
This indicator was originally developed by Fred G. Schutzman.