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

View Poll Results: Do you find MA Cross systems to be profitable?
Yes, I make good money 37 57.81%
Breakeven usually 17 26.56%
No, I lose money 10 15.63%
Voters: 64. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-28-2007, 07:27 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 438
ryanklefas is on a distinguished road
MA Cross lovers... gather here!

I know that Moving Average cross systems are quite popular, so I made a generic one that can take whatever standard MA you want. An explanation of the features is in the source code, but I'll also post them here:




Code:
extern string    averages="==== MA Settings ====================";
extern int       FastPeriod=5;                   // Period for calculating MA
extern int       FastShift=0;                    // Shift the MA over X number of bars

extern int       FastType=0;                     // 0: Simple moving average
                                                 // 1: Exponential moving average
                                                 // 2: Smoothed moving average
                                                 // 3: Linear weighted moving average
                                                 
extern int       FastApplication=0;              // 0: Close price
                                                 // 1: Open price
                                                 // 2: High price
                                                 // 3: Low price
                                                 // 4: Median price, (high+low)/2
                                                 // 5: Typical price, (high+low+close)/3
                                                 // 6: Weighted close price, (high+low+close+close)/4
extern int       SlowPeriod=10;
extern int       SlowShift=0;
extern int       SlowType=0;
extern int       SlowApplication=0;

extern string    manage="==== Order Management ====================";
extern int       BreakEvenAtProfit=0;
extern int       BreakEvenShift=0;               // Move the breakeven point up or down around the order open price
extern int       TrailingStop=0;
extern bool      OnlyTrailAfterProfit=false;     // Trailing Stop will only trails when order is profitable

extern string    account="==== Account Settings ====================";
extern int       MinimumEquity=0;                // New orders will be disabled if equity drops below minimum
extern int       MinimumBalance=0;               // New orders will be disabled if balance drops below minimum

extern string    activity="==== EA Activity Settings ====================";
extern bool      DisableClosingOrders=false;    // If true, the order closing section of the EA will not run
extern bool      DisableNewOrders=false;        // If true, the order creating section of the EA will not run
extern int       ConcurrentOrdersMax=10;

extern string    id="==== Identity Settings ====================";
extern int       ExpertID=127792141;            // Magic number: for identifying an EA's orders
extern bool      TimeSpecific=false;            // If true, Time frames are considered in determining
                                                // whether an order belongs to the EA or not
extern string    ExpertName="Generic MA Cross";    // Expert name: for aesthetic purposes
Attached Files
File Type: mq4 Generic MA Cross Expert.mq4 (16.2 KB, 607 views)
__________________
"Don't work harder, work smarter." -- my Java professor

Advertise on The All New FireCell Network
"Where online investing makes sense"

Coder for Hire:
http://firecell.info

Last edited by ryanklefas; 06-30-2007 at 06:14 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
  #2 (permalink)  
Old 04-29-2007, 09:43 AM
Junior Member
 
Join Date: Oct 2006
Posts: 4
sopier is on a distinguished road
Hi

Hi....
Sorry i have no programming background at all, but i want to make an EA based on LWMA. The logic is very2 simple, buy if the "CANDLES FULLY FORMED" above LWMA and vice versa for short...

Thanks before
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 07-30-2007, 11:17 AM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 438
ryanklefas is on a distinguished road
Minor update: This one will only take one trade per bar.
Attached Files
File Type: mq4 Generic MA Cross Expert v1.1.mq4 (16.6 KB, 280 views)
__________________
"Don't work harder, work smarter." -- my Java professor

Advertise on The All New FireCell Network
"Where online investing makes sense"

Coder for Hire:
http://firecell.info
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 07-30-2007, 11:53 AM
Member
 
Join Date: Mar 2007
Posts: 40
DonaldInvest is on a distinguished road
I love moving averages, thanks for creating this thread. I am working on a system with MA cross, well a variation of ma. They are called t3 and t3-1. The results look very auspicious. More testing is required. Can you help me with one thing? A audio alert when they cross. I would appreciate that if you can.
Attached Files
File Type: ex4 9Squared T3.ex4 (4.3 KB, 124 views)
File Type: ex4 9Squared T3-1.ex4 (4.3 KB, 122 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
  #5 (permalink)  
Old 07-30-2007, 12:12 PM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
Quote:
Originally Posted by DonaldInvest View Post
I love moving averages, thanks for creating this thread. I am working on a system with MA cross, well a variation of ma. They are called t3 and t3-1. The results look very auspicious. More testing is required. Can you help me with one thing? A audio alert when they cross. I would appreciate that if you can.
Youn need to post the code to do that!
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 07-30-2007, 12:22 PM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
Quote:
Originally Posted by DonaldInvest View Post
I love moving averages, thanks for creating this thread. I am working on a system with MA cross, well a variation of ma. They are called t3 and t3-1. The results look very auspicious. More testing is required. Can you help me with one thing? A audio alert when they cross. I would appreciate that if you can.
Post the code or PM me if you want it confidential.
I'll add an alert for you.

ps: mq4 file is the code. if you don't have the code, we can't help you.
__________________
MQL4 programming is easy ^^
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 07-30-2007, 12:46 PM
Member
 
Join Date: Mar 2007
Posts: 40
DonaldInvest is on a distinguished road
Guys i don't have the code, didn't know we needed that to make the alert, i am such a MT4 noob
I downloaded the indicators like this here on tsd...
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 07-30-2007, 01:34 PM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
Quote:
Originally Posted by DonaldInvest View Post
Guys i don't have the code, didn't know we needed that to make the alert, i am such a MT4 noob
I downloaded the indicators like this here on tsd...
Then decompile it! But its illegal so don't
If you find the code, we'll add alert
__________________
MQL4 programming is easy ^^
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 08-01-2007, 01:52 PM
Junior Member
 
Join Date: May 2007
Posts: 11
bi_remy is on a distinguished road
EA for trading system @ www.babypips.com

Hi Shinigami,

I am manually forward testing the trading system at babypips

Setup Your System in Six Steps - 11th Grade: Create Your Own Trading System - Beginner's Guide to Forex Trading, Free Forex Education, Learn to Trade Forex, Forex Training - BabyPips.com

So far, I found it from BreakEven to profitable. It has standard features of a standard EA. It doesn't look very complicated.

Can you write an EA for it? I will test it on MT4 platform and post result here.


Thanks in advance.
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 04-09-2008, 05:36 PM
BigBaloo's Avatar
Member
 
Join Date: Nov 2007
Location: White Water BC
Posts: 66
BigBaloo is on a distinguished road
Nearly had enough

Before I take the final step in this forex saga, & throw the whole bunch of
c--p in the bin...is there anyone out there who can point me at a SIMPLE moving average entry EA.
All I need is an entry at open of next bar following a cross (My choice of MA's type & style, TP & SL) - nothing else (Though it would be nice if I could also choose a time for it to place the trade).
Thanks all
(Moderator, please move if in the wrong thread)
__________________
It ain't the length of the trend, it's what you do with it!
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
MA cross, ma cross alert


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
Cross! creative Indicators - Metatrader 4 191 11-15-2009 04:51 PM
MA cross/Price cross MA EA Pipsta_UK Expert Advisors - Metatrader 4 5 05-10-2007 09:50 PM
6 sma cross increase General Discussion 12 12-22-2006 10:05 PM
5 EMA / 6 EMA Cross azrob68 Suggestions for Trading Systems 16 12-17-2006 04:20 PM


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



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