fxDreema

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

    How to enter date of expiry in the settings?

    Questions & Answers
    2
    6
    1623
    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

      i tried entering YEAR, MONTH AND DATE! But it is not detecting the time period of expiry!

      *i made a mistake of entering year like this> 13. Thats why it was not working!

      Thanks

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

        The format is YY:MM:DD, for example 13:07:08, which means 08 august 2013

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

          Hi,
          thanks! Please guide me how to make it work only on a particular account.

          Thanks!

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

            Condition -> Account Information -> Account number.

            After that condition you can place "Terminate EA" block.

            I never tested that, but it should work.

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

              __Condition -> Account Information -> Account number.

              After that condition you can place "Terminate EA" block.

              I never tested that, but it should work.[/quote:qp53vaxd]

              hi
              Thanks,

              i opened the condition and entered account number. After that I placed "terminate EA".
              I tested and it is not working. i don't see the account number inside mql4 file. on "Init" i placed Condition(3rd block) and Terminate EA(4th Block, but i dont know how to connect the blocks.

              Please tell me where is the mistak i made. I am sure I can do this with FxDreema!

              thanks

              ......
              Ac~SELL-BAR.mq4

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

                You are trying to do very very very basic things. The idea is to check if the account number is equal or different than some number, but you compare the account number with itself. When asking if A==A, the answer is always Yes.

                And you didn't connected this Condition with nothing else. In fxDreema when a block is not connected, it is the same as it is not there, this block is not included to the final EA.

                You just need to play more with this. fxDreema makes programming easier and faster, but because it exists to build strategies with it, you must be able to build those strategies in the head first - to know what conditions to apply and what actions to take.

                In your case, you only need to check if the account number is different than a number, written from you inside the project. Account number is a number, so it should be compared with a number. And then, if the account number is different than the number written from you - go to terminate the EA.

                I will recommend to you again to open MetaEditor and start learning how to program. At least to understand the basics like "if", "for", "while", functions, variables and constants. I think this is actually fun, so just do it 🙂

                Start with:

                int init() {
                    Alert("Starting the EA");
                }
                int start() {
                    Alert("Tick");
                }
                int deinit() {
                    Alert("Unloading the EA...");
                }
                

                init(), start() and deinit() are the 3 main MQL4 functions, and everything starts with them.

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

                Online Users

                A
                L
                S

                19
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors