fxDreema

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

    Allowing for STOP LEVEL

    Questions & Answers
    3
    5
    469
    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.
    • A
      AmaDablam last edited by

      I have a problem which I'm hoping someone can help me solve.

      I created an EA which places a pending order above the high of the previous candle with a price offset of 3 pips (LONG).
      However, I'm getting a few error codes on MT4 (130: invalid SL or TP).
      I also trade some of the exotics (e.g USDSEK) and the error rate is much higher - which I assume is based on the higher spread.
      After doing a lot of research I think the problem is based on the actual STOP LEVEL (min. distance allowed between current price & entry) of the market being traded.

      Is there some simple way around this - apart from changing the price offset for each market traded?
      Thanks in advance for your help.

      l'andorrà jstap 2 Replies Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @AmaDablam last edited by

        @amadablam Can you please share the link to the project? Maybe there is something missing there.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • jstap
          jstap @AmaDablam last edited by

          @amadablam MarketInfo(0,MODE_STOPLEVEL); This code in a modify variables block should give you the minimum stop loss, before placing an order check the SL distance is far enough away, otherwise use this number for the stoploss.

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

          1 Reply Last reply Reply Quote 0
          • A
            AmaDablam last edited by

            Thanks @l-andorrà & @jstap for your responses.
            Here is the link to the project:
            https://fxdreema.com/shared/8wAI3eyve

            This project is based on a SMA crossover.
            When I talk of STOPS LEVEL (as per my original post) I am not talking of stop loss.
            Stop Level is set for each market (I assume by the broker) and can be found in MT4 'Market Watch', then right click a market, 'Specification'.
            My understanding is this is the minimum distance permitted between current price & entry price (and SL??) for a pending order.
            This becomes a problem when prices closes near the top of the previous candle (LONG), especially when trading exotics (the stop levels can be significantly higher).

            Thanks

            jstap 1 Reply Last reply Reply Quote 0
            • jstap
              jstap @AmaDablam last edited by

              @amadablam These are set by broker, used IG to trade but they have minimum distances, doesn't affect certain strategies but some it does Spread will affect the open price and only pending can be affected my a minimum distance to place, you may be as well putting a spread filter in, this may stop trades being placed when it doesn't suit.

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

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

              Online Users

              2
              M
              M
              N
              B
              A
              B
              S
              E
              W
              M

              27
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors