Go Back   Forex-TSD > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent 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
  #321 (permalink)  
Old 03-30-2008, 10:14 AM
Junior Member
 
Join Date: Sep 2006
Posts: 2
Damnengine is on a distinguished road
EA for this system

hi,

i need a little help to configurate this Ea for this sytstem

Simplicity is the ultimate form of sophistication ( Elite )


can anyone help

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
  #322 (permalink)  
Old 04-22-2008, 03:17 PM
Junior Member
 
Join Date: Apr 2007
Posts: 2
piprunner92 is on a distinguished road
How to fix EA to Take 1 Trade Per Cross

You must set your MaxLookUp to zero so that it disables this feature. Otherwise, it will open a new trade after your profit target is hit or your stop loss is hit as long as there is no cross in the opposite direction and you have not exceeded the amount of candles for your MaxLookUp. For examples, say you set MaxLookUp to 6, but your trades hits the take profit on the 3rd candle after the cross occurs. The EA would open up a new trade in the same direction of the one that just closed when the 4th candle opens because you still have not exceeded the 6th candle of your MaxLookUp.

Hope this makes sense.
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
  #323 (permalink)  
Old 04-22-2008, 03:20 PM
Junior Member
 
Join Date: Apr 2007
Posts: 2
piprunner92 is on a distinguished road
Response to 169714

Quote:
Originally Posted by fxsterling View Post
This universal MA is an excellent EA and I very much appreciate it for my trading. I've been trading it with one hour time frame with a 15 ema crossing the 25 ema on the EUR/JPY with a 2 to 1 ratio. Which means I set a 50 pip take profit and a 25 pip stop loss. This has worked out great and about 50% winners. The only thing I notice is the EA will sometimes make several entries on the same cross. How do I get the ea to only make 1 trade per cross, until it gets to the next cross? I use a very light progression of lots with this ( a very slow progression is all that's needed because of the 2 to 1 ratio) I also give a 6 pip minumum to cross before it'll make a trade. How can I ensure it only makes one trade per cross and how do I set that up on the EA? Thanks alot , because I do have a winning system for everyone. Thanks, Ron
You must set your MaxLookUp to zero so that it disables this feature. Otherwise, it will open a new trade after your profit target is hit or your stop loss is hit as long as there is no cross in the opposite direction and you have not exceeded the amount of candles for your MaxLookUp. For examples, say you set MaxLookUp to 6, but your trades hits the take profit on the 3rd candle after the cross occurs. The EA would open up a new trade in the same direction of the one that just closed when the 4th candle opens because you still have not exceeded the 6th candle of your MaxLookUp.

Hope this makes sense.
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
  #324 (permalink)  
Old 05-03-2008, 07:29 PM
Junior Member
 
Join Date: May 2008
Posts: 2
wainernegocios is on a distinguished road
FastMAshift

Quote:
Originally Posted by firedave View Post
I try to make an EA for any Moving Average Cross strategy, try to make it universal. So please let me know should you have any suggestion to add to this EA.

Common Setting :
-----------------
StopLoss (default 100)
Set your Stop Loss. Use 0 (zero) if you don't like to use Stop Loss ( not recommended ).

TakeProfit (default 200)
Set your Take Profit. Use 0 (zero) if you like to use open target.


Trailing Stop Setting :
----------------------
ver.6 TrailingStopType (default 1)
Set trailing stop type. 1:will start trailing if profit in pips is greater / same with TrailingStop. 2:will start trailing as soon as trade in profit. (will add other type of trailing stop if suggested, latest suggestion is SafeZone trailing stop post #99 http://www.forex-tsd.com/28563-post99.html )

TrailingStop (default 40)
Set the Trailing Stop. Use 0 (zero) if you don't use trailing stop feature.


Moving Average Setting :
------------------------
FastMAPeriod (default 10)
Fast Moving Average Period.

FastMAType (default EMA / 1)
Fast Moving Average Type 0:SMA 1:EMA 2:SMMA 3:LWMA

FastMAPrice (default Close / 0)
Fast Moving Average Applied Price 0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted

ver.7.2 FastMAshift (default 0)
Fast Moving Average Shift

SlowMAPeriod (default 80)
Slow Moving Average Period.

SlowMAType (default EMA / 1)
Slow Moving Average Type 0:SMA 1:EMA 2:SMMA 3:LWMA

SlowMAPrice (default Close / 0)
Slow Moving Average Applied Price 0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted

ver.7.2 FastMAshift (default 0)
Slow Moving Average Shift


Minimum Cross Distance :
------------------------
ver.2 MinCrossDistance (default 0)
Set the pip distance between FastMA and SlowMA to be consider as a valid cross. Use 0 (zero) to disable this filter.

ver.7 MaxLookUp (default 1)
Set number of bar after the cross to keep checking on the entry condition in regards with the minimum distance between FastMA and SlowMA. Need MinCrosDistance > 0 to enable this feature. Use 0 (zero) to disable this feature.


Exit Setting :
-------------
StopAndReverse (default true)
If set to TRUE, will exit any trade and reverse position when signal change.

PureSAR (default false)
If set to TRUE, will use no Stop Loss - Take Profit - and Trailing Stop. This is always in play setting.

ver.7.2 ExitOnCross (default false)
If set to TRUE, will exit any trade if there is an opposite cross without consider any additional filter. So exit purely base on moving average cross.


Third MA Setting :
------------------
ver.5 UseThirdMA (default false)
If set to TRUE (and UseCounterTrend = FALSE), will only trade according to ThirdMA direction, above for BUY and below for SELL.

ver.5 UseCounterTrend (default false)
If set to TRUE will keep trade even if counter ThirdMA direction, but with different StopLoss and TakeProfit. Need UseThirdMA = TRUE to enable this feature.

ver.7 OnlyCounterTrend (default false)
If set to TRUE will set the EA only to trade counter trend trade, mean BUY if cross below ThirdMA and SELL if cross above ThirdMA. Need UseCounterTrend = TRUE to enable this feature.

ver.5 ThirdMAPeriod (defaul 100)
Third Moving Average Period.

ver.5 ThirdMAType (default EMA / 1)
Third Moving Average Type 0:SMA 1:EMA 2:SMMA 3:LWMA

ver.5 ThirdMAPrice (default Close / 0)
Third Moving Average Applied Price 0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted

ver.7.2 ThridMAshift (default 0)
Third Moving Average Shift

ver.5 CTStopLoss (default 0)
Set your Stop Loss for CounterTrend trade. Use 0 (zero) if you don't like to use Stop Loss ( not recommended ).

ver.5 CTTakeProfit (default 0)
Set your Take Profit for CounterTrend trade. Use 0 (zero) if you like to use open target.


Pivot Filter Setting :
-------------------
ver.8.0 Use.Pivot.Filter (default false)
Set to true if you like to filter the trade, only BUY if the cross of Slow and Fast MA occur between S1 and S2 and only SELL if the cross of Slow and Fast MA occur between R1 and R2.

Order Setting :
--------------
ReverseCondition (default false)
Set TRUE to reverse the entry condition.

ver.3 ConfirmedOnEntry (default true)
If set to TRUE, will enter/exit trade on the next bar after the cross confirmed. If set to FALSE, will enter/exit trade as soon as there is a cross.

ver.4 OneEntryPerBar (default true)
If set to TRUE, will only trade once on one bar. If set to FALSE, will trade more than once on one bar if the entry condition is still valid, although still one trade at a time.

NumberOfTries (default 5)
Number of try if the order rejected by the system.

Slippage (default 5)
Slippage setting.

MagicNumber (default 1234)
Use to generate Magic Number. Change this number ONLY if you like to run the EA on same pair and same time frame but with different setting.


Multiple Open Trade Setting :
-----------------------------
ver.5 MaxOpenTrade (default 2)
Number of maximum open trade at one time. This setting is use when StopAndReverse / PureSAR = FALSE so the EA won't close the open order when there is an opposite signal, but rather it will open a new trade. Set the number of open trade allowed. If StopAndReverse / PureSAR = TRUE this setting will always = 1, mean one trade at a time.

ver.6 MinPriceDistance (default 5)
If multiple open trade enable (by set MaxOpenOrder>1 and OneEntryPerBar=FALSE) this number will determine the minimum distance between each trade on same direction.


Time Filter Setting :
-------------------
UseHourTrade (default false)
If set to TRUE, the EA only active on certain time.

StartHour (default 10)
Time when the EA start active (use with UseHourTrade = TRUE).

EndHour (default 11)
Time when the EA stop active (use with UseHourTrade = TRUE).


Lot and Money Management Setting :
------------------------------------
Lots (default 1)
Number of lot per trade.

MM (default false)
If set to TRUE, will use build in money management.

AccountIsMicro (default false)
If using Micro Account set this to TRUE.

Risk (default 10)
Use with MM = TRUE to set the risk per trade.


Cross Alert Setting :
--------------------
ver.5 EnableAlert (default true)
Will sound an alert when there is a moving average cross, cross UP or cross DOWN.

ver.5 SoundFilename (default "alert.wav")
The filename for the alert.


BackTest Setting :
------------------
PrintControl (default true)
Print some comment on backtesting.

Show_Settings (default true)
Show setting on the chart.

Let me know if you still got problem with the setting. Thank you to codersguru and pengie for several partial code. Hope this help


Journal :
-----------
version.6 :
- fixed ConfirmedOnEntry bug.
- add immediate trailing stop.
- add MinPriceDistance for multiple open trade.

version.7 :
- add MaxLookUp feature to keep checking on the entry after certain bar from the cross regarding the MinCrossDistance.
- add OnlyCounterTrend feature if using ThirdMA filter.

version.7.1 :
- fixed MinCrossDistance bug.

version.7.2 :
- fixed MinCrossDistance bug for ConfirmedOnEntry = FALSE.
- add MA shift parameter.
- add ExitOnCross feature.

version.7.3 :
- fixed on screen display COMMENT.

version.8.0 :
- added Pivot Filter.

version.8.1 :
- revised some code because Build 206 bugs.
Hi, thank you for your sharing.

I´m testing this EA. The EA doesn´t work with FastMAshift (-2).

Please let me know why not....
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
  #325 (permalink)  
Old 05-11-2008, 10:46 AM
Junior Member
 
Join Date: Oct 2006
Posts: 8
patona is on a distinguished road
Smile Magic Number?

I need to work with this EA on different pairs to the same time on my screen, with same settings. Have i changed the magic number manuell for every pair, or can i hold the settings for the magic number?
For example: EUR/USD-Magic number 1234, GBP/USD-Magic number 1235.
Sorry for my unprofessional english.
Thanks for your effort.
Patona
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
  #326 (permalink)  
Old 05-11-2008, 12:04 PM
keramikus's Avatar
Member
 
Join Date: May 2007
Location: Slovenia
Posts: 98
keramikus is on a distinguished road
@ wainernegocios: -2 shift wont work in forward test/actual use, because that would mean having early cross after candle makes a move and actually signals that cross. But looks great on backtest. )))))

