Ahrens Moving Average

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

Re: Ahrens Moving Average

Postby chipsoft » Thu Mar 16, 2017 9:39 am

I want each component ( all 3 lines) to be smoothed with EMA instead of SMA. Hope you get my point.
:)
chipsoft
 
Posts: 53
Joined: Thu Apr 28, 2016 5:41 am

Re: Ahrens Moving Average

Postby Apprentice » Thu Mar 16, 2017 1:04 pm

No smoothing was used.
Formula is
local Median1=(AMA1[period-1]+AMA1[period-Period1])/2;
AMA1[period]= AMA1[period-1]+((source.median[period]-Median1)/Period1);
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Ahrens Moving Average

Postby Gentle » Wed Apr 05, 2017 5:57 am

I added RSI on chart to those 3 Ahrens MAs:
3in1_Ahrens_MA_with_RSI.PNG
Attachments
3in1 Ahrens Moving Average with RSI.lua
(7.84 KiB) Downloaded 503 times
User avatar
Gentle
 
Posts: 13
Joined: Thu Feb 02, 2017 4:22 am

Re: Ahrens Moving Average

Postby Apprentice » Mon Feb 05, 2018 8:32 am

The Indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 135 guests