Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2006, 04:32 PM
Junior Member
 
Join Date: Aug 2006
Posts: 1
Neil is on a distinguished road
New EA help please

Hello all,
I have attempted my first EA and amazingly enough it actualy works,sort of.
The idea behind it is that when the price ,Hourly candle, closes below the 26 EMA it opens a short position and when the price closes above the 26 EMA it closes the short and opens a long position.
The problem I have, however, is that as the EA opens a new trade on the open of the next candle if either the profit target is hit or the trailing stop is hit on the previous candle, which I dont want it to do.I only want one trade in any direction.
The other thing I would like it to do is open 2 positions, when conditions are met, one with a "take profit" and another with a trailing stop.

Can anyone help or post a bit of code that may help?
Attached Files
File Type: zip takeprofit20.zip (1.7 KB, 29 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump


All times are GMT. The time now is 05:48 AM.



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