@ patona: magic number does not need changing if u use EA only once per each pair in one MT4 platform - 1234 EURUSD, 1234 GBPUSD... If u want EA on same pair within same platform, change magic number - 1234 EURUSD, 1235 EURUSD, 1234 GBPUSD, 1235 GBPUSD, 1236 GBPUSD, 1234 NZDUSD...

Hope it helps.
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
  #327 (permalink)  
Old 05-14-2008, 04:10 AM
AAD's Avatar
AAD AAD is offline
Member
 
Join Date: Feb 2008
Posts: 55
AAD is on a distinguished road
Interesting EA (Universal MA Cross v8 EA), could someone please add an RVI & RSI filter to it?

Also how about breakeven points:

BreakEvenAt=50; // Set breakeven at a pip amount.

BreakEvenSlide=5; // Move the breakeven point above or down after breakeven.
__________________
Pipping ain't easy but someone's got to do it!

Last edited by AAD; 05-14-2008 at 04:14 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
  #328 (permalink)  
Old 05-20-2008, 03:13 AM
hermanto's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 8
hermanto is on a distinguished road
Dear Firedave
Thanks a lot for your wonderful ea.
Could you please advise me how to set parameter so the ea only exit the trade when ema crossed. I prefer to enter the trade manually and I need ea that can exit the trade when ema crossed. Your advice will be very helpful.
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
  #329 (permalink)  
Old 05-20-2008, 06:46 AM
keramikus's Avatar
Member
 
Join Date: May 2007
Location: Slovenia
Posts: 98
keramikus is on a distinguished road
Quote:
Originally Posted by hermanto View Post
Could you please advise me how to set parameter so the ea only exit the trade when ema crossed. I prefer to enter the trade manually and I need ea that can exit the trade when ema crossed.
set ExitOnCross=True
on Common tab check Allow live trading and also check Ask manual confirmation

This way EA exits trades, but asks confirmation for entering on cross
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
  #330 (permalink)  
Old 05-20-2008, 03:16 PM
hermanto's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 8
hermanto is on a distinguished road
Quote:
Originally Posted by keramikus View Post
set ExitOnCross=True
on Common tab check Allow live trading and also check Ask manual confirmation

This way EA exits trades, but asks confirmation for entering on cross
Thanks a lot !!!
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
3 ma cross ea, Cross, damiani, ea ma, EA MA cross, EA Universal MA, ema cross ea, forex, MA cross, MA cross alert, MA cross EA, MA cross expert, MA Cross Expert Advisor, ma cross forex, MA crossover, ma crossover ea, ma ea, metatrader ma cross alert, moving average, moving average cross ea, moving average cross expert advisor, moving average cross over, moving average crossover ea, Price Cross EA, profit levels, sma cross ea, test generator unmatched data error, test generator: unmatched data error, universal, universal cross ea, universal cross ma, universal ea, universal ea forex, universal ema cross, Universal EMA EA .mq4, universal ma, universal ma cross, universal ma cross ea, universal ma cross expert, universal ma ea, Universal Moving Average EA, UniversalMACrossEA, universalMACrossEA.mq4


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
tarosato
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 203 03-18-2010 08:49 AM
MA cross/Price cross MA EA Pipsta_UK Expert Advisors - Metatrader 4 5 05-10-2007 08:50 PM
5 EMA / 6 EMA Cross azrob68 Suggestions for Trading Systems 16 12-17-2006 03:20 PM
Please Firedave! Update Universal Ma!! giraia_br General Discussion 1 08-24-2006 02:05 AM
newbies questions about universal MA giraia_br Expert Advisors - Metatrader 4 2 07-18-2006 02:37 AM


All times are GMT. The time now is 05:41 AM.



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