fxDreema

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

    Lot size of last closed trade due to Stop Loss

    Questions & Answers
    3
    5
    826
    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
      BlueMoon last edited by

      Can someone help me with this logic?

      I would like my EA to create a new Buy Trade if my last trade that closed was a Sell Trade with lot size of +1 then the closed trade.. How do I accomplish this?

      Examples:

      1. I would have a Buy Trade with 1 Lot with a fixed SL already set. When the SL hits, I would like my EA to create a "Sell" Trade with 1+1=2 lots.

      2. I would have a Sell Trade with 1.6 Lot with a fixed SL already set. When the SL hits, I would like my EA to create a "Buy" Trade with 1.6+1=2.6 lots.

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @BlueMoon last edited by

        @bluemoon I'm not sure if that is bullet proof if multiple orders are closed at same time, but if you have just 1 order, it might work like this

        0_1580082993055_d86f6276-e831-4fa9-8f50-15a0e648621e-image.png

        Once you have that variable, you can use it with your next order (add to your regular lotsize) and than set it back to 0. If Sell and Buy trade matters, use 2 variables and split per each direction.

        I like to share my knowledge, but expect the others to contribute as well.

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

          Just curious. Are all those Constants really necessary? 😮

          (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.

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @l'andorrà last edited by

            @l-andorrà Well, in my project yes. For the answer of the question I was too lazy to crate a new project. 🙂

            I like to share my knowledge, but expect the others to contribute as well.

            l'andorrà 1 Reply Last reply Reply Quote 0
            • l'andorrà
              l'andorrà @trader.philipps last edited by

              @trader-philipps LOL, Ok 🙂

              (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

              A
              Y
              H
              B
              K
              S

              16
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors