MisterH
MisterH
MisterH
Added topic Zigzag NRP on oscillator: counter since last "zig" error (not repainting)
Hi guys. This is a question for people familiar with the Zig-Zag indicator . It's pretty old, but has its use. Multiple changes were made to the standard indicator, turning it into a custom indicator (hereby attached called
MisterH
Added topic Array out of range
There is some explanation on this error  here and here . But still I can not figure it out.. So please check out this code on an indicator called RMO, "Rahul Mohindar Oscillator". Coded not by me, but a great coder on another forum.. But after
MisterH
Added topic Dynamic Range Bars
Hi, I did a bit of research this weekend on variations on constant range bars. Google it if you don't know what it is. There's a nice script from MQLservice to do this. It's a commercial script so I can't post it but there's a number of variations
MisterH
Added topic Inflection color
If you want to change the color of the buffer, not based on turning points like usual (when the slope changes from negative to positive the color changes from red to green & vice versa), but on inflection points: when the first derivative changes
MisterH
Added topic Fitting a parabola
If you want to fit a parabola (y=ax^2+bx+c) to e.g. the last 3 values of a buffer, you need to solve a system of 3 linear equations. In software like Matlab or R that is really easy to do, but how would you do it in mql4? I guess there is no function
MisterH
Added topic Weights of an EMA
So in mql4 you can use the function iMA or iMAOnArray if you want to create an exponential (MODE_EMA) or other type of moving average. Now an EMA is usually created by iteration :                    
MisterH
Added topic indicator that looks at its own turning points to decide its length?
 Hi, say you want to change the window length of your indicator to the number of bars since its last turning point, you would do that like this:      for ( int i= 0 ; i<limit; i++)    {    
MisterH
Added topic Angle in degrees
How do you measure the angle in degrees from the last bar's close to the close n bars ago? And no, the angle does not change if you zoom out, because zooming out does not mean changing the length of a unit, it only changes the perspective, it's like
MisterH
Added topic Horizontal vs. vertical distance
Hi, If you push F8 and go to the Common tab, you can check the box to Scale fix One to One. This means that your chart will no longer automatically scale to the best fit of your monitor, but simply show the movement in an objective way. Now, if you
MisterH
Left feedback to developer for job For forexmts
MisterH
Added topic Who wants to cooperate with me on a great idea?
Hi, I have a great filter. It has essentially zero lag, and is smoother than other known alternatives (JMA, ZLMA, ...). I have 1 problem though: that is the windowing function (the function that decides how many periods back it has to look to
MisterH
Added topic sum of absolute price change on a window
I want to calculate the sum of the absolute price change: this line works for 1 single bar: ExtMapBuffer0[i]=MathAbs(Close[i]-Close[i+1]) but to do it over several bars I guess I need to use a loop (with an adjustable window), any suggestions please
MisterH
Added topic Does anybody know R? I need a conversion from mql4 to R
Hi, I have a simple indicator, the Guppy mma oscillator and I would like to convert it into R code. I really need it fast. Could anybody help me with this? https://www.mql5.com/en/job/3097
MisterH
Left feedback to developer for job Fit a sine wave
Andy Reed
Andy Reed 2014.09.23
MisterH How much for this indicator or where can I get it? I really like the description and I have a pretty good grasp on what you are talking about (although I think you understand the math more than I do, but I am getting there). I can get pretty close to price movement by overlaying a charted sine wave (or cosine) from finding the period, amplitude, and shift of the waveform. Then I put the waveform over actual price movement in excel in order to see the outcome or potential price movement in the future. I don't know how to write code and I am not trying to reinvent anything. I can send you a picture of what I did a few months ago if you would like. It turned out pretty profitable for me. I apologize for the long winded comment.
MisterH
Left feedback to developer for job Equality of sign of change between close price and an indicator
MisterH
Added topic take the chart's time frame and go 1 time frame higher
What code do you use to 1) find out what the chart's current time frame is (M1,M5,M15,M30,H1,H4,D1 or MN1) 2) go 1 time frame higher: so if the chart right now is M30, use H1 in the code? This could work for every indicator, but for example with RSI
MisterH
Added topic same shape between price and your indicator?
This is not programming related, so please humor me on this one. Don't you find it annoying that price is going up when your indicator is going down? I used to think that the best way to counter that was finding some magical adaptive window function
MisterH
Added topic # of bars since last new high
I have this indi that counts the number of bars since the last new high/low of a moving maximum/minimum of the close price: it could be used as input for a window function (that dynamically adjusts the look-back period of other indicators); Take a
MisterH
Added topic moving sum of the signs of the bars
I want to create a moving sum of the sign of the bars: an up bar is +1, a down bar is -1, on a window of adjustable size: how do I work with a window? should be extern int window=10; and then??    for ( int i= 0 ; i<limit; i++)
MisterH
Added topic the most frequent value from a number of buffers?
Say you have 10 buffers: buf1[i] =icustom(0,0,"someIndicator",10,0,i); buf2[i] =icustom(0,0,"someIndicator",20,0,i); buf3[i] =icustom(0,0,"someIndicator",30,0,i); ... buf10[i]