Macd
  #1 (permalink)  
Old 06-10-2007, 12:49 PM
Freshman
 
Join Date: Jun 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
marwan305 is on a distinguished road
Default Macd

my macd has only one signal line and main bar line only. i don't have the other line. so its hard for me to find the divergence. can someone help? im using metatrader 4. thanks a lot.
Reply With Quote
  #2 (permalink)  
Old 06-10-2007, 01:33 PM
bossxero's Avatar
Forex Leader
 
Join Date: Nov 2006
Posts: 453
Thanks: 110
Thanked 87 Times in 53 Posts
bossxero will become famous soon enoughbossxero will become famous soon enough
Send a message via ICQ to bossxero Send a message via MSN to bossxero Send a message via Yahoo to bossxero Send a message via Skype™ to bossxero
Arrow

Use this indicator for detecting divergences.

Copy to your experts->indicators folder

Hope that helps.
Attached Files
File Type: mq4 FX5_Divergence_v1.1.mq4 (12.6 KB, 200 views)
Shark EA Ultimate
Actual Profits on Live Account: +1064%
Since Jan 2007. View Live Statements.
__________________
F r e e___F o r e x___E b o o k s___a n d___S t u f f s

-> Cheap MQL Coding service for your EA/indicator is Here <- <-

Reply With Quote
The following users have thanked bossxero for useful post above:
  #3 (permalink)  
Old 06-10-2007, 04:06 PM
Freshman
 
Join Date: Jun 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
marwan305 is on a distinguished road
Default

Thanks bossxero.. It does help. Happy trading. : )
Reply With Quote
Macd Indicator Required
  #4 (permalink)  
Old 09-20-2007, 09:14 PM
Freshman
 
Join Date: Aug 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
newtrader1 is on a distinguished road
Default Macd Indicator Required

I need a MACD that display two colors.

The standard MACD indicator that comes with Meta trader 4 only show one color.

My idea!

IF MACD histogram bars below 0 line then histogram bar color = red
IF MACD histogram bars above 0 line then histogram bar color = green


BEST WISHES,
NEWTRADER
Reply With Quote
Divergence
  #5 (permalink)  
Old 09-21-2007, 05:11 AM
Sophomore
 
Join Date: Jun 2006
Posts: 38
Thanks: 3
Thanked 43 Times in 17 Posts
banzai is on a distinguished road
Default Divergence

Here's the new divergence version
Attached Files
File Type: mq4 FX5_Divergence_V2.1.mq4 (11.3 KB, 206 views)
__________________
My Forex blog
Reply With Quote
  #6 (permalink)  
Old 09-21-2007, 05:25 AM
Sophomore
 
Join Date: Jun 2006
Posts: 38
Thanks: 3
Thanked 43 Times in 17 Posts
banzai is on a distinguished road
Default

Quote:
Originally Posted by newtrader1 View Post
I need a MACD that display two colors.

The standard MACD indicator that comes with Meta trader 4 only show one color.

My idea!

IF MACD histogram bars below 0 line then histogram bar color = red
IF MACD histogram bars above 0 line then histogram bar color = green


BEST WISHES,
NEWTRADER
How about 4 colors.
Attached Files
File Type: mq4 MACD_4CZ.mq4 (3.8 KB, 211 views)
__________________
My Forex blog
Reply With Quote
The following users have thanked banzai for useful post above:
  #7 (permalink)  
Old 09-21-2007, 10:49 AM
Freshman
 
Join Date: Aug 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
newtrader1 is on a distinguished road
Default

Hi

I found the 2 color macd.
I want to use the width value 5 for histogram.

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

Code:
---------------------------------------------------------- /* ************************************************** ******************* MACD Color ************************************************** ******************* */ #property indicator_separate_window #property indicator_buffers 6 #property indicator_color1 Red // Red #property indicator_color2 Lime // LineGreen #property indicator_color3 Red #property indicator_color4 Lime // LimeGreen #property indicator_color5 Silver #property indicator_color6 Yellow // Yellow 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; } --------------------------------------------------

Last edited by bossxero : 09-21-2007 at 12:36 PM. Reason: coded
Reply With Quote
we still under study
  #8 (permalink)  
Old 02-23-2008, 08:48 AM
Freshman
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
wakleh is on a distinguished road
Default we still under study

Reply With Quote
  #9 (permalink)  
Old 03-09-2008, 06:35 AM
Freshman
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
matinnnn is on a distinguished road
Default

Quote:
Originally Posted by banzai View Post
How about 4 colors.

thanks for sharing , but it doesn't have signal line . only histogram has.
Reply With Quote
  #10 (permalink)  
Old 03-09-2008, 07:00 PM
Freshman
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
matinnnn is on a distinguished road
Default

ok , nobady answers,

but i found which i wanted , and i share you
Attached Files
File Type: mq4 MACD_OsMA_4ColorLH.mq4 (4.8 KB, 102 views)
File Type: mq4 MACD 2 Colour HISTOGRAM.mq4 (3.5 KB, 128 views)
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving average and macd MuppetMan Indicators 17 10-09-2008 11:24 PM
EMA Wave / CCI / MACD Hist combined indicator jluyt Indicators 0 03-10-2007 05:27 AM
JMA MACD and JMA CCI Indicators for MetaTrader scorpion Indicators 21 11-10-2006 04:04 AM
MACD Sample EA Jovager Trading Systems 0 11-02-2006 01:42 PM
ZeroCode: Create a simple MACD Cross expert scorpion Tutorials, Tips & Tricks 2 06-08-2005 03:23 PM


All times are GMT. The time now is 11:28 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast