How to compute WPR value of an indicator buffer? - page 2 123 New comment Saji 2013.12.23 04:32 #11 if I remove the code of limitation to the DtdOsc value: /* if(DtdOsc[i]>0.9999) DtdOsc[i]=0.9999; if(DtdOsc[i]<-0.9999) DtdOsc[i]=-0.9999;*/ then I got the second signal in the last pics,which has exactly the same dynamics of the raw price data. So I think there must be other errors, mostlikely in the computing of the local Max/Min value of DtdValue[]. Regards, saji Coding help Get Close Price of MQL4 Learning Simon Gniadkowski 2013.12.23 09:27 #12 saji: if I remove the code of limitation to the DtdOsc value: then I got the second signal in the last pics,which has exactly the same dynamics of the raw price data. So I think there must be other errors, mostlikely in the computing of the local Max/Min value of DtdValue[]. Regards, saji You could just use iHighest() and iLowest() and then use these bar values with High[] and Low[] Saji 2013.12.23 10:30 #13 RaptorUK: You could just use iHighest() and iLowest() and then use these bar values with High[] and Low[] You know that iHighest() just can be applied to the raw price series, which is not appliable to my "detrended prices" buffer. int iHighest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0) It means the input series should be the raw prices, not certain buffer. [ARCHIVE!] Any rookie question, [ARCHIVE] Any rookie question, High Low indicator set Saji 2013.12.23 10:49 #14 It seems that no one could solve this yet..... Can anyone provide the original code of iCCIonArray() function in the MT4? So I can refer to it, and find out my errors in the code. Thanks! ERROR CODE IS " [WARNING CLOSED!] Any newbie Can anyone provide the Saji 2013.12.23 10:55 #15 Or maybe I can use the ArrayMaximum() instead....I'll find out Simon Gniadkowski 2013.12.23 12:00 #16 saji: You know that iHighest() just can be applied to the raw price series, which is not appliable to my "detrended prices" buffer. And you array is comprised of Close values . . . DtdValue[i]=Close[i] Saji 2013.12.23 13:05 #17 Man! I'm really tied of explaining again and again...... In this simplified version, i use a local mean of zero value to calculate the DtdValue[].......Again, to simplify the question!!!! What if I use a Simple MA trendline as a local mean? And will DtdValue[i] still equal to Close[i] again? No!!!! The DtdValue[] will just be an indicator buffer, and its value will not equal to any existed price data!!! So I have to calculate the WPR of an indicator buffer(again,not the raw price) by myself! ....... Is there an EA [Archive!] Any rookie question, Indicator buffers and shift Simon Gniadkowski 2013.12.23 13:26 #18 saji: Man! I'm really tied of explaining again and again...... OK, sorry to trouble you. Alain Verleyen 2013.12.23 13:51 #19 saji: Man! I'm really tied of explaining again and again...... In this simplified version, i use a local mean of zero value to calculate the DtdValue[].......Again, to simplify the question!!!! What if I use a Simple MA trendline as a local mean? And will DtdValue[i] still equal to Close[i] again? No!!!! The DtdValue[] will just be an indicator buffer, and its value will not equal to any existed price data!!! So I have to calculate the WPR of an indicator buffer(again,not the raw price) by myself! ....... If you are tired, I suggest you to take some rest. If you are not able to program it yourself, you can try to hire a programmer. Ian Venner 2013.12.23 15:42 #20 saji: Man! I'm really tied of explaining again and again...... In this simplified version, i use a local mean of zero value to calculate the DtdValue[].......Again, to simplify the question!!!! What if I use a Simple MA trendline as a local mean? And will DtdValue[i] still equal to Close[i] again? No!!!! The DtdValue[] will just be an indicator buffer, and its value will not equal to any existed price data!!! So I have to calculate the WPR of an indicator buffer(again,not the raw price) by myself! ....... Do you normaly speak to people that way when you expect them to do something for you ? It makes me wonder what kind of people we deal with on here.... 123 New comment
if I remove the code of limitation to the DtdOsc value:
/* if(DtdOsc[i]>0.9999) DtdOsc[i]=0.9999; if(DtdOsc[i]<-0.9999) DtdOsc[i]=-0.9999;*/
then I got the second signal in the last pics,which has exactly the same dynamics of the raw price data.
So I think there must be other errors, mostlikely in the computing of the local Max/Min value of DtdValue[].
Regards,
saji
if I remove the code of limitation to the DtdOsc value:
then I got the second signal in the last pics,which has exactly the same dynamics of the raw price data.
So I think there must be other errors, mostlikely in the computing of the local Max/Min value of DtdValue[].
Regards,
saji
You could just use iHighest() and iLowest() and then use these bar values with High[] and Low[]
You know that iHighest() just can be applied to the raw price series, which is not appliable to my "detrended prices" buffer.
It means the input series should be the raw prices, not certain buffer.
It seems that no one could solve this yet.....
Can anyone provide the original code of iCCIonArray() function in the MT4?
So I can refer to it, and find out my errors in the code.
Thanks!
You know that iHighest() just can be applied to the raw price series, which is not appliable to my "detrended prices" buffer.
And you array is comprised of Close values . . .
DtdValue[i]=Close[i]
Man! I'm really tied of explaining again and again......
In this simplified version, i use a local mean of zero value to calculate the DtdValue[].......Again, to simplify the question!!!!
What if I use a Simple MA trendline as a local mean?
And will DtdValue[i] still equal to Close[i] again? No!!!!
The DtdValue[] will just be an indicator buffer, and its value will not equal to any existed price data!!!
So I have to calculate the WPR of an indicator buffer(again,not the raw price) by myself!
.......
Man! I'm really tied of explaining again and again......
Man! I'm really tied of explaining again and again......
In this simplified version, i use a local mean of zero value to calculate the DtdValue[].......Again, to simplify the question!!!!
What if I use a Simple MA trendline as a local mean?
And will DtdValue[i] still equal to Close[i] again? No!!!!
The DtdValue[] will just be an indicator buffer, and its value will not equal to any existed price data!!!
So I have to calculate the WPR of an indicator buffer(again,not the raw price) by myself!
.......
Man! I'm really tied of explaining again and again......
In this simplified version, i use a local mean of zero value to calculate the DtdValue[].......Again, to simplify the question!!!!
What if I use a Simple MA trendline as a local mean?
And will DtdValue[i] still equal to Close[i] again? No!!!!
The DtdValue[] will just be an indicator buffer, and its value will not equal to any existed price data!!!
So I have to calculate the WPR of an indicator buffer(again,not the raw price) by myself!
.......
Do you normaly speak to people that way when you expect them to do something for you ? It makes me wonder what kind of people we deal with on here....