Forex



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
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2008, 05:02 PM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
request custom ea

Hi, everyone...

this is my first post and I'm not sure if this is the right place or not, so if not, please let me know!

I have a system that works pretty well for me on the AUD/JPY on the 1-minute chart (nets 200-300 pips a day). Would love to find an ea for it! I can't always watch the screen so I miss signals sometimes.

Very simple system...

Indicators:

100 LWMA (linear weighted) applied to close
3 SMA (smoothed) applied to high
3 SMA (smoothed) applied to low

When the 3 SMA applied to the high crosses down thru the 100 LWMA, Sell
When the 3 SMA applied to the low crosses up thru the 100 LWMA, Buy

You are always in a trade with this, I would like an ea that closes and reverses the position at every signal. Also manual lot size, and it would be great if I could stipulate the time of day that it runs. Since I trade manually I only trade from 8am EST to maybe 11pm EST, and not sure if it would be better to run it 24/7 or just during the day (in other words, not sure how it does with Asian session, etc). Also options for stop loss and break even. I don't actually set an initial stop loss but do usually set a stop to break even after a gain of 30 pips or so.

I actually have been using a different MA than the 100 LWMA but have found the 100 LWMA to be extremely close to the one I use. I use the xpma indicator, with a 28 period DEMA (MA_Type 4 on the indicator, attached). Really not sure which MA is better, they seem to be very close, so I figure it would be easier to make an EA with the more "normal" MA, which is the 100 LWMA.

