fxDreema

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

    longs count and short count by group AND check trade count with multiple number in the same block

    Questions & Answers
    2
    7
    1782
    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.
    • C
      clacky last edited by

      hi, how can i get long/short count of a group of trades ? i can do that with condition block but it dosen't has the group function ..
      and also i need to check trade count by multiple number .. es 1,3,5 ecc... i can do it only using N blocks..

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

        @clacky
        https://fxdreema.com/shared/pUmNON0Td
        In this example block 1, 2, 3, 4 are the conditions that you wanna confirm before you buy or sell, so replace them with what ever you want
        Block 7 and 8 count the number of trades that the ea executes (separately for both long and short)
        Look in the on trade menu you will find blocks with ID 9, 10 11 and 12 these blocks are decreasing the number of trades that are previously counted in case a trade is closed.
        Block 13 Is used to print the number of currently long and short trades on the chart. The variable buycount and sellcount are storing the number of long and short trades you can use these 2 variables to further proceed
        In my case I simply printed them on the screen hence block 13, and 14, you can do whatever you want with these 2 variables

        1 Reply Last reply Reply Quote 1
        • C
          clacky last edited by

          amazing... i miss the last step ... if i want say:
          if buycount is equal to 1,3,5,7,9,11 ... then buy

          C 1 Reply Last reply Reply Quote 0
          • C
            clacky @clacky last edited by

            @clacky
            1 (or) 3 (or) 5 (or) 7 ....

            1 Reply Last reply Reply Quote 0
            • C
              clacky last edited by

              ok, look what i found out:
              just have one variable, BuyCount ..
              if buy then buycount + 1
              if sell then buycount-1
              so after a buy, BC will be 1 , after sell BC will be 0.
              i want do this:
              if BC equal to 0, then buy
              if BC is equal to 1, the sell

              Zackry 1 Reply Last reply Reply Quote 0
              • Zackry
                Zackry @clacky last edited by

                @clacky 0_1567246162818_Screenshot_4.png

                1 Reply Last reply Reply Quote 0
                • C
                  clacky last edited by

                  top 🙂 thanks bro very helpy

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

                  Online Users

                  A
                  M
                  W
                  E
                  G
                  K
                  E
                  A
                  S
                  O
                  S
                  A
                  N
                  J

                  22
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors