Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
All one need to do (in the case of ADX_CrossesNonrepainting) is to add two lines of code :
PHP Code:
for(int i = 0; i < limit; i++) { b4plusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i + 1); nowplusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i); b4minusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i + 1); nowminusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i); //---- ExtMapBuffer1[i] = EMPTY_VALUE; // this line added ExtMapBuffer2[i] = EMPTY_VALUE; // this line added too //---- if(b4plusdi < b4minusdi && nowplusdi > nowminusdi) ExtMapBuffer1[i] = Low[i] - nShift*Point; //---- if(b4plusdi > b4minusdi && nowplusdi < nowminusdi) ExtMapBuffer2[i] = High[i] + nShift*Point; }
That is the "clean up". Nothing else does not have to be done
Since the "if block" is not always going to assign value, the corresponding buffer must be cleaned before the "if block" (otherwise there is a risk of repainting)
PS: when using ADX, do not forget that metatrader ADX is not equal to Wilders DMI (the original)
but the alaskinan it self it keep changing the past i can understand that because we are taking the alaskian cross on the 15 min with 5 min so multi frame may chnge the past
however
the alaskin repaints it self due to the following on the current frame
1. when there is a cross between the red line and the blue line and then if this cross is no more exitst it should be changes on the current candle like macd for example and not to repaint the past
so is there a better version from the alaskian or can be fixed?
thanks
All one need to do (in the case of ADX_CrossesNonrepainting) is to add two lines of code :
PHP Code:
for(int i = 0; i < limit; i++)
{
b4plusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i + 1);
nowplusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i);
b4minusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i + 1);
nowminusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i);
//----
ExtMapBuffer1[i] = EMPTY_VALUE; // this line added
ExtMapBuffer2[i] = EMPTY_VALUE; // this line added too
//----
if(b4plusdi < b4minusdi && nowplusdi > nowminusdi)
ExtMapBuffer1[i] = Low[i] - nShift*Point;
//----
if(b4plusdi > b4minusdi && nowplusdi < nowminusdi)
ExtMapBuffer2[i] = High[i] + nShift*Point;
}
That is the "clean up". Nothing else does not have to be done
Since the "if block" is not always going to assign value, the corresponding buffer must be cleaned before the "if block" (otherwise there is a risk of repainting)
PS: when using ADX, do not forget that metatrader ADX is not equal to Wilders DMI (the original)
First of all Mladen my friend, you are just too brilliant for words!! Thank you for showing us the right way; much appreciate your experise.
Secondly, there are "so many versions" of Wilders DMI that I would respectfully ask you to point me to the correct one.
Im not a programmer but it would be cool if someone could make a BAR style - MTF Alaskanpipassasin for us. Should give a better overview for manual traders.
Alaskanpipassasin bar version has been written a long time ago (by someone) and modified by Kalenzo..
But it's not mtf version..
Im not a programmer but it would be cool if someone could make a BAR style - MTF Alaskanpipassasin for us. Should give a better overview for manual traders.
Quote:
Originally Posted by V-X569
Alaskanpipassasin bar version has been written a long time ago (by someone) and modified by Kalenzo..
But it's not mtf version..
This indicator is very good . It monitors volatility and tells you whether you should be trading in the current environment or not. Simple and reliable.
__________________
What do you want in a Forex informational website? Click here to let me know! Your input counts!
This indicator is very good . It monitors volatility and tells you whether you should be trading in the current environment or not. Simple and reliable.
I cannot open this volatility indicator in Metatrader, am I doing something wrong?
Hello All,
Sorry I haven't posted on the thread in a while. I have been very busy. First of all, thanks to everyone for all of the feedback, it has really been helpful. Second, I have been doing some modifications to the system in repsonse to everyone's concern. My first modification to the system is to the ADX. I have coded a signal, that I call Wilder's DMI Signals, based on an indicator that apparently follows the original Wilder rules coded mladen. This is the first in a series of modifications that I am currently coding/researching.
Thanks for taking the time to refine your system, and be able to take constructive criticism..... Drewp thanks for your dedicated perseverance, to making this a profitable system.....