Nonlagging Tools - page 16

 

january 2

Hi, good day to all,

Long cable 1.9686, +10 and final exit at +20=30pips.

Long euro 1.3524, +10 and final exit at +20=30pips.

Total for london session.

Happy new year guys.

 

I have big gap in data this morning so could not trade

 

The only gaps I had was from last night [Jan 1] when the market had not opened. My broker did not open until 5:00PM EST but price had already started gapping down, and then gapped up before the broker opened.

 

Nd,

there are some metatraders that have gaps, and some that do not have it, try another, so you can trade everyday, will not trade in US session it`s mourning day.

 

Non LagMA_v5

Hi Newdigital, I know you have helped me with this before. I am trying to use the NonLagMA_v5 in an ea but I am having trouble with getting the signal. I have re read the earlier posts we had but I am still having trouble.

This is the code I have, can you see where the problem is?

if(UseNonLagMA)

{

double NonLagUp = iCustom(NULL,0,"NonLagMA_v5",0,NonLagLength,0,0,1,0,0,1,1);

double NonLagDown=iCustom(NULL,0,"NonLagMA_v5',0,NonLagLength,0,0,1,0,0,2,1);

}

if(NonLagUp>0){GridDirectionUp=true;Print("GridDirectionUp");}

if(NonLagDown>0){GridDirectionDown=true;Print("GridDirectionDown");}

What I am getting is both Grid Direction Up and Down both true. I introduced the print function to do some fault finding and the log shows both are true and consequently the ea is misbehaving.

I have studied the only Nonlag ea on this thread but the coding is beyond me.

I have also introduced bool GridDirectionUp=false and NonLagUp=0 earlier in the ea to try avoid any problems there.

I appreciate you are very busy but I am really stuck and would appreciate your help.

The coding is just me typing there are no typos in the ea.

 

Today we had a cross, short signal, too early did not take it there, took the short later at 1.9721 for +10 and +1

 
waltini:
Hi Newdigital, I know you have helped me with this before. I am trying to use the NonLagMA_v5 in an ea but I am having trouble with getting the signal. I have re read the earlier posts we had but I am still having trouble.

This is the code I have, can you see where the problem is?

if(UseNonLagMA)

{

double NonLagUp = iCustom(NULL,0,"NonLagMA_v5",0,NonLagLength,0,0,1,0,0,1,1);

double NonLagDown=iCustom(NULL,0,"NonLagMA_v5',0,NonLagLength,0,0,1,0,0,2,1);

}

if(NonLagUp>0){GridDirectionUp=true;Print("GridDirectionUp");}

if(NonLagDown>0){GridDirectionDown=true;Print("GridDirectionDown");}

What I am getting is both Grid Direction Up and Down both true. I introduced the print function to do some fault finding and the log shows both are true and consequently the ea is misbehaving.

I have studied the only Nonlag ea on this thread but the coding is beyond me.

I have also introduced bool GridDirectionUp=false and NonLagUp=0 earlier in the ea to try avoid any problems there.

I appreciate you are very busy but I am really stuck and would appreciate your help.

The coding is just me typing there are no typos in the ea.

Hi,

Try to use this code:

if(UseNonLagMA)

{

double NonLagTrend = iCustom(NULL,0,"NonLagMA_v5",0,NonLagLength,0,0,1,0,0,3,1);

GridDirectionUp=false, GridDirectionDown=false;

if(NonLagTrend>0){GridDirectionUp=true;Print("GridDirectionUp");}

if(NonLagTrend<0){GridDirectionDown=true;Print("GridDirectionDown");}

}

Regards,

Igor

 
waltini:
Hi Newdigital, I know you have helped me with this before. I am trying to use the NonLagMA_v5 in an ea but I am having trouble with getting the signal. I have re read the earlier posts we had but I am still having trouble.

This is the code I have, can you see where the problem is?

if(UseNonLagMA)

{

double NonLagUp = iCustom(NULL,0,"NonLagMA_v5",0,NonLagLength,0,0,1,0,0,1,1);

double NonLagDown=iCustom(NULL,0,"NonLagMA_v5',0,NonLagLength,0,0,1,0,0,2,1);

}

if(NonLagUp>0){GridDirectionUp=true;Print("GridDirectionUp");}

if(NonLagDown>0){GridDirectionDown=true;Print("GridDirectionDown");}

What I am getting is both Grid Direction Up and Down both true. I introduced the print function to do some fault finding and the log shows both are true and consequently the ea is misbehaving.

I have studied the only Nonlag ea on this thread but the coding is beyond me.

I have also introduced bool GridDirectionUp=false and NonLagUp=0 earlier in the ea to try avoid any problems there.

I appreciate you are very busy but I am really stuck and would appreciate your help.

The coding is just me typing there are no typos in the ea.

I did not use NonLagMA_v5.

I used NonLagMA_v4.1 in public asctrend thread and in elite asctrend thread

Igorad is using this NonLagMA indicator in EA not as custom. He is inserting indicator's code in EA and EA can not backtested very easy (because no any custom indicator inside. He is doing it in very complicated way:

double NonLagMA( .....)

{

double Cycle=4;

double pi = 3.1415926535, Weight=0, ...

double Coeff = 3*pi;

....[/CODE]

So if you have access to elite section (asctrend thread) you may see.

But I am not very professional with programming and am using custom function.

For example.

In the beginning of EA (settings):

extern string PARAMETERS_INDICATOR_TWO = "NonLagMA_v4";

extern int Price = 0;

extern int Length = 100;

extern int Displace = 0;

extern int Filter = 1;

extern int Color = 1;

extern int ColorBarBack = 0;

extern double Deviation = 0;[/CODE]

And then:

double diNonLagUp=iCustom(NULL,0,"NonLagMA_v4.1",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,1,1);

double diNonLagDown=iCustom(NULL,0,"NonLagMA_v4.1",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,2,1);

double diNonLagUp1=iCustom(NULL,0,"NonLagMA_v4.1",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,1,2);

double diNonLagDown1=iCustom(NULL,0,"NonLagMA_v4.1",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,2,2);

So,

- diNonLagUp is blue colored line of the indicator (buy color - because of 1) on the 1-st bar.

- diNonLagUp1 is buy (blue) colored line of the indicator on the 2 bar.

- diNonLagDown is sell (Tomato) colored line of the indicator (because of 2) on the 1 bar.

- diNonLagDown1 is sell colored line of the indicator on the 2 bar.

And buy will be as the following:

[CODE]diNonLagUp > 0 && diNonLagDown1 > 0

Sell:

[CODE]diNonLagDown > 0 && diNonLagUp1 > 0
Files:
 
igorad:
Hi,

Try to use this code:

if(UseNonLagMA)

{

double NonLagTrend = iCustom(NULL,0,"NonLagMA_v5",0,NonLagLength,0,0,1,0,0,3,1);

GridDirectionUp=false, GridDirectionDown=false;

if(NonLagTrend>0){GridDirectionUp=true;Print("GridDirectionUp");}

if(NonLagTrend<0){GridDirectionDown=true;Print("GridDirectionDown");}

}

Regards,

Igor

We did it in the same time.

So waltini please use Igorad's suggestion.

And I want to remind about NonLagMa with sound alert is here in this thread.

 

Many Thanks

Many thanks Igorad and Newdigital.

It is because of both your considerable help that this forum is so highly regarded and popular.

cheers

waltini