fxDreema

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

    Counter of closed operations.

    Questions & Answers
    2
    3
    772
    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.
    • J
      Juan Manuel Quiñonero last edited by

      How to do to count for example 5 operations and at the end stop trading, reset the counter the next day and start trading again?

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by josecortesllobat

        This might be an approach:

        At "OnTrade" section, when a position is closed, increase by one a variable called like "CloseTradesCount"

        0_1542869272502_e2628f13-c33c-4585-817e-04a570b3ad71-image.png

        At "OnTick" section, add a condition like: if CloseTradesCount >= MaxTradesPerDay -> Close all --> Stop/Reset Counter or what you would like to do.

        1 Reply Last reply Reply Quote 0
        • J
          Juan Manuel Quiñonero last edited by

          Worksssssssssssssssssss.
          Gracias, Thank you.

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

          Online Users

          X
          K
          F
          A

          10
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors