Not logged in
Viewing 8 posts - 1 through 8 (of 8 total)

Forums>StrategyQuant>General Discussion>Generating strategy from custom template

  • #250639|
    Customer
    224 Posts

    Hello everyone.

    Can you use generate strategy from template?

    This guide is out of date, SQ X is changed.

    https://strategyquant.com/doc/developing-strategies-using-custom-strategy-templates/

    I have tried to create a template in algowizard, but failed.

     

    I want to create a strategy like this,

    long condition:

    close > closed[1]

    and random condition

    and random condition 2

    then entry at market or at stop

    long exit condition:

    stop loss

    and random exit condition

     

    Cant it work in the SQ X?   Has anyone tried to use custom template? Please give me some guide.

     

     

     

     

    #250640
    Customer
    80 Posts

    This can be easily done just look into the example template with random conditions:

    C:\StrategyQuantX\user\settings\StrategyTemplates\SQ4StrategyTemplateExample.sq4

    #250649
    Customer
    224 Posts

    Thanks, coensio,

    It works.

    #250658
    Customer
    224 Posts

    But what does that mean,

    When start building strategy from template, SQ prompt this,

    “Error while running project ‘Builder’.
    Bad configuration – Identification ‘RandomActionLong’ used in more than one random blocks!”

    I just modify the exit method as below

     

     

    Attachments:
    You must be logged in to view attached files.
    #250661
    Customer
    80 Posts

    I think the issue is that your Long and short settings (Long entry and Short entry) tabs are not symmetrical, on Long entry tab you have only enabled ‘exit after bars’ but on the short side you are enabling more building blocks.

     

     

    #250690
    tomas262
    Administrator
    1116 Posts

    eastpeace,

    let us know if what coensio suggested helped to make it work. If not we could find another way

    #250721
    Customer
    224 Posts

    Hello, tomas262,

    I thinks it’s not that reason.

    I delete all long and short action, create new actions for long and short entry. That works. (test_new.sqx file)

    ps. I can’t find the OppositeAction(#identification#), so create actions separately with different identification.

    And “Using full wizard” with “Create basic strategy template”, there are no random conditions and random comparisons.

    Algowizard is mt4’s style, is it suitable for TS/MC?  Some questions.

    1, RULE is TRIGGERED ON BAR OPEN.

    2, Bars valid

    3, Order identification (Replace existing order)

    Maybe, we need a latest guide and some examples with the b125.

     

     

    Attachments:
    You must be logged in to view attached files.
    #250790
    tomas262
    Administrator
    1116 Posts

    You need to activate the template mode first then the random actions / conditions will become available. You can use the templates to generate strategies for TS/MC if you like.

    Attachments:
    You must be logged in to view attached files.
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.