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
릴리즈 노트: 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
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기

코멘트

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 응답
@dgtrd, Sir, this is the error i am facing. Pls help

---extraneous input 'close' expecting 'end of line without line continuation'
응답
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 응답
@dgtrd, Thank you
응답
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 응답
dgtrd PineCoders
@PineCoders, woow!, I am so honored thank you so much
+2 응답
this code is showing lot of error , unable to load this script.
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