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

 
 
LinkBack (1) Thread Tools
 
Old 03-19-2007, 07:45 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
JLPi Grid EA

Hello,

first a short introduction:

I am a trend follower and have profitable EA for such purposes, but as real trend following systems they don't trade very often (in average once a week per EA), so I have some time to check the forums for new ideas and test also some ideas. Here is one.

I am not fond of systems that are averaging down like martingale EAs or even Grid EAs but I am at least testing some of them because you need to keep your mind open.
Grid systems have at least the advantage of not increasing the lot size when the market is moving against them, so they will resist better in adverse conditions.

Then I made my own Grid EA. I know that others exist but I prefer to do my own because I can better control the behaviour of the EA.
Many grid Eas send a lot of limit orders at the beginning but I prefer to keep the grid "in memory" and send the orders when the price is reached. (I think that the brokers will also prefer that)
I also filter the direction of the orders according to a long term moving average. So if the trend is up I will send only Buy, and if down only Sell.
I have also an ADX filter to send the orders in both directions if the trend is too weak, but for the moment I keep this parameter low because the filtering according to the MA only looks OK.
I also close the grid regularly in order to avoid too big positions open against me. So I close my grid when I have got 5% increase in my equity.

I have run it on USDJPY H1 (Time frame shouldn't matter) and it gives steady profits. The parameters value are as default.

Please test it on other pairs, make comments remarks, suggestion for improvement.

I will keep the "official" version on this first post.

Have fun and good testing !

(edited)
new version with variable lots size, a bug corrected for Intervals with JPY pairs, and different intervals if the pair is trending (TrendInterval) or ranging (TrendInterval*MultiplierTrendInterval)

(edited 2)
new Parameter MicroLots to tell if you accept 0.01 lots or not

(edited 3)
new Parameter MinLots for the starting size Lots. default is 0.1 but you can put 0.01 for IBFX for instance.

(edited 4)
New parameter StopLoss. If set to 0 it means no stop loss as it was before and a value >0 means a stop loss of this value in points.
Attached Files
File Type: mq4 JLPiGrid.mq4 (8.0 KB, 614 views)

Last edited by jlpi; 04-24-2007 at 09:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-19-2007, 09:26 AM
Senior Member
 
Join Date: Oct 2006
Posts: 183
Trader83 is on a distinguished road
Quote:
Hello,

first a short introduction:

I am a trend follower and have profitable EA for such purposes, but as real trend following systems they don't trade very often (in average once a week per EA), so I have some time to check the forums for new ideas and test also some ideas. Here is one.

I am not fond of systems that are averaging down like martingale EAs or even Grid EAs but I am at least testing some of them because you need to keep your mind open.
Grid systems have at least the advantage of not increasing the lot size when the market is moving against them, so they will resist better in adverse conditions.

Then I made my own Grid EA. I know that others exist but I prefer to do my own because I can better control the behaviour of the EA.
Many grid Eas send a lot of limit orders at the beginning but I prefer to keep the grid "in memory" and send the orders when the price is reached. (I think that the brokers will also prefer that)
I also filter the direction of the orders according to a long term moving average. So if the trend is up I will send only Buy, and if down only Sell.
I have also an ADX filter to send the orders in both directions if the trend is too weak, but for the moment I keep this parameter low because the filtering according to the MA only looks OK.
I also close the grid regularly in order to avoid too big positions open against me. So I close my grid when I have got 5% increase in my equity.

I have run it on USDJPY H1 (Time frame shouldn't matter) and it gives steady profits. The parameters value are as default.

Please test it on other pairs, make comments remarks, suggestion for improvement.

I will keep the "official" version on this first post.

Have fun and good testing !
Hello, jlpi! Have you backtested your EA? May I ask, what trend following EA's do you use?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-19-2007, 10:07 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
Quote:
Originally Posted by Trader83
Hello, jlpi! Have you backtested your EA? May I ask, what trend following EA's do you use?
Yes I have backtested it on USDJPY H1

Attached is the result. Not marvelous but steady. I requires of course a certain account size.

The trend following EA's are personal ones. And I don't give them for free to the community because it has required a lot of time (not to code but to find the proper ideas) and the key idea didn't come from a forum.
Attached Images
File Type: gif JLPiGrid.gif (6.3 KB, 1764 views)
Attached Files
File Type: htm JLPiGrid.htm (66.8 KB, 554 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-19-2007, 12:01 PM
TimeFreedom's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 483
TimeFreedom is on a distinguished road
JLPi,

I appreciate you posting your EA. I will try and start testing on EURUSD and AUDUSD soon. Should I use the default OOTB settings or do you have optimized settings / presets?

TimeFreedom
__________________
"Believe none of what you hear and half of what you see."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-19-2007, 12:23 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 353
leeb is on a distinguished road
Hi JLPi, the system looks good - have you tested on other timeframes / pairs ? would running on a lower timeframe mean more trades and thus more profitable ? Just a thought. Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-19-2007, 01:05 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
Quote:
Originally Posted by TimeFreedom
JLPi,

I appreciate you posting your EA. I will try and start testing on EURUSD and AUDUSD soon. Should I use the default OOTB settings or do you have optimized settings / presets?

TimeFreedom
I think that you should first try with the default settings because it is good if it is robust with the same settings accross different pairs.
But feel free to change them because it may be needed to be adjusted by pair.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-19-2007, 01:09 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
Quote:
Originally Posted by leeb
Hi JLPi, the system looks good - have you tested on other timeframes / pairs ? would running on a lower timeframe mean more trades and thus more profitable ? Just a thought. Cheers
Normally time frame should'nt affect because it is not using any indicator related to a time frame but just price levels. So the trades and results are the same with any time frame (normally).
To get more trades you need to decrease the value of "Interval" but it may play against you if the trend is against you.

I have tested a bit on EURUSD and it was OK as well. But I hope that other people have also accurate data on other pairs and then will help in testing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-20-2007, 10:26 AM
Member
 
Join Date: Oct 2006
Posts: 33
Kaper is on a distinguished road
I cannot get this EA to trade either on demo account or in backtester. What am I doing wrong.

Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-20-2007, 10:53 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
Quote:
Originally Posted by Kaper
I cannot get this EA to trade either on demo account or in backtester. What am I doing wrong.

Kevin
Difficult to say with just this statement. I know that it works for other people at least on backtester.
what currency do you use, what time period do you use?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 03-20-2007, 12:08 PM
Junior Member
 
Join Date: Mar 2006
Posts: 2
TadasG is on a distinguished road
Backtests looks very impressive, at least for me. I will start testing it on next monday. Nice work, jlpi.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Bookmarks

Tags
grid ea, jlpigrid, grid ea forex
Thread Tools

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/expert-advisors-metatrader-4/6564-jlpi-grid-ea.html
Posted By For Type Date
The P.I.D. Professional SP4 - Page 3 This thread Refback 08-13-2008 05:34 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid Trading! 400396 General Discussion 1 05-20-2007 08:48 AM
leuiture grid need!!! sps8 Indicators - Metatrader 4 3 05-11-2007 06:11 AM
grid trapping teldon Expert Advisors - Metatrader 4 3 04-19-2007 01:31 PM
Grid Ea GRIDMAKER Expert Advisors - Metatrader 4 7 04-15-2007 08:33 PM


All times are GMT. The time now is 10:52 AM.



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