fxDreema

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

    Confirm a buy or a sell

    Questions & Answers
    3
    4
    503
    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.
    • A
      Axel last edited by

      Hello Friendz , i use an moving average in 5 minutes Time Frame , and i need to my robots confirm a buy or a sell after 2 candles ! how i do that ! thanks

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

        This could work

        0_1544641672324_f77e6098-cbf6-48fc-9ad5-161d200f3054-image.png

        When "Condition to pass -> EMA" is true, "Condition" to start counting bars is enabled.

        At the next bar since "Condition" is true, the count starts by adding 1 at the current BarCount value.

        When "BarCount == 2" passes, the block to enter at market is executed and the BarCount and Condition variables are reset.

        A 1 Reply Last reply Reply Quote 0
        • A
          Axel @josecortesllobat last edited by

          @josecortesllobat thanks

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

            But MA holds the values for the old candles, I mean you can get MA for the current candle, for the previous candle and for any candle on the chart. It's easier to do that by specifying Candle ID to 1, 2 or whatever candle you want.

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

            Online Users

            M
            U
            C
            V
            N
            P
            S

            14
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors