Optimization of Darvas Boxes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18250 quote
    Philip Raphael
    Participant
    New

    Dear community,   I’ve been trying hard to find a code, that would try to substitute the incredible results reached by http://www.prorealcode.com/prorealtime-indicators/darvas-boxes/. My code to get the best results out of it was as follows:

    DEFPARAM CumulateOrders = False
    
    indicator1 = highest[250](close[1])
    IF close CROSSES OVER indicator1 then
    BUY 1 LOTS AT MARKET
    endif
    
    // Relative Strength according to Levy
    indicator2 = Average[125]
    
    if close CROSSES UNDER indicator2 then
    sell at market
    endif

    Have you find formulas to optimize Darvas boxes that can be automatically traded on PRT?
    I appreciate your help in advance!

    Many thanks to all of you!

    Best regards,
    Philip

    #18430 quote
    JC_Bywan
    Moderator
    Master

    Hi

    Unfortunately unless I am mistaken, the darvas box code uses the DPO indicator (detrended price oscillator), and this DPO uses future data for past candlesticks. However it cannot achieve this for the most recent candlestick because using “future within historic of data” is one thing, but using “unknown future beyond present time” is another… This makes DPO (and therefore Darvas box) unsuitable for automated trading.

    There is a second DPO calculation not using future data, but it gives very different results. Somebody wanted to try it on the french PRC forums, but we never heard back from him.

    #18452 quote
    Philip Raphael
    Participant
    New

    I see, I see. I think the code that I inserted here works also very well, but it’s a long run strategy compared to the DPO measurement. And somehow I am unsure whether there could be improvements to provide for short-term strategies.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Optimization of Darvas Boxes


ProOrder support

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Philip Raphael
9 years, 1 month ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 12/11/2016
Status: Active
Attachments: No files
Logo Logo
Loading...