Results 1 to 2 of 2
 1 Attachment(s)    

Thread: EA 2 cross ema

  1. #1

    Question EA 2 cross ema

    Hy folks!
    i'm searching to modify this firedave's ea (from this forum)
    the ea is calling "universal ma cross ea"

    what i want create is an ea that enter on 2 cross confirmed (for example a couple of ema 2 & 4 and another couple of ema 5 & 20)
    this is the main code, what i supposed to do ?


    //----------------------- SET VALUE FOR VARIABLE
    if(ConfirmedOnEntry==true)
    {
    if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); else CheckTime = iTime(NULL,TimeFrame,0);

    FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMA Type,FastMAPrice,1);
    SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMA Type,SlowMAPrice,1);
    }
    else
    {
    FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMA Type,FastMAPrice,0);
    SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMA Type,SlowMAPrice,0);
    }

    CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent);
    i had try everything, but i don't find a solution...please help me for the health of this community , i want something similar to this :


    //----------------------- SET VALUE FOR VARIABLE
    if(ConfirmedOnEntry==true)
    {
    if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); else CheckTime = iTime(NULL,TimeFrame,0);

    FastMACurrent = iMA(NULL,TimeFrame,2,FastMAshift,FastMAType,FastMA Price,1);
    SlowMACurrent = iMA(NULL,TimeFrame,4,SlowMAshift,SlowMAType,SlowMA Price,1);

    FastMACurrent2 = iMA(NULL,TimeFrame,5,FastMAshift,FastMAType,FastMA Price,1);
    SlowMACurrent2 = iMA(NULL,TimeFrame,20,SlowMAshift,SlowMAType,SlowM APrice,1);
    }
    else
    {
    FastMACurrent = iMA(NULL,TimeFrame,2,FastMAshift,FastMAType,FastMA Price,0);
    SlowMACurrent = iMA(NULL,TimeFrame,4,SlowMAshift,SlowMAType,SlowMA Price,0);

    FastMACurrent2 = iMA(NULL,TimeFrame,5,FastMAshift,FastMAType,FastMA Price,0);
    SlowMACurrent2 = iMA(NULL,TimeFrame,20,SlowMAshift,SlowMAType,SlowM APrice,0);
    }

    CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent && FastMACurrent2,SlowMACurrent2);


    Could you help me Funyoo ???

    Many thanks to everyone
    Attached Files Attached Files
    Last edited by il_valentino_forever; 10-14-2009 at 17:09.
    Oderint dum metuant

  2. #2

    Wink

    i forgot ea attach...

    i changed first post
    Oderint dum metuant

Similar Threads

  1. EMA Cross EA
    By funyoo in forum Expert advisors backtesting
    Replies: 144
    Last Post: 11-25-2017, 21:20
  2. Ea Sma Cross
    By haba in forum Expert advisors backtesting
    Replies: 2
    Last Post: 04-20-2016, 14:50
  3. ADX Cross EA
    By funyoo in forum Expert advisors backtesting
    Replies: 0
    Last Post: 07-29-2010, 22:24
  4. EMA cross only
    By szmvscla in forum Ideas for expert advisors
    Replies: 7
    Last Post: 03-19-2010, 05:11
  5. ST MA Cross EA
    By eforex in forum Ideas for expert advisors
    Replies: 12
    Last Post: 12-01-2009, 01:07

Tags for this Thread

funyoo, main

Posting Permissions

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