Adaptable MACD

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

Adaptable MACD

Postby Apprentice » Fri Jan 28, 2011 1:27 pm

MACD.png


This indicator allows you to change type of moving averages used to calculate the MACD indicator.

Furthermore I added some options that were requested by the user.

If you do not touch anything, it behaves as a classic MACD indicator.

To work install 20 in 1 Moving Average Indicator a.k.a. Averages
viewtopic.php?f=17&t=2430

Adaptable MACD.lua
(11.8 KiB) Downloaded 1756 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Adaptable MACD

Postby prtrader » Fri Oct 21, 2011 11:37 am

This indicator suits what I am looking for. I was looking for an oscillator to draw a histogram based on the difference between two MAs using the Averages.lua file. The only thing that I would like to see is the ability to add another color to the histogram. For example if the value is above 0, but less than the previous bar to have a different color, the same if the opposite happens for bars below 0. So to have 4 colors. What would I need to add to the code to get this? Im new to this language, I am more familiar with C++.
prtrader
 
Posts: 1
Joined: Fri Oct 21, 2011 11:11 am

Re: Adaptable MACD

Postby Apprentice » Sat Oct 22, 2011 4:26 pm

Your request is added to the developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Adaptable MACD

Postby Alexander.Gettinger » Tue Jun 19, 2012 5:38 pm

MQL4 version of Adaptable MACD: viewtopic.php?f=38&t=20397
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Adaptable MACD

Postby Apprentice » Wed Feb 21, 2018 10:56 am

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

Re: Adaptable MACD

Postby tutumlgb » Mon Jun 01, 2020 7:32 pm

i want to make the fast line color of macd canbe changed , up color red and down color green
tutumlgb
 
Posts: 71
Joined: Sun May 31, 2020 7:25 am

Re: Adaptable MACD

Postby Apprentice » Tue Jun 02, 2020 5:46 am

Adaptable MACD.lua
(13.5 KiB) Downloaded 321 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Adaptable MACD

Postby tutumlgb » Tue Jun 02, 2020 8:29 am

Apprentice wrote:
Adaptable MACD.lua

Try this version.

its so great

but how to change the width of the fast line and signal line??
tutumlgb
 
Posts: 71
Joined: Sun May 31, 2020 7:25 am


Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 7 guests