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
Информация о релизе: backtest ability added

non-repaint version made optional (default repaint version)
Информация о релизе: exit price calculation error fixed when stop loss condition meets

many many thanks for your highly valuable comments @sotiri 🙏
Информация о релизе: removed "Enable Non-repaint Version" option and made Alerts and BackTest Non-Repaint
Удалить из избранных скриптов Добавить в избранные индикаторы

Связанные идеи

Комментарии

500монет
Ответить
dgtrd PineCoders
Thank You @PineCoders 🙏🏼
Ответить
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
+3 Ответить
Its a Nice indicator Depecting the Candle Momentum and useful To take Call at specific candle in the Existing Strategy. It Minimises the Error of Entry..Thanks
Ответить
Домой Скринер акций Скринер форекс Скринер криптовалют Экономический календарь О проекте Особенности Цены Приведи друга Правила поведения Справочный центр Решения для сайтов и брокеров Виджеты Графики TradingView для сайтов Легкая версия графиков Блог и новости Твиттер
Профиль Настройка профиля Счёт и оплата Ваши друзья Монеты Мои запросы в поддержку Справочный центр Опубликовано идей Подписчики Подписки Личные сообщения Чат Выйти