thanks!
Attached Files
File Type: mq4 xpMA.mq4 (10.2 KB, 46 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
  #2 (permalink)  
Old 11-25-2008, 09:36 PM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
ok, I created my own ea using the ExpertAdvisorBuilder site, and it's working pretty well. However, there are no options to add a BreakEven stop, and I don't know how to do it. I tried a few things (copying code from other ea's that have a breakeven stop) but have not been able to get it to work. I really don't know that much about the coding.

Does anyone have any idea how to add a breakeven stop to the existing ea?

thanks

Last edited by celticheart; 11-26-2008 at 12:44 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
  #3 (permalink)  
Old 11-26-2008, 12:47 AM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
Corrected ea....

if anyone can figure out how to add a break even stop that would be great! I find that in the beginning of the trade, if it get to +30 pips and then turns around, it will probably go back over the line and into a reverse trade. So with a break even stop you can save some pips. But after it gets past that, it's better to let it run and see what happens, so I don't like to use the trailing stops.
Attached Files
File Type: mq4 MARibbon.mq4 (10.0 KB, 37 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 11-26-2008, 03:25 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
celticheart

I cannot write EA's...but I am impressed how you went to that builder site on your own and did it...

Can you post the smoothed indicators below...the ones in mt4 are not smoothed.

ES



Quote:
3 SMA (smoothed) applied to high
3 SMA (smoothed) applied to low

Last edited by ElectricSavant; 11-26-2008 at 03:27 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
  #5 (permalink)  
Old 11-26-2008, 09:44 AM
Junior Member
 
Join Date: Nov 2006
Posts: 18
hayseed is on a distinguished road
breakeven

hey celtiheart...... below is your ea with breakeven......

you'll notice the new inputs,
//-------
Code:
extern int    breakeven               =     30;   
extern int    addbreak                 =      0;
extern int    MagicNumber           = 120000;
extern int    fastperiods              =      3;
extern int    slowperiods             =    100;
//------

you mentioned 30 so the adjustable breakeven threshold by default is 30.....

the addbreak variable, default 0, is for instances when you might want to protect a small amount rather than a flat breakeven..... as example, a setting of 20 would roughly protect 20 pips of profit..... again, roughly.....

the fastperiods , default 3, and slowperiods, default 100, inputs allow you to vary your ma periods....

the magicnumber has been changed to 120000..... this is to avoid conflicts with all orders not placed your ea.....h
Attached Files
File Type: mq4 MARibbon w breakeven.mq4 (11.3 KB, 49 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
  #6 (permalink)  
Old 11-26-2008, 03:13 PM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
celticheart

I cannot write EA's...but I am impressed how you went to that builder site on your own and did it...

Can you post the smoothed indicators below...the ones in mt4 are not smoothed.

ES
Hi... yes, is it built in to MT4. Just add a moving average, then from the dropdown box you can select MA Method, with choices of simple, exponential, smoothed and linear weighted.

Attached a template for you with the MA's, just copy it to your templates folder. The two smoothed ma's make a "ribbon" that crosses back and forth over the 100 LWMA. When you use the two smoothed MA's with the high and low, it eliminates a lot of false signals you would get if you only use one smoothed MA applied to the close.
Attached Files
File Type: tpl maribbon.tpl (30.2 KB, 27 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
  #7 (permalink)  
Old 11-26-2008, 03:28 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
Yeah your right-duh!.... smoothed is there...

How come the entries you make with the EA set the little marker-arrows on the charts so far off from the price? I know the spread is big in the AUD/JPY....but do you enter long using the ask and short using the bid?

ES


Quote:
Originally Posted by celticheart View Post
Hi... yes, is it built in to MT4. Just add a moving average, then from the dropdown box you can select MA Method, with choices of simple, exponential, smoothed and linear weighted.

Attached a template for you with the MA's, just copy it to your templates folder. The two smoothed ma's make a "ribbon" that crosses back and forth over the 100 LWMA. When you use the two smoothed MA's with the high and low, it eliminates a lot of false signals you would get if you only use one smoothed MA applied to the close.
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 11-26-2008, 03:50 PM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
Quote:
Originally Posted by hayseed View Post
hey celtiheart...... below is your ea with breakeven......
Wow, thanks!!! I will try that out. I am still tweaking the ea.... I've never made one before and it's a lot different when it's automatic than when I do it manually. When I'm doing it manually, I wait for the close, then run a "close and reverse" script, but the ea made with the Expert Builder has quite a delay if you wait for the close. It won't open a new order until the close of the following candle, which is a bit late. So I used "every tick" mode, which has pros and cons... sometimes it will open an order which I probably wouldn't have if doing it by sight.

And I've never traded in the middle of the night (I live in Florida) so had no idea how the system would work during the Asian session. I let the ea run last night on demo and if last night is any indication, don't use it at night! LOL As with pretty much any system, it's not going to work if the market is really choppy and it seems to be more so during the Asian session (although it usually works pretty well til 10pm or 11pm EST, which is into the first few hours of the Asian session).

And I guess the system would work on other pairs and other timeframes, but I have the best luck with AUD/JPY on one 1-minute chart. It moves a lot but is a bit less volatile than GBP/JPY so it seems to work better. And even though I use this on the 1-minute chart, it is not by any means a scalping system... sometimes the trades last for hours, up to 8 hours. Although it is definitely an intraday system.

Still undecided if it's better in the long run not to use "tick mode." Or just use common sense and don't run it if the market is really choppy and the MA's keep going back and forth across the 100 LWMA

Generally speaking, this system works really well for me, averaging 200-300 pips a day net on the AUD/JPY, 1-min chart. But that's doing it manually, it's different when it's automated, as the ea might take some trades that I wouldn't when just looking at it. The problem with doing it manually is that I always have to watch and can't ever go anywhere!
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 11-26-2008, 03:52 PM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
Yeah your right-duh!.... smoothed is there...

How come the entries you make with the EA set the little marker-arrows on the charts so far off from the price? I know the spread is big in the AUD/JPY....but do you enter long using the ask and short using the bid?

ES
Yes, it's because of the spread.... I use FXDD broker and the spread for AUD/JPY is 6 pips. Which isn't bad considering how much the pair moves compared to others.
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 11-26-2008, 04:03 PM
Junior Member
 
Join Date: Aug 2008
Posts: 18
celticheart is on a distinguished road
Quote:
Originally Posted by hayseed View Post
hey celtiheart...... below is your ea with breakeven......
Wow, thanks!!! I will try that out. I am still tweaking the ea.... I've never made one before and it's a lot different when it's automatic than when I do it manually. When I'm doing it manually, I wait for the close, then run a "close and reverse" script, but the ea made with the Expert Builder has quite a delay if you wait for the close. It won't open a new order until the close of the following candle, which is a bit late. So I used "every tick" mode, which has pros and cons... sometimes it will open an order which I probably wouldn't have if doing it by sight.

And I've never traded in the middle of the night (I live in Florida) so had no idea how the system would work during the Asian session. I let the ea run last night on demo and if last night is any indication, don't use it at night! LOL As with pretty much any system, it's not going to work if the market is really choppy and it seems to be more so during the Asian session (although it usually works pretty well til 10pm or 11pm EST, which is into the first few hours of the Asian session).

And I guess the system would work on other pairs and other timeframes, but I have the best luck with AUD/JPY on one 1-minute chart. It moves a lot but is a bit less volatile than GBP/JPY so it seems to work better. And even though I use this on the 1-minute chart, it is not by any means a scalping system... sometimes the trades last for hours, up to 8 hours. Although it is definitely an intraday system.

Still undecided if it's better in the long run not to use "tick mode." Or just use common sense and don't run it if the market is really choppy and the MA's keep going back and forth across the 100 LWMA

Generally speaking, this system works really well for me, averaging 200-300 pips a day net on the AUD/JPY, 1-min chart. But that's doing it manually, it's different when it's automated, as the ea might take some trades that I wouldn't when just looking at it. The problem with doing it manually is that I always have to watch and can't ever go anywhere!

I've compared the code in the two files, so if I make any more adjustments to the original ea I will be able to add the breakeven stop.

Thanks so much!
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

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
Custom EA MT4 Needed riccimc Expert Advisors - Metatrader 4 1 08-01-2007 08:45 AM
Custom ahmad.ariffin Indicators - Metatrader 4 0 03-29-2007 05:04 PM
Request for custom crossover expert thn5625 Expert Advisors - Metatrader 4 2 01-26-2007 07:22 PM
Need an MT4 custom indicator wadeboxjr Metatrader 4 1 08-22-2006 09:50 PM
Custom Chart Request-calling all programmers Aaragorn Metatrader 4 6 06-16-2006 01:18 AM


All times are GMT. The time now is 02:23 PM.



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