Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > 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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-30-2007, 07:21 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 353
leeb is on a distinguished road
A new expert I created

Hi Everyone,

I found the following system very interesting:
http://www.forexfactory.com/showthread.php?t=11937

so after quite a bit of work coding it I came up with the expert I've attached and decided to share it with you guys.

It seems profitable in GBP/USD daily timeframe but I think it needs a few bugs looking at as am not sure its following the logic 100%

Anyway I've attached the file...
Attached Files
File Type: mq4 WealthBuilder.mq4 (4.9 KB, 152 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-30-2007, 07:22 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 353
leeb is on a distinguished road
If anyone could check the logic and make sure it meets the rules of:
http://www.forexfactory.com/showthread.php?t=11937

that'd be great - thanks guys, hope you find the expert interesting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-30-2007, 08:40 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by leeb
If anyone could check the logic and make sure it meets the rules of:
http://www.forexfactory.com/showthread.php?t=11937

that'd be great - thanks guys, hope you find the expert interesting
Hi leeb. I appreciate you bringing this to our attention. Your code seems to follow the rules but there is a slight error with the 'Orderselect' function - used '0' instead of 'cnt'. Also, as there is no checks for orders opened by others EAs or for the magic numbers of any trades, so this should only be used in isolation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-30-2007, 09:09 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 353
leeb is on a distinguished road
Hey Omlette - thanks for the input, I think if the bugs were cleaned up this could have potential
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-30-2007, 10:34 PM
Junior Member
 
Join Date: Sep 2005
Posts: 13
james2ko is on a distinguished road
Nice job leeb..Thank you for sharing your hard work. Although I see there's a trailing stop in the EA. I know the creators first post says trailing stop but it was later changed to a 30 pip fixed stop.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-31-2007, 12:00 AM
dabella's Avatar
Junior Member
 
Join Date: Jan 2007
Posts: 22
dabella is on a distinguished road
Leeb,

i tried the EA in strategy tester but i dont get any trade...

Perhaps i have to change a parameter?

thanks,
Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-31-2007, 01:15 AM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
Hey Leeb,
I would like to point you to this thread as well....
http://www.forexfactory.com/showthread.php?t=13507

Same guy, same basic strategy, but on a daily timeframe. I would think at this point it would be easy to plug this one in. And just a thought, as i have been manually exploring this system. The possibility of a trailing buy/sell stop to go with the trailing stop. So if your stopped out, your right back in the other way. I know this or the trail isnt with the system, but looks like it might work a little better, but thats just a visual backtest.

Also, EA wont open any trades for me either. Looks like you have it coded for the weekly TF maybe? Maybe for it to work with both systems you could put an int for lookback and we could run on the daily for weekly, and hourly for daily. The weekly could go on the daily with a lookback of 5, and daily on hourly for 24 or daily for 1. Matter of fact you could run any # of bars on any timeframe - Duhh me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-31-2007, 02:17 AM
Senior Member
 
Join Date: Oct 2005
Posts: 328
Perky is on a distinguished road
Leeb nice first attempt

I made a few changes so it backtests like grabbing the weekly close
and "len" needed to be * point to make sense


it now back tests

in the logic im not sure what you meant by

if(Close[0]>long) // no such thing as Close[0] as o is latest baras 0 is the CURRENT bar it has no close so I changed it to
bar1

if(Close[1]>long) // no such thing as Close[0] as o is latest bar
just to see what it would do

it backtests and makes a profit lol
Attached Files
File Type: mq4 WealthBuilderV1.mq4 (5.4 KB, 136 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-31-2007, 02:56 AM
Senior Member
 
Join Date: Oct 2005
Posts: 328
Perky is on a distinguished road
correction it needs 50,000$ in backtest as the stoploss is 999


now that i can see the backtest I think the tailing stop is a bit spastic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-31-2007, 03:03 AM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
Stop should be 30. Tried that and it doesnt stop, just margin on one trade. Heres the rules...
Create a weekly chart. Place trades 50 PIPS above or below the close for the previous week. Use 30 PIP trailing stopsThis was changed in a later post, should just be SL. No profit targets. Let the trade run for the entire week and close during the final 30 minutes of the market for the week. The great feature of this system is that more often than not the weekly trend will establish itself and stay in tact from the Monday or Tuesday of the trading session for that week.

GBP/USD Example:

Previous weekly close: 1.9597
Buy: 1.9647
Sell: 1.9547

The following rule is a bit different than most trading systems of this style:

If the "Buy" is executed, move the sell up to the previous weeks close (1.9597 in this case)

If the "Sell" is executed, move the buy down to the previous weeks close (in this case likewise 1.9597)

These two rules permit a more robust and agressive entry after losing trades.

Recommend volatile markets (USD/CHF, GPB/USD, etc.)

Here is the current trade that I am in using the GPB/USD:

Short 1.9597 after a 30 PIP loss on the "Buy" trade.

Use 30 PIP stops.
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 Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-4/5739-new-expert-i-created.html
Posted By For Type Date
EA for TKimble's system This thread Refback 03-04-2008 06:35 PM
Part Time Wealth Building Trading System - Weekly Scalping - Page 55 This thread Refback 07-16-2007 02:01 PM
EA for TKimble's system @ Forex Factory This thread Refback 06-23-2007 01:19 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need reliable Stochastics EA created please!? pikachucom General Discussion 9 06-30-2006 05:44 PM
Expert Question and Expert mj10 Expert Advisors - Metatrader 4 24 03-27-2006 01:31 PM


All times are GMT. The time now is 01:17 AM.



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