fxDreema

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

    IF all trades profitable

    Questions & Answers
    2
    3
    968
    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
      doperthancereal last edited by

      Hello,

      Having trouble figuring out how to add volume to a trade only if all of my trades within my loop are profitable. In other words, if ANY of them are not in profit, I dont want it to pass. I attached what I have below but its currently not working.

      Any help appreciated,

      Thanks
      Danny
      0_1483567174017_fxdreema.jpg

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

        I think you need create two For each Trade loops (but not in one connection, firstly one loop and than second loop)
        in first loop check if all trades are profitable if is one lossable - give info into variable (like lossableTrade=true) and break this loop
        next can be or must not be controlled second loop (depends on variable lossableTrade) for adding to volume

        Between trading and gambling is a very small gap, be careful.

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

          Thanks for your help as always Miro, I enjoy your work! I'll give it a go, and let you know how it works out.

          Cheers

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

          Online Users

          M
          R
          G
          T
          G
          Y
          C
          S
          S
          S
          A

          21
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors