Laguerre risesLaguerre fallsLaguerre is higher than the level lineLaguerre is lower than the level lineLaguerre crosses the level line upwardLaguerre crosses the level line downwardLaguerre changes its dorection upwardLaguerre changes its direction downward

Re: New Indicator: Laguerre indicator

This is a version of Laguerre build for Forex Strategy Builder and Forex Strategy Trader.

It uses the same formula as in the shown Laguerre.mq4 and respectively the values are same.

To install the indicator put it in the Custom Indicators folder. When you start the program it will load the indicator alone. If the program is running, press Ctrl + I in order to reload the custom indicators.

Post's attachments

Laguerre.cs 13.74 kb, 232 downloads since 2009-12-29

You don't have the permssions to download the attachments of this post.

Re: New Indicator: Laguerre indicator

Re: New Indicator: Laguerre indicator

Have anyone tried implementing LaguerreFilter? I'm pretty new to trading and I'm not yet quite sure how does mixing indicators work in Strategy Builder/Trader, so it would be really helpful to have this one as well as Laguerre.

Re: New Indicator: Laguerre indicator

I've tried to implement LaguerreFilter myself, so I took one of the filters that looks somewhat similar and was already in Custom Indicators. I took Vidya Moving Average and reimplemented Calculate method to match mql4 implemenation found here: http://forex-indicators.net/mt4-indicators/laguerre-rsi

It almost works

The indicator itself is pretty similar to what I get in mt4, but the last bars are broken: https://skitch.com/drogus/8nihe/windowsxp-snapshot-1-running

Could you guys help me to figure out what's wrong? I've attached my version of the script. Some code is commented, I will get back to it when the indicator works.

As you can see indicator is moved to the left comparing to the one in MetaTrader. I'm not also sure how to make 2 modes that are needed for using LaguerreFilter, which are: "price is lower than Laguerre filter" and "price is higher than Laguerre Filter".

Re: New Indicator: Laguerre indicator

Nice indi you've got there

I found a source from my archive, threw it together following its lead, not sure if it's identical to yours, nevertheless the indi is attached, cross-referenced with MT->passed my test, values match. If you don't like my wording in the indi, do whatever you feel needs to be done - replace, change, etc.

Re: New Indicator: Laguerre indicator

Hi Drogus thanks for posting, I took a quick look at your code, and i think the line 143 might be your problem for (int iBar = Bars - 2; iBar > 0; iBar--)i am not an expert but this is more what they do in C+, count backwards.I think what is happening is that by setting your maximum iBar to 2 bars smaller than full set, you might be having a "0" number showing somewhere in the calculation. this in turn would drop your average down fast.... I will play with it later to see if i can understand the calculations and maybe correct the math. (as i said i am just a novice trying to learn so this might not be the problem)

drogus wrote:

Sorry for 3 consecutive posts, but apparently something is wrong with attachments.

As you can see indicator is moved to the left comparing to the one in MetaTrader. I'm not also sure how to make 2 modes that are needed for using LaguerreFilter, which are: "price is lower than Laguerre filter" and "price is higher than Laguerre Filter".