Acceleration/Deceleration (AC) [updated]

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Acceleration/Deceleration (AC) [updated]

Postby admin » Tue Oct 20, 2009 2:38 pm

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
admin
FXCodeBase: Site Admin
 
Posts: 20
Joined: Tue Oct 20, 2009 10:02 am
Location: Paramus, NJ

Re: Acceleration/Deceleration (AC)

Postby Paul Loatman » Sun Dec 06, 2009 5:08 pm

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 Loatman
 
Posts: 2
Joined: Sun Dec 06, 2009 4:55 pm

Re: Acceleration/Deceleration (AC)

Postby TonyMod » Mon Dec 07, 2009 11:14 am

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
Best Regards,

"TonyMod"
(FXCodeBase.com Forum Moderator)
TonyMod
FXCodeBase: Site Admin
 
Posts: 70
Joined: Wed Oct 21, 2009 1:57 pm
Location: New Jersey

Re: Acceleration/Deceleration (AC)

Postby Paul Loatman » Mon Dec 07, 2009 1:24 pm

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
Paul Loatman
 
Posts: 2
Joined: Sun Dec 06, 2009 4:55 pm

Re: Acceleration/Deceleration (AC) [updated]

Postby Nikolay.Gekht » Tue Apr 13, 2010 4:51 pm

Updated
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Acceleration/Deceleration (AC) [updated]

Postby business-investment » Mon Apr 26, 2010 7:30 am

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)
business-investment
 
Posts: 2
Joined: Mon Apr 26, 2010 6:23 am
Location: USA

Re: Acceleration/Deceleration (AC) [updated]

Postby Panther » Thu Oct 10, 2013 8:36 am

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.
Panther
 
Posts: 71
Joined: Mon Nov 21, 2011 7:31 am

Re: Acceleration/Deceleration (AC) [updated]

Postby Apprentice » Fri Oct 11, 2013 2:12 am

This is possible, what is your preferred platform?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Acceleration/Deceleration (AC) [updated]

Postby Panther » Fri Oct 11, 2013 5:43 am

Trading Station is preferred.
What about a histo multiplier, like you did on the MACD - With Histogram Coloring?
Panther
 
Posts: 71
Joined: Mon Nov 21, 2011 7:31 am

Re: Acceleration/Deceleration (AC) [updated]

Postby Apprentice » Sat Oct 12, 2013 4:45 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 57 guests