| New signals service! | |
|
|||||||
| 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 |
|
| View Poll Results: Do you find MA Cross systems to be profitable? | |||
| Yes, I make good money |
|
27 | 62.79% |
| Breakeven usually |
|
10 | 23.26% |
| No, I lose money |
|
6 | 13.95% |
| Voters: 43. You may not vote on this poll | |||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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
__________________
"Don't work harder, work smarter." -- my Java professor Coder for Hire: http://www.firecell-fx.com Last edited by ryanklefas; 06-30-2007 at 05:14 PM. |
|
||||
|
Minor update: This one will only take one trade per bar.
__________________
"Don't work harder, work smarter." -- my Java professor Coder for Hire: http://www.firecell-fx.com |
|
|||
|
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.
![]() |
|
|||
|
Quote:
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 ^^ |
|
|||
|
Quote:
![]() If you find the code, we'll add alert
__________________
MQL4 programming is easy ^^ |
|
|||
|
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. |
|
||||
|
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! |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cross! | creative | Indicators - Metatrader 4 | 156 | 08-27-2008 07:19 AM |
| MA cross/Price cross MA EA | Pipsta_UK | Expert Advisors - Metatrader 4 | 5 | 05-10-2007 08:50 PM |
| 6 sma cross | increase | General Discussion | 12 | 12-22-2006 09:05 PM |
| 5 EMA / 6 EMA Cross | azrob68 | Suggestions for Trading Systems | 16 | 12-17-2006 03:20 PM |