Average MFE/MAE snippet

Forums ProRealTime English forum ProOrder support Average MFE/MAE snippet

Viewing 12 posts - 1 through 12 (of 12 total)
  • #166439

    Hi Guys,

    Does someone of you have an average MAE/MFE snippet as indicated on the backtests results ?

    Thanks and have a nice day

    #166456

    no idea how you would code that, but you can always drag the results into Excel if you just want to know the averages.

    Or do you want to use that data as part of your strategy?

    #166457
    #166463

    Thanks @Nicolas

    But

    Link1 : Doesn’t work

    Link2 : It’s an indicator not in proorder

    Link3 : I will try

     

    @nonetheless

    Yes I want to try a filter based on

    Have a nice day Guys

    #166464

    The link3 with your code @Nicolas seems not to work

    Any ideas ?

    #166467

    It is a calculation in points, not in currency, I do not understand the comparison?

    #166475

    It’s in EUR/USD so 1 pip=10 USD easier to calculate and verify

    The problem seems to be when PRT calculate MFE

    As you see on the picture

    The abs perf (In this strategy) is 300 USD (Stop loss) and as you see on the strategyprofit curve its never higher of 300 USD (on this trade)

    But in the backtest result we have a MFE of 336 USD ???

    #166480

    @Nicolas

    To try use a strategy on EUR/USD, put a stop/target at 300 USD

    Add

    graph (((high-positionprice)*pointvalue)*countofposition)/pipsize

    You will have a “band” between -300/+300 but a MFE higher ??

    Don’t understand why, or it’s a bug

    #166483

    So

    was the calculation you were looking for to compute the MFE for a long order, right?

    For the 336USD MFE, please share the code so I can replicate and find out why, thanks.

    #166516

    I will send you, but first, very often on a backtest MFE is a Zero

    A bug I see very often

    #166519

    Try with this simple code for example:

    On backtest results MFe and MAE  are generally Zero

    And when you have MFE it’s over the Target …

    Seems to have different bugs

     

     

    #166526

    Another, problem, with the same code above

    With tg=41 for example

    If we add all MFE and divide py 8=number of trades, the results (Average MFE is 287.5)

    BUT if you see teh backtests results it gives 258.75 …

Viewing 12 posts - 1 through 12 (of 12 total)

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