• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:26pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:26pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

"Beginner" really need advice 46 replies

Need a trading PC - what specs do I need? 0 replies

Need help with 10M chart - got it already but need some help! 1 reply

Need help evaluating the efficiency of a trading system 4 replies

Just need a Direction for Training 51 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 7
Attachments: NEED to EA with NonLagma_V5
Exit Attachments

NEED to EA with NonLagma_V5

  • Post #1
  • Quote
  • First Post: Jan 4, 2008 4:11am Jan 4, 2008 4:11am
  •  cashfinder
  • | Joined Nov 2006 | Status: Member | 58 Posts
NonLagma Very powerfull to make this with EA, can Anybody help me?
I love V5 more than other versions

Rules :
when the bar ends, if color is blue, then buy, if the color is red, closed the buy and sell, vice visa
have mm with percent
can use in different timeframe
Attached File
File Type: mq4 NonLagMA_v5.mq4   6 KB | 1 download
  • Post #2
  • Quote
  • Edited at 8:27am Jan 4, 2008 8:09am | Edited at 8:27am
  •  lucidlamp
  • | Joined May 2007 | Status: I do my best while asleep... | 238 Posts
Hi cashfinder,

A lower 'Risk' input will yield higher lot allocation.

Attached File
File Type: mq4 EA_NonLagma_v5.mq4   3 KB | 1 download


I also suggest you test this if you plan to trade it live.

Regards,
lucidlamp
 
 
  • Post #3
  • Quote
  • Jan 4, 2008 9:40am Jan 4, 2008 9:40am
  •  cashfinder
  • | Joined Nov 2006 | Status: Member | 58 Posts
Hi lucidlamp,

Thanks very much for your great help. I will try this tonight.

Carlton
 
 
  • Post #4
  • Quote
  • Edited Jan 5, 2008 2:15am Jan 4, 2008 11:54pm | Edited Jan 5, 2008 2:15am
  •  cashfinder
  • | Joined Nov 2006 | Status: Member | 58 Posts
Hi lucidlamp,

I have tested the ea, its great. But the entry time seems a little bit late.
As I see, orders opened at the open price of the second bar, is it possible to adjust back 1 bar, i.e. to the open price of the first changed color bar?

I have read through the mq4 file but I am not understand, please help me. Thanks again for your great help.

I have tried the risk, using 3000 USD mini demo account, 5000 will open 0.6 lot.
Attached Images
 
 
  • Post #5
  • Quote
  • Jan 5, 2008 8:48am Jan 5, 2008 8:48am
  •  melpheos
  • Joined Jan 2007 | Status: Stochastic pipster | 1,657 Posts
Quoting cashfinder
Disliked
Hi lucidlamp,

I have tested the ea, its great. But the entry time seems a little bit late.
As I see, orders opened at the open price of the second bar, is it possible to adjust back 1 bar, i.e. to the open price of the first changed color bar?

I have read through the mq4 file but I am not understand, please help me. Thanks again for your great help.

I have tried the risk, using 3000 USD mini demo account, 5000 will open 0.6 lot.
Ignored
I think you need to understand first how the indicator works. How can an EA know that the last period is red until the end of the candle ? What you are asking now it an EA that look in the future and thats is unfortunatly impossible.
 
 
  • Post #6
  • Quote
  • Jan 5, 2008 9:27am Jan 5, 2008 9:27am
  •  lucidlamp
  • | Joined May 2007 | Status: I do my best while asleep... | 238 Posts
Hi cashfinder,

What you stated in your first post is what the EA is doing.

What you stated in your third post was effectively answered by melpheos. The third post you made would place trades on the indicator values being returned from a bar that is presently being formed...

As you may have noticed, if you have watched the indicator over many bars (especially on a bar that completely engulfs the previous bar and has a much larger range than the previous bar), the indicator can go from blue to red and back several times. Placing a trade on the indicator value returned by the present bar would be a practical coin toss. Which is not bad, 50% chance of being correct. One would normally wait for the new bar to begin and base a decision on the indicators value of the last bar (which would be completed upon the first tick of the new bar). This would make the EA correct in following your request in your first post.

Perhaps you misjudged your visual backtesting of the indicator? Perhaps another indicator or some price movement pattern can be used in conjunction to verify or support the NonLagma_V5? Perhaps something like a simple moving average of 21 bars in an upward trend would validate long positions and not allow short positions, and vice versa?

Hoping this clarifies things up a bit,
lucidlamp
 
 
  • Post #7
  • Quote
  • Jan 5, 2008 9:33am Jan 5, 2008 9:33am
  •  cashfinder
  • | Joined Nov 2006 | Status: Member | 58 Posts
Hi lucidlamp,

I finally know what I have misunderstanding.
The EA is correct because the previous bar is not confirmed to have signal until the bar ends.

Thanks again lucidlamp and melpheos for your explaination


Carlton
 
 
  • Post #8
  • Quote
  • Edited at 8:42pm Jan 7, 2008 8:58am | Edited at 8:42pm
  •  cashfinder
  • | Joined Nov 2006 | Status: Member | 58 Posts
The ea is fine, but I have problems when TP or SL touched.

The ea will open position again immediately , rather then when for next bar/signal.

lucidlamp, can you help me on this?
 
 
  • Post #9
  • Quote
  • Mar 29, 2008 12:33am Mar 29, 2008 12:33am
  •  samrani
  • | Membership Revoked | Joined Sep 2007 | 1 Post
hi lucidlamp, can you make ea from this nonlagma.
the basic is
a. if blue colour start buy. and close after the first yellow colour coming.
b. if the red colour start sell and close after yellow colour coming.

pls help me...sorry broken english.
Attached Files
File Type: mq4 NonLagMA_EA.mq4   17 KB | 963 downloads
File Type: ex4 NonLagMA_EA.ex4   14 KB | 519 downloads
 
 
  • Post #10
  • Quote
  • Jan 20, 2010 7:13am Jan 20, 2010 7:13am
  •  luisneves
  • | Joined Dec 2009 | Status: Member | 5 Posts
Hi Lucidlamp,

Having seen the ea_nonlagmav5 I would like to ask if is possible to implement some ideas, as is the case of:

1 use of version 7.1 of indicator ( if that is better)
2 use a flat filter, damianifilter for example
3 use a time filter to close the ea when is a need, or a time filter for news also, meaning the ability to close and open 3 times a day for every day of the week.

Another idea is to get the ea to use the 5m time frame 5 minutes before the news to enter. Here the ea should use the time filter whenever we program it for the news.

Thank you in adavance

Luis Neves

msn: [email protected]
 
 
  • Post #11
  • Quote
  • Jan 20, 2010 11:50pm Jan 20, 2010 11:50pm
  •  tommbstone
  • | Joined Dec 2009 | Status: Member | 730 Posts
Quoting luisneves
Disliked
Hi Lucidlamp,

Having seen the ea_nonlagmav5 I would like to ask if is possible to implement some ideas, as is the case of:

1 use of version 7.1 of indicator ( if that is better)
2 use a flat filter, damianifilter for example
3 use a time filter to close the ea when is a need, or a time filter for news also, meaning the ability to close and open 3 times a day for every day of the week.

Another idea is to get the ea to use the 5m time frame 5 minutes before the news to enter. Here the ea should use the time filter whenever we program it for...
Ignored
This thread is using a nonLagma_v7.1 as an ea
http://www.forexfactory.com/showthread.php?t=214364
 
 
  • Post #12
  • Quote
  • Jan 21, 2010 3:44am Jan 21, 2010 3:44am
  •  luisneves
  • | Joined Dec 2009 | Status: Member | 5 Posts
Hi tommbstone,

Thank you for your response. About the filter to avoid those flate moments have you any idea?

Luis Neves
 
 
  • Post #13
  • Quote
  • Feb 16, 2016 6:08pm Feb 16, 2016 6:08pm
  •  tonnogueira
  • | Joined Mar 2015 | Status: Member | 7 Posts
EA does not work in my mt4 ... not open any order.
 
 
  • Post #14
  • Quote
  • Apr 28, 2016 12:58am Apr 28, 2016 12:58am
  •  high321
  • Joined Jul 2015 | Status: 918528845436 | 229 Posts
this ia nolagea with fixed lot
Inserted Code
//+------------------------------------------------------------------+
//|                                               EA_NonLagma_v5.mq4 |
//|                                                 [email protected] |
//+------------------------------------------------------------------+
#property link "[email protected]"
extern double Risk=100000; // The lower the number the higher the risk...
extern int Price=0;
extern int Length=20;
extern int Displace=0;
extern int Filter=5;
extern int Color=1;
extern int ColorBarBack=1;
extern double Deviation=0;  
extern double Lots=0.1;
// perhaps for optimization?
extern double SL=0;
extern double TP=0;      
//
double dTemp;
int iTicket=0;
int iTemp;
int init()
  {
  }
int deinit()
  {
  }
int start()
    {
        iTemp=iCustom(NULL,0,"NonLagMA_v5",Price,Length,Displace,Filter,Color,ColorBarBack,Deviation,3,1);
    
        if(iTicket==0 && iTemp==1)
            {
                iTicket=OrderSend(Symbol(),OP_BUY,Lots,dAsk(),3,SL,TP,sComment(),CLR_NONE);
            }
        else if(iTicket==0 && iTemp==(-1))
            {
                iTicket=OrderSend(Symbol(),OP_SELL,Lots,dBid(),3,SL,TP,sComment(),0,0,CLR_NONE);
            }
        else if(iTicket>0 && iTemp==1 && !bOrderType())
            {
                OrderClose(iTicket,Lots,dAsk(),3,CLR_NONE);
                iTicket=OrderSend(Symbol(),OP_BUY,Lots,dAsk(),3,SL,TP,sComment(),0,0,CLR_NONE);
            }
        else if(iTicket>0 && iTemp==(-1) && bOrderType())
            {
                OrderClose(iTicket,Lots,dBid(),3,CLR_NONE);
                iTicket=OrderSend(Symbol(),OP_SELL,Lots,dBid(),3,SL,TP,sComment(),0,0,CLR_NONE);
            }
        else
            {
            }
  }
string sComment()
    {
        return("EA_NonLagma_v5 " + Symbol()+ " " + Period());
    }
bool bOrderType()
    {
        int iOrdersTotal=OrdersTotal();
        for(int x=iOrdersTotal-1;x>=0;x--)
            {
                OrderSelect(x,SELECT_BY_POS);
                if(OrderSymbol()==Symbol() && OrderComment()==sComment())
                    {
                        if(OrderType()==OP_BUY)
                            {
                                return(true);
                            }
                    }
            }
        return(false);
    }
    
double dAsk()
    {
        return(MarketInfo(Symbol(),MODE_ASK));
    }
    
double dBid()
    {
        return(MarketInfo(Symbol(),MODE_BID));
    }
double dMinLot()
    {
        return(MarketInfo(Symbol(),MODE_MINLOT));
    }
double dMaxLot()
    {
        return(MarketInfo(Symbol(),MODE_MAXLOT));
    }
 
 
  • Post #15
  • Quote
  • Last Post: Aug 23, 2017 2:05am Aug 23, 2017 2:05am
  •  gotiko
  • | Joined May 2016 | Status: Junior Member | 3 Posts
Hi all guys, sorry I do not speak english I use google translator.
I do not know anything about programming, I need help, can anyone put my Magic Number in EA_NonLagma_v5?
Thank you very much
Attached File
File Type: mq4 EA_NonLagma_v5.mq4   3 KB | 160 downloads
 
 
  • Platform Tech
  • /
  • NEED to EA with NonLagma_V5
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022