Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 09-20-2007, 11:59 PM
Member
 
Join Date: Mar 2006
Posts: 30
ejpdl is on a distinguished road
Re MACD_Color

Hi NewTRader
I found this one Maybe this could help
ejpdl
Attached Files
File Type: mq4 MACD_color.mq4 (3.2 KB, 246 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 09-21-2007, 12:49 AM
Junior Member
 
Join Date: Aug 2007
Posts: 25
newtrader1 is on a distinguished road
GREAT WORK

THANKYOU
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 09-21-2007, 12:58 AM
Junior Member
 
Join Date: Aug 2007
Posts: 25
newtrader1 is on a distinguished road
Hi

Good work.
Just a little problem.

I want to use the width value 5 for histogram.

Below is the code. Can some one fix this for me ?
------------------------------------------------------
/*

************************************************** *******************

MACD Color
Copyright © 2006 Akuma99
:: beginnerTrader.com

For help on this indicator, tutorials and information
visit :: beginnerTrader.com

************************************************** *******************

*/

#property copyright "Copyright © 2006, Akuma99."
#property link "http://www.beginnertrader.com/"

#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 Red // Maroon
#property indicator_color2 Lime // Green
#property indicator_color3 Red
#property indicator_color4 Lime // LimeGreen
#property indicator_color5 Silver
#property indicator_color6 Yellow // Black

extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;

double ind_buffer1[];
double ind_buffer2[];
double ind_buffer1b[];
double ind_buffer2b[];
double ind_buffer3[];
double ind_buffer4[];

double b[999999];

int init() {

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2,Red);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2,Lime) ;
SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,2,indic ator_color3);
SetIndexStyle(3,DRAW_HISTOGRAM,STYLE_SOLID,2,indic ator_color4);
SetIndexStyle(4,DRAW_LINE,EMPTY,1,indicator_color5 );
SetIndexStyle(5,DRAW_LINE,EMPTY,1,indicator_color6 );
SetIndexBuffer(0,ind_buffer1);
SetIndexBuffer(1,ind_buffer2);
SetIndexBuffer(2,ind_buffer1b);
SetIndexBuffer(3,ind_buffer2b);
SetIndexBuffer(4,ind_buffer3);
SetIndexBuffer(5,ind_buffer4);

IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+1 );

return(0);

}

int start(){

int limit;
int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;

for(int i=limit; i>=0; i--) {

b[i] = iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);
ind_buffer1[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);

clearBuffers(i);

if (b[i] < 0 ) {
if (b[i] > b[i+1]) {
ind_buffer1[i] = b[i];
ind_buffer1b[i] = 0;
} else if (b[i] < b[i+1]) {
ind_buffer1b[i] = b[i];
ind_buffer1[i] = 0;
}
} else if (b[i] > 0) {
if (b[i] < b[i+1]) {
ind_buffer2[i] = b[i];
ind_buffer2b[i] = 0;
} else if (b[i] > b[i+1]) {
ind_buffer2b[i] = b[i];
ind_buffer2[i] = 0;
}
}

ind_buffer3[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);

}

for(i=0; i<limit; i++) {
ind_buffer4[i]=iMAOnArray(ind_buffer3,Bars,SignalSMA,0,MODE_SMA, i);
}

return(0);

}

void clearBuffers (int i) {

ind_buffer1[i] = NULL;
ind_buffer1b[i] = NULL;
ind_buffer2[i] = NULL;
ind_buffer2b[i] = NULL;

}
--------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 09-21-2007, 06:21 AM
Senior Member
 
Join Date: May 2006
Posts: 254
banzai is on a distinguished road
4-colored MACD

Check out the 4-colored MACD too. Kewl !
4color Macd: up/dn ;over/under Zero
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 09-21-2007, 11:48 AM
Member
 
Join Date: Mar 2006
Posts: 30
ejpdl is on a distinguished road
Re MACD Color

Hi Newtrader
I just changed the 2 in these lines to 5 Is that what you wanted?
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2,Red);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2,Lime) ;
SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,2,indic ator_color3);
SetIndexStyle(3,DRAW_HISTOGRAM,STYLE_SOLID,2,indic ator_color4);
Have fun
ejpdl
Attached Files
File Type: mq4 MACD_color newtrader.mq4 (3.3 KB, 165 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 09-25-2007, 06:06 PM
Junior Member
 
Join Date: Jul 2006
Posts: 9
znny is on a distinguished road
Hi, fellow members

Greetings

I need this MACD indicator, the followings code is copied from VT Trader, can some one help me to code it on Metatrader.

Attach the screen shot & code for kind assit.

The codes are:

{MACD}
Fast:= Mov(Pr,perShort,maTp)-Mov(Pr,perLong,maTp);
Signal:= Mov(Fast,Sig,TpS);

{OsMA colored histogram}
OsMA:= Fast-Signal;
OsMA:= Fast;
OsMAUp:= if(OsMA>=ref(OsMA,-1),OsMA,null);
OsMADown:= if(OsMA<ref(OsMA,-1),OsMA,null);


Thks
Attached Images
File Type: jpg MACD indicator.JPG (29.8 KB, 1021 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #17 (permalink)  
Old 09-27-2007, 09:18 PM
etrade's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 278
etrade is on a distinguished road
Is there a version of MACD with LWMA instead of EMA in the settings ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #18 (permalink)  
Old 10-02-2007, 08:42 PM
Junior Member
 
Join Date: Aug 2007
Posts: 5
yarns90401 is on a distinguished road
Need EXPERT Help with EA's MACD code

I'm calculating MACD and the histogram values as such and putting an arrow on the chart. Periodically I will get a false crossover signal. Can anyone tell me why?

Thanks very much in advance,

E

MacdCurrent=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_M AIN,0);
MacdPrevious=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_ MAIN,1);

SignalCurrent=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE _SIGNAL,0);
SignalPrevious=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MOD E_SIGNAL,1);

MacdHist = MacdCurrent - SignalCurrent;

if(MacdHist > 0 && MacdCurrent > SignalCurrent && MacdPrevious < SignalPrevious)
-- Draw Arrow

if(MacdHist < 0 && MacdCurrent < SignalCurrent && MacdPrevious > SignalPrevious)
-- Draw Arrow
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #19 (permalink)  
Old 10-04-2007, 07:09 PM
Junior Member
 
Join Date: Jan 2007
Posts: 7
zc369147 is on a distinguished road
HELP: Who has this indicator?

Who has this indicator? Thanks a lot!
Attached Images
File Type: jpg 111.jpg (74.0 KB, 931 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #20 (permalink)  
Old 10-07-2007, 05:42 AM
Senior Member
 
Join Date: May 2006
Posts: 254
banzai is on a distinguished road
Quote:
Originally Posted by etrade View Post
Is there a version of MACD with LWMA instead of EMA in the settings ?
I did it and place it over here:
MACD indicator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
macd histogram, macd indicator, macd_colored


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CCI + MACD MQL help needed for trading system european Indicators - Metatrader 4 4 10-15-2009 10:22 PM
MACD color indicator droesparky Indicators - Metatrader 4 7 02-22-2009 03:05 AM
Need Standard MACD Indicator znny Indicators - Metatrader 4 14 10-18-2006 03:51 AM
Seeking MACD Indicator RosDaBoss Indicators - Metatrader 4 4 09-25-2006 01:22 PM


All times are GMT. The time now is 03:49 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.