Duda sobre los drawdowns en prorealtime

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264645 quote
    osdigaosdiga
    Participant
    Junior

    Buenas tardes, tengo una duda sobre cómo contabiliza PRT los DD. Para verlo con un ejemplo, tengo un backtest que en el informe detallado me dice que el DD maximo es 17,95%. Sin embargo, en la curva de equity se observan varios DD mayores (del 20%, del 30%, etc…) ¿me podéis aclarar si tengo algo mal o estoy entendiendo mal cómo contaniliza PRT los DD?

    Gracias

    Captura2.jpg Captura2.jpg Captura.jpg Captura.jpg Captura3.jpg Captura3.jpg
    #264646 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Este es el cálculo de RunUP y DrawDOWN.

    Funciona exactamente igual que en ProRealTime.

    De hecho, lo probé con la versión 10.3, ¡pero creo que no ha cambiado!

    // DrawDown & RunUp
    //
    ONCE Capital  = 10000
    ONCE MinPoint = Capital
    ONCE MaxPoint = 0
    ONCE MaxRU    = 0
    ONCE MaxDD    = 0
    //------------------------------------------
    //       EQUITY
    Equity        = Capital + StrategyProfit
    TempProfit    = PositionPerf * PositionPrice / PipSize * PipValue //   / abs(CountOfPosition)
    TempEquity    = Equity + TempProfit
    //------------------------------------------
    //       DrawDown
    MaxPoint      = max(MaxPoint,TempEquity)
    DD            = MaxPoint - TempEquity
    MaxDD         = max(MaxDD,DD)
    DDperc        = MaxDD * 100 / Capital
    //
    //------------------------------------------
    //       RunUp
    MinPoint      = min(MinPoint,TempEquity)
    RU            = TempEquity - MinPoint
    MaxRU         = max(MaxRU,RU)
    RUperc        = MaxRU * 100 / Capital
    //------------------------------------------
    //       DD/RU ratio
    DDRUratio     = (MaxDD / MaxRU) * 100
    //------------------------------------------
    
    Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Duda sobre los drawdowns en prorealtime


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
osdiga @osdiga Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
3 weeks, 3 days ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 08/24/2026
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...