Looking for Momentum

Forums ProRealTime English forum ProOrder support Looking for Momentum

Viewing 6 posts - 1 through 6 (of 6 total)
  • #175806

    Hi,

    Attached is a strategy from Kevin Davey, Momentum and Big Range.  Very simple  entry code which I really like.  With help from JC_bywan, thank you.  What I notice is the significant  uptick in performance from 2017 onward.  Therefore, there must be a filter to say when this market condition will change or end?  Any ideas would be greatly appreciated.  Have yet to try to adapt to other indices or CCY pairs.

    (Also – PRT seems to think it is in the market for an infinite period of time!  Not sure what’s happening there.)

    Thank you very much,

    S

    2 users thanked author for this post.
    #175812

    At line 24, your “avgrange” variable is made equal to rrange Nbars ago, if that’s you wanted then ok… but just in case, with the name suggesting it might be an average, if what you wanted is the average of rrange over Nbars, then it would be:

     

     

    #175815

    is that backtest for long only? short entry is //

    #175816

    At line 24, your “avgrange” variable is made equal to rrange Nbars ago, if that’s you wanted then ok… but just in case, with the name suggesting it might be an average, if what you wanted is the average of rrange over Nbars, then it would be:

    Thank you, my error.  I also see I hadn’t copied over the “DEFPARAM CUMULATEORDERS = FALSE” at the start.

    1 user thanked author for this post.
    #175817

    is that backtest for long only? short entry is //

    Hello – This is a long only strategy for now.  I have left the short side in but commented out for now, as I plan to add it in for the next version.

    1 user thanked author for this post.
    #175818

    I also see I hadn’t copied over the “DEFPARAM CUMULATEORDERS = FALSE”

    I was about to say that. makes a rather large difference, but i guess you’ve seen that now.

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

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