Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
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 03-19-2007, 09:45 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 336
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, 1152 views)

Last edited by jlpi; 04-24-2007 at 10:30 AM.
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 03-19-2007, 11: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!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 03-19-2007, 12:07 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 336
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, 2785 views)
Attached Files
File Type: htm JLPiGrid.htm (66.8 KB, 684 views)
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 03-19-2007, 02:01 PM
TimeFreedom's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 484
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!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 03-19-2007, 02:23 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 368
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!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 03-19-2007, 03:05 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 336
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!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 03-19-2007, 03:09 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 336
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 03-20-2007, 12:26 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 03-20-2007, 12:53 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 336
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 03-20-2007, 02: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!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

Tags
carry grid ea, forex grid ea, grid ea, grid ea forex, JLPi Grid, jlpigrid, ERR_INVALID_TRADE_VOLUME, JLPi Grid ea, forex


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
Grid Trading! 400396 General Discussion 1 05-20-2007 09:48 AM
leuiture grid need!!! sps8 Indicators - Metatrader 4 3 05-11-2007 07:11 AM
grid trapping teldon Expert Advisors - Metatrader 4 3 04-19-2007 02:31 PM
Grid Ea GRIDMAKER Expert Advisors - Metatrader 4 7 04-15-2007 09:33 PM


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



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