fxDreema

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

    Close Trades when a specific rawdown is reached

    Questions & Answers
    2
    2
    646
    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.
    • H
      Helder last edited by

      Does anyone here knows how to close Trades when a specific drawdown is reached?. Thank you.

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

        You can try this: http://prntscr.com/e766g3 I hope that it will work, but I'm not sure, because I made this long time ago and even I forgot how this thing works. What I tried back then is to make all the statistics that appear after the end of a backtest available in realtime. Probably not the best idea ever, these calculation would slow down the EA 🙂 This is only for the MQL4 part.

        I guess Drawdown can be also calculated with some Variables. I forgot how exactly this was calculated, but I think that you need to always look for the maximum value of Equity (or Balance).

        All the above is true for the global Equity/Balance. If you want to work only with certain group of trades... well, maybe you don't really want Drawdown, maybe you want "Check profit (unrealized)". Also different values calculated from certain group of trades can be get with these "Bucket..." blocks.

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

        Online Users

        S
        B
        F
        T
        C
        E
        M
        E
        M

        13
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors