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
  #1 (permalink)  
Old 03-07-2007, 04:19 AM
droesparky's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 429
droesparky is on a distinguished road
MACD color indicator

I have this thing where it will be in the colors I want, but what do I need to change to make it draw thick lines in the histogram.

MACD Color
Copyright © 2006 Akuma99
http://www.beginnertrader.com/

For help on this indicator, tutorials and information
visit http://www.beginnertrader.com/

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

*/

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

#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 Green
#property indicator_color2 Red
#property indicator_color3 Red
#property indicator_color4 Green
#property indicator_color5 Blue
#property indicator_color6 Red

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,1,indic ator_color1);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,1,indic ator_color2);
SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,1,indic ator_color3);
SetIndexStyle(3,DRAW_HISTOGRAM,STYLE_SOLID,1,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
  #2 (permalink)  
Old 03-07-2007, 04:31 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
#property indicator_width1 5
#property indicator_width2 5
#property indicator_width3 5

etc
Attached Files
File Type: mq4 test.mq4 (2.8 KB, 131 views)

Last edited by increase; 03-07-2007 at 04:37 AM.
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
  #3 (permalink)  
Old 03-07-2007, 06:06 AM
droesparky's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 429
droesparky is on a distinguished road
Thanks increase, it work just like you knew it would.
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
  #4 (permalink)  
Old 03-09-2007, 04:06 PM
droesparky's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 429
droesparky is on a distinguished road
OK is there a MACD that is like the iMACD but has the colors like the MACD color.

I want the colors with the normal histo, is there such a thing, I have about 10 different ones now and none like that.
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
  #5 (permalink)  
Old 03-09-2007, 04:52 PM
Member
 
Join Date: Aug 2006
Posts: 44
traderjai_inhi is on a distinguished road
Quote:
Originally Posted by droesparky
#property indicator_color1 Green
#property indicator_color2 Red
#property indicator_color3 Red
#property indicator_color4 Green
#property indicator_color5 Blue
#property indicator_color6 Red
I think you would change these colors to the ones that you want. You should also be able to click on "colors" when you attach it to the chart to change it, but it is a pain cuz you have to change it everytime you add it. Also make sure that the first letter is CAPITAL and you can find the name of all the colors by scrolling over them in the colors section when applying it to a chart. I am not that great with mql yet and usually like to change up the colors also, I think this is what you are asking to do. Hope it helps, if not please disregard.
__________________
J

"Success is a journey, not a destination."
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
  #6 (permalink)  
Old 03-10-2007, 03:10 AM
droesparky's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 429
droesparky is on a distinguished road
I got the color part down Im looking for one that has a normal histogram with the varable colors, MACD color histo follows one of the lines instead of the normal histogram.
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
  #7 (permalink)  
Old 02-22-2009, 02:44 AM
Junior Member
 
Join Date: Feb 2006
Posts: 3
its2die4 is on a distinguished road
Hi please tell me that you finally found this! I'm looking for this as well now.

Quote:
Originally Posted by droesparky View Post
I got the color part down Im looking for one that has a normal histogram with the varable colors, MACD color histo follows one of the lines instead of the normal histogram.
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
  #8 (permalink)  
Old 02-22-2009, 03:05 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
btw. it been 2 years ...
macds all shapes and sizes: 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 COLOR, color macd, 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
How to set custom color in the indicator code? fxbs MetaTrader 7 01-30-2007 10:49 PM
Help: Indicator color change asam Indicators - Metatrader 4 2 10-24-2006 02:23 AM
2 LSMA-color indicator... ttt123 Metatrader 4 2 09-18-2006 09:33 AM


All times are GMT. The time now is 04:47 PM.



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