<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-27807</id>
	<title>Nabble - ActiveQuant</title>
	<updated>2009-11-29T19:21:13Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/ActiveQuant-f27807.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActiveQuant-f27807.html" />
	<subtitle type="html">&lt;a href=&quot;http://activequant.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;activequant.org&lt;/a&gt;&amp;nbsp;is a site where you'll find the open source java trading libraries activeQuant and the former version ccapi2.
&lt;br&gt;&lt;br&gt;This forum is a discussion list about the libraries.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26569078</id>
	<title>Re: BrokerExecutorProxy</title>
	<published>2009-11-29T19:21:13Z</published>
	<updated>2009-11-29T19:21:13Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">Brendan,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Actually, when running backtester (i.e. MarketDataReplaySerive), there is no need for any threading proxy at all, because all quotes are ultimately executed by the thread that drives this MarketDataReplayService. Paper broker&amp;#39;s order-related events are triggered by quotes that it consumes and therefore are executed in the thread that fires quotes (again, its the one that drives MarketDataReplayService). So for backtesting you are already thread-safe. These Proxy classes are actually for live contexts. Sorry I did not notice that you are building backtesting context from the start and probably mislead you. Just do not worry about thread safety of backtesting context. But do worry about thread safety of live trading ones.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Mike&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 29, 2009 at 9:51 PM, bboz &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26569078&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bb@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;br&gt;
Thanks Mike, that is a big help. I had completely missed the&lt;br&gt;
xxxSubscriptionSourceExecutorProxy classes. I&amp;#39;ve added the ExecutorProxys as&lt;br&gt;
suggested and my Trade System&amp;#39;s onCandle handler is being triggered again,&lt;br&gt;
but for some reason the onOrderExecution handler isn&amp;#39;t. I&amp;#39;ll need to test it&lt;br&gt;
more, once I get my head around the event mechanism.&lt;br&gt;
&lt;br&gt;
One last question: does the MarketDataReplayService need to somehow run in&lt;br&gt;
the execute() thread too?&lt;br&gt;
&lt;br&gt;
Many thanks,&lt;br&gt;
Brendan&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
bboz wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Can anybody offer some advice on using the BrokerExecutorProxy? If&lt;br&gt;
&amp;gt; possible I would like to use it with the AccountManagingBrokerProxy and&lt;br&gt;
&amp;gt; PaperBroker to ensure trading system event handlers are called from the&lt;br&gt;
&amp;gt; same thread, but I can&amp;#39;t work out how to use it. Can anybody help?&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/BrokerExecutorProxy-tp26560113p26568751.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/BrokerExecutorProxy-tp26560113p26568751.html&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26569078&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26569078&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BrokerExecutorProxy-tp26560113p26569078.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26568751</id>
	<title>Re: BrokerExecutorProxy</title>
	<published>2009-11-29T18:51:32Z</published>
	<updated>2009-11-29T18:51:32Z</updated>
	<author>
		<name>bboz</name>
	</author>
	<content type="html">Thanks Mike, that is a big help. I had completely missed the xxxSubscriptionSourceExecutorProxy classes. I've added the ExecutorProxys as suggested and my Trade System's onCandle handler is being triggered again, but for some reason the onOrderExecution handler isn't. I'll need to test it more, once I get my head around the event mechanism.
&lt;br&gt;&lt;br&gt;One last question: does the MarketDataReplayService need to somehow run in the execute() thread too?
&lt;br&gt;&lt;br&gt;Many thanks,
&lt;br&gt;Brendan
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;bboz wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Can anybody offer some advice on using the BrokerExecutorProxy? If possible I would like to use it with the AccountManagingBrokerProxy and PaperBroker to ensure trading system event handlers are called from the same thread, but I can't work out how to use it. Can anybody help?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BrokerExecutorProxy-tp26560113p26568751.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26562988</id>
	<title>Re: BrokerExecutorProxy</title>
	<published>2009-11-29T07:31:15Z</published>
	<updated>2009-11-29T07:31:15Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">Hi Brendan,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Just combine it with any configured broker bean. Something like this:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;@Bean&lt;/div&gt;&lt;div&gt;Executor executor() {&lt;/div&gt;&lt;div&gt;   return Executors.singleThreadExcutor();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;@Bean&lt;/div&gt;&lt;div&gt;IBroker internalBroker() {&lt;/div&gt;&lt;div&gt;   ... your code for broker() here ...&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;@Bean&lt;/div&gt;&lt;div&gt;public IBean broker() {&lt;/div&gt;&lt;div&gt;   return new BrokerExecutorProxy(internalBroker(), executor());&lt;/div&gt;
&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Note that only last bean is public and is seen by the TS. Also note the importance of executor() - it defines the thread that will be used to dispatch broker events. If your TS connects to subscription events, you have to use **the same** executor instance to wrap subscription sources. This way all events are issued in executor() thread. I think there should be some bean wrapper for this - look for xxxSubscriptionSourceExecutorProxy or such.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 29, 2009 at 3:25 AM, bboz &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26562988&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bb@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;br&gt;
Hello,&lt;br&gt;
&lt;br&gt;
Can anybody offer some advice on using the BrokerExecutorProxy? If possible&lt;br&gt;
I would like to use it with the AccountManagingBrokerProxy and PaperBroker&lt;br&gt;
to ensure trading system event handlers are called from the same thread, but&lt;br&gt;
I can&amp;#39;t work out how to use it. Can anybody help?&lt;br&gt;
&lt;br&gt;
At the moment my javaconfig looks like this:&lt;br&gt;
&lt;br&gt;
@Bean&lt;br&gt;
public IBroker broker() throws Exception {&lt;br&gt;
        PaperBroker paperBroker = new PaperBroker();&lt;br&gt;
        IQuoteSubscriptionSource qs = new&lt;br&gt;
TradeIndicationToQuoteSubscriptionSourceConverter(tradeIndicationSubscriptionSource());&lt;br&gt;
        paperBroker.setQuoteSubscriptionSource(qs);&lt;br&gt;
        AccountManagingBrokerProxy ambp = new&lt;br&gt;
AccountManagingBrokerProxy(paperBroker,&lt;br&gt;
account().getBrokerAccount(&amp;quot;PAPER&amp;quot;));&lt;br&gt;
        return ambp;&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Thank you in advance,&lt;br&gt;
Brendan&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/BrokerExecutorProxy-tp26560113p26560113.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/BrokerExecutorProxy-tp26560113p26560113.html&lt;/a&gt;&lt;br&gt;
Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26562988&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26562988&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BrokerExecutorProxy-tp26560113p26562988.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26560113</id>
	<title>BrokerExecutorProxy</title>
	<published>2009-11-29T00:25:05Z</published>
	<updated>2009-11-29T00:25:05Z</updated>
	<author>
		<name>bboz</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Can anybody offer some advice on using the BrokerExecutorProxy? If possible I would like to use it with the AccountManagingBrokerProxy and PaperBroker to ensure trading system event handlers are called from the same thread, but I can't work out how to use it. Can anybody help?
&lt;br&gt;&lt;br&gt;At the moment my javaconfig looks like this:
&lt;br&gt;&lt;br&gt;@Bean
&lt;br&gt;public IBroker broker() throws Exception {		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PaperBroker paperBroker = new PaperBroker();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IQuoteSubscriptionSource qs = new TradeIndicationToQuoteSubscriptionSourceConverter(tradeIndicationSubscriptionSource());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; paperBroker.setQuoteSubscriptionSource(qs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AccountManagingBrokerProxy ambp = new AccountManagingBrokerProxy(paperBroker, account().getBrokerAccount(&amp;quot;PAPER&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ambp;		
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Thank you in advance,
&lt;br&gt;Brendan </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BrokerExecutorProxy-tp26560113p26560113.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532031</id>
	<title>asm jar no class CodeVisitor found</title>
	<published>2009-11-26T08:43:12Z</published>
	<updated>2009-11-26T08:43:12Z</updated>
	<author>
		<name>liangyi</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;after checking out aq-examples, I tried to run org.activequant.examples.tradesystem.advanced (maven 2 enabled and solved dependency), but eclipse will tell the following error log.
&lt;br&gt;&lt;br&gt;It seems coz cannot find CodeVisitor class, which is indeed, in org.objectweb.asm, there's no CodeVisitor class. Pls advise.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;liang
&lt;br&gt;***********************************
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.cglib.proxy.Enhancer.&amp;lt;clinit&amp;gt;(Enhancer.java:69)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.config.java.enhancement.cglib.CglibConfigurationEnhancer.enhanceConfiguration(CglibConfigurationEnhancer.java:119)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.config.java.process.ConfigurationProcessor.enhanceConfigurationClassAndUpdateBeanDefinition(ConfigurationProcessor.java:458)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.config.java.process.ConfigurationProcessor.processConfigurationBean(ConfigurationProcessor.java:372)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.config.java.process.ConfigurationPostProcessor.postProcessBeanFactory(ConfigurationPostProcessor.java:137)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:501)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:363)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.config.java.context.JavaConfigApplicationContext.&amp;lt;init&amp;gt;(JavaConfigApplicationContext.java:256)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.springframework.config.java.context.JavaConfigApplicationContext.&amp;lt;init&amp;gt;(JavaConfigApplicationContext.java:220)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.examples.tradesystem.advanced.Main.main(Main.java:39)
&lt;br&gt;Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.CodeVisitor
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 17 more
&lt;br&gt;*******************************************</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asm-jar-no-class-CodeVisitor-found-tp26532031p26532031.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26247043</id>
	<title>Re: The Indicator concept</title>
	<published>2009-11-07T09:51:33Z</published>
	<updated>2009-11-07T09:51:33Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 6, 2009 at 10:43 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26247043&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;&lt;div&gt;What is the best approach to transport the data series to the Indicators, keeping it as generic as possible?&lt;br&gt;I see at least two approaches, taking in consideration that an Indicator often needs to have access to the quotes before the current quote:&lt;br&gt;

1. Adding a new eventListener on ISubscription&amp;lt;Candle&amp;gt; to fire an &amp;quot;onCandle event&amp;quot; at the Indicator class. The Indicator would have to acumulate the candles, consequently duplicating these data. &lt;br&gt;It the same way the @System classes receive their candles.&lt;br&gt;

&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Nice. &lt;br&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;2. The Indicator receives the instance QuoteSeries every time a calculations is needed.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thoughts?&lt;/div&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Indicators should work on raw numbers also. Some converters come into mind, for example QuoteBidToNumber or QuoteBidVolumeToNumber, which could become some sort of a firing cascade. Subscriptions to different data sources must be possible ... would be good if the indicators themselve can become sources of events. Talk also with mike about his aq-series project, maybe he has something already. &lt;br&gt;
&lt;br&gt;Regards, &lt;br&gt;ulrich&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26247043&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/The-Indicator-concept-tp26239066p26247043.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26239066</id>
	<title>The Indicator concept</title>
	<published>2009-11-06T13:43:16Z</published>
	<updated>2009-11-06T13:43:16Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hi everyone,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;almost every trading system uses the concept of the Indicators. It is something I miss on Activequant. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The calculation is usually made directly in the system code, making more difficult to reuse code and build a system based on multiple indicators.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I would like to write base classes to add Indicators support on Activequant. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Is there a reason for the lack of the Indicators concept?&lt;br&gt;Is that welcome contribution for the project? &lt;br&gt;
&lt;br&gt;What is the best approach to transport the data series to the Indicators, keeping it as generic as possible?&lt;br&gt;I see at least two approaches, taking in consideration that an Indicator often needs to have access to the quotes before the current quote:&lt;br&gt;
1. Adding a new eventListener on ISubscription&amp;lt;Candle&amp;gt; to fire an &amp;quot;onCandle event&amp;quot; at the Indicator class. The Indicator would have to acumulate the candles, consequently duplicating these data. &lt;br&gt;It the same way the @System classes receive their candles.&lt;br&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. The Indicator receives the instance QuoteSeries every time a calculations is needed.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thoughts?&lt;/div&gt;&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;Att,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26239066&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/The-Indicator-concept-tp26239066p26239066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26224293</id>
	<title>Re: Chart with orders</title>
	<published>2009-11-05T15:31:20Z</published>
	<updated>2009-11-05T15:31:20Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">&lt;br&gt;I am about to finish one with a scroll bar. I&amp;#39;ll add the orders in that, too.&lt;br&gt;I keep you guys posted.&lt;br&gt;&lt;br&gt;regards&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 8:38 PM, Ulrich Staudinger &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26224293&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ustaudinger@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi, &lt;br&gt;i think you&amp;#39;ll have to write one ... &lt;br&gt;Code submission would be greatly appreciated. :-)&lt;br&gt;&lt;br&gt;Cheers, &lt;br&gt;Ulrich&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On Thu, Nov 5, 2009 at 11:31 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26224293&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Hello,&lt;div&gt;is there any kind of chart to easily display the data history and the orders of a system?&lt;/div&gt;

&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26224293&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;/font&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26224293&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26224293&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chart-with-orders-tp26223497p26224293.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26223567</id>
	<title>Re: Chart with orders</title>
	<published>2009-11-05T14:38:23Z</published>
	<updated>2009-11-05T14:38:23Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Hi, &lt;br&gt;i think you&amp;#39;ll have to write one ... &lt;br&gt;Code submission would be greatly appreciated. :-)&lt;br&gt;&lt;br&gt;Cheers, &lt;br&gt;Ulrich&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 11:31 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26223567&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hello,&lt;div&gt;is there any kind of chart to easily display the data history and the orders of a system?&lt;/div&gt;
&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26223567&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26223567&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chart-with-orders-tp26223497p26223567.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26223497</id>
	<title>Chart with orders</title>
	<published>2009-11-05T14:31:52Z</published>
	<updated>2009-11-05T14:31:52Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hello,&lt;div&gt;is there any kind of chart to easily display the data history and the orders of a system?&lt;/div&gt;&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26223497&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chart-with-orders-tp26223497p26223497.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26215644</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-05T06:31:43Z</published>
	<updated>2009-11-05T06:31:43Z</updated>
	<author>
		<name>CriC</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Still got the NPE &amp;nbsp;( I have added the ts.setPositionService() ) which I forgot in he attached code, but:
&lt;br&gt;&lt;br&gt;2009-11-05 14:37:49,671 [main] INFO [ts.TradeSystemLogic] - subscribed for candles: DLR	SMART	USD	FUTURE	
&lt;br&gt;java.lang.NullPointerException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase.fetchSeries(ReplayServiceBase.java:189)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase.addEventSink(ReplayServiceBase.java:67)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase.access$000(ReplayServiceBase.java:53)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.handleActivate(ReplayServiceBase.java:82)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.activate(SubscriptionSourceBase.java:357)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.access$200(SubscriptionSourceBase.java:324)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$1.activate(SubscriptionSourceBase.java:259)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription.handleActivate(TradeIndicationToQuoteSubscriptionSourceConverter.java:89)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.activate(SubscriptionSourceBase.java:357)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.access$200(SubscriptionSourceBase.java:324)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$1.activate(SubscriptionSourceBase.java:259)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.broker.PaperBroker$OrderTracker.handleSubmit(PaperBroker.java:152)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.broker.BrokerBase$OrderTrackerBase.submit(BrokerBase.java:159)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.broker.AccountManagingBrokerProxy$OrderTrackerProxy.submit(AccountManagingBrokerProxy.java:93)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.examples.tradesystem.advanced.SimplePositionService$Tracker.&amp;lt;init&amp;gt;(SimplePositionService.java:156)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.examples.tradesystem.advanced.SimplePositionService.openPosition(SimplePositionService.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.util.pattern.events.Event.fire(Event.java:43)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)
&lt;br&gt;2009-11-05 14:37:49,702 [main] ERROR [org.activequant.data.util.MarketDataReplayService$3] - java.lang.NullPointerException
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Mike Kroutikov-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;In your ZIP file TradeSystemConfig.java does not have
&lt;br&gt;ts.setPositionService() call (or I can not find it in the hurry). Where from
&lt;br&gt;your quote below comes?
&lt;br&gt;&lt;br&gt;On Wed, Nov 4, 2009 at 4:14 PM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello Mike,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mmmm yes I don't use @Inject BUT I set the positionService in the
&lt;br&gt;&amp;gt; TradeSystemConfig.java :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Bean
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected IPositionService positionService() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SimplePositionService positionService = new
&lt;br&gt;&amp;gt; SimplePositionService(broker());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;positionService.setTrailingDistance(99.0);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return positionService;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Bean
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Object system() {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TradeSystemLogic ts = new TradeSystemLogic();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ts.setPositionService(positionService());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return ts;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NOTE that with the YahooContext works perfectly fine!
&lt;br&gt;&amp;gt; I just changed the Context, from Yahoo to CSV, that's why I think the
&lt;br&gt;&amp;gt; Context is wrong...
&lt;br&gt;&amp;gt; Am I missing something?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike Kroutikov-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The NPE is thrown from line 141 of TradeSystemLogic.java. It is the line
&lt;br&gt;&amp;gt; &amp;gt; saying:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; // EXECUTE
&lt;br&gt;&amp;gt; &amp;gt; position = positionService.openPosition(order);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; which makes me think that positionService was not injected. Did u miss
&lt;br&gt;&amp;gt; &amp;gt; @Inject annotation?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -Mike
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Wed, Nov 4, 2009 at 10:23 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hope this helps.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 1919.0 : 2009/01/05 &amp;nbsp; D : 1231159500000000000 O : 30.91
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:402)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Caused by: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.activequant.util.pattern.events.Event.fire(Event.java:43)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... 5 more
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Mike Kroutikov-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; CriC, what is the exception stack?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -Mike
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; On Tue, Nov 3, 2009 at 7:47 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Can't get over this error.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; I get the NPE when I try to place an order with the CSV backtest
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; context.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; maybe something wrong in the context file ?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Please see code attached.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; If you comment the place order lines, it works correctly streaming
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; candles
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; from CSV file.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Any tip?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; thank you
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; CriC
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt;&amp;nbsp;csvTS.zip
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;ccapi@activestocks.de
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26215644.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26205037</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-04T14:04:56Z</published>
	<updated>2009-11-04T14:04:56Z</updated>
	<author>
		<name>CriC</name>
	</author>
	<content type="html">Right, I messed up! I'll check it tomorrow morning and post here results.
&lt;br&gt;Sorry :-/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Mike Kroutikov-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;In your ZIP file TradeSystemConfig.java does not have
&lt;br&gt;ts.setPositionService() call (or I can not find it in the hurry). Where from
&lt;br&gt;your quote below comes?
&lt;br&gt;&lt;br&gt;On Wed, Nov 4, 2009 at 4:14 PM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello Mike,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mmmm yes I don't use @Inject BUT I set the positionService in the
&lt;br&gt;&amp;gt; TradeSystemConfig.java :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Bean
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected IPositionService positionService() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SimplePositionService positionService = new
&lt;br&gt;&amp;gt; SimplePositionService(broker());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;positionService.setTrailingDistance(99.0);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return positionService;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Bean
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Object system() {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TradeSystemLogic ts = new TradeSystemLogic();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ts.setPositionService(positionService());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return ts;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NOTE that with the YahooContext works perfectly fine!
&lt;br&gt;&amp;gt; I just changed the Context, from Yahoo to CSV, that's why I think the
&lt;br&gt;&amp;gt; Context is wrong...
&lt;br&gt;&amp;gt; Am I missing something?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike Kroutikov-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The NPE is thrown from line 141 of TradeSystemLogic.java. It is the line
&lt;br&gt;&amp;gt; &amp;gt; saying:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; // EXECUTE
&lt;br&gt;&amp;gt; &amp;gt; position = positionService.openPosition(order);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; which makes me think that positionService was not injected. Did u miss
&lt;br&gt;&amp;gt; &amp;gt; @Inject annotation?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -Mike
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Wed, Nov 4, 2009 at 10:23 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hope this helps.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 1919.0 : 2009/01/05 &amp;nbsp; D : 1231159500000000000 O : 30.91
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:402)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Caused by: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.activequant.util.pattern.events.Event.fire(Event.java:43)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... 5 more
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Mike Kroutikov-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; CriC, what is the exception stack?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -Mike
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; On Tue, Nov 3, 2009 at 7:47 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Can't get over this error.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; I get the NPE when I try to place an order with the CSV backtest
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; context.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; maybe something wrong in the context file ?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Please see code attached.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; If you comment the place order lines, it works correctly streaming
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; candles
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; from CSV file.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Any tip?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; thank you
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; CriC
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt;&amp;nbsp;csvTS.zip
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;ccapi@activestocks.de
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26205037.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26205178</id>
	<title>Re: How to enable parameters optimization?</title>
	<published>2009-11-04T13:44:43Z</published>
	<updated>2009-11-04T13:44:43Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hi Alex,&lt;br&gt;I did a simple refactoring in the SimpleOptmizer class, just to read the @Optimize attributes and run as many Systems as the total number of combinations. Very simple and slow.&lt;br&gt;&lt;br&gt;I can send you if you need.&lt;br&gt;
&lt;br&gt;However, Ulrich is about to release a better version. &lt;br&gt;Ulrich, if possible please include me in the &amp;quot;little subproject&amp;quot; too.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 7:35 PM, Ulrich Staudinger &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ustaudinger@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Alex, &lt;br&gt;i&amp;#39;ll include you on a little subproject .... &lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;/u&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 12:39 PM, Alexander Nowak &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nowak@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;Hi Franklin,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;i also try to optimize some parameters. Did you already find a way to do so? How do you started and which optimizer do you have used?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;thanks,&lt;/div&gt;
&lt;div&gt;alex&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/28 Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;br&gt;Hi Ulrich,&lt;br&gt;&lt;br&gt;I&amp;#39;ve sent you an e-mail.&lt;br&gt;&lt;br&gt;In the meanwhile, what is the best please to start looking?&lt;br&gt;


&lt;br&gt;Thanks,&lt;br&gt;Franklin&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt;Ulrich Staudinger-2 wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hi Franklin,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; You have to use a special optimizer, and in there make sure to handle&lt;br&gt;&amp;gt; these&lt;br&gt;&amp;gt; optimize annotations. I remember we had a very simple one in the past, but&lt;br&gt;


&amp;gt; this feature is widely underdeveloped. However, there are some efforts to&lt;br&gt;&amp;gt; spend more time on these features.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; For your attention, we rarely do this, but consider contacting us, the&lt;br&gt;&amp;gt; coreteam directly, as this is something that is worked on already&lt;br&gt;


&amp;gt; underground.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Kind regards,&lt;br&gt;&amp;gt; Ulrich&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Thu, Oct 22, 2009 at 9:03 PM, Franklin S. Dattein &amp;lt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;


&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Hi list,&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; I am playing with a simple SMA system and I have added the @Optimize&lt;br&gt;&amp;gt;&amp;gt; annotations to my attribute, just like in the examples.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; However, the parameters have never changed.&lt;br&gt;


&amp;gt;&amp;gt; Should I use a special runner or replay service?&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Att,&lt;br&gt;&amp;gt;&amp;gt; Franklin Samir Dattein&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt;&amp;gt; ccapi mailing list&lt;br&gt;


&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;


&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Ulrich B. Staudinger&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; ccapi mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;


&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&lt;br&gt;--&lt;br&gt;&lt;/div&gt;&lt;/div&gt;View this message in context: &lt;a href=&quot;http://www.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html&lt;/a&gt;&lt;br&gt;


Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;ccapi mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;


&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205178&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-enable-parameters-optimization--tp26016281p26205178.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26205077</id>
	<title>Re: How to enable parameters optimization?</title>
	<published>2009-11-04T13:35:35Z</published>
	<updated>2009-11-04T13:35:35Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Alex, &lt;br&gt;i&amp;#39;ll include you on a little subproject .... &lt;br&gt;/u&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 12:39 PM, Alexander Nowak &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nowak@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;Hi Franklin,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;i also try to optimize some parameters. Did you already find a way to do so? How do you started and which optimizer do you have used?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;thanks,&lt;/div&gt;
&lt;div&gt;alex&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/28 Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;br&gt;Hi Ulrich,&lt;br&gt;&lt;br&gt;I&amp;#39;ve sent you an e-mail.&lt;br&gt;&lt;br&gt;In the meanwhile, what is the best please to start looking?&lt;br&gt;

&lt;br&gt;Thanks,&lt;br&gt;Franklin&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt;Ulrich Staudinger-2 wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hi Franklin,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; You have to use a special optimizer, and in there make sure to handle&lt;br&gt;&amp;gt; these&lt;br&gt;&amp;gt; optimize annotations. I remember we had a very simple one in the past, but&lt;br&gt;

&amp;gt; this feature is widely underdeveloped. However, there are some efforts to&lt;br&gt;&amp;gt; spend more time on these features.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; For your attention, we rarely do this, but consider contacting us, the&lt;br&gt;&amp;gt; coreteam directly, as this is something that is worked on already&lt;br&gt;

&amp;gt; underground.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Kind regards,&lt;br&gt;&amp;gt; Ulrich&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Thu, Oct 22, 2009 at 9:03 PM, Franklin S. Dattein &amp;lt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;

&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Hi list,&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; I am playing with a simple SMA system and I have added the @Optimize&lt;br&gt;&amp;gt;&amp;gt; annotations to my attribute, just like in the examples.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; However, the parameters have never changed.&lt;br&gt;

&amp;gt;&amp;gt; Should I use a special runner or replay service?&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Att,&lt;br&gt;&amp;gt;&amp;gt; Franklin Samir Dattein&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt;&amp;gt; ccapi mailing list&lt;br&gt;

&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;

&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Ulrich B. Staudinger&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; ccapi mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;

&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&lt;br&gt;--&lt;br&gt;&lt;/div&gt;&lt;/div&gt;View this message in context: &lt;a href=&quot;http://www.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html&lt;/a&gt;&lt;br&gt;

Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;ccapi mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;

&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26205077&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-enable-parameters-optimization--tp26016281p26205077.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204882</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-04T13:23:17Z</published>
	<updated>2009-11-04T13:23:17Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">In your ZIP file TradeSystemConfig.java does not have ts.setPositionService() call (or I can not find it in the hurry). Where from your quote below comes?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 4:14 PM, CriC &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cristina.colonna@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;br&gt;
Hello Mike,&lt;br&gt;
&lt;br&gt;
Mmmm yes I don&amp;#39;t use @Inject BUT I set the positionService in the&lt;br&gt;
TradeSystemConfig.java :&lt;br&gt;
&lt;br&gt;
        @Bean&lt;br&gt;
        protected IPositionService positionService() {&lt;br&gt;
                SimplePositionService positionService = new&lt;br&gt;
SimplePositionService(broker());&lt;br&gt;
                positionService.setTrailingDistance(99.0);&lt;br&gt;
                ....&lt;br&gt;
                return positionService;&lt;br&gt;
        }&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
        @Bean&lt;br&gt;
        public Object system() {&lt;br&gt;
&lt;br&gt;
                TradeSystemLogic ts = new TradeSystemLogic();&lt;br&gt;
                ....&lt;br&gt;
                ts.setPositionService(positionService());&lt;br&gt;
                ....&lt;br&gt;
&lt;br&gt;
                return ts;&lt;br&gt;
        }&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
NOTE that with the YahooContext works perfectly fine!&lt;br&gt;
I just changed the Context, from Yahoo to CSV, that&amp;#39;s why I think the&lt;br&gt;
Context is wrong...&lt;br&gt;
Am I missing something?&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Mike Kroutikov-2 wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The NPE is thrown from line 141 of TradeSystemLogic.java. It is the line&lt;br&gt;
&amp;gt; saying:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; // EXECUTE&lt;br&gt;
&amp;gt; position = positionService.openPosition(order);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which makes me think that positionService was not injected. Did u miss&lt;br&gt;
&amp;gt; @Inject annotation?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Mike&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;        at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Wed, Nov 4, 2009 at 10:23 AM, CriC &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cristina.colonna@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Hope this helps.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; 1919.0 : 2009/01/05   D : 1231159500000000000 O : 30.91&lt;br&gt;
&amp;gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException&lt;br&gt;
&amp;gt;&amp;gt;        at&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:402)&lt;br&gt;
&amp;gt;&amp;gt;        at&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)&lt;br&gt;
&amp;gt;&amp;gt;        at&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)&lt;br&gt;
&amp;gt;&amp;gt;        at&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)&lt;br&gt;
&amp;gt;&amp;gt;        at&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)&lt;br&gt;
&amp;gt;&amp;gt;        at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)&lt;br&gt;
&amp;gt;&amp;gt; Caused by: java.lang.NullPointerException&lt;br&gt;
&amp;gt;&amp;gt;        at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)&lt;br&gt;
&amp;gt;&amp;gt;        at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)&lt;br&gt;
&amp;gt;&amp;gt;        at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)&lt;br&gt;
&amp;gt;&amp;gt;        at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)&lt;br&gt;
&amp;gt;&amp;gt;        at org.activequant.util.pattern.events.Event.fire(Event.java:43)&lt;br&gt;
&amp;gt;&amp;gt;        at&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)&lt;br&gt;
&amp;gt;&amp;gt;        ... 5 more&lt;br&gt;
&amp;gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Mike Kroutikov-2 wrote:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; CriC, what is the exception stack?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; -Mike&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; On Tue, Nov 3, 2009 at 7:47 AM, CriC &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cristina.colonna@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Can&amp;#39;t get over this error.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; I get the NPE when I try to place an order with the CSV backtest&lt;br&gt;
&amp;gt;&amp;gt; context.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; maybe something wrong in the context file ?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Please see code attached.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; If you comment the place order lines, it works correctly streaming&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; candles&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; from CSV file.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Any tip?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; thank you&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; CriC&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt; csvTS.zip&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;

