Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2009, 01:55 AM
Junior Member
 
Join Date: Nov 2008
Posts: 7
fbrooks is on a distinguished road
Need Help with EA to Buy then Sell using Alligator.

I have an EA that I used iExpertAdvisor software to code it but I still can't get it to work correctly.

Very simple concept. Using the alligator indicator I want to open a buy trade when the first candle opens above the Jaws for a set amount of takeprofit and stoploss.
But where I am having the problem is figuring out if I can set it to look only for Sell trades (when the first candle opens below the alligator) after a Buy trade has closed and visa versa.

Right now as soon as it closes an order it opens another one instantly. Don't want that.

I have looked for 2 weeks for some code that would do this and just spent $147.00 for this iExpertAdvisor software but I am about to pull my hair out now.

Needless to say I am not a coder, just trying to learn the basic. But I really want this EA to start testing.

Can anyone help PLEASE....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 03-21-2009, 03:42 AM
SPACECHIMP's Avatar
Member
 
Join Date: Feb 2006
Location: West Michigan, USA.
Posts: 86
SPACECHIMP is on a distinguished road
basically speaking you have to set a BOOLEAN to be true after a buy has been place and no additional buys get placed while it's true.
Boolean gets reset when SELL condition is met.

and do the opposite with another boolean variable after the sell is placed.

if that works, it'd be pretty simple

I've never heard of iExpertAdvisor, i'll have to go check that out
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 03-21-2009, 01:11 PM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Actually SC that won't solve his problem.

Somebody with a similar problem has been given the correct solution on this thread...

Code:
http://www.forex-tsd.com/expert-advisors-metatrader-4/18948-code-help-avoid-re-entry.html
Hope that helps.

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 03-21-2009, 03:31 PM
SPACECHIMP's Avatar
Member
 
Join Date: Feb 2006
Location: West Michigan, USA.
Posts: 86
SPACECHIMP is on a distinguished road
i don't know if that will solve this person's problem since that's based on re-opening on same bar only and this person wants based on cross up/down of a line. That could happen many bars after an order has closed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 03-21-2009, 03:58 PM
Junior Member
 
Join Date: Nov 2008
Posts: 7
fbrooks is on a distinguished road
Thanks guys for your replies, I really thought this would be really simply to do but I guess not. Just can't get it to work, but I am going to keep looking and learning until I get it right,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buy/sell EA excite2 Expert Advisors - Metatrader 4 84 08-17-2009 09:47 PM
Alligator EA stevetrader Expert Advisors - Metatrader 4 12 12-24-2008 02:33 PM
Don't SELL, just BUY it indratime Suggestions for Trading Systems 24 06-19-2007 12:23 AM
EAs that sell the ask and buy the bid... forextrades Expert Advisors - Metatrader 4 2 08-23-2006 02:58 AM
Sell here your EA ;) forexts Commercial Trading Systems and indicators 0 11-30-2005 04:46 PM


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



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.