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

Reply
 
LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-16-2006, 12:40 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile Automated MACD Trader

Can someone please help me how to make Automated MACD Trader, trailing stop and ability to change the MACD Default settings....

Thanks
Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2006, 03:28 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by babarmughal
Can someone please help me how to make Automated MACD Trader, trailing stop and ability to change the MACD Default settings....

Thanks
Babar
Hi Babar, I think the auto-script already there, it's EA sample on every MetaTrader 4 installation. Try to find "MACD Sample" on your experts advisor list. Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2006, 03:50 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Thanks David,

Yes there is MACD sample in my EA but I want to make an EA based on histogram..that BUY when the first histogram bar closes above "0" and sell when the first histogram bar closes below zero ....and at the same time it has to close the long position......I wonder if someone can make EA for this...

Thanks
Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2006, 12:48 AM
iboersma's Avatar
Junior Member
 
Join Date: Apr 2006
Posts: 22
iboersma is on a distinguished road
Quote:
Originally Posted by babarmughal
Thanks David,

Yes there is MACD sample in my EA but I want to make an EA based on histogram..that BUY when the first histogram bar closes above "0" and sell when the first histogram bar closes below zero ....and at the same time it has to close the long position......I wonder if someone can make EA for this...

Thanks
Babar
Babar,

Please check out the standard MACD EA that's included with your MT4 installation. It functions much the same way you describe your "perfect" MACD EA.

- Ian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-17-2006, 07:15 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Thanks Ian,

I have seen what came with the MT4 but it does involve Moving Av. and i dont want that ...and there is nothing mentioned about the Histogram Bar...I dont know the programming alot..need some help...

Thanks
Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-17-2006, 07:57 PM
niva's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 101
niva is on a distinguished road
Quote:
Originally Posted by babarmughal
Thanks David,

Yes there is MACD sample in my EA but I want to make an EA based on histogram..that BUY when the first histogram bar closes above "0" and sell when the first histogram bar closes below zero ....and at the same time it has to close the long position......I wonder if someone can make EA for this...

Thanks
Babar
Your idea is lot easier that the sample MACD, doesn't need to deal with the signal line at least.

If you open the MACD indicator, not the EA, with MataEditor, you can see it is actually use a iMA() function to sign values in to the ind_buffer1[] array. This how the indicator produced histogram.

When the histogram value is positive the iMA() value is also positive. Hope you understand the mechanism.

Similarly, the indicator use this line to produce the red signal line.
ind_buffer2[i]=iMAOnArray(ind_buffer1,Bars,SignalSMA,0,MODE_SMA, i);
__________________
Forex TSD is NO. 1
EA's blog: http://eaconfigs.blogspot.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-17-2006, 08:39 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

HI,

can Someone please post a rough programming ....so I can start working on it...

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-17-2006, 10:21 PM
niva's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 101
niva is on a distinguished road
babar

Have you programmed with some PC languages, like C or JAVA? If the answer is negative, MQL4 is too difficult for you.

The way for a programmer to learn a new language is to read the source codes. For those who know nothing about programming, I suggest them the most clever and efficient way--go to take a class.

To be a indicator designer, there are just too much things to learn and read. I have to understand the statistics as well as sources codes behind every indicator. So I choose to work on existing methods from other people, and try out different combinations.
__________________
Forex TSD is NO. 1
EA's blog: http://eaconfigs.blogspot.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-17-2006, 11:19 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Thanks for your reply.....but there must be someone here who can make and EA for MACD.....thanks....HELP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-17-2006, 11:36 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by babarmughal
Thanks for your reply.....but there must be someone here who can make and EA for MACD.....thanks....HELP
Hi babar, give me some time, I'll post it later on today. Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
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/expert-advisors-metatrader-4/1726-automated-macd-trader.html
Posted By For Type Date
Automated Trading Forex Expert Advisor This thread Refback 12-07-2007 08:53 AM
Forex Auto Trading Script This thread Refback 06-29-2007 03:12 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
SIMPLE-MACD-EA : An extremely simple EA based on 2 channels of MACD. Try it! investor_me Expert Advisors - Metatrader 4 31 07-30-2008 09:59 AM
Automated Trendline Trader fxid10t Expert Advisors - Metatrader 4 36 05-15-2008 09:49 AM
Automated traiding using MT4 druelus Metatrader 4 2 04-27-2007 01:28 PM
macd signal and macd value cross boostrade Expert Advisors - Metatrader 4 1 02-04-2007 04:33 PM
MACD-WDD (MACD-Simple on GBPUSD) PluT0 Expert Advisors - Metatrader 4 1 12-18-2005 12:30 AM


All times are GMT. The time now is 06:33 AM.



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