Page 2 of 14 FirstFirst 1 2 3 4 12 ... LastLast
Results 11 to 20 of 133
Like Tree48Likes

AllAveragesCrossover

This is a discussion on AllAveragesCrossover within the Trading tools forums, part of the Trading Forum category; Thank you....

      
   
  1. #11
    Junior Member
    Join Date
    Mar 2013
    Posts
    19
    Thank you.

  2. #12
    igorad
    Guest
    Quote Originally Posted by Gus4x View Post
    Hi igorad.

    Could you add the parameter "shift" to both averages?

    I know you usually use the word "shift" in place of "i" as a counting variable. I am talking shift as a parameter to change the place of the line.
    As this example: double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)

    Thanks.
    Hi Gus4x,

    Please check out the updated AllAveragesCrossover_v1.3 with ability to enter FastShift and SlowShift parameters.

    Code:
    extern int     TimeFrame             =   0;   //TimeFrame in min
    extern string  FastMA                = "--- Fast MA ---";
    extern int     FastPrice             =   0;   //Price Mode (0...10)
    extern int     FastLength            =   5;   //Period of smoothing
    extern int     FastMode              =   0;   //See list above
    extern int     FastShift             =   0;   //Fast MA Displace
    
    extern string  SlowMA                = "--- Slow MA ---";
    extern int     SlowPrice             =   0;   //Price Mode (0...10)
    extern int     SlowLength            =  21;   //Period of smoothing
    extern int     SlowMode              =   0;   //See list above
    extern int     SlowShift             =   0;   //Slow MA Displace
       
    extern string  Alerts                = "--- Alerts & E-Mails ---";
    extern int     AlertMode             =   0;
    extern int     SoundsNumber          =   5;   //Number of sounds after Signal
    extern int     SoundsPause           =   5;   //Pause in sec between sounds 
    extern string  UpSound               = "alert.wav";
    extern string  DnSound               = "alert2.wav";
    extern int     EmailMode             =   0;   //0-on,1-off   
    extern int     EmailsNumber          =   1;   //0-on,1-off
    Attachment 2804


    Regards,
    Igor

  3. #13
    Junior Member
    Join Date
    Mar 2013
    Posts
    19
    Quote Originally Posted by igorad View Post
    Hi Gus4x,

    Please check out the updated AllAveragesCrossover_v1.3 with ability to enter FastShift and SlowShift parameters.

    Code:
    extern int     TimeFrame             =   0;   //TimeFrame in min
    extern string  FastMA                = "--- Fast MA ---";
    extern int     FastPrice             =   0;   //Price Mode (0...10)
    extern int     FastLength            =   5;   //Period of smoothing
    extern int     FastMode              =   0;   //See list above
    extern int     FastShift             =   0;   //Fast MA Displace
    
    extern string  SlowMA                = "--- Slow MA ---";
    extern int     SlowPrice             =   0;   //Price Mode (0...10)
    extern int     SlowLength            =  21;   //Period of smoothing
    extern int     SlowMode              =   0;   //See list above
    extern int     SlowShift             =   0;   //Slow MA Displace
       
    extern string  Alerts                = "--- Alerts & E-Mails ---";
    extern int     AlertMode             =   0;
    extern int     SoundsNumber          =   5;   //Number of sounds after Signal
    extern int     SoundsPause           =   5;   //Pause in sec between sounds 
    extern string  UpSound               = "alert.wav";
    extern string  DnSound               = "alert2.wav";
    extern int     EmailMode             =   0;   //0-on,1-off   
    extern int     EmailsNumber          =   1;   //0-on,1-off
    Attachment 2804


    Regards,
    Igor

    Many thanks, igorad.

  4. #14
    igorad
    Guest
    Quote Originally Posted by Gus4x View Post
    Hi igorad.

    I tried to make my version of a crossover with all averages (v3.1). I added shadows. I included some codes of AllAveragesCrossover_v1.2 looking for obtain signals and alarms, but I find errors with the signals, because it is showing in each candle.

    Have you some time to help me to fix it?

    Note: I could not find the way to upload the files. You can find it here: 1 - Download - 4shared

    Thanks.
    Hi Gus4x,

    Please check out the fixed version of the AllAverages_v3.1_Crossover_Filled.

    Attachment 2809

    Regards,
    Igor

  5. #15
    Junior Member
    Join Date
    Mar 2013
    Posts
    19
    Quote Originally Posted by igorad View Post
    Hi Gus4x,

    Please check out the fixed version of the AllAverages_v3.1_Crossover_Filled.

    Attachment 2809

    Regards,
    Igor
    Thank you very much, igorad.
    Alex-162 likes this.

  6. #16
    Junior Member
    Join Date
    Oct 2013
    Posts
    2
    Quote Originally Posted by Gus4x View Post
    Many thanks, igorad.
    which moving averages are on the chart?

  7. #17
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2951
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by balouf View Post
    which moving averages are on the chart?
    AllAverages_v3.1_Crossover_Filled from this post
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  8. #18
    igorad
    Guest

    AllAverages Crossover Tester

    Hi,

    Please take a look at the AllAverages Crossover Tester which can show quickly the performance of your settings even with StopLoss and TakeProfit.

    Code:
    //---- input parameters
    extern string     _fastMA               = "--- Fast MA ---";
    extern int        FastPrice             =     0;   //Price Mode (0...10)
    extern int        FastLength            =    10;   //Period of smoothing
    extern int        FastMode              =     0;   //See list above
    
    extern string     _slowMA               = "--- Slow MA ---";
    extern int        SlowPrice             =     0;   //Price Mode (0...10)
    extern int        SlowLength            =    20;   //Period of smoothing
    extern int        SlowMode              =     0;   //See list above
    
    extern string     _sltp                 = "--- StopLoss & TakeProfit ---";
    extern double     StopLoss              =     0;   //StopLoss in pips
    extern double     TakeProfit            =     0;   //TakeProfit in pips
    
    extern string     _spread               = "--- Spread ---";
    extern double     Spread                =     0;   //Spread in pips
    extern bool       UseCurrentSpread      = false;   //Use Current Spread(true/false)
    
    extern string     _date                 = "--- Start Date ---";
    extern bool       UseDate               =  true; 
    extern datetime   StartDate             = D'2013.10.01';
    Attachment 3179

    Regards,
    Igor
    mak, TCT, newdigital and 6 others like this.

  9. #19
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2951
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    I used MA with periods 21 and 55, sl 100 and tp 80 and it looks nice for EURUSD H4.

    One question - this is profit in pips or in dollars? See image :


    AllAveragesCrossover-eurusd-h4-alpari-nz-limited.png



    PF is profit factor, right?
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  10. #20
    igorad
    Guest
    Quote Originally Posted by newdigital View Post
    I used MA with periods 21 and 55, sl 100 and tp 80 and it looks nice for EURUSD H4.

    One question - this is profit in pips or in dollars? See image :

    PF is profit factor, right?
    Yes, you are right. This is profit in pips and "PF" is profit factor.

Page 2 of 14 FirstFirst 1 2 3 4 12 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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