fxDreema

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

    close running trades on new candle open

    Questions & Answers
    2
    9
    213
    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
      Mani13 last edited by

      Hi,
      I will appreciate the effort of any fellow here who can suggest how to close running trades and pending orders on a new candle open.
      and open new pending orders instantly

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @Mani13 last edited by ambrogio

        @forexbob-0 in sequence : once per bar=>close trades=>delete pending orders=>no pending orders=>no trades=place pending orders

        M 2 Replies Last reply Reply Quote 0
        • M
          Mani13 @ambrogio last edited by

          @ambrogio Thank you for responding, let me check this please be online

          1 Reply Last reply Reply Quote 0
          • M
            Mani13 @ambrogio last edited by

            @ambrogio Thank you, Problem solved.
            😉

            A 1 Reply Last reply Reply Quote 0
            • A
              ambrogio @Mani13 last edited by

              @forexbob-0 you're welcome!

              M 1 Reply Last reply Reply Quote 0
              • M
                Mani13 @ambrogio last edited by

                @ambrogio I want to know one more thing regarding current candle that is it possible if candle 0 open bullish it open buy, and as soon if it become bearish then it open sell, again, if this happen n times then it open/close buy/sell trades on current running candle.
                If yes which blocks will be used to that

                A 1 Reply Last reply Reply Quote 0
                • A
                  ambrogio @Mani13 last edited by

                  @forexbob-0 candle 0 opens at a specific price level, we cannot know if it is bullish or bearish. You can decide if the price rises by n pips opens a buy and vice versa for a sell. But I warn you that it is not a good approach, you will find yourself with hundreds of trades in a few seconds.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Mani13 @ambrogio last edited by

                    @ambrogio Something going into my head I want to try that thing, the thing I ask is just a part of it.
                    I appreciate you if please continue further, we can use bull or bear candle for opening on a specific movement and closing the opened trade when it went opposite right ?

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

                      yes. If you want to trade bull or bear candle, you can do it on candle ID1.
                      If you want trade on candle ID0, try this way : ask>= candle ID0 open +1 pips buy now, viceversa for sell. Then on "on trade" tab : trade buy created >>>close sell and viceversa

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

                      Online Users

                      H
                      S
                      M
                      E
                      G
                      D
                      A

                      16
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors