fxDreema

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

    How to select the last 2 trades

    Questions & Answers
    3
    4
    233
    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.
    • K
      keanzoe last edited by

      let say i have 8 running trades that executed in different time and different pairs. how to select the last 2 trades so i can put condition for it? what block should i use?

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

        @keanzoe You can select them this way:

        01.png

        (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 1
        • H
          hasanrockefeller last edited by

          What I usually do is use the "For Each Trade" block to loop through all my trades, then sort them by the time they were executed. To get just the last two, I put in a condition using the "Get Trade Count" so it only grabs the ones with the highest index numbers. This way, it always picks up the most recent trades, and you don’t have to worry about specific pairs or IDs.

          1 Reply Last reply Reply Quote 1
          • K
            keanzoe last edited by

            Thanks for the answer. That's what I'm looking for 👍👍.

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

            Online Users

            C
            S
            S
            P
            C
            E

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors