fxDreema

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

    2 lost per day

    Questions & Answers
    2
    3
    410
    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.
    • L
      luisjunior1224 last edited by

      how can I do that if the EA loses an operation for example on Tuesday, that day do not put more operations and that Wednesday again look for operations

      Luis Martinez

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

        I would say that you need some project branches to get what you are looking for.

        bool StopTrade (variable to be modified depending on the conditions)

        Branch - 1 -> Conditions to trade will be checked out if StopTrade == false

        0_1575997686159_5cbd2318-73e7-47a4-93dd-7e835a0bf951-image.png

        Branch - 2 -> If a closed trade is a lose, then StopTrade == true

        0_1575997800811_f63ae771-c678-4cfc-a705-b6d2f5df16e9-image.png

        "For each closed trade" with n = 1 (newest to oldest) will load only the last trade closed. If the profit of that last trade is < 0 (lose), then StopTrade == true. With that, the conditions to trade will not be checked out anymore until the variable StopTrade become false.

        Branch - 3 -> Reset StopTrade for each new day

        0_1575998104573_a3db728b-6a2a-4c49-a129-38cf6069d5f5-image.png

        That could be an approach. NOT TESTED

        L 1 Reply Last reply Reply Quote 1
        • L
          luisjunior1224 @josecortesllobat last edited by

          @josecortesllobat thanks

          Luis Martinez

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

          Online Users

          A
          A
          E

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors