- ago
On Genetic Evolver, if I add a building block on sell and I uncheck all the sell conditions of gene roster like the image below:



I would get this error:



I assume the error is the same on buy.
In my example I would like genetic evolution to only take into account my selling building block and only look for buying conditions.

Here is the error message:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at WealthLab8.sevTabular.CompareInterpreter()
at WealthLab8.sevTabular.RevertInterpreter()
at WealthLab8.sevTabular.Populate(StrategyEvolverResults results)
at WealthLab8.cwStrategyEvolver.ReflectPredicate(Object ident, RunWorkerCompletedEventArgs cfg)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
1
504
8 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.10% )
- ago
#1
Interesting, let me see what I can do about this case.
0
- ago
#2
Is it possible to modify the tag and title in featurerequest format ?
0
Glitch8
 ( 12.10% )
- ago
#3
Yes, I added the tag. Thanks!
0
Glitch8
 ( 12.10% )
- ago
#4
Actually, have you tried this in recent Builds, looks like we already have this working.
0
- ago
#5
I don't if this helps, but here goes. This is with WL8 Build 80.

Preferences -> Evolver -> Gene Roster I have the following checked:
Chart Patterns
Consecutive up/down
Crosses Signal Line
Oscillator
Smoother Crossovers

Preferences -> Evolver -> Buy
Time of day is greater than or equal to 936
Time of day is less than or equal to 1015

Preferences -> Evolver -> Sell
Sell at market when RSI(Close, 5) Turns down

Preferences -> Evolver Slots 1 to 5 Template Strategies - none of them checked
Preferences -> Evolver Slots 6 to 10 Custom Template Strategies - none
Preferences -> Evolver Exclude Lengthy Run Times is checked

Open a new Strategy Genetic Evolver window
Error dialog appears: Strategy Generation Error: No entry or exit genes selected. OK the dialog.
Do like me and completely ignore the error message above.
Click the Start button in the Strategy Evolver window

Exception occurs:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at System.Collections.Generic.List`1.get_Item(Int32 index)
at WealthLab8.sevTabular.SelectToken()
at WealthLab8.sevTabular.RunToken()
at WealthLab8.sevTabular.Populate(StrategyEvolverResults results)
at WealthLab8.cwStrategyEvolver.PrepareIssuer(Object spec, RunWorkerCompletedEventArgs cust)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

So, yea, I get it. No entry or exit genes were selected, but the exception should be handled. Maybe it should pop up the error dialog again "No entry or exit genes selected"
0
Glitch8
 ( 12.10% )
- ago
#6
The original request was to avoid the warning message if you de-select all of the Sell Genes yet you've provided a Sell Block of your own in the Preferences. I believe that's now handled and you can accomplish this.

You need at least one Entry Gene selected for the Evolver to function.

But thank you for posting the exception that occurs when you de-select everything. Let's see if we can handle that with a warning dialog instead of the exception window.
0
- ago
#7
My request here is that when I uncheck the strategy genes on Gene Roster, the Evolver strategy only considers my conditions.





In this case, the goal is for Strategy Evolver to only look for sell conditions, but not to combine my condition with any others.

If I understood correctly, buy at market, limit etc... have genetic attributes, which poses a problem.
0
Glitch8
 ( 12.10% )
- ago
#8
The Evolver can always mutate a Strategy, adding new random conditions. That's just part of the process.

Prohibiting this isn't anything you mentioned in the original topic and it would need a new #FeatureRequest at this point.
0

Reply

Bookmark

Sort