fxDreema

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

    EA NOT DETECTING DEMO/REAL and date MQL4

    Bug Reports
    2
    5
    1301
    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.
    • P
      palani last edited by

      Please help me! i wish to add Account security settings in my EA! i use desktop verison of FxDreema! Alternately guide me how to add box like DEMO and LIVE! How and where to get option to enter Account number?

      Thanks!

      ......
      Expiry.mq4

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Well, this function called "mainCheck()" is not executed at all. Just placing a function somewhere in the code does not mean that it will be executed. But something like this can help...

        int init() {
            if (mainCheck()==false) {IsTerminated(true); return(0);}
           .....
        
        

        or in start()

        int start() {
            if (mainCheck()==false) {return(0);}
           .....
        
        

        IsTerminated() is a custom function used inside the EA and this function plays the role of a variable. It is read with "IsTerminated();" (it is false by default) and set to true with "IsTerminated(true);". When set to true, the EA stops to react on ticks.

        1 Reply Last reply Reply Quote 0
        • P
          palani last edited by

          __Well, this function called "mainCheck()" is not executed at all. Just placing a function somewhere in the code does not mean that it will be executed. But something like this can help...

          int init() {
              if (mainCheck()==false) {IsTerminated(true); return(0);}
             .....
          
          

          or in start()

          int start() {
              if (mainCheck()==false) {return(0);}
             .....
          
          

          IsTerminated() is a custom function used inside the EA and this function plays the role of a variable. It is read with "IsTerminated();" (it is false by default) and set to true with "IsTerminated(true);". When set to true, the EA stops to react on ticks.[/quote:a0sh8j8x]

          1 Reply Last reply Reply Quote 0
          • P
            palani last edited by

            ____Well, this function called "mainCheck()" is not executed at all. Just placing a function somewhere in the code does not mean that it will be executed. But something like this can help...

            int init() {
                if (mainCheck()==false) {IsTerminated(true); return(0);}
               .....
            
            

            or in start()

            int start() {
                if (mainCheck()==false) {return(0);}
               .....
            
            

            IsTerminated() is a custom function used inside the EA and this function plays the role of a variable. It is read with "IsTerminated();" (it is false by default) and set to true with "IsTerminated(true);". When set to true, the EA stops to react on ticks.[/quote:15t3p4n3][/quote:15t3p4n3]

            1 Reply Last reply Reply Quote 0
            • fxDreema
              fxDreema last edited by

              I think it's my turn to quote the quote 🙂

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

              Online Users

              M
              F
              K
              C
              A

              17
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors