fxDreema

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

    I want the EA to show the consecutive losses

    Questions & Answers
    2
    3
    459
    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.
    • U
      uchiha last edited by

      Hello

      I want my EA to always shows the maximum number of consecutive losses in a row, and updates on every new closed trade.

      Example: after 5 trades, E.A has 4 consecutive losses: it displays 4, it makes a profit on the next trade, then 6 trades after it makes 5 consecutive losses: since 5 is greater than 4: the display changes to 5

      Can you show me how to do it? I am having big troubles with the logic.

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

        You can try this: http://prntscr.com/7mw89j
        But because statistics calculations will be turned on, the EA will become slower for backtest. And by the way I'm not sure how correct the value will be. And the value is also global, it does not care what is the magic number of trades.

        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          😮 cant believe I never saw that. Thanks. I will try it. 😄

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

          Online Users

          L

          20
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors