Skip This Ad >>
 
Register
Forgotten your password?
The Facebook Platform
Forex-TSD - Powered by vBulletin
Loading search...
Advanced search
  • Home
  • Forums
    Free sections Exclusive sections All sections
  • Register
    Create new account
  • More Recent
    Latest Threads Today's Posts
  • Rankings
    Most popular threads this month Most popular threads created this month Most linked threads this month Most active users Most reputed users
  • Calendar
  • Advertising
  • Others
    Blogs Toolbar
  • Help
    Contact Us FAQ
  • Premium Forum
  • Home
  • Forum
  • Downloads
  • Expert Advisors - Metatrader 4
  • Universal MA Cross EA

Like Tree4Likes
  • Top
  • All
  • This Page

Thread: Universal MA Cross EA



  • LinkBack
    • LinkBack URL LinkBack URL
    • About LinkBacks About LinkBacks
    •  
    • Bookmark & Share
    • Digg this Thread!
    • Add Thread to del.icio.us
    • Bookmark in Technorati
    • Tweet this thread
  • Thread Tools
    • Show Printable Version
    • Email this Page…
    • Subscribe to this Thread…
  • Display
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
Results 1 to 10 of 740
Page 1 of 74 1231151 ... Next LastLast
111 111 Attachment(s)

  1. 05-02-2006 11:56 AM #1
    firedave's Avatar
    firedave
    firedave is offline Senior Member
    Points: 62,563, Level: 37
    Level completed: 5%, Points required for next Level: 3,637
    Overall activity: 0%
    Join Date
    Nov 2005
    Location
    Jakarta, Indonesia
    Posts
    414
    Points
    62,563
    Level
    37
    Achievements:
    Recommendation First ClassVeteran250 Experience Points

    Universal MA Cross EA

    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 Universal MA Cross EA )

    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.
    Attached Files
    • File Type: mq4 universalMACrossEA.mq4 (32.8 KB, 21737 views)
    Last edited by firedave; 06-20-2007 at 06:05 AM. Reason: add Pivot Filter
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    zleon likes this.
    David Michael H
    "Trader helps traders with sincerity, honesty and integrity"
    Reply With Quote Reply With Quote

  2. 05-02-2006 12:11 PM #2
    babarmughal's Avatar
    babarmughal
    babarmughal is offline Senior Member
    Points: 23,218, Level: 21
    Level completed: 52%, Points required for next Level: 782
    Overall activity: 0%
    Join Date
    Apr 2006
    Posts
    312
    Points
    23,218
    Level
    21
    Achievements:
    Veteran500 Experience Points

    Smile

    Hi Dave,

    Excellent stuff...........

    Babar
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  3. 05-02-2006 12:16 PM #3
    kumawat
    kumawat is offline Senior Member
    Points: 7,538, Level: 9
    Level completed: 95%, Points required for next Level: 62
    Overall activity: 2.0%
    Join Date
    Jan 2006
    Posts
    151
    Points
    7,538
    Level
    9
    Achievements:
    Veteran500 Experience Points
    Hi

    thanks for this effores.

    I want to know will it work in one account

    1 Same pair different TF.
    2. will it workmore than one pair in one account.
    3. will it works same pair same TF but with diffenent setting i mean TP or SL etc , if we use magin no.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  4. 05-02-2006 12:18 PM #4
    Fxparadise
    Fxparadise is offline Junior Member
    Points: 10,918, Level: 12
    Level completed: 94%, Points required for next Level: 82
    Overall activity: 0%
    Join Date
    May 2006
    Posts
    9
    Points
    10,918
    Level
    12
    Achievements:
    Veteran500 Experience Points
    Please let us know the best TF .
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  5. 05-02-2006 12:36 PM #5
    firedave's Avatar
    firedave
    firedave is offline Senior Member
    Points: 62,563, Level: 37
    Level completed: 5%, Points required for next Level: 3,637
    Overall activity: 0%
    Join Date
    Nov 2005
    Location
    Jakarta, Indonesia
    Posts
    414
    Points
    62,563
    Level
    37
    Achievements:
    Recommendation First ClassVeteran250 Experience Points
    Quote Originally Posted by kumawat
    Hi

    thanks for this effores.

    I want to know will it work in one account

    1 Same pair different TF.
    2. will it workmore than one pair in one account.
    3. will it works same pair same TF but with diffenent setting i mean TP or SL etc , if we use magin no.
    Hi kumawat. Yes to all of your question. I've just added MagicNumber seed to generate Order Magic Number. Change MagicNumber only if you like to use the EA for question number 3. Hope this help
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    David Michael H
    "Trader helps traders with sincerity, honesty and integrity"
    Reply With Quote Reply With Quote

  6. 05-02-2006 12:37 PM #6
    firedave's Avatar
    firedave
    firedave is offline Senior Member
    Points: 62,563, Level: 37
    Level completed: 5%, Points required for next Level: 3,637
    Overall activity: 0%
    Join Date
    Nov 2005
    Location
    Jakarta, Indonesia
    Posts
    414
    Points
    62,563
    Level
    37
    Achievements:
    Recommendation First ClassVeteran250 Experience Points
    Quote Originally Posted by Fxparadise
    Please let us know the best TF .
    Hi, I think the time frame is depend on your strategy. For default setting, you could use the EA on 1 Hour chart. Hope this help
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    David Michael H
    "Trader helps traders with sincerity, honesty and integrity"
    Reply With Quote Reply With Quote

  7. 05-02-2006 01:22 PM #7
    FXGuy2000's Avatar
    FXGuy2000
    FXGuy2000 is offline Senior Member
    Points: 27,454, Level: 24
    Level completed: 15%, Points required for next Level: 1,446
    Overall activity: 0%
    Join Date
    Apr 2006
    Posts
    154
    Points
    27,454
    Level
    24
    Achievements:
    Veteran500 Experience Points
    Nice EA. Which MA's and settings have you found best?

    I tried this one and it produced really good results on the 4hr.

    -------
    extern int
    FastMAPeriod = 10,
    FastMAType = 3, //0:SMA 1:EMA 2:SMMA 3:LWMA
    FastMAPrice = 1, //0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted
    SlowMAPeriod = 100,
    SlowMAType = 3, //0:SMA 1:EMA 2:SMMA 3:LWMA
    SlowMAPrice = 2; //0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted

    extern string
    Exit_Setting = "---------- Exit Setting";
    extern bool
    ReverseCondition = false, // TRUE:buy-sell , sell-buy
    ConfirmedOnEntry = false, // TRUE:entry on the next signal bar
    StopAndReverse = true, // TURE:if signal change, exit and reverse order
    PureSAR = false; // TRUE:no SL, no TP, no TS
    --------
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Warm regards,

    FXGuy2000
    http://www.truth-about-forex.com
    Reply With Quote Reply With Quote

  8. 05-02-2006 01:23 PM #8
    FXGuy2000's Avatar
    FXGuy2000
    FXGuy2000 is offline Senior Member
    Points: 27,454, Level: 24
    Level completed: 15%, Points required for next Level: 1,446
    Overall activity: 0%
    Join Date
    Apr 2006
    Posts
    154
    Points
    27,454
    Level
    24
    Achievements:
    Veteran500 Experience Points
    Quote Originally Posted by firedave
    Hi kumawat. Yes to all of your question. I've just added MagicNumber seed to generate Order Magic Number. Change MagicNumber only if you like to use the EA for question number 3. Hope this help
    I thought that Magic Number thing you have there is excellent. I think all EA's should have this, then the user doesn't have to worry about it, its sorted for you automatically.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Warm regards,

    FXGuy2000
    http://www.truth-about-forex.com
    Reply With Quote Reply With Quote

  9. 05-02-2006 01:42 PM #9
    kumawat
    kumawat is offline Senior Member
    Points: 7,538, Level: 9
    Level completed: 95%, Points required for next Level: 62
    Overall activity: 2.0%
    Join Date
    Jan 2006
    Posts
    151
    Points
    7,538
    Level
    9
    Achievements:
    Veteran500 Experience Points
    Hi

    one more suggesation. if we can include MACD, RSI & stochestic

    It may a greate EA
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  10. 05-02-2006 01:56 PM #10
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Thumbs up Great idea!

    Great work firedave
    And very good idea!

    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

