fxDreema

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

    Check if last 10 trades Sell or Buy

    Questions & Answers
    2
    3
    434
    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.
    • E
      emilio last edited by

      Hello all

      I need to know if my last 10 trades were sell ones. (or buy ones).

      They are all in the same group, and doesn´t matter if they win or loose.

      I´ve seen and there is only the posibility to check the last one.

      Any idea ?? how to do it ??

      Tks !!!

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

        Such thing was never requested. But here is a way: https://fxdreema.com/shared/xjBTMFbkc

        I have a variable with initial value of true. Also, it is set to true every time. Then I check the last 10 closed trades. If one of them is Buy, my variable is set to false, which means that not all trades are sell (there is a buy).
        The "break" block is to stop the loop when there is no need to do more checks.

        What is the practical use of this?

        1 Reply Last reply Reply Quote 0
        • E
          emilio last edited by

          F.E.
          When I have "frozen" my buys, it is a way to follow the correct trend.

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

          Online Users

          N
          J
          K
          T
          S
          E

          16
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors