GSB Forums

Not logged in [Login - Register]

Futures and forex trading contains substantial risk and is not for every investor. An investor could
potentially lose all or more than the initial investment. Risk capital is money that can be lost without
jeopardizing ones’ financial security or life style. Only risk capital should be used for trading and only
those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of
future results
Go To Bottom

Printable Version  
Author: Subject: Exception
roma_1111
Junior Member
**




Posts: 2
Registered: 9-7-2017
Member Is Offline

Mood: No Mood

[*] posted on 10-7-2017 at 10:36 AM
Exception


Hello Peter,
I was trying to run GSB on @FGBL data (German Bund).
I get always this exception

Exception.png - 66kB


View user's profile View All Posts By User
admin
Super Administrator
*********




Posts: 5069
Registered: 7-4-2017
Member Is Offline

Mood: No Mood

[*] posted on 10-7-2017 at 05:18 PM


Can you zip up the data file and send to me?
Also give me the exception code as .txt file.
A screen shot of the GUI would be good too.
A tip can be, use GSB on the defaults, then vary things a bit.
Changing lots of things at once when your not familiar with GSB is more likely to land you
in unproductive areas.


View user's profile View All Posts By User
roma_1111
Junior Member
**




Posts: 2
Registered: 9-7-2017
Member Is Offline

Mood: No Mood

[*] posted on 11-7-2017 at 03:01 AM


Yes,
here is the .txt
System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.List`1.ToArray()
at GSB.Optimizers.Optimizer.UpdatePerformancesTop(PerformanceSummary performance)
at GSB.Optimizers.Optimizer.UpdateState(PerformanceCombined pc, ParallelLoopState state)
at GSB.Optimizers.GeneticAlgorithm.BackTest(Single[] parameters, Int32 i, ParallelLoopState state, PerformanceSummary[] performances)
at GSB.Optimizers.GeneticAlgorithm.<>c__DisplayClass83_0.b__0(Int32 i, ParallelLoopState state)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`2 body)
at GSB.Optimizers.GeneticAlgorithm.OptimizeChromosomes(Chromosome[] chromosomes, Int32 index)
at GSB.Optimizers.GeneticAlgorithm.Optimize()
at GSB.Optimizers.Optimizer.Optimize(Boolean isResume)
at GSB.UI.Forms.MainForm.<>c__DisplayClass107_0.b__0()
---> (Inner Exception #0) System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.List`1.ToArray()
at GSB.Optimizers.Optimizer.UpdatePerformancesTop(PerformanceSummary performance)
at GSB.Optimizers.Optimizer.UpdateState(PerformanceCombined pc, ParallelLoopState state)
at GSB.Optimizers.GeneticAlgorithm.BackTest(Single[] parameters, Int32 i, ParallelLoopState state, PerformanceSummary[] performances)
at GSB.Optimizers.GeneticAlgorithm.<>c__DisplayClass83_0.b__0(Int32 i, ParallelLoopState state)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<---

Where can I find the data file?

Thank You


View user's profile View All Posts By User
admin
Super Administrator
*********




Posts: 5069
Registered: 7-4-2017
Member Is Offline

Mood: No Mood

[*] posted on 11-7-2017 at 04:34 AM


data files are in Data\Price Data
can you email me team viewer details so I can look at this?


View user's profile View All Posts By User
admin
Super Administrator
*********




Posts: 5069
Registered: 7-4-2017
Member Is Offline

Mood: No Mood

[*] posted on 11-7-2017 at 10:56 PM


Problem was due to a machine that had 3.5 gb ram, less usable

View user's profile View All Posts By User

  Go To Top

Trademaid forum. Software tools for TradeStation, MultiCharts & NinjaTrader
[Queries: 27] [PHP: 28.0% - SQL: 72.0%]