fxDreema

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

    Controlling the opening time of new trades while a trade is open (dodging "No position" block)

    Tutorials by Users
    6
    8
    1414
    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.
    • Z
      ZhAhZ last edited by ZhAhZ

      Hey guys,

      I had quite a hard time triggering my signals again while a trade was currently open, mainly because of "No position" block. The issue was that by using "No position" block I was missing all the other signals if I had a trade open. And not using it caused to open hundreds of new trades in a second!

      Now, however, I have overcome this issue with a time formula and I believe I should share it as a thank you to all others who support in this forum free of charge.
      You basically can adjust the period during which you don't want your signal trigger any trade (bypassing that hundreds trades in a second) and then after that your EA can freely search for new signals while your previous trade is still open.

      This looked easy in the beginning but since the way time works in the code, causes a lot of complications. I don't wanna go into that discussion now. So you can use the below link for your projects and only need to input the constant Delay-seconds based on your preferences. Just remember, regardless of timeframe you are trading in, the delay must be input in seconds. So if you just opened a new trade and you want no new trade during the next 3 candles in a 15 Min timeframe, simply put 2700 (= 60 * 15 * 3).

      https://fxdreema.com/shared/RUqysmxQ

      Good luck

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

        sweet thanks.

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

          why not just use once per bar or something of the like?

          Z 1 Reply Last reply Reply Quote 0
          • Z
            ZhAhZ @TipsyWisdom last edited by

            @tipsywisdom I believe once per bar may cause to lose the best entry position.

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

              @zhahz Thank you very much for sharing.

              (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
              • E
                Emmanuelodah last edited by

                thanks so much you are a lifestyle

                1 Reply Last reply Reply Quote 0
                • P
                  pezhman491 last edited by

                  thanks a lot. its what i needed

                  1 Reply Last reply Reply Quote 0
                  • W
                    wegbereider last edited by

                    So i just copy the 3 blocks into my own project to make it work?

                    • Time formula
                    • Modify variables
                    • Formula

                    And add an int in the constant section, right?

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

                    Online Users

                    E
                    A
                    G
                    Q
                    C
                    T

                    14
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors