Page 1 of 2

Acceleration/Deceleration (AC) [updated]

PostPosted: Tue Oct 20, 2009 2:38 pm
by admin
DESCRIPTION:

AC bar chart is the difference between the value of 5/34 of the driving force bar chart and 5-period simple moving average, taken from that bar chart.

The height of an AC bar is the difference between 5-periods simple moving average and 34-periods simple moving average applied on a median price corresponding price bar. An AC bar is green in case it is above the previous bar and is red in case it is below the previous bar.

CALCULATION:

AC = SMA((HIGH + LOW) / 2; 5) - SMA((HIGH + LOW) / 2; 34)

SCREENSHOT:
AC.png


The indicator was revised and updated

DOWNLOAD:
AC.lua
(2.84 KiB) Downloaded 1910 times


Apr, 13 2010, ng:
In the new version of the indicator:
1) By default the covering line is not shown. An additional parameter is added to show the covering line (It may be useful for applying indicator on the AO results or for using the indicators
in another indicator).

2) In case the bar has the same size as the previous bar, the bar will have the same color (in the previous version the equal bar was always green).

Please, do not forget to update Awesome oscillator too.

Tags: Acceleration, Deceleration, indicator, Marketscope, Trading Station, FXCM, dbFX

MT4/Mq4 version.
viewtopic.php?f=38&t=64949&p=113730#p113730

Re: Acceleration/Deceleration (AC)

PostPosted: Sun Dec 06, 2009 5:08 pm
by Paul Loatman
I'm having problems getting this installed. I'm doing every step in the download and installation process, but after i restart the trading station and try to add it to a chart it says "[string "AC.lua"]:37: The indicator with the requested ID is not found".

Not quite sure what else to do than to ask.

-Paul

Re: Acceleration/Deceleration (AC)

PostPosted: Mon Dec 07, 2009 11:14 am
by TonyMod
Paul Loatman wrote:I'm having problems getting this installed. I'm doing every step in the download and installation process, but after i restart the trading station and try to add it to a chart it says "[string "AC.lua"]:37: The indicator with the requested ID is not found".

Not quite sure what else to do than to ask.

-Paul


Paul,

I'm not an indicator developer, but looking at the "Line 37" in LUA code, i can see its trying to reference a indicator called "Awesome Oscillator (AO)".

I bet that if you install "Awesome Oscillator" problem will be fixed. That AO indicator is posted in "Custom Indicators":
http://www.fxcodebase.com/code/viewtopic.php?f=17&t=19

Let me know how it works out.

Cheers,

TonyMod

Re: Acceleration/Deceleration (AC)

PostPosted: Mon Dec 07, 2009 1:24 pm
by Paul Loatman
TonyMod wrote:
Paul Loatman wrote:I'm having problems getting this installed. I'm doing every step in the download and installation process, but after i restart the trading station and try to add it to a chart it says "[string "AC.lua"]:37: The indicator with the requested ID is not found".

Not quite sure what else to do than to ask.

-Paul


Paul,

I'm not an indicator developer, but looking at the "Line 37" in LUA code, i can see its trying to reference a indicator called "Awesome Oscillator (AO)".

I bet that if you install "Awesome Oscillator" problem will be fixed. That AO indicator is posted in "Custom Indicators":
http://www.fxcodebase.com/code/viewtopic.php?f=17&t=19

Let me know how it works out.

Cheers,

TonyMod


Yes, that worked!

Not quite sure why i would need the AO indicator for it to work, but it did.

Thanks,

-Paul

Re: Acceleration/Deceleration (AC) [updated]

PostPosted: Tue Apr 13, 2010 4:51 pm
by Nikolay.Gekht
Updated

Re: Acceleration/Deceleration (AC) [updated]

PostPosted: Mon Apr 26, 2010 7:30 am
by business-investment
AO is a 34-period simple moving average s
That is,

AO = SMA (MEDIAN PRICE, 5 periods) - SMA (MEDIAN PRICE, 34 periods)

Where:

SMA - Simple Moving Average
MEDIAN PRICE = (HIGH+LOW)/2 (plotted through the central points of the bars)

Re: Acceleration/Deceleration (AC) [updated]

PostPosted: Thu Oct 10, 2013 8:36 am
by Panther
Would it possible to adjust the height? I would like to overlay it with a Stochastic.
I can do this on the Mt4 platform. On TS the scale it so small, it virtually disappears.
An Option that you could make it as high or low as you want.
Thanks.

Re: Acceleration/Deceleration (AC) [updated]

PostPosted: Fri Oct 11, 2013 2:12 am
by Apprentice
This is possible, what is your preferred platform?

Re: Acceleration/Deceleration (AC) [updated]

PostPosted: Fri Oct 11, 2013 5:43 am
by Panther
Trading Station is preferred.
What about a histo multiplier, like you did on the MACD - With Histogram Coloring?

Re: Acceleration/Deceleration (AC) [updated]

PostPosted: Sat Oct 12, 2013 4:45 am
by Apprentice
We have minor problem here.
AC have both positive and negative values​​.
On the other hand, Stochastic only have positive.
Some kind of normalization shift is needed.
Can you sketch out your idea of ​​the final product.