fxDreema

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

    how to say if we have more than two sl don't trade

    Questions & Answers
    2
    4
    149
    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.
    • S
      sara2007 last edited by

      Hi I want to make this condition but I can't.
      how to say if we have more than two sl don't trade.

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

        There is a block called For Each Closed Position, combined with Check Loss Block might be a starting point. You will have to define what you mean buh "have more than 2 SL"; 2 SL in a row ? 2 SL of the last 10 trades etc.

        S 1 Reply Last reply Reply Quote 0
        • S
          sara2007 @doeveR last edited by

          @doeveR
          I want the robot to not trade for an hour if there are two consecutive losses.

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

            That seems possible. Loop through your Closed positions and check for each loss-trade how long ago it was closed (use block check age). With this you should be able to achieve what you describe.

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

            Online Users

            P
            R
            A
            D
            A

            24
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors