fxDreema

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

    Help with take profit options needed...

    Questions & Answers
    3
    4
    432
    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.
    • S
      SirLuk last edited by

      Hi guys, I'm new here. Programming my first Forex EA and all good so far...until I hit the actual trade I want to make. So, what I want is the following: In a buy setup, I want the EA to calculate the distance between market price and the low of the last 5 candles. The EA should open the trade with the position size calculated by that distance, so it matches 1% of balance. I want the same distance for the take profit. Now comes the catch...I don't want a stop loss set. I haven't figured out how to get that profit target and the position size without actually having the stop loss. Does somebody know what I can do? Any help would greatly be appreciated.

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

        @sirluk getting the distance is simple high-low will give you that, place in a variable then modify to give you pips, this can be used for SL and position size, then you can modify stops to move it completely out of the way, I don't know how to not have it placed, then have a condition to close trades once condition's met, I do think selecting LOT without SL can be done I have just never done it.

        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! 😊

        S 1 Reply Last reply Reply Quote 1
        • S
          SirLuk @jstap last edited by

          @jstap that worked good, thanks!

          1 Reply Last reply Reply Quote 0
          • J
            jjtrader last edited by

            Can you share a link to an example of this? Thank you.

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

            Online Users

            C
            D
            G
            T
            N
            M
            K

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors