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
  #11 (permalink)  
Old 12-30-2007, 04:29 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by davidke20 View Post
OK. Here you go. Good luck.

PHP Code:
extern int     Magic_number   =  772188;
extern int     Take_Profit    =  700;
extern int     Stop_Loss      =  70;
extern int     TrailingStop   =  70;
extern double  Lots           =  0.1// Lot size
extern int     Gap            =  20// Pending orders distance
extern int     Slippage       =  3// Slippage tolerence
extern int     Duration       =  0// Time to kill pending orders if untrigger
extern string  MACD_Setup;
extern int     Fast_EMA1      =  12;
extern int     Slow_EMA1      =  18;
extern int     Signal1        =  15;
extern double  Trigger1       =  0.0007;
extern int     Fast_EMA2      =  40;
extern int     Slow_EMA2      =  104;
extern int     Signal2        =  36;
extern double  Trigger2       =  0.0000;
extern bool    CloseNReverse  =  false// If opposite signal occur, close previous trade 
Regards

David
"extern int Duration = 0; // Time to kill pending orders if untrigger"
Is this in Days or Hours or Seconds?
Thanks
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
  #12 (permalink)  
Old 12-30-2007, 04:33 PM
Banned
 
Join Date: Nov 2007
Posts: 374
oilfxpro is on a distinguished road
Hi folks

Davidke 20 has done an excellent job.We can forward test this EA and then thank him fully for his effort

Most of you should spend some time testing the settings and optimisation.Your contribution can be in finding the best settings for all the currency pairs and posting them here.

Here are two instant profitable results from testing

There are many more which you can find,so please make an effort and post.

I have a busy schedule this week

OILFXPRO
Attached Images
File Type: gif OILFXPRO MACD.gif (6.1 KB, 585 views)
File Type: gif OILFXPRO MACD HOURLY.gif (6.1 KB, 588 views)
Attached Files
File Type: htm OILFXPRO MACD.htm (248.2 KB, 78 views)
File Type: htm OILFXPRO MACD HOURLY.htm (259.5 KB, 67 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
  #13 (permalink)  
Old 12-31-2007, 01:05 PM
davidke20's Avatar
Senior Member
 
Join Date: Sep 2006
Location: 38° 53′ 51.61″ N, 77° 2′ 11.58″ W
Posts: 1,492
davidke20 is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
"extern int Duration = 0; // Time to kill pending orders if untrigger"
Is this in Days or Hours or Seconds?
Thanks
Thanks for the question, it is a reminder for me in this case. I left out this important function, its not complete on the previous version. Please redownload the latest version.

Duration=Seconds to kill untrigger pending orders.

eg.
Duration=3600seconds
Open Pending Buy 1.2000 at 23:55
Trade not trigger
Kill Pending Buy 1.2000 at 00:55

eg2.
Duration=4200seconds
Open Pending Sell 115.00 at 15:00
Trade not trigger
Kill Pending Sell 115.00 at 14:10

Hope this help.

Regards

David
Attached Files
File Type: mq4 OILFXMACDv001.mq4 (6.8 KB, 266 views)
__________________
"All through time, people have basically acted and reacted the same way in the market as a result of: greed, fear, ignorance, and hope. That is why the numerical formations and patterns recur on a constant basis." - Jesse Lauriston Livermore

THE FOREX KNIGHT
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
  #14 (permalink)  
Old 01-03-2008, 01:05 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Could someone explain to me how to read the two MACD indicators so I know what triggers a trade, then I can adjust the indicator settings for other currencies.

also, David can you add in addition to the Duration option, to have another option of closing all pendings on a certain date, like if I wanted to close off all pendings at Friday 5:00PM so the EA can start fresh in the new week.

Thank you

Last edited by matrixebiz; 01-03-2008 at 01:32 PM.
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
  #15 (permalink)  
Old 01-03-2008, 02:09 PM
davidke20's Avatar
Senior Member
 
Join Date: Sep 2006
Location: 38° 53′ 51.61″ N, 77° 2′ 11.58″ W
Posts: 1,492
davidke20 is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
Could someone explain to me how to read the two MACD indicators so I know what triggers a trade, then I can adjust the indicator settings for other currencies.

also, David can you add in addition to the Duration option, to have another option of closing all pendings on a certain date, like if I wanted to close off all pendings at Friday 5:00PM so the EA can start fresh in the new week.

Thank you
Try this 1. If you use FridaySafe, it will close off all orders after broker time breached your preset HH:MM 24hr.

Regards

David
Attached Files
File Type: mq4 OILFXMACDv002.mq4 (9.1 KB, 99 views)
__________________
"All through time, people have basically acted and reacted the same way in the market as a result of: greed, fear, ignorance, and hope. That is why the numerical formations and patterns recur on a constant basis." - Jesse Lauriston Livermore

THE FOREX KNIGHT
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
  #16 (permalink)  
Old 01-03-2008, 03:06 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by davidke20 View Post
Try this 1. If you use FridaySafe, it will close off all orders after broker time breached your preset HH:MM 24hr.

Regards

David
Ok, thanks man, this setting will only close all Pending trades but leave the ones that are already triggered, correct?. Can you point me to the right thread that explains how to read the MACD indicators so I can understand when it signals. Not sure how the Red line corresponds to the Wave and what provides the signal to Buy or Sell. Thanks

Last edited by matrixebiz; 01-03-2008 at 03:25 PM.
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
  #17 (permalink)  
Old 01-03-2008, 04:14 PM
davidke20's Avatar
Senior Member
 
Join Date: Sep 2006
Location: 38° 53′ 51.61″ N, 77° 2′ 11.58″ W
Posts: 1,492
davidke20 is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
Ok, thanks man, this setting will only close all Pending trades but leave the ones that are already triggered, correct?. Can you point me to the right thread that explains how to read the MACD indicators so I can understand when it signals. Not sure how the Red line corresponds to the Wave and what provides the signal to Buy or Sell. Thanks
NO. It closes anything with the same magic number on the same symbol. MACD can have many usage, some people like to trade the Moving Average of Oscillator(OsMA). Some people like to trade the SMA9 and EMA12-26. The most top of the range is the real MACD trader because as the MACD name is Moving Average Convergence Divergence, its most effective to trade Convergence and Divergence. But trust me, I bet half the world of trader failed to practice it. Because when you put the indicator on the H4 chart for divergence trading purpose, you can hardly get a trade in a month, dont even mention daily. If you need more defination on MACD, you can just google it. Tons of free material out there.

Besides, this EA doesn't work with the traditional MACD trading. Its solely based on Cid's idea that when Histogram crossed 0.0007 to make a buy and -0.0007 to make a sell trade. So, here we are.

Regards

David
__________________
"All through time, people have basically acted and reacted the same way in the market as a result of: greed, fear, ignorance, and hope. That is why the numerical formations and patterns recur on a constant basis." - Jesse Lauriston Livermore

THE FOREX KNIGHT
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
  #18 (permalink)  
Old 01-03-2008, 04:20 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by davidke20 View Post
NO. It closes anything with the same magic number on the same symbol. MACD can have many usage, some people like to trade the Moving Average of Oscillator(OsMA). Some people like to trade the SMA9 and EMA12-26. The most top of the range is the real MACD trader because as the MACD name is Moving Average Convergence Divergence, its most effective to trade Convergence and Divergence. But trust me, I bet half the world of trader failed to practice it. Because when you put the indicator on the H4 chart for divergence trading purpose, you can hardly get a trade in a month, dont even mention daily. If you need more defination on MACD, you can just google it. Tons of free material out there.

Besides, this EA doesn't work with the traditional MACD trading. Its solely based on Cid's idea that when Histogram crossed 0.0007 to make a buy and -0.0007 to make a sell trade. So, here we are.

Regards

David
Ok, thanks for the explanation.
Can you make a new EA that adds to only closes the pendings on Friday.
Then that should be it
Thank you
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
  #19 (permalink)  
Old 01-03-2008, 06:40 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
@David, here is an EA that closes only pending orders. Can you use this code and have it only close on Fridays as you did with the previous EA and merge them since I only want it to close pendings on Friday according to magic Number not All trades Thanks


EDIT: Can I just delete the following code from your new EA, so it still leaves Active/open Buy/Sell positions? ;
Code:
//Close opened long positions
case OP_BUY  : result = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),Slippage,Pink);
                              break;
                 
