fxDreema

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

    Can you tell me how to write to MQL5 this loop order?

    Questions & Answers
    2
    14
    1927
    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
      puremathsmith last edited by

      Can anyone tell me how to create a loop trade such that

      1. EA opens order with target profit at 200 basis points and stop at 100 basis points
      2. If stop or target is hit it will open order again in opposite direction with same target and stop

      step 1 and 2 need to loop continuous so there is no downtime

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

        Check the last closed position and open the opposite type: https://fxdreema.com/shared/1pqRSQkdb

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

          How do I loop it so it is always in a trade?

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

            What is that mean? When the position hits SL or TP it's gone. Then when that is detected, a new one is created.

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

              I tried to add it to mt5 and it did not recognize the file.
              It said there was some type of conversion error.
              Can you give me a mql5 file I can download and can you make it check for correct S/L T/P at all time just in case account on network was manipulated.

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

                On your account I see some MT4 project, not MT5. And it's a little bit wrong, Buy now and Sell now should come from both outputs of the previous block, not from the same output. Or you can download the .mq5 file from the project I give above, and then import that file in fxDreema.

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

                  That's what I'm saying. I tried to download your file to mql5 and install in MT5 and it says it has a wrong conversion type or something, and won't compile.

                  Can you give another mql5 file, here at the forum, that I can download to MT5 metaeditor and compile at there.

                  And can you make the mql5 include to check for correct S/L T/P at all time just in case account on network was manipulated?

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

                    I can load .mq4 file generated from https://fxdreema.com/shared/1pqRSQkdb in both, web and local version. But anyway, I think it's not that hard to make some 4 blocks manually, this can happen in less than 1 minute.
                    I don't understand the last question 😕 Who will manipulate stops at the network? 😮 And what network?

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

                      Why doesn't it show in MT5 then? When I downloaded the ex5 file they don't show in the MT5 EA list. When I download the mql5 file it does not compile in MT5 metaeditor. So how do I get the file to show in MT5 EA list or compile using metateditor? That is what I was trying to say is the problem.

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

                        This depends on too many things these days: topic/2374

                        And what is that conversion error, isn't it just a warning? If it is "possible loss of data due to type conversion" - this is not fatal. There are warnings and errors. Errors are fatal, warnings are only annoying messages.

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

                          I got it working, can you tell me how to turn the stop to Trailing stop only?

                          I need an EA that does not set target, or stop, only uses a defined trailing stop, and reverse entry and exit.

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

                            Mmmm, something with pink blocks (pips away from open price) and few Conditions?

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

                              I got that working.

                              But how do I make an indicator only? Not EA

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

                                Well, fxDreema is only for EAs and Scripts, it's not for indicators 🙂 Any EA can draw some basic objects (arrows, texts here and there) that also indicators and scripts can, but that's all they can.

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

                                Online Users

                                O
                                C
                                X
                                Q
                                P
                                A
                                E
                                B
                                Q
                                Q
                                K

                                17
                                Online

                                146.9k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors