DD Graph

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #102256 quote
    TempusFugit
    Participant
    Veteran

    Hi,

    Does anyone know how to draw the DrawDown in a graph under the equitycurve? Something like the image attached

    Thanks in advance

    DD.jpg DD.jpg
    #102264 quote
    Vonasi
    Moderator
    Master

    This may be of use:

    Drawdowns – Have you got the Stomach??

    or maybe this:

    Possible to graph drawdowns?

    TempusFugit thanked this post
    #102277 quote
    TempusFugit
    Participant
    Veteran

    The second one is great, thanks!

    I just changed the penultime line  to graph value instead of percentage

    if longonmarket then
    floatingProfit = (((low - positionprice ) * pointvalue) *countofposition) / pipsize
    endif
    
    if shortonmarket then
    floatingProfit = (((high - positionprice) * pointvalue) * abs(countofposition)) / pipsize
    endif
    
    floatingEquity = StrategyProfit + floatingProfit
    maxequity = max(maxequity, StrategyProfit + floatingProfit)
    ddvalue =  MIN(0,floatingequity - maxequity)
    
    graph ddvalue
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

DD Graph


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by TempusFugit
6 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/09/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...