|
|||||||
| Register in Forex TSD! | |
|
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 |
|
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
|||
|
Quote:
Ehlers (part of code in question): Vars: L0(0), L1(0), L2(0), L3(0), CU(0), CD(0), RSI(0); L0 = (1 – gamma)*Close + gamma*L0[1]; L1 = - gamma *L0 + L0[1] + gamma *L1[1]; L2 = - gamma *L1 + L1[1] + gamma *L2[1]; L3 = - gamma *L2 + L2[1] + gamma *L3[1]; Emerald-King (errant version of code): L0A = L0; L1A = L1; L2A = L2; L3A = L3; L0 = (1 - gamma)*Close[i] + gamma*L0A; L1 = - gamma *L0 + L0A + gamma *L1A; L2 = - gamma *L1 + L1A + gamma *L2A; L3 = - gamma *L2 + L2A + gamma *L3A; davidwt (correct and compliant version): L0[i] = (1.0 - gamma)*Close[i] + gamma*L0[i+1]; L1[i] = -gamma*L0[i] + L0[i+1] + gamma*L1[i+1]; L2[i] = -gamma*L1[i] + L1[i+1] + gamma*L2[i+1]; L3[i] = -gamma*L2[i] + L2[i+1] + gamma*L3[i+1]; Basically, the time series requires calculations to include data from the previous bars, and the version posted does not include this in the code. |
|
|||
|
Quote:
Thanks MacDFx. |
|
|||
|
Yes you are correct, my version is not exactly like Ehlers code.
But in my defense if you look at his code you will see that he always looks at the current values bar values and the preveious bar values so what I did was just copy the preveious bar values into the A variables ![]() Thanks EK |
|
|||
|
Quote:
"variance" and "time drift" with this indicator. Ehlers does use a shift to the previous bar [i + i] explicitly in his values for determining L0[i].L1[i],L2[i].and L3[i]. However, I'm still not certain that your construction does exactly that, versus the version put together by davidwt. What you see isn't always what you get in MT4 though, as I swear Laguerre is operating on a scale of its own. (Which apparently it is, at least according to Ehlers own documentation). I just have trouble matching up the trades with their purported triggers from this indicator. (As an aside - I do appreciate all the work you've done on many of the MT4 EAs and indicator found here and on other forums elsewhere, so please do take it all in stride. )happy tradings! |
|
|||
|
I would say that if you only calculate this indicator on a per bar basis then they should match but if you allow it to run as per tick as it is currently coded then I think history will match but you might see drift as you stated running it live
![]() All the Best to you and your family this holiday season ![]() EK |
|
|||
|
Using Laguerre for divergence
I was just wondering if people are using Laguerre for divergence. Laguerre doesn't seem to show divergence as often as other indicators but when it does then it seems to be effective as this screenshot shows.
The next question is can an indicator be written for this divergence? The laguerre settings I use are gamma 0.55 and bars 950. Just a thought. Last edited by Vantage : 02-11-2008 at 10:11 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/indicators-metatrader-4/216-laguerre-indicator.html
|
|||
| Posted By | For | Type | Date |
| Simple Method of Scalping any pair on 5 min chart , specially GBP/JPY - by Imran Sait - Page 477 | This thread | Refback | 05-02-2008 11:43 AM |
| Simple Method of Scalping any pair on 5 min chart , specially GBP/JPY - by Imran Sait - Page 477 | This thread | Refback | 05-01-2008 01:48 PM |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Laguerre RSI with Filter | TheWicker | Indicators - Metatrader 4 | 2 | 12-13-2007 09:29 PM |
| Dinapoli Detrend Osc and Laguerre? | drgoodvibe | Metatrader 4 | 16 | 09-17-2006 11:56 PM |
| Laguerre Indicator description | forexts | Documentation | 0 | 10-31-2005 12:22 PM |