Page 1 of 2 12 LastLast
Results 1 to 10 of 12
 4 Attachment(s)    

Thread: LineMA Cross Expert Advisor

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default LineMA Cross Expert Advisor

    An EA based on an idea proposed by automatic.

    draw a line on chart.

    when an ma cross line up then buy 1.
    when ma cross line down sell [ close previous order]
    only 1 order open at any time.

    so buy sell condition linked to line/ma cross.

    usual parameters of tp, trailing stop, break even after x pips.

    that would be very useful.

    you could set line to round numbers, market open etc
    Attached Files Attached Files

  2. #2

    Default

    thanks. excellent.

    i use alpari so horizontal line needs 6 figures to work. with horizontal line value is the idea to enter number and line will be drawn at that number?
    also

    what values needed for

    ModeMA
    Price Mode

    and what is

    start hour and end hour.

    thanks again.

  3. #3
    Junior Member
    Join Date
    Nov 2008
    Posts
    27

    Default

    Quote Originally Posted by automatic View Post
    thanks. excellent.

    i use alpari so horizontal line needs 6 figures to work. with horizontal line value is the idea to enter number and line will be drawn at that number?
    also

    what values needed for

    ModeMA
    Price Mode

    and what is

    start hour and end hour.

    thanks again.
    Hi automatic,

    ModeMA : 0 = simple, ...
    Price Mode : 0 = close, ....

    Start hour & End hour are the hours when your ea is running.

  4. #4
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by automatic View Post
    thanks. excellent.

    i use alpari so horizontal line needs 6 figures to work. with horizontal line value is the idea to enter number and line will be drawn at that number?
    Correct.

    Quote Originally Posted by automatic View Post
    also

    what values needed for

    ModeMA
    Price Mode
    ModeMA 0=simple, 1=exponential, etc...
    Price Mode 0=apply to close, 1=apply to open, etc...

    Quote Originally Posted by automatic View Post
    and what is

    start hour and end hour.

    thanks again.
    This is an optional time filter.

  5. #5

    Default

    works great.

    if easy to do any chance to put magic number on the chart screen? i have several charts and it would help as the line can be further away than current chart screen size and so not showing.

    and maybe 'buy/sell order opened' on chart screen when order triggered?

    thanks

  6. #6
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by automatic View Post
    works great.

    if easy to do any chance to put magic number on the chart screen? i have several charts and it would help as the line can be further away than current chart screen size and so not showing.

    and maybe 'buy/sell order opened' on chart screen when order triggered?

    thanks
    Here it is.
    Attached Files Attached Files

  7. #7

    Default

    ea seems to like to open position 3 closes after ma line cross? any chance on 1st open after cross?

  8. #8
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by automatic View Post
    ea seems to like to open position 3 closes after ma line cross? any chance on 1st open after cross?
    It enters orders as soon as the MA has crossed the line. Are you sure to work with a simple MA applied to close ?

  9. #9

    Default

    yes simple close

    its not all the time. sometimes it does sometimes not. usually in fast move it waits till 3rd open. this is on 1m chart. i haven't checked other time frame chart.

    its not a big problem i can work around it. its probably the big volatility we have at the moment. i'll just use bigger stops.

    its still a great ea.

  10. #10
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hi Funyoo

    Is it possible to put a setting into this EA that the line value setting is selectable, the opening of the first bar after midnight or a custom value as in the EA at present? If you dont have time please point me in the right direction and I'll program it in.

    Thanks for all you time and effort.

    GAC

Similar Threads

  1. The BEST Expert Advisor on the market, WallStreet Expert Advisor
    By Jacob Godly in forum Commercial expert advisors
    Replies: 0
    Last Post: 03-21-2013, 13:05
  2. Replies: 0
    Last Post: 03-01-2011, 22:12
  3. Enable/Disable Expert advisor Button By Expert advsior
    By Trint in forum Ideas for expert advisors
    Replies: 1
    Last Post: 10-18-2010, 10:41
  4. MA Cross Expert Advisor
    By funyoo in forum Expert advisors backtesting
    Replies: 6
    Last Post: 02-03-2009, 21:55

Tags for this Thread

advisor, alpari, automatic, backtesting, expert, expert advisor, indicator, magic, magic number, mq4, pips, pivot, profit, simple, stop, time, trailing, trend

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •