MAE MFE code/indicator

Forums ProRealTime English forum ProOrder support MAE MFE code/indicator

Viewing 10 posts - 1 through 10 (of 10 total)
  • #88818

    Hi all,

    Is there a readymade code for MAE and MFE.

    I would like to be able to answer the question:

    “what is the maximum amount ever gained since this trade started” – for MFE and the opposite for MAE for both sell and buy orders

    I started writing the code for this but am hoping it already exists

    Also, it would be good to have “what is the MFE on the last X bars”

    Thanks

    P.S – I really appreciate your help and support, it is amazing!

    #88833

    This might be of use:

    https://www.prorealcode.com/topic/mae-and-mfe-calculator/

    It comes up as the top item if you type MAE MFE in the search box!

    #88837

    Thanks,

    Naturally, I checked it before posting, but it is not exactly what I am looking for, the question is does a pre built indicator exist in the language, like ATR for example or HIGH, LOW etc.

    Otherwise I can code it myself, it just takes longer…

    Thanks again!

    #88844

    There is no pre-built indicator or code that provides what you want but coding it wouldn’t be very difficult and a lot of the basic calculations are in what I wrote. You just need to start recording MFE and MAE highest highs and lowest lows distance from TRADEPRICE from the moment a position is opened and then reset it when it is closed.

     

    1 user thanked author for this post.
    #98428

    What does MAE and MFE stand for please?

    i see them when i am looking at back testing history but havent been able to find out what they mean.

    thanks

    DJ

    #98449

    The MAE term stands for “Maximum Adverse Excursion” and refers to the biggest movement against you while you are at market.

    While the MFE (Maxime Favorable Excursion) is the inverse: maximum gain achieved while you are at market.

    1 user thanked author for this post.
    #101314

    I have been using Probacktest to backtest my trading strategies for over two months now on a daily basis.

    I have recently noticed that the MAE figure on the detailed report does not take into account the max movement against you on the entry bar itself; but then also noticed yesterday night by reviewing a small sample of the winning trades from the detailed report’s closed positions list that the MAE is not really the max price it went against your trade at all. This makes me wonder whether the absolute performance figures and MFE have any bearing….

    Should I trust that the return figure on the overview tab information on the probacktest results is correct?

    I normally use the MAE as an indicator of the size of stop loss required for the strategy, but how accurate is it? can I trust it? please help

    #101340

    a small sample of the winning trades from the detailed report’s closed positions list that the MAE is not really the max price it went against your trade at all.

    I (and I’m sure others?) would love to see examples of what you found??

    I’m not doubting what you say btw.

    #129348

    inside a strategy, it shows mae / mfe

     

     

    2 users thanked author for this post.
    #129361

    Above added as Log 212 here …


    @Vonasi
    MAE / MFE Indicator added also as Log 213

    Snippet Link Library

    4 users thanked author for this post.
Viewing 10 posts - 1 through 10 (of 10 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login