|
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.
Last edited by jlpi; 04-24-2007 at 09:30 AM.
|