&amp;gt;&amp;gt; &amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt; View this message in context:&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&lt;/a&gt;&lt;br&gt;

&amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;View this message in context: &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html&lt;/a&gt;&lt;br&gt;

&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204882&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204726</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-04T13:14:01Z</published>
	<updated>2009-11-04T13:14:01Z</updated>
	<author>
		<name>CriC</name>
	</author>
	<content type="html">Hello Mike,
&lt;br&gt;&lt;br&gt;Mmmm yes I don't use @Inject BUT I set the positionService in the TradeSystemConfig.java :
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Bean
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected IPositionService positionService() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SimplePositionService positionService = new SimplePositionService(broker());		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; positionService.setTrailingDistance(99.0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return positionService;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Bean
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Object system() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TradeSystemLogic ts = new TradeSystemLogic();		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ts.setPositionService(positionService());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ts;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;NOTE that with the YahooContext works perfectly fine!
&lt;br&gt;I just changed the Context, from Yahoo to CSV, that's why I think the Context is wrong...
&lt;br&gt;Am I missing something?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Mike Kroutikov-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;The NPE is thrown from line 141 of TradeSystemLogic.java. It is the line
&lt;br&gt;saying:
&lt;br&gt;&lt;br&gt;// EXECUTE
&lt;br&gt;position = positionService.openPosition(order);
&lt;br&gt;&lt;br&gt;which makes me think that positionService was not injected. Did u miss
&lt;br&gt;@Inject annotation?
&lt;br&gt;&lt;br&gt;-Mike
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&lt;br&gt;On Wed, Nov 4, 2009 at 10:23 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hope this helps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1919.0 : 2009/01/05 &amp;nbsp; D : 1231159500000000000 O : 30.91
&lt;br&gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:402)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)
&lt;br&gt;&amp;gt; Caused by: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.activequant.util.pattern.events.Event.fire(Event.java:43)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... 5 more
&lt;br&gt;&amp;gt; java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike Kroutikov-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; CriC, what is the exception stack?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -Mike
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, Nov 3, 2009 at 7:47 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Can't get over this error.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I get the NPE when I try to place an order with the CSV backtest
&lt;br&gt;&amp;gt; context.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; maybe something wrong in the context file ?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Please see code attached.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; If you comment the place order lines, it works correctly streaming
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; candles
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; from CSV file.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Any tip?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; thank you
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; CriC
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt;&amp;nbsp;csvTS.zip
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; &amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;ccapi@activestocks.de
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26204726.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26203433</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-04T11:45:18Z</published>
	<updated>2009-11-04T11:45:18Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">The NPE is thrown from line 141 of TradeSystemLogic.java. It is the line saying:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;// EXECUTE&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;position = positionService.openPosition(order);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;which makes me think that positionService was not injected. Did u miss @Inject annotation?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;       at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 10:23 AM, CriC &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203433&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cristina.colonna@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
