Laguerre EA

 

Hello all pro,

I wrote a simple ea from the site sufx.core.t3-ism.net

with simple rules:

Sell when laguerre 0.8 cross down from 1 and buy when laguerre 0.8 cross up from 0; SL 50 pips ans TP 5 pips.

However the EA couldn't open any order althought I'd sucessfully complied it.

Please view the ea and help me to fix it.

Thanks

Files:
lag0.8.mq4  10 kb
 
fxngold:
Hello all pro,

I wrote a simple ea from the site sufx.core.t3-ism.net

with simple rules:

Sell when laguerre 0.8 cross down from 1 and buy when laguerre 0.8 cross up from 0; SL 50 pips ans TP 5 pips.

However the EA couldn't open any order althought I'd sucessfully complied it.

Please view the ea and help me to fix it.

Thanks

fxngold,

Can you check with this i made a little modification for you to try first as i dont have the liguerre indi but maybe this will solve the problem if not post what broker you are using and indi .. . or someone else may have the indi and make other modi from the ea you attached.

-guyver

Files:
lag0.8-1.ex4  8 kb
 
fxngold:
Hello all pro,

I wrote a simple ea from the site sufx.core.t3-ism.net

with simple rules:

Sell when laguerre 0.8 cross down from 1 and buy when laguerre 0.8 cross up from 0; SL 50 pips ans TP 5 pips.

However the EA couldn't open any order althought I'd sucessfully complied it.

Please view the ea and help me to fix it.

Thanks

Hi Fxngold,

Nice first try with your EA.

The settings for your iCustom call have to be exactly what's in the indicator.

You have:

double Buy1_1 = iCustom(NULL, 0, "Laguerre",0.8, 950, 0, Current + 1);

double Buy1_2 = 0;

double Buy2_1 = iCustom(NULL, 0, "Laguerre",0.8, 950, 0, Current + 0);

The indicator needs:

double Buy1_1 = iCustom(NULL, 0, "Laguerre", 0.66, 9500, 0, Current + 1);

double Buy1_2 = 0;

double Buy2_1 = iCustom(NULL, 0, "Laguerre", 0.66, 9500, 0, Current + 0);

Do the same corrections for your Sell formulas.

If you want different settings (0.8), then you need to set that value in BOTH the indicator and the iCustom call...or make it an user adjustable value.

Hope this helps you,

Robert

 

Thank you both of you,

I will try them soon on Monday.

Nice weekends!

 
cosmiclifeform:
Hi Fxngold,

Nice first try with your EA.

The settings for your iCustom call have to be exactly what's in the indicator.

You have:

double Buy1_1 = iCustom(NULL, 0, "Laguerre",0.8, 950, 0, Current + 1);

double Buy1_2 = 0;

double Buy2_1 = iCustom(NULL, 0, "Laguerre",0.8, 950, 0, Current + 0);

The indicator needs:

double Buy1_1 = iCustom(NULL, 0, "Laguerre", 0.66, 9500, 0, Current + 1);

double Buy1_2 = 0;

double Buy2_1 = iCustom(NULL, 0, "Laguerre", 0.66, 9500, 0, Current + 0);

Do the same corrections for your Sell formulas.

If you want different settings (0.8), then you need to set that value in BOTH the indicator and the iCustom call...or make it an user adjustable value.

Hope this helps you,

Robert

Thanks, pro!

I have corrected the way you told and it worked! Here's the first 10 pips it made this morrning, demo ofcourse!

But I don't know why we have to write 9500 bars to count back while laguerre only needs to count back 950 bars.

Thanks!

Files:
10pips.gif  5 kb
 

Hi all, 

Can someone help me please write an EA based on those simple rules:

Buy when Laguerre 0.8 crosses from 0 to 0.15

Sell when Laguerre 0.8 crosses from 1 to 0.85

Thanks!

 
sbazgarra:

Hi all, 

Can someone help me please write an EA based on those simple rules:

Buy when Laguerre 0.8 crosses from 0 to 0.15

Sell when Laguerre 0.8 crosses from 1 to 0.85

Thanks!


If someone helps so it will be fine. But I want to remind this standard reply - 

If you can't find what you need in the Codebase or the Market, then create a request in Freelance Service.