Reply

Generating strategy from custom template

7 replies

eastpeace

Customer, bbp_participant, community, sq-ultimate, 305 replies.

Visit profile

4 years ago #250639

Hello everyone.

Can you use generate strategy from template?

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

https://strategyquant.com/doc/strategyquant/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.

 

 

 

 

0

coensio

Customer, bbp_participant, community, 106 replies.

Visit profile

4 years ago #250640

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

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

This is a false statement.

0

eastpeace

Customer, bbp_participant, community, sq-ultimate, 305 replies.

Visit profile

4 years ago #250649

Thanks, coensio,

It works.

0

eastpeace

Customer, bbp_participant, community, sq-ultimate, 305 replies.

Visit profile

4 years ago #250658

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.

0

coensio

Customer, bbp_participant, community, 106 replies.

Visit profile

4 years ago #250661

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.

 

 

This is a false statement.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #250690

eastpeace,

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

0

eastpeace

Customer, bbp_participant, community, sq-ultimate, 305 replies.

Visit profile

4 years ago #250721

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.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #250790

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.

0

Viewing 7 replies - 1 through 7 (of 7 total)