1919.0 : 2009/01/05   D : 1231159500000000000 O : 30.91&lt;br&gt;
java.lang.RuntimeException: java.lang.NullPointerException&lt;br&gt;
        at&lt;br&gt;
org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:402)&lt;br&gt;
        at&lt;br&gt;
org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)&lt;br&gt;
        at&lt;br&gt;
org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)&lt;br&gt;
        at&lt;br&gt;
org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)&lt;br&gt;
        at&lt;br&gt;
org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)&lt;br&gt;
        at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)&lt;br&gt;
Caused by: java.lang.NullPointerException&lt;br&gt;
        at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)&lt;br&gt;
        at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)&lt;br&gt;
        at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)&lt;br&gt;
        at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)&lt;br&gt;
        at org.activequant.util.pattern.events.Event.fire(Event.java:43)&lt;br&gt;
        at&lt;br&gt;
org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)&lt;br&gt;
        ... 5 more&lt;br&gt;
java.lang.RuntimeException: java.lang.NullPointerException&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Mike Kroutikov-2 wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; CriC, what is the exception stack?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Mike&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Tue, Nov 3, 2009 at 7:47 AM, CriC &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203433&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cristina.colonna@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Can&amp;#39;t get over this error.&lt;br&gt;
&amp;gt;&amp;gt; I get the NPE when I try to place an order with the CSV backtest context.&lt;br&gt;
&amp;gt;&amp;gt; maybe something wrong in the context file ?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Please see code attached.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; If you comment the place order lines, it works correctly streaming&lt;br&gt;
&amp;gt;&amp;gt; candles&lt;br&gt;
&amp;gt;&amp;gt; from CSV file.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Any tip?&lt;br&gt;
&amp;gt;&amp;gt; thank you&lt;br&gt;
&amp;gt;&amp;gt; CriC&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt; csvTS.zip&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt; View this message in context:&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;

&amp;gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203433&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203433&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html&lt;/a&gt;&lt;br&gt;

&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203433&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203433&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26203433.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198154</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-04T07:23:28Z</published>
	<updated>2009-11-04T07:23:28Z</updated>
	<author>
		<name>CriC</name>
	</author>
	<content type="html">&lt;br&gt;Hope this helps.
