Parameter range set setting does not constrain parameters completely

dev3

The parameter sets setting for Session high, session low as the picture 1.



At first, I want to SQ X only pick parameter from the parameter sets, not the random values. But I find no way. So I set the fixed value. picture 2.


But at last, I found that some parameters are out of the setting.



Attachments
Strategy 39157.sqx
(44.40 KiB)
3.png
(36.51 KiB)
1.png
(39.82 KiB)
Build.cfx
(33.86 KiB)
2.png
(32.89 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status In progress
  • Priority High

History

e
#1

eastpeace

15.03.2021 09:18

Task created

e
#2

eastpeace

16.03.2021 03:03

Attachment Build.cfx added

Attachment Strategy 21105.sqx added

Attachment Strategy 21108.sqx added

Build.cfx
(33.83 KiB)
Strategy 21105.sqx
(22.88 KiB)
Strategy 21108.sqx
(23.81 KiB)

Hello, Mark,


There is another similar one.


That is De marker signal. The range of the value should be 0 to 1 according to the formula. And it's right in the default parameter values setting. The level is from 0 to 1, step 0.1.


But SQ always generating some strategy like this,



LongEntrySignal = (DeMarker(Main chart,DEMCrossPeriod)[2] crosses 0.3 downwards); ShortEntrySignal = (DeMarker(Main chart,DEMCrossPeriod)[2] crosses -0.3 upwards);



LongEntrySignal = ((DeMarker(Main chart,DEMPeriod)[3] > 0.4)    and (DeMarker(Main chart,DEMPeriod2)[1] > 0.7)); ShortEntrySignal = ((DeMarker(Main chart,DEMPeriod)[3] < -0.4)    and (DeMarker(Main chart,DEMPeriod2)[1] < -0.7));



So, there is always no short trades.



And the calibrate indicators may need to be further improved. It give the minimum demarker is 0.29 and the maximum is 0.73.


But I think the range is more appropriate based on the formula, which can avoid the cognitive bias of small data set. And that's for the further testing of other relevant instrument.


And maybe we need set the watershed between for long and short, just like  0 for macd, 50 for rsi, 0.5 for dem.   That's is very important when we get the range from the data, not formula.







MF
#3

Mark Fric

19.03.2021 11:17

Priority changed from Normal to Urgent

MF
#4

Mark Fric

22.03.2021 12:39

Status changed from New to In progress

I fixed DeMarker, there was a mistake in oscillation settings.


e
#5

eastpeace

26.03.2021 13:14
Hello, Mark,


Has the issue of session high / low/ close been fixed? I 'm thinking about whether to try dev4. 


And I would like to see the session high as indicator showing on the trades charts (trading options). It display HighestInRange, but no session high now. 


Thanks.



MF
#6

Mark Fric

30.03.2021 09:07
it was not fixed yet, the fix would require a lot of work, I'm not sure we'll manage to do it in 131. 


The problem is in genetic evolution, crossover and mutations don't respect the parameter sets. You'll have it correctly if you'd use Random generation.


e
#7

eastpeace

31.03.2021 02:05

It sounds like a big project, but I believe you and your team can handle it definitely.


The UNION of parameter sets and random parameters  is the complete parameter SET for evolution.



MF
#8

Mark Fric

31.03.2021 11:59

Priority changed from Urgent to High

done partially. It works for genetic mutaton, but not for crossover. It is much more work making it work there, it will have to weait until build 132.


So if you want to have it restricetd simply turn crossover to 0.

MF
#9

Mark Fric

31.03.2021 13:18
unfortunately, there are still some issues even with mutation. I'm reverting this change, it will not be a part of 131 build.


It will have to wait until build 132. For now it will work correctly with Random generation.

e
#10

eastpeace

28.03.2023 17:10

Attachment 2023-03-28 230453.png added

Attachment 2023-03-28 230539.png added

2023-03-28 230539.png
(98.95 KiB)
2023-03-28 230453.png
(36.66 KiB)
Related issues:

Potential issue/inefficiency with crossover causing various problems - Strategy Quant

[Build 136] not respecting custom parameter levels - Strategy Quant


I found that this issue still exists in B137 dev4, but I remembered the previous feedback. So some related ones.


Some strs in the databank with LRSI parameters,0.6, 0.9 , and I don't want to use those parameters

E
#11

Emmanuel

16.08.2023 01:01
Voted for this task.

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please