fxDreema

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

    Minimum Stop Loss allowed vs. coin

    Questions & Answers
    4
    16
    1673
    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.
    • B
      Banditdos last edited by

      Hello partners! I am doing an EA but I find that the Stop Loss that I want to incorporate depending on the set of coins or PAR (EURUSD, USDCHF) will not open the operation because it is lower than the minimum allowed by the Brocker; Is there any method or block that can detect this and set the Stop Loss to the minimum allowed?
      Thanks a lot.

      XYON126 1 Reply Last reply Reply Quote 1
      • XYON126
        XYON126 @Banditdos last edited by

        @banditdos Very good question; I am also interested. But @Banditdos does not open the operation or on the contrary it opens it but without Stop Loss?

        B 1 Reply Last reply Reply Quote 0
        • B
          Banditdos @XYON126 last edited by

          @xyon126 Hello @xyon126! Yes, you are right, if I open the trade but without Stop Loss which is very dangerous, that is why I ask the question to avoid this unpleasant surprise and trap that can ruin the account.

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

            This function returns the minimum stop distance:
            MarketInfo(Symbol(), MODE_STOPLEVEL)

            https://docs.mql4.com/constants/environment_state/marketinfoconstants

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            XYON126 1 Reply Last reply Reply Quote 0
            • XYON126
              XYON126 @roar last edited by XYON126

              @roar Sorry, how is this function incorporated, with the MQL block and variables? Would you be so kind to put a picture of the block with the formula because I think @Banditdos will appreciate it. Thanks a lot.

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @XYON126 last edited by

                @xyon126 just put it anywhere you want that value to be, in "modify variables" block for example
                0_1610540334598_512f09a9-6c31-4720-9ff2-6f2fe9c31a88-image.png

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                XYON126 1 Reply Last reply Reply Quote 0
                • XYON126
                  XYON126 @roar last edited by XYON126

                  @roar If I have understood it correctly, this is like this:

                  0_1610541471651_c0271929-d70a-4b0a-ba30-97392bb3e047-imagen.png

                  oder this:

                  0_1610541781410_022e8c36-86d7-48c3-a4f4-39c55d2a0b1a-imagen.png

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

                    @roar By the way, you have put "min_stop_points" that is, if we want them to be "pips" we have to divide it by 10, is that correct?

                    That is, this:
                    0_1610542728878_393b0ba7-5a8f-4597-aa39-e3f1949c283d-imagen.png

                    roar 1 Reply Last reply Reply Quote 0
                    • B
                      Banditdos last edited by

                      @roar , @XYON126 !Sorry, could you both explain it to me better, I see that you both dominate a lot but for me as we say in my country "I'm more lost than an octopus on a soccer field".

                      1 Reply Last reply Reply Quote 0
                      • roar
                        roar @XYON126 last edited by roar

                        @xyon126 it says "points" in the mql4 article, I've never actually used this lol. I guess youre right.

                        @Banditdos just copy it exactly as in the pictures and see what you get.

                        This one should be secure: if no stop-loss, set SL of 2 times minimum
                        https://fxdreema.com/shared/3VcgNhIX

                        Need small help? Tag me in your post
                        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          ambrogio @roar last edited by

                          @roar hi! Please, why divide the stop level for 5 ?

                          0_1610544169309_2021_1.jpg

                          roar 1 Reply Last reply Reply Quote 0
                          • roar
                            roar @ambrogio last edited by

                            @ambrogio to get pips, multiply by ten, to double the amount, multiply by two.
                            x/10*2 = x/5

                            Need small help? Tag me in your post
                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              ambrogio @roar last edited by

                              @roar oh yes! you have already simplified. (P.S. to get pips divide by ten, not multiplied 😄 )

                              1 Reply Last reply Reply Quote 1
                              • XYON126
                                XYON126 last edited by

                                Thank you very much to both of you, I hope @Banditdos understands it, by the way @roar , @ambrogio could you look at this Link: "http://fxdreema.com/forum/topic/11525/draw-tredline/7" and help me, since the answers they have given me have not helped me at all and I think that you can help me.

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  ambrogio @XYON126 last edited by

                                  @xyon126 Hi! I realized that you want to draw trendline as in the AutoCAD environment, but I can't figure out how to do it, I'm sorry.

                                  XYON126 1 Reply Last reply Reply Quote 0
                                  • XYON126
                                    XYON126 @ambrogio last edited by

                                    @ambrogio Thank you very much for trying to help me.

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

                                    Online Users

                                    G
                                    K
                                    P
                                    M
                                    M

                                    17
                                    Online

                                    146.7k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors