Forex



Go Back   Forex Trading > Discussion Areas > General Discussion
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 04-21-2009, 12:52 PM
Junior Member
 
Join Date: Apr 2009
Posts: 4
reddog73 is on a distinguished road
Need help on writing code for EA strategy

Rules for a Long Trade

1. Look for currency pair trading below the 20-period EMA and MACD to be negative.
2. Wait for price to cross above the 20-period EMA, then make sure that MACD is either in the process of crossing from negative to positive or has crossed into positive territory no longer than five bars ago.
3. Go long 10 pips above the 20-period EMA.
4. For an aggressive trade, place a stop at the swing low on the five-minute chart. For a conservative trade, place a stop 20 pips below the 20-period EMA.
5. Sell half of the position at entry plus the amount risked; move the stop on the second half to breakeven.
6. Trail the stop by breakeven or the 20-period EMA minus 15 pips, whichever is higher.

Rules for a Short Trade

1. Look for the currency pair to be trading above the 20-period EMA and MACD to be positive.
2. Wait for the price to cross below the 20-period EMA; make sure that MACD is either in the process of crossing from positive to negative or crossed into negative territory no longer than five bars ago.
3. Go short 10 pips below the 20-period EMA.
4. For an aggressive trade, place stop at the swing high on a five-minute chart. For a conservative trade, place the stop 20 pips above 20-period EMA
5. Buy back half of the position at entry minus the amount risked and move the stop on the second half to breakeven.
6. Trail stop by lower of breakeven or 20-period EMA plus 15 pips


MACD histogram is the default, which is first EMA = 12, second EMA = 26, signal EMA = 9, all using the close price.
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 04-21-2009, 01:06 PM
Junior Member
 
Join Date: Dec 2007
Location: France
Posts: 21
Pat46 is on a distinguished road
This strategy is from Kathy Lien. I wrote an EA for it.
__________________
Pat
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 04-21-2009, 02:39 PM
Junior Member
 
Join Date: Apr 2009
Posts: 4
reddog73 is on a distinguished road
Quote:
Originally Posted by Pat46 View Post
This strategy is from Kathy Lien. I wrote an EA for it.
Can you share?
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 04-21-2009, 03:05 PM
Junior Member
 
Join Date: Dec 2007
Location: France
Posts: 21
Pat46 is on a distinguished road
Yes but it runs under FxWizard. See S-P-LOG
__________________
Pat
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 04-21-2009, 03:23 PM
Junior Member
 
Join Date: Apr 2009
Posts: 4
reddog73 is on a distinguished road
I went to your website but cant find any link.
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
  #6 (permalink)  
Old 04-21-2009, 03:30 PM
Junior Member
 
Join Date: Dec 2007
Location: France
Posts: 21
Pat46 is on a distinguished road
You should try Software, then Screen captures
__________________
Pat
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
  #7 (permalink)  
Old 04-21-2009, 03:34 PM
Junior Member
 
Join Date: Dec 2007
Location: France
Posts: 21
Pat46 is on a distinguished road
As soon as possible I will optimize this expert again, then post result. I already optimized it but I mislaid results....
__________________
Pat
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
Is $150 too much for writing a program? Willis11of12 General Discussion 33 06-12-2008 11:09 AM
I need help writing an EA for a simple system pip_taker Suggestions for Trading Systems 5 09-06-2007 04:57 PM
Writing indicator value into external file pawelsz Indicators - Metatrader 4 5 02-09-2007 04:01 AM
Help with writing your own strategies hitman22 Metatrader 4 2 03-15-2006 11:22 AM
newbie need help to code my strategy to autotrade shwetha Suggestions for Trading Systems 16 03-12-2006 06:18 AM


All times are GMT. The time now is 08:14 AM.



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