fxDreema

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

    How to check previous trade level (losing) of the day?

    Questions & Answers
    2
    3
    478
    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.
    • D
      divinefang last edited by

      Hi, need some help building a logic in the following order:

      1. Check the most recently closed trade for today with the condition the trade was opened today.
      2. Check if it is a winning or losing trade.
      3. If it is a **losing **trade, get the price level of the **open **of that trade.
      4. If it is a **losing **trade, check if it is a Long or Short.
      5. With that price level obtained in step 3, if Long, do something A. if Short, do something B.

      Thanks!

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

        Losing trade in steps 3 and 4?
        Here is some example that hopefully can help to get the idea: https://fxdreema.com/shared/p0958FoA

        1 Reply Last reply Reply Quote 0
        • D
          divinefang last edited by

          I got it! You have been very helpful as always, thanks!

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

          Online Users

          K
          F
          C
          E
          F
          D
          S
          J

          20
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors