fxDreema

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

    Double entry, trail 2nd order (if TP hits 1 st order)

    Questions & Answers
    3
    4
    279
    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.
    • M
      meken last edited by

      I'm trying to create an EA where I take double orders on entry.

      If the first order reaches TP, BE is moved on the second order and then trailed.

      EA fails immediately when I run the strategy tester.

      Any tip?
      Can I do this more easily?

      Link
      https://fxdreema.com/shared/GfHVEMXwd

      Image
      https://ibb.co/MpF7kwN

      /Markus

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

        @meken I am not sure what result you will get from adjust on init, may give you half of constant and you need something like +50%, I will also say if you change the constant after inserting then the variable will stay the same as on int and you may as well make this value your constant, put constant & variable in comment block to visually check. For your buy/sell group you want to use numbers, this just adds to the magic number so needs to do somthing like 1111+1=1112, in your trail use the group that you have added to the 2nd BUY/SELL so it only responds to these trades, move all from on trade to on tick (if you reed the instructions trail needs to be here), you can use flags on trade with a purple trade closed block to activate trail. This is how I would do, hope this helps.

        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
        • M
          meken last edited by

          @jstap Tnx... I´ll try this asap..:)

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @meken last edited by

            @meken Just a small note. Those 'pass' blocks on both 'on tick' and 'on trade' tabs are unnecessary. You can remove them.

            (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
            • 1 / 1
            • First post
              Last post

            Online Users

            H
            G

            7
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors