dgtrd

Momentum Acceleration by DGT

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.

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
Phát hành các Ghi chú: add ons;
1-momentum acceleration concept applied to On Balance Volume to add insight for volume changes
2-volume histogram added
3-alert condition added

enhanced to a non-repaint version
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích

Bình luận

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)
+4 Phản hồi
@dgtrd, Sir, this is the error i am facing. Pls help

---extraneous input 'close' expecting 'end of line without line continuation'
Phản hồi
dgtrd Novice_trader26
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
+1 Phản hồi
@dgtrd, Thank you
Phản hồi
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!
+3 Phản hồi
dgtrd PineCoders
@PineCoders, woow!, I am so honored thank you so much
+2 Phản hồi
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.
Phản hồi
dgtrd 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

Phản hồi
@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:
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Trả phí Giới thiệu bạn Quy tắc Áp dụng Trung tâm Trợ giúp Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Blog & Tin tức Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Giới thiệu bạn Xu Ticket Hỗ trợ của tôi Trung tâm Trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất