Help Making Simple EA work! Please
  #1 (permalink)  
Old 09-18-2012, 03:26 PM
Currency Trader
 
Join Date: Aug 2012
Posts: 2
sl89xx is on a distinguished road
Default Help Making Simple EA work! Please

Hello,

Is there a kind soul out there that can help me with getting this EA working? I found this indicator (ABC.mq4) on a forum and would like to make a EA out of it, a friend of mine tried to make one but it dosent work (ABC EA.mq4). The indicator is really simple it signals buy/sell situations using arrows and i would like the EA to open a trade at the exact time a buy or sell arrow appears with TakeProfit and StopLoss parameters defineable by the user (preferably in pips)

I attach both the EA and the indicator so hopefully you guys don't need to make the EA from scratch. All help is appreciated.

ABC.mq4
ABC EA.mq4

Thanks
Advertisement
Reply With Quote
  #2 (permalink)  
Old 01-01-2013, 09:31 PM
Forex Warrior
 
Join Date: May 2010
Posts: 251
master4x is on a distinguished road
Default

It looks like a simple EA. Not coded the best but it will probably work if you were to use it on a non-ECN broker. This is probably why it is not working for you.
Reply With Quote
  #3 (permalink)  
Old 01-31-2013, 11:49 PM
Forex Trader
 
Join Date: Apr 2011
Posts: 25
skaboy is on a distinguished road
Default

Quote:
Originally Posted by sl89xx View Post
Hello,

Is there a kind soul out there that can help me with getting this EA working? I found this indicator (ABC.mq4) on a forum and would like to make a EA out of it, a friend of mine tried to make one but it dosent work (ABC EA.mq4). The indicator is really simple it signals buy/sell situations using arrows and i would like the EA to open a trade at the exact time a buy or sell arrow appears with TakeProfit and StopLoss parameters defineable by the user (preferably in pips)

I attach both the EA and the indicator so hopefully you guys don't need to make the EA from scratch. All help is appreciated.

Attachment 11806
Attachment 11807

Thanks
there is a mistake in calling the indicator! replace these lines in the EA:
Quote:
double abc0 = iCustom(Symbol(),0,"ABC",0,1); double abc1 = iCustom(Symbol(),0,"ABC",1,1); with double abc0 = iCustom(Symbol(),0,"ABC",false,0,1); double abc1 = iCustom(Symbol(),0,"ABC",false,1,1);
Note the difference?..false. The indicator has it as an input. Good luck!

Last edited by skaboy; 01-31-2013 at 11:56 PM.
Reply With Quote
  #4 (permalink)  
Old 08-29-2013, 07:59 AM
Forex Trader
 
Join Date: Aug 2013
Location: remotely. travel a lot
Posts: 21
fxman74 is on a distinguished road
Default

this EA is badly coded, you can only have 1 order Open on your entire MT4 account. maybe that is your issue.

You will need to change this if(abc0<1000 && i==0) to if(abc0<1000 && i < MaxTrades)

and put the Maxtrades as

Extern int Maxttrades = 10;
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do You Have Profit Making Ea? WAI WONG MetaTrader and ZeroCode 28 03-22-2011 11:16 AM
Making Pips daily and how too. and this does work and its simple streetlight Indicators 11 01-16-2011 03:04 PM
Need a help making EA trenars System Coding 1 06-20-2009 02:55 PM
Making my first post to say... FilbertMcNoggin General Trading Talk 0 02-25-2009 11:17 AM
problem with making EA forextrader1111 MetaTrader and ZeroCode 0 12-04-2008 07:18 AM


All times are GMT. The time now is 09:32 PM.

Registered members gain free access to online FOREX currency trading tools, foreign exchange software, Metatrader MT4/MT5 expert advisors, MT4 indicators and EAs. Register now