New strategy template

Forums ProRealTime English forum ProOrder support New strategy template

Viewing 15 posts - 1 through 15 (of 36 total)
  • #169730

    I’ve been working on a strategy template and thought I’d post it here in case anyone finds it useful. The idea is to include as many common features as possible, most of them being switchable so you can easily opt out of the bits you don’t want. It also includes typical optimization parameters so they don’t have to be entered again and again – just build or insert a strategy and most of the other stuff will already be there with provisional values.

    Most of what’s here are snippets created by various people – namely Nicolas, Vonasi, Roberto and Paul among others – that i’ve picked up along the way and found useful. I’m hoping the overall package can be improved and it would be great to hear suggestions for anything else you feel should be included (as well as checking for errors that may have crept into the coding).

    There’s a choice of 3 different trailing stops, and I thought of doing the same for MoneyManagement options but, as this seems to be quite a personal choice, I only included the one that I normally use. You can swap it out for whichever you prefer, as long as it produces a value for ‘positionsize’.

    This version has some aspects specific to the DAX: spread, minimum positionsize, minimum stop distance (for ATR TS), and certain MoneyManagement details. These have to be altered if you want to use it with other instruments.

     

     

    10 users thanked author for this post.
    #169734

    Nice job nonetheless, this will spare many of us hours of searching and coding.

    Thank you 🙂

     

    1 user thanked author for this post.
    #169739

    Hey Roberto, glad you like it. A lot of the code is yours so grazie a te!

    I wanted to check, in your TS, at line 456 above, there’s a value for PriceDistance. Is this a variable, or the IG minimum stop distance?

    (I assumed the latter)

    #169740

    What a great idea Nonetheless … you are a Star!!

    Thank You so much for sharing your work pulling all the  snippets together!

    #169742

    @nonetheless

    your assumption is right, it’s the broker’s minimum distance required for pending orders.

     

     

     

    #169743

    @GraHal

    you could add it to the snippet library as a combo snippet!

     

    1 user thanked author for this post.
    #169745

    Link to above Combo Snippet Template added as Log 286 here …

    Snippet Link Library

    #169746

    pulling all the  snippets together!

    Well, not ALL the snippets, but hopefully some of the more useful ones. Let’s see if any changes/improvements come to light over the next few days and I’ll knock up separate versions for the main indices to lodge in the Snippet Library for posterity…

    Actually I spotted a mistake already, line 139 should be >=

    Don’t know how that happened ???

    1 user thanked author for this post.
    #169747

    v2 with minor changes and corrections…

    #169749

    let’s try that again, I think I exported without saving and somehow the correction didn’t register ???

    5 users thanked author for this post.
    #169795

    Excellent idea.  This would make it very streamlined to optimise and may lead to interesting results.

    We could add candlestick patterns or generic filters into the template. Ofcourse Grahals snippets.

    Ill try to contribute as well when i can.

    #169809

    some minor changes, plus versions specific to DJ, NAS, SP500

    1 user thanked author for this post.
    #169826

    Thank you very much for this initiative! I was just thinking of creating a few specific topics to bring together the snippets by theme: trailing stop, money management, etc. Bravo!

    1 user thanked author for this post.
    #169840

    a few more changes, corrections…

    3 users thanked author for this post.
    #169892

    On small simplification suggestion:

    Line 23 and 26 of the original code

    23:  if positionsize < minpositionsize then

     

    26:  if positionsize > maxpositionsize then

     

    Thanks for sharing your template

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 36 total)

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