fxDreema

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

    Store and compare orders count

    Questions & Answers
    2
    3
    930
    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.
    • M
      Mastersenseo last edited by

      Hello, first of all thank you very much for such a good tool.

      In my new EA i am planning to work with 2 different group of orders. What I need is to check for each group is how many long, short, pending long and pending short orders are created.

      I have tried to create 8 different variables and use 4 different "for each trade" blocks and 4 different "for each pending order" blocks but with no luck.

      Can you please show me an example of how to get this order count and store it?

      Many thanks in advance!

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

        Try this: http://prntscr.com/43w81o

        Setting the variable to 0 is needed, because it will then be incremented and you don't want to incremenet it on every tick without resetting.
        In my case I use "V1" to descrive the variable, not it's real name. This "V1" is valid only in this small window, it is not a variable name... just something short to use instead the variable's name.

        1 Reply Last reply Reply Quote 0
        • M
          Mastersenseo last edited by

          Thank, works like a charm!

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

          Online Users

          T
          M
          D
          O
          M
          E
          Q
          Q
          Q
          R

          17
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors