fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Magic Number/Separate the Different EA's

    Questions & Answers
    4
    23
    9614
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fxDreema
      fxDreema last edited by

      It's not any of the blocks. It's that you have checked some of the parameters to be Input parameters for MT5. In this case you have to edit them via MT5's "Input" tab. It's right to the "Settings" tab, just before "Results".

      1 Reply Last reply Reply Quote 0
      • T
        trendking last edited by

        So what should I do to make it work ?

        1 Reply Last reply Reply Quote 0
        • T
          trendking last edited by

          I took away the 'input' fields in the block.
          Works great now.

          Thank you VERY much !
          (And sorry for that).

          1 Reply Last reply Reply Quote 0
          • H
            hilavoku last edited by

            Hi Trendking,

            you asked some things about the MAgicnumber and how to user the same EA on different charts. I've found some code for assigning a MagicNumber to an EA. Just create a new library and put this code in it:

            int      Magic,MagiCal[5],Mcar;
            double   mNr;
            string   StrMagic;
            
            for(Mcar = 1; Mcar < 5; Mcar++) {MagiCal[Mcar] = StringGetChar(Symbol(), Mcar);}    //change char from symbol to number
            StrMagic = MagiCal[1] + "" + MagiCal[2] + "" + MagiCal[3] + "" + MagiCal[4];        //sort number in string
            mNr = StrToDouble(StrMagic);                                                        //make string to double | while double is bigger then integer
            
            if(mNr > 999999999) {mNr = mNr / 10;}            //maximum of integer = 2ґ147ґ483ґ647 is bigger then 999ґ999ґ999 make / 10
            if(mNr > 9999999999) {mNr = mNr / 100;}
            else
               {
                  Magic = NormalizeDouble(mNr, 0);//make double to integer
               }
               
            MagicStart = Magic;
            
            ~next~
            

            So you get a different MN on different charts but not when you use the EA on the same pair!

            see you

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            • First post
              Last post

            Online Users

            J
            P
            M
            M
            E
            M
            A
            H
            E
            E
            M

            18
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors