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 11-27-2006, 10:42 PM
Junior Member
 
Join Date: Nov 2006
Posts: 6
FibzY is on a distinguished road
Need help making an EA

I have found a system that would work well as an EA but i have absolutely no knowledge of programming so could someone please help me out?

This is the outline of the system im using:

30min Chart
A RSI that is set to 45, with a line of 50(the standard is 70 and 30)
A 5 Period SMA.

When the RSI line crosses above 50 and reaches 52 AND the price is 5 pips or more above the moving average I buy. To close the position the RSI line has to cross below 50 and reach 48 AND the price must be 5 pips below the moving average. Visa versa for a sell position. Basically when one position is closed, another is opened in the opposite direction. The EA must also only be set to have a maximium of one position open at a time.

If an EA can be made to do this and someone is willing i would very much appreciate that


FibzY.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-27-2006, 11:21 PM
Senior Member
 
Join Date: Sep 2005
Posts: 250
aelimian is on a distinguished road
Quote:
Originally Posted by FibzY
I have found a system that would work well as an EA but i have absolutely no knowledge of programming so could someone please help me out?

This is the outline of the system im using:

30min Chart
A RSI that is set to 45, with a line of 50(the standard is 70 and 30)
A 5 Period SMA.

When the RSI line crosses above 50 and reaches 52 AND the price is 5 pips or more above the moving average I buy. To close the position the RSI line has to cross below 50 and reach 48 AND the price must be 5 pips below the moving average. Visa versa for a sell position. Basically when one position is closed, another is opened in the opposite direction. The EA must also only be set to have a maximium of one position open at a time.

If an EA can be made to do this and someone is willing i would very much appreciate that


FibzY.
Thank you. The 5 pips above or below the SMA, is that the close of the 30 min bar or prize at any time?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-27-2006, 11:43 PM
Junior Member
 
Join Date: Nov 2006
Posts: 6
FibzY is on a distinguished road
Hi aelimian,

Its price at any time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-28-2006, 12:51 AM
Senior Member
 
Join Date: Nov 2005
Posts: 169
mangman is on a distinguished road
This is my attempt at coding this into and EA.

Please backtest it (including visually to check if it is ok)
Attached Files
File Type: mq4 Fibzy.mq4 (2.6 KB, 27 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-28-2006, 02:03 AM
Junior Member
 
Join Date: Nov 2006
Posts: 6
FibzY is on a distinguished road
Hi mangman,

Thanks for your efforts. I tested it and the results were not good. By looking at the graph, none of the entry and exit points matched up with the RSI criteria that my system uses, which explains the results as the RSI is my main indicator.

I tried looking at the code but that just confused me. Are you sure you set it to buy when the RSI line is at 52, and close the position when the RSI line is at 48, which will also trigger a sell position, and visa versa if it was a sell position?


Thanks again for your efforts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-28-2006, 05:53 AM
popok_sakti's Avatar
Senior Member
 
Join Date: Sep 2006
Posts: 106
popok_sakti is on a distinguished road
Hi,

I tried to modify the code,
but the performance seems not good,

Regs,
popok_sakti
Attached Files
File Type: mq4 Fibzy[.mq4 (2.7 KB, 15 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-28-2006, 06:04 AM
Mazoem's Avatar
Member
 
Join Date: Dec 2005
Location: Tulsa, OK USA
Posts: 59
Mazoem is on a distinguished road
Looks like the first one was set to enter at the 50 cross, but the second has been modified to 48 52 entries.
__________________
"Only those who dare to fail greatly can ever achieve greatly."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-28-2006, 06:16 AM
popok_sakti's Avatar
Senior Member
 
Join Date: Sep 2006
Posts: 106
popok_sakti is on a distinguished road
Quote:
Originally Posted by Mazoem
Looks like the first one was set to enter at the 50 cross, but the second has been modified to 48 52 entries.
Yes, As Fib said that the system should take long position when the RSI cross from 50 to 52 and short when RSI cross from 50 to 48

Regs,
popok_sakti
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-28-2006, 06:25 AM
Junior Member
 
Join Date: Nov 2006
Posts: 6
FibzY is on a distinguished road
I tested the modified EA, and its not right either.

I backtested for a year and it only took 2 positions?
I have manually backtested this system for Jan, Feb, Mar, Jun, Aug of this year with between 20 to 30 positions per month taken and an average of 900 pips profit a month. I don't know why the EA's arn't working....


Thanks for all the efforts and I hope we get this thing right!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-28-2006, 11:10 PM
Member
 
Join Date: Dec 2005
Posts: 59
adria is on a distinguished road
Fibzy,
what pair did you test manually?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a living out of FX. Possible? Diam0nd General Discussion 33 04-25-2007 03:04 AM
Help in making indicator Big Joe Indicators - Metatrader 4 3 04-12-2007 05:03 PM
Making an indicator to an EA YupYup Expert Advisors - Metatrader 4 2 10-19-2006 04:06 AM
Can someone please help me making EA for... babarmughal Expert Advisors - Metatrader 4 1 09-12-2006 03:02 PM


All times are GMT. The time now is 08:50 PM.



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