Forex



Go Back   Forex Trading > Discussion Areas > Setup Questions
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
  #271 (permalink)  
Old 06-25-2009, 01:57 PM
yevell's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Shanghai, China
Posts: 301
yevell is on a distinguished road
Need help on All TF MACD indicators

hi guys, I need your help !
i have two MACD indicators, one is MACD_OsMA_ColorLH.mq4, and the other is All TF MACD, i attach them on this thread !

I like the color of the MACD_OsMA_ColorLH.mq4, so, could somebody help to make the All TF MACD have the same color ?

much appreciate !

best wishes !
Attached Files
File Type: mq4 all tf macd.mq4 (6.1 KB, 27 views)
File Type: mq4 MACD_OsMA_4ColorLH.mq4 (5.1 KB, 36 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
  #272 (permalink)  
Old 06-25-2009, 02:09 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 288
Sadly is on a distinguished road
Open both indicators in MetaEditor and look at each #property indicator_color. It's here that you can alter the colours to match.
Attached Files
File Type: mq4 all tf macd.mq4 (6.1 KB, 34 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
  #273 (permalink)  
Old 06-25-2009, 02:19 PM
yevell's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Shanghai, China
Posts: 301
yevell is on a distinguished road
thank you very much for your quickly reply !
i'm sorry that i did not make the thing clear !
i like the color because the osma could change color when its current value larger or smaller than it's previous value !
so, i hope the All TF MACD can also change color when the value change !
thanks again !

for(i=0; i<limit; i++)

ind_buffer3[i]=iOsMA(NULL,0,FastEMA,SlowEMA,SignalSMA,AppliedPri ce,i)*3;

//---- dispatch values between 2 buffers
bool up=true;
for(i=limit-1; i>=0; i--)
{
current=ind_buffer3[i];
prev=ind_buffer3[i+1];
if (((current<0)&&(prev>0))||(current<0)) up= false;
if (((current>0)&&(prev<0))||(current>0)) up= true;

if(!up)
{
if(current > prev)
{
ind_buffer2s[i]=current;
ind_buffer2[i]=0.0;
ind_buffer1[i]=0.0;
ind_buffer1s[i]=0.0;
}
else
{
ind_buffer2[i]=current;
ind_buffer2s[i]=0.0;
ind_buffer1[i]=0.0;
ind_buffer1s[i]=0.0;
}
}
else
{
if(current < prev)
{
ind_buffer1s[i]=current;
ind_buffer1[i]=0.0;
ind_buffer2[i]=0.0;
ind_buffer2s[i]=0.0;
}
else
{
ind_buffer1[i]=current;
ind_buffer1s[i]=0.0;
ind_buffer2[i]=0.0;
ind_buffer2s[i]=0.0;
}
}


Quote:
Originally Posted by Sadly View Post
Open both indicators in MetaEditor and look at each #property indicator_color. It's here that you can alter the colours to match.
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
  #274 (permalink)  
Old 06-25-2009, 02:46 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,079
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Try this indicator http://www.forex-tsd.com/217332-post2230.html
__________________
My blog on TSD
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
  #275 (permalink)  
Old 06-25-2009, 03:00 PM
yevell's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Shanghai, China
Posts: 301
yevell is on a distinguished road
thank you so much ! though it is a little different with what i need, but I can modify it by myself now !

thanks again !

Quote:
Originally Posted by newdigital View Post
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
  #276 (permalink)  
Old 06-25-2009, 05:33 PM
yevell's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Shanghai, China
Posts: 301
yevell is on a distinguished road
still need help

hi guys, I still need your help !
I made some change on mladen's all macd, and it can change color now
but i meet some problems.
please see the pic below:
the first indicator is macd_osma_4color, and the second is all macd with only H1 TF, and the last is all macd with H1 and H4 TF !
you could see that, the first indicator and the second show the same color and value !
but the third is different ! so, could anybody help me to solve this problem ?
i really do not know what the problem is !

thank you very much !
and I attach the indicator !
Attached Images
File Type: jpg 7.jpg (143.3 KB, 348 views)
Attached Files
File Type: mq4 All MACD v1.0 4 color.mq4 (13.8 KB, 57 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
  #277 (permalink)  
Old 06-25-2009, 06:02 PM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,273
mladen is on a distinguished road
...

If you want same values you should turn the equalize parameter off

equalize parameter is there for cases when you have more time frames and you want to see MACD without something like the 3rd macd on the picture (MACD is an oscillator, but it does not have known minimum and maximum and since it measures differences between two moving averages higher time frames tend to give much higher values that the lower time frames)

_________________________

Also, since you started the coding part (but please, do not misunderstand this, I think you will enjoy much more when you finish the coding you have started ), just one tip without final solution : in the part of the code where you compare values in order to determine colors, the loop goes from left to right (line 300) so you can not compare the current (already "equalized" value) with the previous (non-"equalized" value)
The reason for different colors lays in this part of code. When you finish coding, you will have it as it should be
(this code - you have to change something in it )

PHP Code:
               for(i=0i<barsPerTimeFrame;i++,k++)
               {
                  
ExtMapBuffer5[k] = ExtMapBuffer7[k]*koef;
                  
ExtMapBuffer6[k] = ExtMapBuffer6[k]*koef;
                 
// osma[k]          = OSMA[k]*koef;
                //  current = osma[k];
                //  prev    = osma[k+1];
                 
current ExtMapBuffer5[k]-ExtMapBuffer6[k];
                 
prev    ExtMapBuffer5[k+1]-ExtMapBuffer6[k+1];
                 if (((
current<0)&&(prev>0))||(current<0))   upfalse;    
                 if (((
current>0)&&(prev<0))||(current>0))   uptrue;  
.... 
regards
mladen

Quote:
Originally Posted by yevell View Post
hi guys, I still need your help !
I made some change on mladen's all macd, and it can change color now
but i meet some problems.
please see the pic below:
the first indicator is macd_osma_4color, and the second is all macd with only H1 TF, and the last is all macd with H1 and H4 TF !
you could see that, the first indicator and the second show the same color and value !
but the third is different ! so, could anybody help me to solve this problem ?
i really do not know what the problem is !

thank you very much !
and I attach the indicator !
Attached Images
File Type: gif macd.gif (24.2 KB, 337 views)

Last edited by mladen; 06-25-2009 at 06:20 PM.
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
  #278 (permalink)  
Old 06-25-2009, 11:09 PM
yevell's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Shanghai, China
Posts: 301
yevell is on a distinguished road
thanks for you help, mladen !
i have try my best but i still could not get the right thing !
so, could you kindly post the final solution ?

thanks again !
best wishes !





Quote:
Originally Posted by mladen View Post
If you want same values you should turn the equalize parameter off

equalize parameter is there for cases when you have more time frames and you want to see MACD without something like the 3rd macd on the picture (MACD is an oscillator, but it does not have known minimum and maximum and since it measures differences between two moving averages higher time frames tend to give much higher values that the lower time frames)

_________________________

Also, since you started the coding part (but please, do not misunderstand this, I think you will enjoy much more when you finish the coding you have started ), just one tip without final solution : in the part of the code where you compare values in order to determine colors, the loop goes from left to right (line 300) so you can not compare the current (already "equalized" value) with the previous (non-"equalized" value)
The reason for different colors lays in this part of code. When you finish coding, you will have it as it should be
(this code - you have to change something in it )

PHP Code:
               for(i=0i<barsPerTimeFrame;i++,k++)
               {
                  
ExtMapBuffer5[k] = ExtMapBuffer7[k]*koef;
                  
ExtMapBuffer6[k] = ExtMapBuffer6[k]*koef;
                 
// osma[k]          = OSMA[k]*koef;
                //  current = osma[k];
                //  prev    = osma[k+1];
                 
current ExtMapBuffer5[k]-ExtMapBuffer6[k];
                 
prev    ExtMapBuffer5[k+1]-ExtMapBuffer6[k+1];
                 if (((
current<0)&&(prev>0))||(current<0))   upfalse;    
                 if (((
current>0)&&(prev<0))||(current>0))   uptrue;  
.... 
regards
mladen
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
  #279 (permalink)  
Old 06-26-2009, 07:27 AM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,273
mladen is on a distinguished road
Lazy
Replace that code with this one :
PHP Code:
               for(i=0i<barsPerTimeFrame;i++,k++)
               {
                  
current ExtMapBuffer7[k]-ExtMapBuffer6[k];
                  
prev    ExtMapBuffer7[k+1]-ExtMapBuffer6[k+1];
                  if (((
current<0)&&(prev>0))||(current<0))   upfalse;    
                  if (((
current>0)&&(prev<0))||(current>0))   uptrue;  

                  
//
                  //
                  //
                                   
                  
ExtMapBuffer5[k] = ExtMapBuffer7[k]*koef;
                  
ExtMapBuffer6[k] = ExtMapBuffer6[k]*koef
It is what is called "it has everything, but at wrong place". Only the steps were in a wrong order, nothing else
Btw: those are, when you are writing the code, hardest to spot. When someone else looks at it, it is likely that he/she will spot it immediately . Once I lost 3-4 days just to find out that I need to invert 2 line position

regards
mladen

Quote:
Originally Posted by yevell View Post
thanks for you help, mladen !
i have try my best but i still could not get the right thing !
so, could you kindly post the final solution ?

thanks again !
best wishes !
Attached Images
File Type: gif macd.gif (22.1 KB, 256 views)

Last edited by mladen; 06-26-2009 at 07:53 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
  #280 (permalink)  
Old 06-26-2009, 09:20 AM
yevell's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Shanghai, China
Posts: 301
yevell is on a distinguished road
Fantastic ! that's what i need !
thank you so much !

I really try my best, but i never think the order of line !

thanks again !
best wishes !

Quote:
Originally Posted by mladen View Post
Lazy
Replace that code with this one :
PHP Code:
               for(i=0i<barsPerTimeFrame;i++,k++)
               {
                  
current ExtMapBuffer7[k]-ExtMapBuffer6[k];
                  
prev    ExtMapBuffer7[k+1]-ExtMapBuffer6[k+1];
                  if (((
current<0)&&(prev>0))||(current<0))   upfalse;    
                  if (((
current>0)&&(prev<0))||(current>0))   uptrue;  

                  
//
                  //
                  //
                                   
                  
ExtMapBuffer5[k] = ExtMapBuffer7[k]*koef;
                  
ExtMapBuffer6[k] = ExtMapBuffer6[k]*koef
It is what is called "it has everything, but at wrong place". Only the steps were in a wrong order, nothing else
Btw: those are, when you are writing the code, hardest to spot. When someone else looks at it, it is likely that he/she will spot it immediately . Once I lost 3-4 days just to find out that I need to invert 2 line position

regards
mladen
Attached Files
File Type: mq4 All MACD v1.0 4色.mq4 (13.8 KB, 19 views)

Last edited by yevell; 09-25-2009 at 02:07 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
Reply

Bookmarks

Tags
bb macd, bb macd indicator, color macd, colored macd, digital macd, forex, indicator, jurik macd, MACD Adjustable, macd alert, macd alert histogram, macd bar, macd bars, MACD COLOR, macd colored, macd dot, MACD EXPlanation, macd histogram, macd indicator, macd indicators, macd mladen, MACD MTF, macd on chart, macd osma, macd slope, mtf macd, MTF MACD alert, mtf osma, osma mtf, OsMACD, scalper03, search


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
Macd Indicator Needed keith Indicators - Metatrader 4 28 10-17-2009 09:56 AM
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 05:18 PM.



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