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.
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 !
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 !
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=0; i<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)) up= false; if (((current>0)&&(prev<0))||(current>0)) up= true; ....
regards
mladen
Quote:
Originally Posted by yevell
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 !
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
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=0; i<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)) up= false;
if (((current>0)&&(prev<0))||(current>0)) up= true;
....
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
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 ?
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