Page 1 of 74 1231151 ... Next LastLast
111 111 Attachment(s)

Quick Navigation Expert Advisors - Metatrader 4 Top
  • Site Areas
  • Settings
  • Private Messages
  • Subscriptions
  • Who's Online
  • Search Forums
  • Forums Home
  • Forums
  • Announcements
    1. Announcements Blog
  • Exclusive Forum
    1. Elite Section
  • Forex Press
    1. Analytics
    2. Articles
    3. Success Stories
  • Discussion Areas
    1. General Discussion
    2. Metatrader 4
      1. Metatrader 3
    3. Metatrader 5
    4. Post and compare Trades
    5. Setup Questions
    6. Suggestions for Trading Systems
    7. Documentation
    8. Strategy Trader
  • Non Related Discussions
  • Downloads
    1. Indicators - Metatrader 4
      1. Indicators - Metatrader 3
      2. Indicators - Metatrader 5
    2. Manual trading systems
    3. Expert Advisors - Metatrader 4
      1. TSD Expert Advisors
      2. Expert Advisors - Metatrader 5
      3. Expert Advisors - Metatrader 3
    4. Tools and utilities
    5. Tools and utilities - Strategy Trader
  • Trading systems
    1. CatFx50
    2. Brain Systems
    3. Ema Cross
    4. Harmonic trading
    5. The "XO"-Method
    6. Phoenix
    7. Dolly
    8. Digital Filters
    9. Martingale/Average Cost and Hedging
  • Automated Trading
    1. News/Signal Trading
    2. FX Signals Marketplaces
  • Commercial systems
    1. Commercial Trading Systems and indicators
    2. Raw Commercial Ideas
    3. Evaluate Commercial Ideas
  • Brokers
    1. Metatrader brokers
  • Programming
    1. MetaTrader Programming
    2. TradeStation Programming
  • Training
    1. Metatrader
      1. Metatrader 4 mql 4 - Development course
        1. Questions
        2. Lessons
    2. TradeStation

» Popular Tags

analysis best broker best ea BrainTrading breakeven broker camarilla chart code copier custom EA day trading ea coding ea zig zag ecn elliot EQUITY eurusd expert adviser

» Rankings

Hottest Threads

1  Eurusd/gbpusd
2  CatFx50
3  10points 3.mq4
4  FxOpen
5  Multi Timeframe Indicators

view more
 

Most Popular Threads

1  Multi Timeframe In...
2  CatFx50
3  Something interesting pl...
4  The Murrey Math Trading System
5  Show Us Your Best

view more

» FEATURED BROKERS



« Previous Thread | Next Thread »

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cross!
    By creative in forum Indicators - Metatrader 4
    Replies: 261
    Last Post: 04-08-2012, 01:35 PM
  2. MA cross/Price cross MA EA
    By Pipsta_UK in forum Expert Advisors - Metatrader 4
    Replies: 5
    Last Post: 05-10-2007, 08:50 PM
  3. 5 EMA / 6 EMA Cross
    By azrob68 in forum Suggestions for Trading Systems
    Replies: 16
    Last Post: 12-17-2006, 03:20 PM
  4. Please Firedave! Update Universal Ma!!
    By giraia_br in forum General Discussion
    Replies: 1
    Last Post: 08-24-2006, 02:05 AM
  5. newbies questions about universal MA
    By giraia_br in forum Expert Advisors - Metatrader 4
    Replies: 2
    Last Post: 07-18-2006, 02:37 AM

Tags for this Thread

  • 3 ma cross ea,
  • Cross,
  • damiani,
  • ea ma,
  • EA MA cross,
  • EA Universal MA,
  • eas,
  • 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,
  • problems,
  • 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,
  • ma cross,
  • ma cross alert,
  • cross,
  • ema cross EA,
  • mt4 ma ea,
  • universal ema ea,
  • ma crossover expert,
  • metatrader cross,
  • ema crossover EA,
  • MA EA FOREX,
  • MA Expert advisor

View Tag Cloud

Bookmarks

Bookmarks
  • Submit to Digg Digg
  • Submit to del.icio.us del.icio.us
  • Submit to Technorati Technorati
  • Submit to Furl Furl
  • Submit to StumbleUpon StumbleUpon
  • Submit to Reddit Reddit
  • Submit to Facebook Facebook
  • Submit to Blink List Blink List
  • Submit to Google Google
  • Submit to Yahoo My Web Yahoo My Web
  • Submit to Twitter Twitter

Posting Permissions

  • 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
  • [VIDEO] code is On
  • HTML code is Off
  • Trackbacks are On
  • Pingbacks are On
  • Refbacks are On

Forum Rules

Forums
  • Free sections
  • Exclusive sections
  • All sections
Calendar Social Networking
Premium Forum
  • Elite Membership
  • Advanced Membership
All times are GMT. The time now is 07:19 PM.
Terms and Conditions
PRIVACY POLICY
Powered by vBulletin® Version 4.1.11
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Digital Point modules: Sphinx-based search

Subscribe today and get...

Elite Membership
  • Elite Trading Systems
  • Propietary Indicators
  • Private Performance Reports
  • Elite EAs Source Code
  • 24/5 Trading Support!
Advanced Membership
  • Elite benefits, plus:
  • - MT4 & MT5 cutting-edge indicators.
  • - Advanced propieatry indicators and its source codes.
  • - Free conversion of MT4 indicatiors to MT5.
View our best offer!