READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Genetic evolution not working with RandomConditions in a template.

3 replies

Dave

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

Visit profile

1 year ago #288428

I updated from version 138 to 141 last week and opened an advanced strategy previously created in version 138 AlgoWizard. When I tried to generate strategies in 141 using random generation it worked fine but when I tried to run it using genetic generation it does not populate the Last Generation database. The reported reason the strategies are rejected is:

17:45:12 Strategy 2.0.100 – Main test – OK in 0.29 s. – dismissed, strategy indicators require X reserved bars

I then downloaded version 140 and has the same problem but runs fine in version 139 and earlier.

The cause of the problem has been identified. Using a “RandonCondition(xxx)” in a Trade Signal will cause a failure if Genetic Evolution is selected.

I have attached a sample strategy that uses two RandomCondition(xxx). If those two conditions are deleted, genetic evolution will run correctly. If one or both are present only random generation will work.

Attachments:
You must be logged in to view attached files.

Never give up!

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #288586

Hi,

navigate to Trading Options -> Reserved bars and set a higher value such as 200. It should work well then

0

Dave

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

Visit profile

1 year ago #288620

Sorry, I already tried that and it does not solve the problem.

Never give up!

0

Dave

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

Visit profile

1 year ago #288625

I just created a new test template which I have attached.

The results from using this template are: Versions 138 and 139 have no problem using this template and using genetic generation.  Version 140 and 141 will not populate the initial generation because of the error defined in the original post.

Here are the settings used for all versions (138, 139, 140 and 141):

What to build

Strategy from template: 140Test.sqx (attached)

# of Conditions, Periods:

Global indicators period: Min 5 Max 200

 

Genetic options:

Filter:

# trades (IS) > 50

Profit factor (IS) > 1

 

Data:

Tradestation engine. No additional charts.

@ES.D on the Daily.

Note: full available data: 2001.12.29 to 224.12.10

Date range for building: 2007.01.01 to 2019.1.1

Out of sample testing: 10(IS) x 10(OOS)

 

Trading Options:

Reserved bars = 200

 

Building Blocks:

Every option in each section has been selected.

 

Money Management:

Starting balance: $25000

Fixed 1 lot.

 

Cross checks:

All disabled.

 

Ranking:

Max strategies to store: 1000

Totally: 10000

Strategy Quality ranking (fitness): Return / Drawdown ratio

Custom filters: attached.

 

Please let me know if you need any additional information.

Attachments:
You must be logged in to view attached files.

Never give up!

0

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