thanks, now it works :)
On 18 ene, 00:25, nonlinear5 <[email protected]> wrote:
> > I've just tested this release and I can't see the chart after a back
> > test:
>
> > Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError:
> > Java heap space
>
> Javier,
>
> Thanks for testing. I am running JBT on a machine that has 6Gb of RAM,
> so I don't have that problem. If you have less memory, here is a
> couple of things that you could do:
>
> 1. In the startup script, instead of setting
> set javaOptions=-XX:+AggressiveHeap
> use a less agressive option, such as
> set javaOptions=-Xms1M -Xmx1M (set it to whatever your max RAM is)
>
> 2. In the strategy constructor, find the line
> setStrategy(contract, tradingSchedule, multiplier, commission,
> bidAskSpread, BarSize.Minute1);
> and replace it with
> setStrategy(contract, tradingSchedule, multiplier, commission,
> bidAskSpread, BarSize.Minute5);
> This will not change the results of the backtest, but will take 5
> times less memory for storing the chart data.
>
> Let me know if this works.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---