&lt;br&gt;&lt;br&gt;1919.0 : 2009/01/05 &amp;nbsp; D : 1231159500000000000 O : 30.91 java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:402)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:91)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(ReplayServiceBase.java:73)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.ReplayServiceBase.fire(ReplayServiceBase.java:108)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.util.MarketDataReplayService.fire(MarketDataReplayService.java:276)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.MainBacktestCSV.main(MainBacktestCSV.java:45)
&lt;br&gt;Caused by: java.lang.NullPointerException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic.onCandle(TradeSystemLogic.java:141)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic.access$0(TradeSystemLogic.java:119)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:93)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ts.TradeSystemLogic$1.eventFired(TradeSystemLogic.java:1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.util.pattern.events.Event.fire(Event.java:43)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(SubscriptionSourceBase.java:399)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 5 more
&lt;br&gt;java.lang.RuntimeException: java.lang.NullPointerException
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Mike Kroutikov-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;CriC, what is the exception stack?
&lt;br&gt;&lt;br&gt;-Mike
&lt;br&gt;&lt;br&gt;On Tue, Nov 3, 2009 at 7:47 AM, CriC &amp;lt;cristina.colonna@gmx.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can't get over this error.
&lt;br&gt;&amp;gt; I get the NPE when I try to place an order with the CSV backtest context.
&lt;br&gt;&amp;gt; maybe something wrong in the context file ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please see code attached.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you comment the place order lines, it works correctly streaming candles
&lt;br&gt;&amp;gt; from CSV file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any tip?
&lt;br&gt;&amp;gt; thank you
&lt;br&gt;&amp;gt; CriC
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt;&amp;nbsp;csvTS.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveQuant mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;ccapi@activestocks.de
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26198154.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26194720</id>
	<title>Re: How to enable parameters optimization?</title>
	<published>2009-11-04T03:39:22Z</published>
	<updated>2009-11-04T03:39:22Z</updated>
	<author>
		<name>alex_1</name>
	</author>
	<content type="html">&lt;div&gt;Hi Franklin,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;i also try to optimize some parameters. Did you already find a way to do so? How do you started and which optimizer do you have used?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;thanks,&lt;/div&gt;
&lt;div&gt;alex&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/28 Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194720&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=&quot;gmail_quote&quot;&gt;&lt;br&gt;Hi Ulrich,&lt;br&gt;&lt;br&gt;I&amp;#39;ve sent you an e-mail.&lt;br&gt;&lt;br&gt;In the meanwhile, what is the best please to start looking?&lt;br&gt;
&lt;br&gt;Thanks,&lt;br&gt;Franklin&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;Ulrich Staudinger-2 wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hi Franklin,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; You have to use a special optimizer, and in there make sure to handle&lt;br&gt;&amp;gt; these&lt;br&gt;&amp;gt; optimize annotations. I remember we had a very simple one in the past, but&lt;br&gt;
&amp;gt; this feature is widely underdeveloped. However, there are some efforts to&lt;br&gt;&amp;gt; spend more time on these features.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; For your attention, we rarely do this, but consider contacting us, the&lt;br&gt;&amp;gt; coreteam directly, as this is something that is worked on already&lt;br&gt;
&amp;gt; underground.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Kind regards,&lt;br&gt;&amp;gt; Ulrich&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Thu, Oct 22, 2009 at 9:03 PM, Franklin S. Dattein &amp;lt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194720&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Hi list,&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; I am playing with a simple SMA system and I have added the @Optimize&lt;br&gt;&amp;gt;&amp;gt; annotations to my attribute, just like in the examples.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; However, the parameters have never changed.&lt;br&gt;
&amp;gt;&amp;gt; Should I use a special runner or replay service?&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Att,&lt;br&gt;&amp;gt;&amp;gt; Franklin Samir Dattein&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt;&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194720&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Ulrich B. Staudinger&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; ccapi mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194720&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&lt;br&gt;--&lt;br&gt;&lt;/div&gt;&lt;/div&gt;View this message in context: &lt;a href=&quot;http://www.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html&lt;/a&gt;&lt;br&gt;
Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;_______________________________________________&lt;br&gt;ccapi mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194720&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194720&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-enable-parameters-optimization--tp26016281p26194720.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26179836</id>
	<title>Re: got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-03T05:45:37Z</published>
	<updated>2009-11-03T05:45:37Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">CriC, what is the exception stack?&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Mike&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 3, 2009 at 7:47 AM, CriC &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26179836&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cristina.colonna@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;br&gt;
&lt;br&gt;
Can&amp;#39;t get over this error.&lt;br&gt;
I get the NPE when I try to place an order with the CSV backtest context.&lt;br&gt;
maybe something wrong in the context file ?&lt;br&gt;
&lt;br&gt;
Please see code attached.&lt;br&gt;
&lt;br&gt;
If you comment the place order lines, it works correctly streaming candles&lt;br&gt;
from CSV file.&lt;br&gt;
&lt;br&gt;
Any tip?&lt;br&gt;
thank you&lt;br&gt;
CriC&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26160075/csvTS.zip&lt;/a&gt; csvTS.zip&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html&lt;/a&gt;&lt;br&gt;

Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26179836&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26179836&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26179836.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26160075</id>
	<title>got NPE while placing orders (backtest with CSV)</title>
	<published>2009-11-03T03:47:03Z</published>
	<updated>2009-11-03T03:47:03Z</updated>
	<author>
		<name>CriC</name>
	</author>
	<content type="html">&lt;br&gt;Can't get over this error.
&lt;br&gt;I get the NPE when I try to place an order with the CSV backtest context.
&lt;br&gt;maybe something wrong in the context file ?
&lt;br&gt;&lt;br&gt;Please see code attached.
&lt;br&gt;&lt;br&gt;If you comment the place order lines, it works correctly streaming candles from CSV file.
&lt;br&gt;&lt;br&gt;Any tip?
&lt;br&gt;thank you
&lt;br&gt;CriC
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/file/p26160075/csvTS.zip&quot; target=&quot;_top&quot;&gt;csvTS.zip&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/got-NPE-while-placing-orders-%28backtest-with-CSV%29-tp26160075p26160075.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26176478</id>
	<title>.. introduction of extensions of InstrumentSpecification</title>
	<published>2009-11-03T00:38:36Z</published>
	<updated>2009-11-03T00:38:36Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I think about adding some extensions to InstrumentSpecifications, as well as some slimming it. &lt;br&gt;The goal would be to have different InstrumentSpec types, for example OptionInstrumentSpec, FutureInstrumentSpec, WarrantInstrumentSpec, etc. That way, we would remove some fields from the base instrument specification and keep only those that are shared among them. Beside that, the hibernate would still store everything into one big table, that would make it very easy to query. &lt;br&gt;
&lt;br&gt;Objections, opinions ? &lt;br&gt;&lt;br&gt;Kind regards, &lt;br&gt;Ulrich&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26176478&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/..-introduction-of-extensions-of-InstrumentSpecification-tp26176478p26176478.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26176428</id>
	<title>Calendars for instruments</title>
	<published>2009-11-03T00:33:42Z</published>
	<updated>2009-11-03T00:33:42Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Hey there, &lt;br&gt;i am reviewing the calendar package a bit at the moment with the goal &lt;br&gt;&lt;br&gt;to link the calendar to the instruments. &lt;br&gt;&lt;br&gt;&lt;br&gt;As far as I see, the best approach would be to add an ICalendar to the InstrumentSpecifications and then to persist this one. &lt;br&gt;
&lt;br&gt;Does anyone have an opinion or objections ? &lt;br&gt;&lt;br&gt;&lt;br&gt;Kind regards, &lt;br&gt;Ulrich&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26176428&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Calendars-for-instruments-tp26176428p26176428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26160257</id>
	<title>Re: PaperBroker STOP_LIMIT Order support</title>
	<published>2009-11-02T00:45:52Z</published>
	<updated>2009-11-02T00:45:52Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Looks alright. Will be added later as well !&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 1, 2009 at 11:26 PM, Dimitri Misev &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26160257&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mikistip@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
Hi&lt;br&gt;
I was looking to add a STOP_LIMIT Order support in the&lt;br&gt;
org.activequant.broker.PaperBroker class&lt;br&gt;
&lt;br&gt;
Looks like I just need to add this one case to the switch statement in&lt;br&gt;
the void checkOrder(Quote quote) method in the same class:&lt;br&gt;
&lt;br&gt;
case STOP_LIMIT:&lt;br&gt;
        if(localOrder.getOrderSide() == OrderSide.BUY) {&lt;br&gt;
                        if(price &amp;gt;= localOrder.getStopPrice()&amp;amp;&amp;amp;price &amp;lt;=&lt;br&gt;
localOrder.getLimitPrice()) {&lt;br&gt;
                                fireExecution(quantity, price);&lt;br&gt;
                        }&lt;br&gt;
                } else {&lt;br&gt;
                        if(price &amp;lt;= localOrder.getStopPrice()&amp;amp;&amp;amp;price &amp;gt;=&lt;br&gt;
localOrder.getLimitPrice()) {&lt;br&gt;
                                fireExecution(quantity, price);&lt;br&gt;
                        }&lt;br&gt;
                }&lt;br&gt;
                break;&lt;br&gt;
&lt;br&gt;
Does anyone see a problem with this?&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/PaperBroker-STOP_LIMIT-Order-support-tp26154645p26154645.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/PaperBroker-STOP_LIMIT-Order-support-tp26154645p26154645.html&lt;/a&gt;&lt;br&gt;

Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26160257&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26160257&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PaperBroker-STOP_LIMIT-Order-support-tp26154645p26160257.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26154645</id>
	<title>PaperBroker STOP_LIMIT Order support</title>
	<published>2009-11-01T14:26:54Z</published>
	<updated>2009-11-01T14:26:54Z</updated>
	<author>
		<name>Dimitri Misev</name>
	</author>
	<content type="html">Hi
&lt;br&gt;I was looking to add a STOP_LIMIT Order support in the org.activequant.broker.PaperBroker class
&lt;br&gt;&lt;br&gt;Looks like I just need to add this one case to the switch statement in 
&lt;br&gt;the void checkOrder(Quote quote) method in the same class:
&lt;br&gt;&lt;br&gt;case STOP_LIMIT:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(localOrder.getOrderSide() == OrderSide.BUY) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(price &amp;gt;= localOrder.getStopPrice()&amp;&amp;price &amp;lt;= localOrder.getLimitPrice()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fireExecution(quantity, price);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(price &amp;lt;= localOrder.getStopPrice()&amp;&amp;price &amp;gt;= localOrder.getLimitPrice()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fireExecution(quantity, price);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&lt;br&gt;Does anyone see a problem with this?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PaperBroker-STOP_LIMIT-Order-support-tp26154645p26154645.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26150720</id>
	<title>Read Only User on AQ Instrument database on aq.org</title>
	<published>2009-11-01T03:51:24Z</published>
	<updated>2009-11-01T03:51:24Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Hey there, &lt;br&gt;i am happy to announce that we have added read only user to the &lt;a href=&quot;http://activequant.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;activequant.org&lt;/a&gt; master database: &lt;br&gt;&lt;br&gt;&amp;gt; grant select on activequant.* to &amp;#39;reader&amp;#39;@&amp;#39;%&amp;#39; identified by &amp;#39;reader&amp;#39;;&lt;br&gt;
&lt;br&gt;You can use this to synchronize for example your instrument tables with the master instrument tables. Over the time of the next months, this database will slowly fill. In case you want to have instruments added and updated or want to take over maintaining a list of instruments, ie. up-to-date futures for CME, let me know. &lt;br&gt;
&lt;br&gt;Kind regards, &lt;br&gt;Ulrich&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26150720&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Read-Only-User-on-AQ-Instrument-database-on-aq.org-tp26150720p26150720.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26092902</id>
	<title>Re: How to enable parameters optimization?</title>
	<published>2009-10-28T04:17:43Z</published>
	<updated>2009-10-28T04:17:43Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hi Ulrich,
&lt;br&gt;&lt;br&gt;I've sent you an e-mail. 
&lt;br&gt;&lt;br&gt;In the meanwhile, what is the best please to start looking?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Franklin
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Ulrich Staudinger-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Franklin,
&lt;br&gt;&lt;br&gt;You have to use a special optimizer, and in there make sure to handle these
&lt;br&gt;optimize annotations. I remember we had a very simple one in the past, but
&lt;br&gt;this feature is widely underdeveloped. However, there are some efforts to
&lt;br&gt;spend more time on these features.
&lt;br&gt;&lt;br&gt;For your attention, we rarely do this, but consider contacting us, the
&lt;br&gt;coreteam directly, as this is something that is worked on already
&lt;br&gt;underground.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Oct 22, 2009 at 9:03 PM, Franklin S. Dattein &amp;lt;
&lt;br&gt;franklin@portaljava.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi list,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am playing with a simple SMA system and I have added the @Optimize
&lt;br&gt;&amp;gt; annotations to my attribute, just like in the examples.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, the parameters have never changed.
&lt;br&gt;&amp;gt; Should I use a special runner or replay service?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Att,
&lt;br&gt;&amp;gt; Franklin Samir Dattein
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; ccapi mailing list
&lt;br&gt;&amp;gt; ccapi@activestocks.de
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ulrich B. Staudinger
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;ccapi@activestocks.de
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-enable-parameters-optimization--tp26016281p26092902.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26030451</id>
	<title>Account.getBalanceBook returning zero as the current balance.</title>
	<published>2009-10-23T10:33:23Z</published>
	<updated>2009-10-23T10:33:23Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hello,&lt;br&gt;&lt;br&gt;I&amp;#39;ve set an BalanceBook to start with a balance of 10.00, as the example in the XML below.&lt;br&gt;&amp;lt;bean id=&amp;quot;balanceBook&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.account.BalanceBook&amp;quot;&amp;gt;&lt;br&gt;
        &amp;lt;property name=&amp;quot;currentBalance&amp;quot; value=&amp;quot;10000&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;    &lt;br&gt;    &amp;lt;bean id=&amp;quot;brokerAccount&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.account.BrokerAccount&amp;quot; &amp;gt;&lt;br&gt;
        &amp;lt;property name=&amp;quot;balanceBook&amp;quot; ref=&amp;quot;balanceBook&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;&lt;br&gt;I&amp;#39;ve noticed that when a run a System without any order, the method Account.getBalanceBook creates a new instance of BalanceBook, copy all BalanceEntry from all acounts, but doesn&amp;#39;t copy the currentBalance property.&lt;br&gt;
It might sound weird a system without orders, but that is one of my use cases. I would like to see that my logic was not good and my balance remains untouched. &lt;br&gt;&lt;br&gt;Am I doing something wrong?&lt;br&gt;&lt;br&gt;If not, I would suggest the following change in the Account class.&lt;br&gt;
&lt;br&gt;public BalanceBook getBalanceBook() {&lt;br&gt;        if (brokerAccounts.size() &amp;gt; 0) {&lt;br&gt;            BalanceBook ret = new BalanceBook();&lt;br&gt;            for(BrokerAccount brokerAccount : brokerAccounts){&lt;br&gt;                for(BalanceEntry be : brokerAccount.getBalanceBook().getBalanceEntries()){                    &lt;br&gt;
                    ret.addBalanceEntry(be.getValue(), be.getTimeStamp());                    &lt;br&gt;                }&lt;br&gt;&lt;b&gt;                ret.setCurrentBalance(ret.getCurrentBalance() + brokerAccount.getBalanceBook().getCurrentBalance());&lt;/b&gt;&lt;br&gt;
            }&lt;br&gt;            return ret; &lt;br&gt;        }&lt;br&gt;        return new BalanceBook();&lt;br&gt;    }&lt;br clear=&quot;all&quot;&gt;Att,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Account.getBalanceBook-returning-zero-as-the-current-balance.-tp26030451p26030451.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26027273</id>
	<title>Re: input dates are out-of-order Exception</title>
	<published>2009-10-23T07:20:42Z</published>
	<updated>2009-10-23T07:20:42Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">These are two different (mutually exclusive) approaches.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;With MarketTradeSystemBase style (&amp;quot;old style&amp;quot;), on every new candle system used to update &amp;quot;market&amp;quot; (which contains the whole history: all candles for all series up to and including current time) and pass this market object to the trading system.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;With ReplayService style (&amp;quot;new backtester style&amp;quot;), trading system is in charge of keeping history (if it needs it). Backtester only distributes candles (trading system gets onCandle notification). New style is more scalable, but requires TS to configure data subscriptions (in onStart() method).&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Hope this helps.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;-Mike&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Oct 23, 2009 at 9:27 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi Mike,&lt;br&gt;&lt;br&gt;thanks for the advice.&lt;br&gt;I have made some changes on that example, to be more similar to the Cric&amp;#39;s example, in the attachment.&lt;br&gt;
&lt;br&gt;&lt;br&gt;After this changes the problem noticed in the beginning of this thread has gone, probably because that exceptions was happening on a SeriesSpecification and the Cric&amp;#39;s sampel doesn&amp;#39;t not use series.&lt;br&gt;
&lt;br&gt;However, it brings me a few questions:&lt;br&gt; The examples under tradesystem.systems derives from MarketTradeSystemBase, which fires onMarket and deal with CandleSries&lt;br&gt;Cric&amp;#39;s sample and some other examples do not derives from MarketTradeSystemBase, consequently they fire onCandle instead of onMarket, and they deal with InstrumentSpecification instead of SeriesSpecification.&lt;br&gt;

&lt;br&gt;I don&amp;#39;t quite understand the differences between these two approaches and when to use one or another.  Could you give me an overview or point some documentation, please?&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks in advance,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;

&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 7:58 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;

Franklin, I am somewhat puzzled by your code.&lt;div&gt;It seems to me that Henry&amp;#39;s problem was quite different (and he did not post his code, btw).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yes, MainBacktest, etc classes are familiar. I believe they were submitted by CriC as an example for some bug research.&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yet your code is VERY different. I see that you extend MarketTradeSystemBase, use @Optimize annotations, etc. And apparently expect something to happen in &amp;quot;onMarket&amp;quot; method. Shortly, I do not believe your code has anything to do with aq examples or CriC&amp;#39;s sample. Therefore, its incorrect to suggest that aq has a bug. Most likely there is a problem in your code. I suggest starting from existing example (with possible minor changes) and move step-by-step toward the functionality that you need. This way I and others on the list will have a chance to be more helpful.&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:50 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;Hi Mike,&lt;br&gt;&lt;br&gt;the exception is the one in the beggining of this email thread:&lt;div&gt;&lt;br&gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;



 out-of-order at org.activequant.util.tools.UniqueDateGenerator.generate(UnknownSource)&lt;br&gt;&lt;br&gt;&lt;/div&gt;I could not found the example on Nabble and I don&amp;#39;t remember if the author was you. I still have the code here, it is composed by 4 classes:&lt;br&gt;



MainBacktest&lt;br&gt;TradeSystemConfig&lt;br&gt;TradeSystemLogic&lt;br&gt;YahooBacktestContextConfig.&lt;br&gt;&lt;br&gt;Do you recognize it?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:09 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;



What is the exception stack? &lt;div&gt;&lt;br&gt;&lt;div&gt;Can you also add a link to the &amp;quot;Mike&amp;#39;s sample posted here in the mailing list&amp;quot;?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 10:14 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;Follow the example.&lt;br&gt;&lt;br&gt;It is based in one of Mike&amp;#39;s sample posted here in the mailing list. &lt;br&gt;



I have changed that example to be configured by XML instead of Java and added two stock symbols instead of only one.&lt;br&gt;

&lt;br clear=&quot;all&quot;&gt;Thanks&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 11:58 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;





yes, sources would help&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 8:57 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;





&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;
Hi Mike,&lt;br&gt;Yes, I am putting both series in an ArrayList. That is the code that is causing the exception:&lt;br&gt;&lt;br&gt;    &amp;lt;bean id=&amp;quot;specs&amp;quot; class=&amp;quot;java.util.ArrayList&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;constructor-arg&amp;gt;&lt;br&gt;







            &amp;lt;list&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series1&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;







                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://LAME4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;LAME4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;                      ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;






                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;
                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series2&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;







                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://PETR4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;PETR4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;







                   ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;







            &amp;lt;/list&amp;gt;&lt;br&gt;        &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;##################&lt;br&gt;&lt;br&gt;After removing one of the SeriesSpecification above, the system works fine.&lt;br&gt;The data source is YahooCandleSeriesSource.&lt;br&gt;







Could it be caused by an error in the data that comes from Yahoo?&lt;br&gt;&lt;br&gt;I can zip the system if you think it would help.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 7:52 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;







&lt;div&gt;Hmm, that is the whole point of the backtester - to cross-sort data coming from different streams (each stream is assumed sorted). I am pretty sure backtester works correctly. This leaves us with the only one possibility - your data is bad. This kind of exception means that one of the streams is not sorted. Are you putting both series in one ArrayList? &lt;/div&gt;








&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 3:41 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;








&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;Hi Mike,&lt;br&gt;I am running a back test with two SeriesSpecification. My code is based on the DualMovingAverageSystem example.&lt;br&gt;








&lt;br&gt;If the ArrayList contains only one SeriesSpecification there is no trouble. It only happens when I have more than one SeriesSpecification.&lt;br&gt;
&lt;br&gt;By reading the past mail thread I couldn&amp;#39;t understand if that is expected. Is that the expected behavior or a bug? &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 5:33 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;









Franklin, what exactly are you doing? Backtester will refuse to merge data streams if any stream has out-of-order items (check your data). If you are trying to re-start the same backtester instance, it also won&amp;#39;t work as you have to discard and re-create it after each run....&lt;div&gt;










&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 2:31 PM, Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;









&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;
&lt;br&gt;
I am also facing this error. Since this message is from 2008, I think it has&lt;br&gt;
been already fixed and I am doing something wrong.&lt;br&gt;
&lt;br&gt;
Thoughts?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Franklin Dattein&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
H. Canterburry wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am running some back tests right now that loop optimization code. It&lt;br&gt;
&amp;gt; seems like I cannot complete a single pass without the following&lt;br&gt;
&amp;gt; exception:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am streaming everything from a database.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;
&amp;gt; out-of-order&lt;br&gt;
&amp;gt;     at org.activequant.util.tools.UniqueDateGenerator.generate(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.fireExecution(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.checkOrder(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.access$300(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)2008-03-05 15:55:22,906 [main] INFO&lt;br&gt;
&amp;gt; [org.activequant.data.util.converter.CandleToTradeIndicationConverter] -&lt;br&gt;
&amp;gt; one candle  D : 943070400000000000 O : 42.94 H : 43.0 L : 39.81 C :&lt;br&gt;
&amp;gt; 40.38 V : 1.08971E7 generated 61 trade indications&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription.access$200(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription.access$100(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.ReplayServiceBase.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; -----&lt;br&gt;
&amp;gt; -HC&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&lt;/a&gt;&lt;br&gt;











Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=22&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027273&amp;i=23&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p26027273.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26026502</id>
	<title>Re: input dates are out-of-order Exception</title>
	<published>2009-10-23T06:27:31Z</published>
	<updated>2009-10-23T06:27:31Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hi Mike,&lt;br&gt;&lt;br&gt;thanks for the advice.&lt;br&gt;I have made some changes on that example, to be more similar to the Cric&amp;#39;s example, in the attachment.&lt;br&gt;&lt;br&gt;&lt;br&gt;After this changes the problem noticed in the beginning of this thread has gone, probably because that exceptions was happening on a SeriesSpecification and the Cric&amp;#39;s sampel doesn&amp;#39;t not use series.&lt;br&gt;
&lt;br&gt;However, it brings me a few questions:&lt;br&gt; The examples under tradesystem.systems derives from MarketTradeSystemBase, which fires onMarket and deal with CandleSries&lt;br&gt;Cric&amp;#39;s sample and some other examples do not derives from MarketTradeSystemBase, consequently they fire onCandle instead of onMarket, and they deal with InstrumentSpecification instead of SeriesSpecification.&lt;br&gt;
&lt;br&gt;I don&amp;#39;t quite understand the differences between these two approaches and when to use one or another.  Could you give me an overview or point some documentation, please?&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks in advance,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;

&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 7:58 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Franklin, I am somewhat puzzled by your code.&lt;div&gt;It seems to me that Henry&amp;#39;s problem was quite different (and he did not post his code, btw).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yes, MainBacktest, etc classes are familiar. I believe they were submitted by CriC as an example for some bug research.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yet your code is VERY different. I see that you extend MarketTradeSystemBase, use @Optimize annotations, etc. And apparently expect something to happen in &amp;quot;onMarket&amp;quot; method. Shortly, I do not believe your code has anything to do with aq examples or CriC&amp;#39;s sample. Therefore, its incorrect to suggest that aq has a bug. Most likely there is a problem in your code. I suggest starting from existing example (with possible minor changes) and move step-by-step toward the functionality that you need. This way I and others on the list will have a chance to be more helpful.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:50 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi Mike,&lt;br&gt;&lt;br&gt;the exception is the one in the beggining of this email thread:&lt;div&gt;&lt;br&gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;


 out-of-order at org.activequant.util.tools.UniqueDateGenerator.generate(UnknownSource)&lt;br&gt;&lt;br&gt;&lt;/div&gt;I could not found the example on Nabble and I don&amp;#39;t remember if the author was you. I still have the code here, it is composed by 4 classes:&lt;br&gt;


MainBacktest&lt;br&gt;TradeSystemConfig&lt;br&gt;TradeSystemLogic&lt;br&gt;YahooBacktestContextConfig.&lt;br&gt;&lt;br&gt;Do you recognize it?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:09 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;


What is the exception stack? &lt;div&gt;&lt;br&gt;&lt;div&gt;Can you also add a link to the &amp;quot;Mike&amp;#39;s sample posted here in the mailing list&amp;quot;?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 10:14 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Follow the example.&lt;br&gt;&lt;br&gt;It is based in one of Mike&amp;#39;s sample posted here in the mailing list. &lt;br&gt;


I have changed that example to be configured by XML instead of Java and added two stock symbols instead of only one.&lt;br&gt;

&lt;br clear=&quot;all&quot;&gt;Thanks&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 11:58 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;




yes, sources would help&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 8:57 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;




&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Mike,&lt;br&gt;Yes, I am putting both series in an ArrayList. That is the code that is causing the exception:&lt;br&gt;&lt;br&gt;    &amp;lt;bean id=&amp;quot;specs&amp;quot; class=&amp;quot;java.util.ArrayList&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;constructor-arg&amp;gt;&lt;br&gt;






            &amp;lt;list&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series1&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;






                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://LAME4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;LAME4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;                      ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;





                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;
                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series2&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;






                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://PETR4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;PETR4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;






                   ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;






            &amp;lt;/list&amp;gt;&lt;br&gt;        &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;##################&lt;br&gt;&lt;br&gt;After removing one of the SeriesSpecification above, the system works fine.&lt;br&gt;The data source is YahooCandleSeriesSource.&lt;br&gt;






Could it be caused by an error in the data that comes from Yahoo?&lt;br&gt;&lt;br&gt;I can zip the system if you think it would help.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 7:52 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;






&lt;div&gt;Hmm, that is the whole point of the backtester - to cross-sort data coming from different streams (each stream is assumed sorted). I am pretty sure backtester works correctly. This leaves us with the only one possibility - your data is bad. This kind of exception means that one of the streams is not sorted. Are you putting both series in one ArrayList? &lt;/div&gt;







&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 3:41 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;







&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi Mike,&lt;br&gt;I am running a back test with two SeriesSpecification. My code is based on the DualMovingAverageSystem example.&lt;br&gt;







&lt;br&gt;If the ArrayList contains only one SeriesSpecification there is no trouble. It only happens when I have more than one SeriesSpecification.&lt;br&gt;
&lt;br&gt;By reading the past mail thread I couldn&amp;#39;t understand if that is expected. Is that the expected behavior or a bug? &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 5:33 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;








Franklin, what exactly are you doing? Backtester will refuse to merge data streams if any stream has out-of-order items (check your data). If you are trying to re-start the same backtester instance, it also won&amp;#39;t work as you have to discard and re-create it after each run....&lt;div&gt;









&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 2:31 PM, Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;








&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
I am also facing this error. Since this message is from 2008, I think it has&lt;br&gt;
been already fixed and I am doing something wrong.&lt;br&gt;
&lt;br&gt;
Thoughts?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Franklin Dattein&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
H. Canterburry wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am running some back tests right now that loop optimization code. It&lt;br&gt;
&amp;gt; seems like I cannot complete a single pass without the following&lt;br&gt;
&amp;gt; exception:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am streaming everything from a database.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;
&amp;gt; out-of-order&lt;br&gt;
&amp;gt;     at org.activequant.util.tools.UniqueDateGenerator.generate(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.fireExecution(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.checkOrder(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.access$300(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)2008-03-05 15:55:22,906 [main] INFO&lt;br&gt;
&amp;gt; [org.activequant.data.util.converter.CandleToTradeIndicationConverter] -&lt;br&gt;
&amp;gt; one candle  D : 943070400000000000 O : 42.94 H : 43.0 L : 39.81 C :&lt;br&gt;
&amp;gt; 40.38 V : 1.08971E7 generated 61 trade indications&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription.access$200(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription.access$100(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.ReplayServiceBase.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; -----&lt;br&gt;
&amp;gt; -HC&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&lt;/a&gt;&lt;br&gt;










Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026502&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;aqt-example.zip&lt;/strong&gt; (7K) &lt;a href=&quot;http://old.nabble.com/attachment/26026502/0/aqt-example.zip&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p26026502.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26021197</id>
	<title>Re: How to enable parameters optimization?</title>
	<published>2009-10-22T22:47:19Z</published>
	<updated>2009-10-22T22:47:19Z</updated>
	<author>
		<name>Ulrich Staudinger-2</name>
	</author>
	<content type="html">Hi Franklin, &lt;br&gt;&lt;br&gt;You have to use a special optimizer, and in there make sure to handle these optimize annotations. I remember we had a very simple one in the past, but this feature is widely underdeveloped. However, there are some efforts to spend more time on these features. &lt;br&gt;
&lt;br&gt;For your attention, we rarely do this, but consider contacting us, the coreteam directly, as this is something that is worked on already underground. &lt;br&gt;&lt;br&gt;&lt;br&gt;Kind regards, &lt;br&gt;Ulrich&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Thu, Oct 22, 2009 at 9:03 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26021197&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi list,&lt;br&gt;&lt;br&gt;I am playing with a simple SMA system and I have added the @Optimize annotations to my attribute, just like in the examples.&lt;br&gt;&lt;br&gt;However, the parameters have never changed. &lt;br&gt;Should I use a special runner or replay service?&lt;br&gt;

&lt;br clear=&quot;all&quot;&gt;Att,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26021197&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ulrich B. Staudinger&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26021197&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-enable-parameters-optimization--tp26016281p26021197.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26017916</id>
	<title>Re: input dates are out-of-order Exception</title>
	<published>2009-10-22T14:58:39Z</published>
	<updated>2009-10-22T14:58:39Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">Franklin, I am somewhat puzzled by your code.&lt;div&gt;It seems to me that Henry&amp;#39;s problem was quite different (and he did not post his code, btw).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yes, MainBacktest, etc classes are familiar. I believe they were submitted by CriC as an example for some bug research.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yet your code is VERY different. I see that you extend MarketTradeSystemBase, use @Optimize annotations, etc. And apparently expect something to happen in &amp;quot;onMarket&amp;quot; method. Shortly, I do not believe your code has anything to do with aq examples or CriC&amp;#39;s sample. Therefore, its incorrect to suggest that aq has a bug. Most likely there is a problem in your code. I suggest starting from existing example (with possible minor changes) and move step-by-step toward the functionality that you need. This way I and others on the list will have a chance to be more helpful.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:50 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi Mike,&lt;br&gt;&lt;br&gt;the exception is the one in the beggining of this email thread:&lt;div class=&quot;im&quot;&gt;&lt;br&gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;

 out-of-order at org.activequant.util.tools.UniqueDateGenerator.generate(UnknownSource)&lt;br&gt;&lt;br&gt;&lt;/div&gt;I could not found the example on Nabble and I don&amp;#39;t remember if the author was you. I still have the code here, it is composed by 4 classes:&lt;br&gt;

MainBacktest&lt;br&gt;TradeSystemConfig&lt;br&gt;TradeSystemLogic&lt;br&gt;YahooBacktestContextConfig.&lt;br&gt;&lt;br&gt;Do you recognize it?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:09 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;

What is the exception stack? &lt;div&gt;&lt;br&gt;&lt;div&gt;Can you also add a link to the &amp;quot;Mike&amp;#39;s sample posted here in the mailing list&amp;quot;?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 10:14 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;Follow the example.&lt;br&gt;&lt;br&gt;It is based in one of Mike&amp;#39;s sample posted here in the mailing list. &lt;br&gt;

I have changed that example to be configured by XML instead of Java and added two stock symbols instead of only one.&lt;br&gt;

&lt;br clear=&quot;all&quot;&gt;Thanks&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 11:58 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;



yes, sources would help&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 8:57 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;



&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;
Hi Mike,&lt;br&gt;Yes, I am putting both series in an ArrayList. That is the code that is causing the exception:&lt;br&gt;&lt;br&gt;    &amp;lt;bean id=&amp;quot;specs&amp;quot; class=&amp;quot;java.util.ArrayList&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;constructor-arg&amp;gt;&lt;br&gt;





            &amp;lt;list&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series1&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;





                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://LAME4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;LAME4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;                      ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;




                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;
                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series2&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;





                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://PETR4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;PETR4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;





                   ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;





            &amp;lt;/list&amp;gt;&lt;br&gt;        &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;##################&lt;br&gt;&lt;br&gt;After removing one of the SeriesSpecification above, the system works fine.&lt;br&gt;The data source is YahooCandleSeriesSource.&lt;br&gt;





Could it be caused by an error in the data that comes from Yahoo?&lt;br&gt;&lt;br&gt;I can zip the system if you think it would help.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 7:52 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;





&lt;div&gt;Hmm, that is the whole point of the backtester - to cross-sort data coming from different streams (each stream is assumed sorted). I am pretty sure backtester works correctly. This leaves us with the only one possibility - your data is bad. This kind of exception means that one of the streams is not sorted. Are you putting both series in one ArrayList? &lt;/div&gt;






&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 3:41 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;






&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;Hi Mike,&lt;br&gt;I am running a back test with two SeriesSpecification. My code is based on the DualMovingAverageSystem example.&lt;br&gt;






&lt;br&gt;If the ArrayList contains only one SeriesSpecification there is no trouble. It only happens when I have more than one SeriesSpecification.&lt;br&gt;
&lt;br&gt;By reading the past mail thread I couldn&amp;#39;t understand if that is expected. Is that the expected behavior or a bug? &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 5:33 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;







Franklin, what exactly are you doing? Backtester will refuse to merge data streams if any stream has out-of-order items (check your data). If you are trying to re-start the same backtester instance, it also won&amp;#39;t work as you have to discard and re-create it after each run....&lt;div&gt;








&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 2:31 PM, Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;







&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;
&lt;br&gt;
I am also facing this error. Since this message is from 2008, I think it has&lt;br&gt;
been already fixed and I am doing something wrong.&lt;br&gt;
&lt;br&gt;
Thoughts?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Franklin Dattein&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
H. Canterburry wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am running some back tests right now that loop optimization code. It&lt;br&gt;
&amp;gt; seems like I cannot complete a single pass without the following&lt;br&gt;
&amp;gt; exception:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am streaming everything from a database.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;
&amp;gt; out-of-order&lt;br&gt;
&amp;gt;     at org.activequant.util.tools.UniqueDateGenerator.generate(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.fireExecution(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.checkOrder(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.access$300(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)2008-03-05 15:55:22,906 [main] INFO&lt;br&gt;
&amp;gt; [org.activequant.data.util.converter.CandleToTradeIndicationConverter] -&lt;br&gt;
&amp;gt; one candle  D : 943070400000000000 O : 42.94 H : 43.0 L : 39.81 C :&lt;br&gt;
&amp;gt; 40.38 V : 1.08971E7 generated 61 trade indications&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription.access$200(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription.access$100(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.ReplayServiceBase.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; -----&lt;br&gt;
&amp;gt; -HC&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&lt;/a&gt;&lt;br&gt;









Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26017916&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p26017916.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26016281</id>
	<title>How to enable parameters optimization?</title>
	<published>2009-10-22T12:03:19Z</published>
	<updated>2009-10-22T12:03:19Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hi list,&lt;br&gt;&lt;br&gt;I am playing with a simple SMA system and I have added the @Optimize annotations to my attribute, just like in the examples.&lt;br&gt;&lt;br&gt;However, the parameters have never changed. &lt;br&gt;Should I use a special runner or replay service?&lt;br&gt;
&lt;br clear=&quot;all&quot;&gt;Att,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26016281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-enable-parameters-optimization--tp26016281p26016281.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26013834</id>
	<title>Re: input dates are out-of-order Exception</title>
	<published>2009-10-22T08:50:31Z</published>
	<updated>2009-10-22T08:50:31Z</updated>
	<author>
		<name>Franklin Dattein</name>
	</author>
	<content type="html">Hi Mike,&lt;br&gt;&lt;br&gt;the exception is the one in the beggining of this email thread:&lt;br&gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;
 out-of-order at org.activequant.util.tools.UniqueDateGenerator.generate(UnknownSource)&lt;br&gt;&lt;br&gt;I could not found the example on Nabble and I don&amp;#39;t remember if the author was you. I still have the code here, it is composed by 4 classes:&lt;br&gt;
MainBacktest&lt;br&gt;TradeSystemConfig&lt;br&gt;TradeSystemLogic&lt;br&gt;YahooBacktestContextConfig.&lt;br&gt;&lt;br&gt;Do you recognize it?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:09 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
What is the exception stack? &lt;div&gt;&lt;br&gt;&lt;div&gt;Can you also add a link to the &amp;quot;Mike&amp;#39;s sample posted here in the mailing list&amp;quot;?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 10:14 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Follow the example.&lt;br&gt;&lt;br&gt;It is based in one of Mike&amp;#39;s sample posted here in the mailing list. &lt;br&gt;
I have changed that example to be configured by XML instead of Java and added two stock symbols instead of only one.&lt;br&gt;

&lt;br clear=&quot;all&quot;&gt;Thanks&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 11:58 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;


yes, sources would help&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 8:57 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Mike,&lt;br&gt;Yes, I am putting both series in an ArrayList. That is the code that is causing the exception:&lt;br&gt;&lt;br&gt;    &amp;lt;bean id=&amp;quot;specs&amp;quot; class=&amp;quot;java.util.ArrayList&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;constructor-arg&amp;gt;&lt;br&gt;




            &amp;lt;list&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series1&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;




                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://LAME4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;LAME4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;                      ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;



                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;
                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series2&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;




                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://PETR4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;PETR4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;




                   ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;




            &amp;lt;/list&amp;gt;&lt;br&gt;        &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;##################&lt;br&gt;&lt;br&gt;After removing one of the SeriesSpecification above, the system works fine.&lt;br&gt;The data source is YahooCandleSeriesSource.&lt;br&gt;




Could it be caused by an error in the data that comes from Yahoo?&lt;br&gt;&lt;br&gt;I can zip the system if you think it would help.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 7:52 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;




&lt;div&gt;Hmm, that is the whole point of the backtester - to cross-sort data coming from different streams (each stream is assumed sorted). I am pretty sure backtester works correctly. This leaves us with the only one possibility - your data is bad. This kind of exception means that one of the streams is not sorted. Are you putting both series in one ArrayList? &lt;/div&gt;





&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 3:41 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;





&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi Mike,&lt;br&gt;I am running a back test with two SeriesSpecification. My code is based on the DualMovingAverageSystem example.&lt;br&gt;





&lt;br&gt;If the ArrayList contains only one SeriesSpecification there is no trouble. It only happens when I have more than one SeriesSpecification.&lt;br&gt;
&lt;br&gt;By reading the past mail thread I couldn&amp;#39;t understand if that is expected. Is that the expected behavior or a bug? &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 5:33 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;






Franklin, what exactly are you doing? Backtester will refuse to merge data streams if any stream has out-of-order items (check your data). If you are trying to re-start the same backtester instance, it also won&amp;#39;t work as you have to discard and re-create it after each run....&lt;div&gt;







&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 2:31 PM, Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;






&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
I am also facing this error. Since this message is from 2008, I think it has&lt;br&gt;
been already fixed and I am doing something wrong.&lt;br&gt;
&lt;br&gt;
Thoughts?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Franklin Dattein&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
H. Canterburry wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am running some back tests right now that loop optimization code. It&lt;br&gt;
&amp;gt; seems like I cannot complete a single pass without the following&lt;br&gt;
&amp;gt; exception:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am streaming everything from a database.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;
&amp;gt; out-of-order&lt;br&gt;
&amp;gt;     at org.activequant.util.tools.UniqueDateGenerator.generate(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.fireExecution(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.checkOrder(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.access$300(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)2008-03-05 15:55:22,906 [main] INFO&lt;br&gt;
&amp;gt; [org.activequant.data.util.converter.CandleToTradeIndicationConverter] -&lt;br&gt;
&amp;gt; one candle  D : 943070400000000000 O : 42.94 H : 43.0 L : 39.81 C :&lt;br&gt;
&amp;gt; 40.38 V : 1.08971E7 generated 61 trade indications&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription.access$200(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription.access$100(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.ReplayServiceBase.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; -----&lt;br&gt;
&amp;gt; -HC&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&lt;/a&gt;&lt;br&gt;








Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26013834&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p26013834.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26011257</id>
	<title>Re: input dates are out-of-order Exception</title>
	<published>2009-10-22T06:09:01Z</published>
	<updated>2009-10-22T06:09:01Z</updated>
	<author>
		<name>Mike Kroutikov-2</name>
	</author>
	<content type="html">What is the exception stack? &lt;div&gt;&lt;br&gt;&lt;div&gt;Can you also add a link to the &amp;quot;Mike&amp;#39;s sample posted here in the mailing list&amp;quot;?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Mike&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 10:14 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Follow the example.&lt;br&gt;&lt;br&gt;It is based in one of Mike&amp;#39;s sample posted here in the mailing list. &lt;br&gt;I have changed that example to be configured by XML instead of Java and added two stock symbols instead of only one.&lt;br&gt;

&lt;br clear=&quot;all&quot;&gt;Thanks&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 11:58 AM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;

yes, sources would help&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 21, 2009 at 8:57 AM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;
Hi Mike,&lt;br&gt;Yes, I am putting both series in an ArrayList. That is the code that is causing the exception:&lt;br&gt;&lt;br&gt;    &amp;lt;bean id=&amp;quot;specs&amp;quot; class=&amp;quot;java.util.ArrayList&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;constructor-arg&amp;gt;&lt;br&gt;



            &amp;lt;list&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series1&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;



                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://LAME4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;LAME4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;                      ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;


                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;
                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;                &amp;lt;bean id=&amp;quot;series2&amp;quot; class=&amp;quot;org.activequant.core.domainmodel.SeriesSpecification&amp;quot;&amp;gt;&lt;br&gt;



                    &amp;lt;constructor-arg&amp;gt;&lt;br&gt;                        &amp;lt;bean class=&amp;quot;org.activequant.core.domainmodel.InstrumentSpecification&amp;quot;&amp;gt;&lt;br&gt;                            &amp;lt;property name=&amp;quot;symbol&amp;quot; value=&amp;quot;&lt;a href=&quot;http://PETR4.SA&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;PETR4.SA&lt;/a&gt;&amp;quot; /&amp;gt;&lt;br&gt;



                   ...&lt;br&gt;                        &amp;lt;/bean&amp;gt;    &lt;br&gt;                    &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;                    &amp;lt;constructor-arg value=&amp;quot;1d&amp;quot;/&amp;gt;&lt;br&gt;                &amp;lt;/bean&amp;gt;&lt;br&gt;



            &amp;lt;/list&amp;gt;&lt;br&gt;        &amp;lt;/constructor-arg&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;##################&lt;br&gt;&lt;br&gt;After removing one of the SeriesSpecification above, the system works fine.&lt;br&gt;The data source is YahooCandleSeriesSource.&lt;br&gt;



Could it be caused by an error in the data that comes from Yahoo?&lt;br&gt;&lt;br&gt;I can zip the system if you think it would help.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 7:52 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;



&lt;div&gt;Hmm, that is the whole point of the backtester - to cross-sort data coming from different streams (each stream is assumed sorted). I am pretty sure backtester works correctly. This leaves us with the only one possibility - your data is bad. This kind of exception means that one of the streams is not sorted. Are you putting both series in one ArrayList? &lt;/div&gt;




&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-Mike&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 3:41 PM, Franklin S. Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;




&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;Hi Mike,&lt;br&gt;I am running a back test with two SeriesSpecification. My code is based on the DualMovingAverageSystem example.&lt;br&gt;




&lt;br&gt;If the ArrayList contains only one SeriesSpecification there is no trouble. It only happens when I have more than one SeriesSpecification.&lt;br&gt;
&lt;br&gt;By reading the past mail thread I couldn&amp;#39;t understand if that is expected. Is that the expected behavior or a bug? &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Franklin Samir Dattein&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 5:33 PM, Mike Kroutikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgmmpk@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;





Franklin, what exactly are you doing? Backtester will refuse to merge data streams if any stream has out-of-order items (check your data). If you are trying to re-start the same backtester instance, it also won&amp;#39;t work as you have to discard and re-create it after each run....&lt;div&gt;






&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#888888&quot;&gt;-Mike&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 20, 2009 at 2:31 PM, Franklin Dattein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;franklin@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;





&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;
&lt;br&gt;
I am also facing this error. Since this message is from 2008, I think it has&lt;br&gt;
been already fixed and I am doing something wrong.&lt;br&gt;
&lt;br&gt;
Thoughts?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Franklin Dattein&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
H. Canterburry wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am running some back tests right now that loop optimization code. It&lt;br&gt;
&amp;gt; seems like I cannot complete a single pass without the following&lt;br&gt;
&amp;gt; exception:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am streaming everything from a database.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.AssertionError: input dates are&lt;br&gt;
&amp;gt; out-of-order&lt;br&gt;
&amp;gt;     at org.activequant.util.tools.UniqueDateGenerator.generate(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.fireExecution(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.checkOrder(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker.access$300(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.broker.PaperBroker$OrderTracker$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)2008-03-05 15:55:22,906 [main] INFO&lt;br&gt;
&amp;gt; [org.activequant.data.util.converter.CandleToTradeIndicationConverter] -&lt;br&gt;
&amp;gt; one candle  D : 943070400000000000 O : 42.94 H : 43.0 L : 39.81 C :&lt;br&gt;
&amp;gt; 40.38 V : 1.08971E7 generated 61 trade indications&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription.access$200(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.TradeIndicationToQuoteSubscriptionSourceConverter$QuoteSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription.access$100(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.converter.CandleToTradeIndicationConverter$CandleSubscription$1.eventFired(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.util.pattern.events.Event.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.retrieval.SubscriptionSourceBase$Subscription.fireEvent(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at&lt;br&gt;
&amp;gt; org.activequant.data.util.ReplayServiceBase$DispatchingSubscription.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.ReplayServiceBase.fire(Unknown Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt;     at org.activequant.data.util.MarketDataReplayService.fire(Unknown&lt;br&gt;
&amp;gt; Source)&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; ccapi mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; -----&lt;br&gt;
&amp;gt; -HC&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p25980196.html&lt;/a&gt;&lt;br&gt;







Sent from the ActiveQuant mailing list archive at Nabble.com.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
ccapi mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;ccapi mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26011257&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ccapi@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activestocks.de/cgi-bin/mailman/listinfo/ccapi&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/input-dates-are-out-of-order-Exception-tp15861447p26011257.html" />
</entry>

</feed>