//Close opened short positions
case OP_SELL : result = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),Slippage,Pink);
                              break;
Attached Files
File Type: mq4 Close all pending orders.mq4 (1.0 KB, 52 views)

Last edited by matrixebiz; 01-03-2008 at 09:06 PM.
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
  #20 (permalink)  
Old 01-03-2008, 11:45 PM
davidke20's Avatar
Senior Member
 
Join Date: Sep 2006
Location: 38° 53′ 51.61″ N, 77° 2′ 11.58″ W
Posts: 1,492
davidke20 is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
@David, here is an EA that closes only pending orders. Can you use this code and have it only close on Fridays as you did with the previous EA and merge them since I only want it to close pendings on Friday according to magic Number not All trades Thanks


EDIT: Can I just delete the following code from your new EA, so it still leaves Active/open Buy/Sell positions? ;
Code:
//Close opened long positions
case OP_BUY  : result = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),Slippage,Pink);
                              break;
                 
//Close opened short positions
case OP_SELL : result = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),Slippage,Pink);
                              break;

Yes, you are right. You can see my codes already have all the codes included the OP_SELLSTOP & OP_BUYSTOP. No point for me to make another version with lesser function, so you can change my code, and it will give you immediate effect. Remove the case with OP_SELL && OP_BUY from the order close function. Leave the OP_BUYSTOP & OP_SELLSTOP on the EA will do.

Regards

David
__________________
"All through time, people have basically acted and reacted the same way in the market as a result of: greed, fear, ignorance, and hope. That is why the numerical formations and patterns recur on a constant basis." - Jesse Lauriston Livermore

THE FOREX KNIGHT
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
macd ea, trendmaster indicator, forex, trendmaster


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
How do I check for a double top or double bottom iscuba11 Metatrader 4 5 03-31-2009 03:15 PM
OILFXPRO double-quad b/o free version E A el cid Expert Advisors - Metatrader 4 134 06-11-2008 04:37 PM
macd signal and macd value cross boostrade Expert Advisors - Metatrader 4 1 02-04-2007 05:33 PM
MACD-WDD (MACD-Simple on GBPUSD) PluT0 Expert Advisors - Metatrader 4 1 12-18-2005 01:30 AM


All times are GMT. The time now is 07:15 PM.



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