# Momentum Acceleration by DGT

11274 views
Italian 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.

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

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
1-momentum acceleration concept applied to On Balance Volume to add insight for volume changes

enhanced to a non-repaint version

non-repaint version made optional (default repaint version)

## Kommentare

There were some requests for strategy version and here is the code of non-repaint strategy version of SpeedyGonzales. And as always, 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

ps: square brackets can not be pasted in comment section and expressed here as pipe “|”, so please replace | with square brackets

strategy("Momentum Acceleration Startegy by DGT", shorttitle="SpeedyGonzales Startegy by DGT", overlay=true)
t=input(13, title="Length")
s = if barstate.isconfirmed
close
else
close|1|

v=sma((s-s|t|)/t,3)
a=(v-v|t|)/t

longCondition = crossover(v, a)
if (longCondition)
strategy.entry("L", strategy.long)

shortCondition = crossunder(v, a)
if (shortCondition)
strategy.entry("S", strategy.short)
Antworten
dgtrd
@dgtrd, Sir, this is the error i am facing. Pls help

---extraneous input 'close' expecting 'end of line without line continuation'
Antworten
hello @Novice_trader26, unfortunetly the format is not kept within the comment section. you need to repace pipes but also have to manage tabs

replace | with square brackets
and xxx with tab

strategy("Momentum Acceleration Startegy by DGT", shorttitle="SpeedyGonzales Startegy by DGT", overlay=true)
t=input(13, title="Length")
s = barstate.isconfirmed ? close : close|1| // replace | with square brackets

v=sma((s-s|t|)/t,3) // replace | with square brackets
a=(v-v|t|)/t // replace | with square brackets

longCondition = crossover(v, a)
if (longCondition)
xxx strategy.entry("L", strategy.long) // replace xxx with tab

shortCondition = crossunder(v, a)
if (shortCondition)
xxx strategy.entry("S", strategy.short) // replace xxx with tab

cheers

ps: please be aware this the sipmplest form of the strategy version
Antworten
dgtrd
@dgtrd, Thank you
Antworten
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
Antworten
PineCoders
@PineCoders, woow!, I am so honored thank you so much
Antworten
Thanks for this. It's an interesting idea, but unfortunately I can't get it to show me the histogram with volume and OBV. It just doesn't show up. Here's a screenshot.
Antworten
johstewa
hello @johstewa, thanks a lot for your comment and your interest to the study.

Volume and On Balance Volume (OBV) Momentum are only available on daily timeframe, why?
- when volume and obv momentum are turned on, they cause a lot of squeeze in the main chart since they are in the same pane, hence the reason of plotting the volume and obv momentum only on daily timeframe where the squeeze is relatively smaller comparing to lower timeframes.

Knowing this limitation, a different study around the same concept of Volume, OBV Momentum and much more such as Relative Volume, Volume Averages, Correlation of Price and Volume, CMF, etc. are put together and published. The study is named as “Neglected Volume by DGT” and it is honored by being featured in the TradingView Editors' Picks 😉.

Let me invite you to check in the following link.

Please find below examples of both Momentum Acceleration and Neglected Volume applied on NETFLIX
- Daily timeframe : Momentum Acceleration with “On Balance Volume Momentum Acceleration” enabled plus Neglected Volume indicator applied on different pane

- and here is the same examples on lower timeframes

Antworten
dgtrd
@dgtrd, Thanks for taking the time to reply. I actually found that other study of yours -- "Neglected Volume" -- after I left that comment. I tried using them together as you suggested on the daily timeframe but I can't get it to display OBV over top of the regular volume bars like in your screenshot. I've checked all the boxes on in the "Momentum Acceleration by DGT" settings. This is what it gives me:
Antworten