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!

Parameter Set Weights not behaving as expected

3 replies

codeowl

Subscriber, bbp_participant, customer, community, sq-ultimate, 15 replies.

Visit profile

4 years ago #277792

Hi there,

I am running StrategyQuantX 135 on Windows 10.

I have a very simple build with:

  • 1 Signal
  • 0 Indicators
  • 0 Stop/Limit Entry Blocks
  • Enter at Market
  • Exit Trailing Stop
    • Default Parameter Set Weight = 0
      • This one uses the Global Indicators Period: Min=60, Max=200 for ATR Period.
    • My Custom Parameter Set Weight = 1000
      • This one uses Min=10, Max=25 for the ATR Period.

I Clear the DataBank and start the build and it generates some strategies.  I then look at the source code of the strategies and they all have ATR Period > then 25.

Eg;

Trailing Stop = TrailingStopCoef * ATR(130);

In the documentation here:

https://strategyquant.com/doc/strategyquant/building-blocks/#parameter-sets

It says:

Parameter sets compete with normal parameter definitions for which of them will be actually used in the generated block. You can use Weight to increase probability that a particular set is used.

For example, by setting Weight of Parameters to 0, while keeping Weights of parameter sets to 1 you tell SQ to generate parameters only using parameter sets.

 

But this is not what is happening.  Instead all Strategies (I looked at the source of every one generated) had an ATR Period between the Global Indicators Period: Min=60, Max=200.  Which is what the default Parameter Set is configured to do.  But I have Weighted that at 0 and Weighted my custom set at 1000 and it is configured to only use ATR Period between 10 – 25.

Why is this happening?  What am I doing wrong here?

I have attached the build file.

The build config as follows:

What to Build:

  • Strategy Type: Simple
  • Additional Build Config:
    • Trading Directions: Long
    • Strategy Style: SQX Signals
    • Build Mode: Random Generation
    • # of Conditions, Periods
      • Condition in Entry: Min=1, Max=1
      • Condition in Exit: Min=1, Max=1
      • Global Indicators Period: Min=60, Max=200
      • Global Lookback Period: 1
    • Stop Loss: Not Required
    • Profit Target: Not Required

Data:

  • Engine: TradeStation

Trading Options:

  • Exit At End Of Day: True
  • Reserved Bars: 200

Building Blocks:

  • Signals (Predefined Conditions)
    • Awesome Oscillator crosses above Level
  • Indicators: None
  • Stop/Limit Entry Blocks: None
  • Order Types:
    • (MKT) Enter at Market
  • Exit Types:
    • Trailing Stop: Required
      • Fixed Value: Off
      • ATR-Base Value: On
        • Default All Random Set: Weight = 0
        • My Custom Set: Weight = 1000
          • ATR Period: Custom
            • Min = 10
            • Max = 25
            • Step = 5
      • Price Level: Off

 

 

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

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #277995

Hello,

ok, I will check your config and let you know

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #278000

Hi,

it seems you have all set correctly and the custom parameter set should be respected. I have notified our dev team about this to check and fix into next update

0

codeowl

Subscriber, bbp_participant, customer, community, sq-ultimate, 15 replies.

Visit profile

4 years ago #278004

Tomas,

Thanks for following up on this, and passing on to the dev team.  Much appreciated.

 

Regards,

Scotty

0

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