﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / Trading / Trading Systems </title><generator>InstantForum.NET v4.1.4</generator><description>RightEdge Forums</description><link>http://www.rightedgesystems.com/forums/</link><webMaster>rightedge@yyesoftware.com</webMaster><lastBuildDate>Thu, 11 Mar 2010 07:52:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Weekly strategies</title><link>http://www.rightedgesystems.com/forums/Topic10993-9-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I am evaluating your product, and I am so far very impressed. Congratulations to the development team.&lt;br&gt;&lt;br&gt;I am trying to adapt a certain number of strategies I had developed with Multicharts in EasyLanguage.&lt;br&gt;I a stuck with a problem related to weekly strategies. I would like my weekly strategies to be calculated on the last day of every week, and not on any other day. &lt;br&gt;Is there a parameter which I could adjust or an instruction I could include in my code to obtain this result ?&lt;br&gt;&lt;br&gt;Thanks in advance ,&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;Pierre</description><pubDate>Mon, 01 Mar 2010 12:07:38 GMT</pubDate><dc:creator>pch</dc:creator></item><item><title>Could I raise a sign at 1 hour bar but trade at tick type?</title><link>http://www.rightedgesystems.com/forums/Topic11072-9-1.aspx</link><description>Hi,My system raise the buy sign at hour bar but trade at tick period. Is it available in RE?&lt;/P&gt;&lt;P&gt;When i buy a position, then I wanna have a SMA on tick period or tailingstop on tick period, is it possible?</description><pubDate>Mon, 08 Mar 2010 07:07:03 GMT</pubDate><dc:creator>qichxi</dc:creator></item><item><title>Daily Trading NewBar() other than Midnight</title><link>http://www.rightedgesystems.com/forums/Topic11038-9-1.aspx</link><description>Is there a way to have a daily trading strategy where RightEdge fires the NewBar() event/method at a time other than midnight? If your RE was not running at midnight you would lose the NewBar() event?...Is there a way to trigger it later? &lt;/P&gt;&lt;P&gt;We also investigated using say, 1-minute bars, and configured them to return the latest historical datapoint. The problem with that was that when we did .LookBack(x), it would think in terms of minutes rather than days...is there a way to link a "fake" minute bar frequency that would run after hours and return the prices as of 4:00 pm, but use lookbacks in terms of days?&lt;/P&gt;&lt;P&gt;Thank you!</description><pubDate>Thu, 04 Mar 2010 21:50:27 GMT</pubDate><dc:creator>invingator</dc:creator></item><item><title>Trading system interaction with Interactive Brokers via TWS</title><link>http://www.rightedgesystems.com/forums/Topic10779-9-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I have a trading system that works fine in simulation. When it is linked to IB via TWS, it does not seem to work. I would also try to submit discretionary orders, they would get registered in RE, but they would not show up in TWS. I am able to download historical data via TWS, and the API tab appears, which tells me that the interaction between RE and TWS is working...at least partially, since nothing shows up on the API tab in TWS. &lt;br&gt;&lt;br&gt;I also tried to synch positions in RE from TWS:&lt;br&gt;                BrokerAccountState myAccount = new BrokerAccountState();&lt;br&gt;		List&lt;BrokerOrder&gt; pendingOrders = myAccount.PendingOrders;&lt;br&gt;		List&lt;BrokerPosition&gt; positions = myAccount.Positions;&lt;br&gt;&lt;br&gt;The counts of both pendingOrders and positions is zero - even though in TWS there are orders.&lt;br&gt;&lt;br&gt;I am using Windows 7 Ultimate 64bit, with Java 32 and 64 bit (both versions installed), and TWS 4 (I had to install Java 32 bit after I already had it 64-bit, in order for TWS to install - it would not otherwise).&lt;br&gt;&lt;br&gt;Also - the license I had for RE 2008 Ed 2 does not work with RE 2010 RC1.&lt;br&gt;&lt;br&gt;I would appreciate some insight into this situation.&lt;br&gt;&lt;br&gt;Thank you.</description><pubDate>Wed, 10 Feb 2010 10:58:09 GMT</pubDate><dc:creator>invingator</dc:creator></item><item><title>Accessing System Parameters</title><link>http://www.rightedgesystems.com/forums/Topic10958-9-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I am brand new to RE, actually quite new to C# as well, and just downloaded the 2010 environment.&lt;br&gt;I am trying to start with a simplistic MA crossover system, which I would like to try and optimize just to understand how it works.&lt;br&gt;I have declared a System Parameter called "Length" in the Properties of the trading system.&lt;br&gt;I am trying to reference this parameter with the following instruction in my code :&lt;br&gt;    static int maLength = SystemParameters["Length"] ;&lt;br&gt;&lt;br&gt;I have not been able to compile the code because of the following error : &lt;br&gt;An object reference is required for the non-static field, method, or property 'RightEdge.Common.SymbolScriptBase.SystemParameters.get' &lt;br&gt;&lt;br&gt;Could someone please help me with this ?&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;Pierre&lt;br&gt;&lt;br&gt;&lt;br&gt;Sorry for disturbing : this is solved. It just required to put the instruction in the proper paragraph of the code, and not to forget to convert the parameter which is double to int via :&lt;br&gt;	    maLength = System.Convert.ToInt32(SystemParameters["Length"]) ;&lt;br&gt;&lt;br&gt;Pierre</description><pubDate>Thu, 25 Feb 2010 05:24:50 GMT</pubDate><dc:creator>pch</dc:creator></item><item><title>Is it possible to build a risk reward analysis screen/calculator in RE for open/opening positions?</title><link>http://www.rightedgesystems.com/forums/Topic10917-9-1.aspx</link><description>&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 face=Tahoma&gt;I have found this tool &lt;/FONT&gt;&lt;A href="http://www.marginaccountcalc.com/"&gt;&lt;FONT color=#800080 face=Tahoma&gt;http://www.marginaccountcalc.com&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#000000 face=Tahoma&gt; that has a special section &lt;/FONT&gt;&lt;A href="http://www.marginaccountcalc.com/#risk1"&gt;&lt;FONT face=Tahoma&gt;http://www.marginaccountcalc.com/#risk1&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#000000 face=Tahoma&gt; that I was wondering if it was possible to implement in RE (for screenshot see &lt;/FONT&gt;&lt;A href="http://www.marginaccountcalc.com/screens7large.html"&gt;&lt;FONT color=#800080 face=Tahoma&gt;http://www.marginaccountcalc.com/screens7large.html&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#000000 face=Tahoma&gt;). It is especially the:&lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Open Risk&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Open Risk (%)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Account Open Risk&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Account Open Risk (%)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 face=Tahoma&gt;- that I’m interested in for stocks and futures. I’m an IB customer but I was told that IB TWS does not have the functionality to so open risk per position (difference between current price and price on stop order). IB told me that I could request this functionality – but perhaps it is faster to build it in RE?&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 face=Tahoma&gt;Furthermore I would like to be able to input my orders manually via RE. When I input an order I always want to place: &lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Order for profit target (fixed target)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;An order (marked or limit) for actually opening the position&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Tahoma&gt;&lt;SPAN style="mso-ascii-font-family: Calibri; mso-fareast-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&lt;FONT size=2&gt;          &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;A stop order (trailing or fixed amount)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 face=Tahoma&gt;Based on account balance and parameter stating how much I’m willing to risk on the trade (e.g. 0.5% of account balance) it will calculate the nominal for the order (which it can do if I type in the stop order at the same time). So I imagine some sort of popup where I can type in the 3 orders mentioned above &amp;amp; the risk percentage and get the risk/reward ratio along this the nominal &lt;U&gt;before&lt;/U&gt; I place the order. Is this possible?&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 face=Tahoma&gt;Finally, I want to know how easily I can manually adjust the profit target order and stop order within RE once a position has been initiated (i.e. move profit target up/down)?&lt;/FONT&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 face=Tahoma&gt;PS: I not (yet) a RE customer - although I tried out the free demo some time ago (and I liked what i saw).&lt;/FONT&gt;</description><pubDate>Sat, 20 Feb 2010 04:25:11 GMT</pubDate><dc:creator>Saxo</dc:creator></item><item><title>Chandelier Exit</title><link>http://www.rightedgesystems.com/forums/Topic10916-9-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Has anyone implemented the Chandelier Exit yet? If possible can you post the code, or maybe just give some hints.  It looks like I will have  to adjust the tailing stop for the position in the NewBar() method based on what the value for the trail stop is...&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Fri, 19 Feb 2010 18:31:36 GMT</pubDate><dc:creator>zykem</dc:creator></item><item><title>Trading system that uses 2 timeframes</title><link>http://www.rightedgesystems.com/forums/Topic10823-9-1.aspx</link><description>Hi, I just downloaded the trial to see if RightEdge will suit my needs... great platform! This is basically what I've been looking for and will save me a great deal of time!&lt;br&gt;&lt;br&gt;I'm working on a system that uses two seperate time frames and makes buy/sell decisions based on both a 1 min ADX/DMI and 3 min ADX/DMI chart. Is it possible to do this easily in RE? I realize you can probably just go with the 1 min data, and then recreate the 3 min bars based off that data coming in... but is there an easier way? And more importantly is there a way to "visualize" this so I can see if my system code is working as intended?&lt;br&gt;&lt;br&gt;** EDIT: looks like I've basically figured out how to do this going through the discussion forums and the SimpleSMA example.&lt;br&gt;&lt;br&gt;Also, another question, unrelated - and forgive me if this answer is already out there, but can you buy and sell options based on the analysing the underlying? IE: the system analysis SPY, and instead of buying the stock, it buys the ATM put/call (or some custom strike/expiration). Can option chains be "loaded" manually into the system for analysis?&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremy</description><pubDate>Thu, 11 Feb 2010 14:26:48 GMT</pubDate><dc:creator>jeremytang</dc:creator></item><item><title>Backtests are very Slow</title><link>http://www.rightedgesystems.com/forums/Topic10783-9-1.aspx</link><description>I am backtesting 1 year of Bar Data for approx 2000 symbols. Using  EMA and MACD indicators only and very few calculations.&lt;br&gt;The backtest is taking about 20 minutes to run. My comparison for speed is Tradery.com where the same system/symbols takes &lt; 3 mins.&lt;br&gt;&lt;br&gt;Are there any measures I can take to improve this performance?</description><pubDate>Wed, 10 Feb 2010 11:29:55 GMT</pubDate><dc:creator>gregoryj</dc:creator></item><item><title>Unable to Run Simulation on my Trading System.</title><link>http://www.rightedgesystems.com/forums/Topic10756-9-1.aspx</link><description>Hi all, &lt;/P&gt;&lt;P&gt;  I developed my Trading System. Compiled it. It compiled Successfully.&lt;/P&gt;&lt;P&gt; Then, from my SymbolsList, selected my Symbol and then said System -&amp;gt; Run Simulation. &lt;/P&gt;&lt;P&gt;I get a pop up window with the following error Message: Any ideas on what is wrong?&lt;/P&gt;&lt;P&gt;An exception of type System.Reflection.AmbiguousMatchException was thrown.&lt;BR&gt;Ambiguous match found.&lt;BR&gt;   at System.DefaultBinder.BindToMethod(BindingFlags bindingAttr, MethodBase[] canidates, Object[]&amp;amp; args, ParameterModifier[] modifiers, CultureInfo cultureInfo, String[] names, Object&amp;amp; state)&lt;BR&gt;   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&lt;BR&gt;   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&lt;BR&gt;   at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp;amp; stackMark)&lt;BR&gt;   at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&lt;BR&gt;   at System.AppDomain.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)&lt;BR&gt;   at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)&lt;BR&gt;   at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)&lt;BR&gt;   at RightEdge.ServiceManagerAppDomainFactory.CreateFactoryInDomain(AppDomain domain)&lt;BR&gt;   at RightEdge.Shared.TradingModuleWrapper.RunSystem(SystemDataCreationSettings settings, Dictionary`2 historicalData, SystemRunInfo dndInfo, ServiceAppDomainFactory brokerFactoryFactory)&lt;BR&gt;   at RightEdge.SystemProgress.InitAndRunSystem()</description><pubDate>Tue, 09 Feb 2010 19:25:45 GMT</pubDate><dc:creator>sudharsanv</dc:creator></item><item><title>Can I post my analysis and trades in this forum?</title><link>http://www.rightedgesystems.com/forums/Topic10671-9-1.aspx</link><description>Hello Fellow Traders!&lt;br&gt;&lt;br&gt;To Moderator:&lt;br&gt;&lt;br&gt;I'm a newbie here.&lt;br&gt;&lt;br&gt;Can I post my analysis and trades in this forum?&lt;br&gt;</description><pubDate>Mon, 01 Feb 2010 17:19:22 GMT</pubDate><dc:creator>TraderDTS</dc:creator></item><item><title>Redistributable trading systems</title><link>http://www.rightedgesystems.com/forums/Topic293-9-1.aspx</link><description>One of the well tucked away features of RightEdge is the ability to distribute systems without source code.  For system writers, this is a great way to protect intellectual property.&lt;/P&gt;&lt;P&gt;After you open/create a system, there is an Export Trading System menu item located off of the File menu.  This will create a folder underneath the folder where your source code resides.  The folder is named &amp;lt;system name&amp;gt;_redist.  This folder will contain the RightEdge project file (.rep extension) and the compiled DLL (assembly).  This is all that is needed to run this system.  Redistribute those two files (and any dependencies) and it's ready to go.</description><pubDate>Tue, 10 Oct 2006 22:00:02 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>SQLServer Data Storage bug/error</title><link>http://www.rightedgesystems.com/forums/Topic10613-9-1.aspx</link><description>I configured RE to store quotes in my SQL Server 2005 Developer Edition. I created database and pointed to it from configuration.&lt;br&gt;&lt;br&gt;When I tried to start data feed (from IB) then I got:&lt;br&gt;&lt;br&gt;[code]An exception of type System.NotSupportedException was thrown.&lt;br&gt;Tick data storage not supported for old data storage interface (IBarDataStorage)&lt;br&gt;   w RightEdge.Common.OldDataStoreWrapper.GetTickStorage(Symbol symbol)&lt;br&gt;   w RightEdge.xfb471916970b0c9e.x5e5969a9722ffac4(NewLiveSymbolInfo x1beeafe0108e6b2f)[/code]&lt;br&gt;&lt;br&gt;And then:&lt;br&gt;[code]An exception of type System.Data.SqlClient.SqlException was thrown.&lt;br&gt;Invalid object name 'BarData'.&lt;br&gt;   w System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br&gt;   w System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br&gt;   w System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)&lt;br&gt;   w System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)&lt;br&gt;   w System.Data.SqlClient.SqlDataReader.ConsumeMetaData()&lt;br&gt;   w System.Data.SqlClient.SqlDataReader.get_MetaData()&lt;br&gt;   w System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)&lt;br&gt;   w System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)&lt;br&gt;   w System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)&lt;br&gt;   w System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)&lt;br&gt;   w System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)&lt;br&gt;   w System.Data.SqlClient.SqlCommand.ExecuteReader()&lt;br&gt;   w RightEdge.DataStorage.SQLServerStorage.xaa94ddc1ef33aa16(String x9f54f786142cfa52, DateTime x56bbcb28163a9162, DateTime x7ef1e98b1a6d2afb, Int32 x9c7694faf01f6330, Boolean x8dbc561fbae4756e)&lt;br&gt;   w RightEdge.DataStorage.SQLServerStorage.LoadBars(SymbolFreq symbol, DateTime startDateTime, DateTime endDateTime, Int32 maxLoadBars, Boolean loadFromEnd)&lt;br&gt;   w RightEdge.Common.OldDataStoreWrapper.x27716114a68ffa6b.Load(DateTime start, DateTime end, Int64 maxItems, Boolean loadFromEnd)&lt;br&gt;   w RightEdge.Common.DataStorageUtil.GetLastBarDate(IDataStore storage, SymbolFreq symbol)&lt;br&gt;   w RightEdge.xfb471916970b0c9e.AddSymbol(SymbolSetup symbol)&lt;br&gt;   w RightEdge.xf266856f631ec016.x241715eb000ca8fc()&lt;br&gt;   w RightEdge.xf266856f631ec016.xa927fcc2ce303480(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)[/code]&lt;br&gt;&lt;br&gt;&lt;br&gt;Edition 2 Beta 14</description><pubDate>Thu, 28 Jan 2010 07:51:45 GMT</pubDate><dc:creator>Largo</dc:creator></item><item><title>Can RE do that?</title><link>http://www.rightedgesystems.com/forums/Topic10476-9-1.aspx</link><description>Hi everybody,&lt;br&gt;&lt;br&gt;I'm looking for platform for automated trading futures instruments through Interactive Brokers.&lt;br&gt;I tried to implement strategy in OpenQuant, but it lacks of basic functionalities!&lt;br&gt;&lt;br&gt;So, please confirm if Right Edge allows:&lt;br&gt;1. Restoring strategy state after restarting platform: information about pending orders submitted before must be available as well as about filled orders.&lt;br&gt;2. Obtain yesterday close price for futures (ie. S&amp;P 500 e-mini) from IB (it's official settlement price, seen in TWS by adding "Close" column to the instrument list).&lt;br&gt;</description><pubDate>Tue, 12 Jan 2010 15:00:49 GMT</pubDate><dc:creator>Largo</dc:creator></item><item><title>Decimal separator bug</title><link>http://www.rightedgesystems.com/forums/Topic10573-9-1.aspx</link><description>In my country decimal separator for numbers is comma, not dot.&lt;br&gt;I have installed MS Visual Studio 2008 Pro.&lt;br&gt;&lt;br&gt;When I try to run live any trading system (even without any my code) RE throws exception and crashes.&lt;br&gt;It stops on step 4 of 6.&lt;br&gt;&lt;br&gt;Normally I could change locale within C# code, but it not works in RE:&lt;br&gt;Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US",false);&lt;br&gt;&lt;br&gt;What to do?&lt;br&gt;&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;An exception of type System.InvalidOperationException was thrown.&lt;br&gt;Exception thrown while processing message: AccountValue&lt;br&gt;   w Krs.Ats.IBNet.IBClient.ProcessMsg(IncomingMessage msgId)&lt;br&gt;   w Krs.Ats.IBNet.IBClient.Run()&lt;br&gt;   w System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;br&gt;   w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br&gt;   w System.Threading.ThreadHelper.ThreadStart()&lt;br&gt;&lt;br&gt;Inner Exception:&lt;br&gt;An exception of type System.FormatException was thrown.&lt;br&gt;Nieprawidłowy format ciągu wejściowego.&lt;br&gt;   w System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)&lt;br&gt;   w System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)&lt;br&gt;   w System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)&lt;br&gt;   w System.Convert.ToDouble(String value)&lt;br&gt;   w RightEdge.TWSCSharpPlugin.TWSPlugin.client_UpdateAccountValue(Object sender, UpdateAccountValueEventArgs e)&lt;br&gt;   w Krs.Ats.IBNet.IBClient.RaiseEvent[T](EventHandler`1 event, Object sender, T e)&lt;br&gt;   w Krs.Ats.IBNet.IBClient.OnUpdateAccountValue(UpdateAccountValueEventArgs e)&lt;br&gt;   w Krs.Ats.IBNet.IBClient.updateAccountValue(String key, String value, String currency, String accountName)&lt;br&gt;   w Krs.Ats.IBNet.IBClient.ProcessMsg(IncomingMessage msgId)&lt;br&gt;[/code]</description><pubDate>Mon, 25 Jan 2010 14:03:41 GMT</pubDate><dc:creator>Largo</dc:creator></item><item><title>Manupulating system statistics calculation start date</title><link>http://www.rightedgesystems.com/forums/Topic10191-9-1.aspx</link><description>Hi, &lt;br&gt;&lt;br&gt;My system does not trade for a fixed period of time at the beginning of a simulation. But since this period is also included in the system results calculation I am having biased results. I would like to simply shift the calculation starting date of all the SystemStatistics. I am planning to remove the initial part from the BarStats dictionary property from the SystemStatistics and call UpdateStats() afterwards. My first question is; does it make sense?&lt;br&gt;and second one; where would I need to do that? Is there an intermediate event which is triggered between the end of the simulation and the calculation of the results through the plugins. &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Erk</description><pubDate>Fri, 04 Dec 2009 05:43:16 GMT</pubDate><dc:creator>ErkSubasi</dc:creator></item><item><title>Multiple Frequency</title><link>http://www.rightedgesystems.com/forums/Topic10148-9-1.aspx</link><description>Can someone please clarify what is or is not possible in RE Edition 2 in regard to multiple frequencies, and hopefully point me to a sample system that implements multiple frequencies.&lt;br&gt;&lt;br&gt;In particular, within one system, assuming data is being downloaded as say 1 minute bars, can:&lt;br&gt;Indicator A use 60 minute bars&lt;br&gt;Indicator B use 30 minute bars&lt;br&gt;Indicator B use 10 minute bars&lt;br&gt;Indicator C use 5 minute bars&lt;br&gt;&lt;br&gt;Kind Regards Bruce&lt;br&gt;&lt;br&gt;P.S. &lt;br&gt;1)&lt;br&gt;I have tried this and cannot find an indicator property that exposes frequency (other than the system frequency).&lt;br&gt;&lt;br&gt;2)&lt;br&gt;Indicator B was intentionally listed twice, each with a different frequency.&lt;br&gt;</description><pubDate>Tue, 01 Dec 2009 01:31:41 GMT</pubDate><dc:creator>BG</dc:creator></item><item><title>Buy Gap</title><link>http://www.rightedgesystems.com/forums/Topic10041-9-1.aspx</link><description>Hi&lt;br&gt;I am just a beginner in C# &lt;br&gt;Now i'm using RightEdge 2008 Edition 2, Build 14 trial&lt;br&gt;Can you write a simple system(for simulation only) as I can't do it :&lt;br&gt;&lt;br&gt;buy at open if gap &gt; 5%&lt;br&gt;exit this bar at close(same bar exit)&lt;br&gt;&lt;br&gt;Daily bars.&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Sat, 21 Nov 2009 14:16:12 GMT</pubDate><dc:creator>alromseo</dc:creator></item><item><title>Backtesting Bar Frequency</title><link>http://www.rightedgesystems.com/forums/Topic9766-9-1.aspx</link><description>I have imported data as 5min Bars. How do I specify my system to run/backtest on eg. 15min Bars?</description><pubDate>Wed, 21 Oct 2009 16:21:13 GMT</pubDate><dc:creator>henk</dc:creator></item><item><title>Live System - CSI continous contracts - onNewBar</title><link>http://www.rightedgesystems.com/forums/Topic9686-9-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I created a future and I uploaded daily historical data from CSI as a continuous contract through an ASCII file.&lt;br&gt;Then I run my system live with my IB paper trading account.&lt;br&gt;To simulate a new daily bar, I added data through the bar data editor and I saved.&lt;br&gt;To my surprise, it did not trigger a newbar event. Why?&lt;br&gt;When I update my data with a new ASCII file tomorow, will it trigger the newbar event?&lt;br&gt;Thank you for your help.</description><pubDate>Wed, 07 Oct 2009 13:25:43 GMT</pubDate><dc:creator>foon33</dc:creator></item><item><title>Global Dictionary</title><link>http://www.rightedgesystems.com/forums/Topic9721-9-1.aspx</link><description>  Hi guys !!!&lt;/P&gt;&lt;P&gt;  I´m tryeing to write a code that need a Dictionary&amp;lt;symbol,double[]&amp;gt; with all the symbols in "Symbols" but i need it to be available to all symbols. ie. All instances of MySymbolScript. it sounds, to me, a bit confusing creating a copy of that dictionary to each symbol and feeding them, too much redundancie to work out !! &lt;/P&gt;&lt;P&gt;I even tried with &amp;lt;string, double&amp;gt;&lt;/P&gt;&lt;P&gt;i tried to create it in MySystem but it doesn´t get availlable in mysymbolScript....   Any idea ????? </description><pubDate>Wed, 14 Oct 2009 10:54:56 GMT</pubDate><dc:creator>vitor dantas</dc:creator></item><item><title>Building Systems w/Channels &amp; Bands</title><link>http://www.rightedgesystems.com/forums/Topic9643-9-1.aspx</link><description>How can indicators of channels &amp; bands be included in a system? Drag n drop or code?&lt;br&gt;&lt;br&gt;Since they don't cross over/under &amp; they're always greater &amp; lesser as far as the comparison...what trigger is used to initiate entry/exit signals, whenever the price crosses above/below the bands &amp; channels, if possible to drag &amp; drop, or is code needed?&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 30 Sep 2009 13:42:40 GMT</pubDate><dc:creator>nmilton2</dc:creator></item><item><title>Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>I've just started to use Right Edge and I find it a little bit too simplistic. I have used OpenQuant before which has methods for different events on a bar, e.g. open and close. This works well for me as I would like to test some simple strategies where I enter on open and exit on close of a bar. Is it possible to do this in RE as well, as I haven't been able to figure it out yet.&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Fri, 19 Jun 2009 06:27:08 GMT</pubDate><dc:creator>clawson84</dc:creator></item><item><title>Trading Index and Equity options</title><link>http://www.rightedgesystems.com/forums/Topic8779-9-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;Hi,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;I'm trying to develop an option trading solution based on IB data but have some questions/issues on the feasability of it. Can anybody help me further?.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;1 ) Is RE able to trade more than 1 option in any strategy? Errors are thrown with “ Entry with&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;the same key already exist&lt;SPAN style="mso-spacerun: yes"&gt;  &lt;/SPAN&gt;“. (see attachment for more details) &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"&gt;&lt;FONT color=#000000&gt;2 ) If&lt;SPAN style="mso-spacerun: yes"&gt;  &lt;/SPAN&gt;a solution for&lt;SPAN style="mso-spacerun: yes"&gt;  &lt;/SPAN&gt;multiple option is possible with&lt;SPAN style="mso-spacerun: yes"&gt;  &lt;/SPAN&gt;programming,&lt;SPAN style="mso-spacerun: yes"&gt;  &lt;/SPAN&gt;can someone direct me by explaining the concept and way forward. Please include any coding examples so I don’t need to ‘reinvent the wheel’.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;FONT color=#000000&gt;3 ) Using symbols with different Currencies (EUR /USD) &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;than the Account currency set-up in the system throws also an error. So I can’t have a strategy run on both stock exchanges together (US and Europe)? &lt;FONT size=3&gt;(see attachment) &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#000000&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;4) Is it possible to maintain an alternative label of the option in order to make them more distinct ?&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;Detailed information is available in Attached document&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;</description><pubDate>Fri, 12 Jun 2009 10:44:35 GMT</pubDate><dc:creator>roedies</dc:creator></item><item><title>Stop and Reverse Sample</title><link>http://www.rightedgesystems.com/forums/Topic8975-9-1.aspx</link><description>Do you have a stop and reverse sample system somewhere?&lt;br&gt;&lt;br&gt;I had a look in the sample directory and could not see one.&lt;br&gt;&lt;br&gt;I 'think' I have it working correctly but want to check if I have done it how you would have done it or there is a better way.</description><pubDate>Sat, 11 Jul 2009 23:46:48 GMT</pubDate><dc:creator>kaizen</dc:creator></item><item><title>Trading System Properties: Where is 'backtesting' ?</title><link>http://www.rightedgesystems.com/forums/Topic8716-9-1.aspx</link><description>I watched the demo video, and the help instructions.  Both say to go to properties after you setup your trigger and action.&lt;br&gt;&lt;br&gt;When I go to properties though, I do not have a 'Backtesting' section.  How do I see that?</description><pubDate>Sun, 07 Jun 2009 16:53:44 GMT</pubDate><dc:creator>redoc</dc:creator></item><item><title>Lowest low of x days, check price at 4pm, set frequency of bars, etc...</title><link>http://www.rightedgesystems.com/forums/Topic8715-9-1.aspx</link><description>Is it possible to do these with the software?  Even if I have to code it in C#, it would be fine.  I'm just looking for a flexible backtesting solution.&lt;br&gt;&lt;br&gt;example 1&lt;br&gt;- look for lowest low of the past 5 days&lt;br&gt;- trigger a buy at a crossover that happens after this period&lt;br&gt;&lt;br&gt;example 2&lt;br&gt;- trigger a buy at 4pm if the current price is greater than yesterday's low&lt;br&gt;&lt;br&gt;&lt;br&gt;Also, is it possible to do things like set the EMA frequency? i.e. i can set the period, but i want it to look on a 60 minute frequency.</description><pubDate>Sun, 07 Jun 2009 16:52:25 GMT</pubDate><dc:creator>redoc</dc:creator></item><item><title>IB Historical Data Download error</title><link>http://www.rightedgesystems.com/forums/Topic8322-9-1.aspx</link><description>Hello,&lt;br&gt;&lt;br&gt;I am trying to download historical 1m data from Interactive Brokers but it does not seem to work. I am able to retrieve live data so I assume that I set up the data connection correctly. When I click on "Update Historical Data" the download window pops up but nothing seems to happen. I had it open for 30minutes but nothing happened either. I set the backfill days option to 1 day, only, and I also set the "configure folder settings option Data Download Start Date" to only one day prior to the current date and no luck!!!&lt;br&gt;&lt;br&gt;Can someone please point me to how to download IB historical intraday data? Amibroker seems to be KING when it comes to this functionality, it seamlessly automatically backfills 1minute IB data in a very short time (6 days backfill per symbol takes about 20-30 seconds on my machine). I expected something similar for RightEdge but either I have not found out how to correctly retrieve the historical data or how RightEdge handles IB hist. data is pretty inefficient. That it works in a mangable time is shown by Amibroker.  &lt;br&gt;&lt;br&gt;Thanks for any feedback.</description><pubDate>Tue, 05 May 2009 02:37:04 GMT</pubDate><dc:creator>bbmat173</dc:creator></item><item><title>Pyramiding Up</title><link>http://www.rightedgesystems.com/forums/Topic8117-9-1.aspx</link><description>I'm curious as to whether anyone who frequents this board has developed a system that pyramids up in price without substantially affecting one's win/loss numbers. I've developed a nice system that has a pretty low max drawdown and decent profits over 20 years. I'd like to increase the profits by pyramiding up in price but obviously I'd like to keep my losses and drawdowns low. Has anyone backtested a system that pyramids up in price and does so in a way that doesn't substantially increase drawdowns? In general, if you've backtested a system that pyramids up, have you found it to be a better or worse system than the same system that doesn't pyramid up?&lt;/P&gt;&lt;P&gt;Brad</description><pubDate>Wed, 08 Apr 2009 11:40:47 GMT</pubDate><dc:creator>bloveall</dc:creator></item><item><title>Futures Calendar spreads</title><link>http://www.rightedgesystems.com/forums/Topic8153-9-1.aspx</link><description>Hi guys, &lt;/P&gt;&lt;P&gt;I've got an IB data feed and am trading futures, I want to be able to run strategies for calendar spreads.. From what I understand  I will have to check the two symbols in my watchlist for example&lt;/P&gt;&lt;P&gt;CL 042009, CL052009 &lt;/P&gt;&lt;P&gt;and in my code create a UserSeries within code and do my stuff against that..  I've been doing this with product spreads and it works fine. &lt;/P&gt;&lt;P&gt;However, when I select the same product I get the following exception&lt;/P&gt;&lt;P&gt;An entry with the same key already exists.&lt;/P&gt;&lt;P&gt;From what I understand the unique key in this case is JUST the symbol name...&lt;/P&gt;&lt;P&gt;Is there any way to solve this problem..???&lt;/P&gt;&lt;P&gt;Thanx in advance</description><pubDate>Wed, 15 Apr 2009 09:30:27 GMT</pubDate><dc:creator>gc</dc:creator></item><item><title>How do you pick stocks for your ATS?</title><link>http://www.rightedgesystems.com/forums/Topic8184-9-1.aspx</link><description>During the algorithm development stages people often don't think about which specific stocks they are going to trade. However, at some point the question pops up so I was wondering how everyone is doing this. When I was developing and simulating my ATS, the selection of stocks was determined by practical considerations - quality of data, whether there are any splits and dividends (you don't have to adjust the data if there are no events), whether the volumes are sufficiently high to model order execution, whether the symbol has changed in the past, etc. I also excluded stocks worth less than $1.00/share to avoid the risk associated with penny stocks. Generally, I looked for middle of the road companies, with large volumes and high share prices that could be easily retrieved from my data archive without requiring a lot of processing. But all of this was very intuitive and informal.&lt;br&gt;Now, in the real world, what do you look for when picking a stock to add to your watchlist? Market cap? Industry sector? Do you perform fundamental analysis to learn about the company's financial health? Do you look at trading activity? The more you think about it, the less intuitive the answer is... Anyways, just curious if anyone has a clever approach to this problem. Thanks!</description><pubDate>Tue, 21 Apr 2009 19:03:06 GMT</pubDate><dc:creator>Zora</dc:creator></item><item><title>array of indicators</title><link>http://www.rightedgesystems.com/forums/Topic8103-9-1.aspx</link><description>i tried to create an array by using &lt;br&gt;SeriesCalculatorBaseWithValues[] indicatorlist = {new BollingerBandLower(14, 1.5)};&lt;br&gt;&lt;br&gt;then i did setinput...&lt;br&gt;but when i try to access it by &lt;br&gt;indicatorlist[0].count or .current&lt;br&gt;it's always empty. &lt;br&gt;i tried to do REGISTER or REGISTERMEMEBER but i could make it compile, didn't know which Iseries to give it, cause INPUTS is blocked. &lt;br&gt;&lt;br&gt;i'd like to have an array which gives me acces both to &lt;br&gt;SeriesCalculatorBaseWithValues&lt;br&gt;and &lt;br&gt;IndicatorBase&lt;br&gt;&lt;br&gt;i just want to be able to access several indicators using FOR loop. &lt;br&gt;&lt;br&gt;is it possible ?</description><pubDate>Fri, 03 Apr 2009 05:22:24 GMT</pubDate><dc:creator>omri1181</dc:creator></item><item><title>Equity options strategy</title><link>http://www.rightedgesystems.com/forums/Topic7962-9-1.aspx</link><description>&lt;FONT size=2&gt;&lt;P&gt;I am working on a strategy that trades equity options. There are two things that have me stumped at the moment:&lt;BR&gt;- Under NewBar I need access to Bid and Ask, whatever the most recent values are.&lt;BR&gt;- How is a limit specified on a closeposition order?&lt;BR&gt;Thanks.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sun, 22 Mar 2009 19:19:23 GMT</pubDate><dc:creator>phg</dc:creator></item><item><title>Exceptions thrown while automating trading</title><link>http://www.rightedgesystems.com/forums/Topic7165-9-1.aspx</link><description>I'm attempting to automate some strategies and ideally I'd like them running 24x7.  Some are high-frequency FX so stability is important.  :)  I've used a software package called FireDaemon to launch RE as a service with the appropriate command-line parameters.  So at boot time, RE gets started automatically.&lt;br&gt;&lt;br&gt;However, I've encountered a number of different exceptions while testing over the past week and was hoping someone could shed some more light on them because some of them prevent the trading strategy from restarting automatically.&lt;br&gt;&lt;br&gt;[b]1.[/b] I've posted in another thread, about the "Could not convert from NZD to USD for date 1/01/0001 12:00:00 AM." exception being thrown.  If I manually attempt to restart the strategy, an error gets logged in the Output window and the strategy fails to start:&lt;br&gt;&lt;br&gt;[font="Courier New"]Could not write to output file 'c:\dir\strategy.dll' -- 'The process cannot access the file because it is being used by another process. '[/font]&lt;br&gt;&lt;br&gt;This is the only strategy that is using the file/dll.  The sequence of events is:&lt;br&gt;&lt;br&gt;1.  RE started automatically using command line args: /W:"Watchlist" /P:"C:\dir\strategy.rep" /L&lt;br&gt;2.  The NZD/USD conversion exception is thrown.&lt;br&gt;3.  Manually starting the live strategy results in the above error.&lt;br&gt;&lt;br&gt;The only way to recover is to shutdown RE and restart (and not accept saved positions).  It seems like some part of RE has a file open on the strategy.dll even when the strategy fails to start.&lt;br&gt;&lt;br&gt;[b]2.[/b]  When trading with the IB TWS plugin, this exception was thrown:&lt;br&gt;&lt;br&gt;[font="Courier New"]An exception of type System.ArgumentException was thrown.&lt;br&gt;Unknown value for enum type Krs.Ats.IBNet.OrderStatus: ApiCancelled&lt;br&gt;   at Krs.Ats.IBNet.EnumDescConverter.GetEnumValue(Type value, String description)&lt;br&gt;   at Krs.Ats.IBNet.IBClient.ProcessMsg(IncomingMessage msgId)&lt;br&gt;   at Krs.Ats.IBNet.IBClient.Run()&lt;br&gt;   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;br&gt;   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br&gt;   at System.Threading.ThreadHelper.ThreadStart()[/font]&lt;br&gt;&lt;br&gt;After clicking on the dialog, RE then crashed.  But all automated trading is halted until someone realises there's a dialog window and clicks on it and then waits for RE to restart. :cool:&lt;br&gt;&lt;br&gt;[b]3.[/b]  The strategy was happily trading away and then this exception was thrown:&lt;br&gt;&lt;br&gt;[font="Courier New"]Cash was NaN&lt;br&gt;   at RightEdge.Common.BaseSystemHistory.SimNewBar(NewBarInfo info)&lt;br&gt;   at RightEdge.Common.SystemData.x56e784a497b3cb60(NewBarInfo x8d3f74e5f925679c)&lt;br&gt;   at RightEdge.Common.Internal.SystemRunner.NewBar(Dictionary`2 bars)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.NewBar(Dictionary`2 bars)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.NewBar(Dictionary`2 bars)&lt;br&gt;   at RightEdge.Shared.TradingModuleWrapper.NewBar(Dictionary`2 bars)&lt;br&gt;   at RightEdge.LiveSystem&amp;#119;indow.x2e01f099ee7feedb(Dictionary`2 xd3a52115666f4605)[/font]&lt;br&gt;&lt;br&gt;After clicking on the dialog, RE then crashed.  Again, all automated trading is halted until the dialog was closed.  It could be days before someone realizes something is amis.&lt;br&gt;&lt;br&gt;[b]4.[/b]  I'm trying to automate a few strategies so FireDaemon is starting up a couple of instances of RE with different command line args.  I occasionally get this error when the system reboots:&lt;br&gt;&lt;br&gt;[font="Courier New"]An exception of type System.Configuration.ConfigurationErrorsException was thrown.&lt;br&gt;An error occurred loading a configuration file: The process cannot access the file 'C:\Documents and Settings\User\Local Settings\Application Data\Yye_Software\RightEdge.exe_StrongName_tzopmoluzdyjreykcjm2jskkq1rnwoju\2008.1.0.0\user.config' because it is being used by another process. (C:\Documents and Settings\User\Local Settings\Application Data\Yye_Software\RightEdge.exe_StrongName_tzopmoluzdyjreykcjm2jskkq1rnwoju\2008.1.0.0\user.config)&lt;br&gt;   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)&lt;br&gt;   at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)&lt;br&gt;   at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)&lt;br&gt;   at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams)&lt;br&gt;   at System.Configuration.ClientSettingsStore.ClientSettingsConfigurationHost.OpenExeConfiguration(ConfigurationUserLevel userLevel)&lt;br&gt;   at System.Configuration.ClientSettingsStore.GetUserConfig(Boolean isRoaming)&lt;br&gt;   at System.Configuration.ClientSettingsStore.WriteSettings(String sectionName, Boolean isRoaming, IDictionary newSettings)&lt;br&gt;   at System.Configuration.LocalFileSettingsProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection values)&lt;br&gt;   at System.Configuration.SettingsBase.SaveCore()&lt;br&gt;   at System.Configuration.SettingsBase.Save()&lt;br&gt;   at System.Configuration.ApplicationSettingsBase.Save()&lt;br&gt;   at RightEdge.xf266856f631ec016.OpenProject(String filename)&lt;br&gt;&lt;br&gt;Inner Exception:&lt;br&gt;An exception of type System.IO.IOException was thrown.&lt;br&gt;The process cannot access the file 'C:\Documents and Settings\User\Local Settings\Application Data\Yye_Software\RightEdge.exe_StrongName_tzopmoluzdyjreykcjm2jskkq1rnwoju\2008.1.0.0\user.config' because it is being used by another process.&lt;br&gt;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&lt;br&gt;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)&lt;br&gt;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)&lt;br&gt;   at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)&lt;br&gt;   at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)&lt;br&gt;   at System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)&lt;br&gt;   at System.Configuration.ClientSettingsStore.ClientSettingsConfigurationHost.OpenStreamForRead(String streamName)&lt;br&gt;   at System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName)&lt;br&gt;   at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()[/font]&lt;br&gt;&lt;br&gt;The only solution is to manually restart every instance of RE that has thrown the error.  Again, it could be a while before someone realizes the strategy isn't trading.&lt;br&gt;&lt;br&gt;[b]5.[/b]  Thanks to the wonders of Windows Automatic updates and automatic reboots, I logged on one morning to discover the machine had rebooted.  When starting up, the live strategies had all thrown this error:&lt;br&gt;&lt;br&gt;[font="Courier New"]An exception of type System.InvalidOperationException was thrown.&lt;br&gt;There is an error in XML document (0, 0).&lt;br&gt;   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)&lt;br&gt;   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)&lt;br&gt;   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)&lt;br&gt;   at RightEdge.Common.PositionManager.LoadOpenPositions(String fileName)&lt;br&gt;   at RightEdge.LiveSystem&amp;#119;indow.x0fa035c1818e31d7(SystemDataCreationSettings xb6b3da7953a69f26, String xe125219852864557)&lt;br&gt;   at RightEdge.LiveSystem&amp;#119;indow.StartLiveSystem(xfb471916970b0c9e liveDataWindow, List`1 symbols, SystemDataCreationSettings settings, SystemRunInfo runInfo, RightEdgeCompiler compiler)&lt;br&gt;   at RightEdge.xf266856f631ec016.x7315d87aa80c241d()&lt;br&gt;   at RightEdge.xf266856f631ec016.ExecuteCommandLineParameters()&lt;br&gt;&lt;br&gt;Inner Exception:&lt;br&gt;An exception of type System.Xml.XmlException was thrown.&lt;br&gt;Root element is missing.&lt;br&gt;   at System.Xml.XmlTextReaderImpl.Throw(Exception e)&lt;br&gt;   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)&lt;br&gt;   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()&lt;br&gt;   at System.Xml.XmlTextReaderImpl.Read()&lt;br&gt;   at System.Xml.XmlReader.MoveToContent()&lt;br&gt;   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read20_PortfolioXml()[/font]&lt;br&gt;&lt;br&gt;It seems like the LiveOpenPositions.xml file had become corrupted.  Deleting the files and restarting fixed the problem.  Not sure how best to solve this.  Is it possible to automatically blow it away if its corrupted?  Or else, is it possible to close it and flush it once finished writing to it?  ie, write and flush to new file, and then replace existing file with new file?&lt;br&gt;&lt;br&gt;[b]6.[/b]  I've configured FireDaemon to automatically start up both RightEdge and IB's TWS.  However, RE starts much faster than TWS.  :)  As a result, RE failed to connect because TWS wasn't yet running.  I have selected to automatically reconnect every 5 seconds but the TWS plugin never connected to TWS.  I had left it running for hours and TWS was definitely up and running.  Not sure why it didn't connect.&lt;br&gt;&lt;br&gt;When I did finally login to the machine, I manually started the live feed without any problems.  However, manually starting the live strategy resulted in an output message: cannot write to strategy.dll.  To solve this I had to restart RE.&lt;br&gt;&lt;br&gt;These are some of the problems I've encountered when trying to automate a couple of strategies with IB so any assistance, comments, tips, work-arounds would be hugely appreciated.  :)  Thanks.</description><pubDate>Fri, 19 Dec 2008 05:36:25 GMT</pubDate><dc:creator>Freolad</dc:creator></item><item><title>Debugging a strategy</title><link>http://www.rightedgesystems.com/forums/Topic7594-9-1.aspx</link><description>RE does not have debugging built-in, but .Net library power and RE's open model enables you to debug anyways.&lt;/P&gt;&lt;P&gt;Here is a workaround for debugging your strategy code using Visual Studio if you have it installed:  Simply add a line and call the debugger through .Net library.&lt;/P&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;&lt;P&gt;System.Diagnostics.Debugger.Break();&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Thu, 19 Feb 2009 01:08:29 GMT</pubDate><dc:creator>Atul H</dc:creator></item><item><title>ClosePosition cleanup?</title><link>http://www.rightedgesystems.com/forums/Topic7794-9-1.aspx</link><description>Am I correct in assuming that the ClosePosition and CloseAllPositions methods also cancel all pending orders (e.g. take profit and stop-loss) and ensure that they haven't been executed?&lt;br&gt;&lt;br&gt;I'm also a little confused about what constitutes a position. I assume that the OpenPosition method creates a new position of the current symbol, whereas the AddToPosition method adds to an existing position of the current symbol so that multiple trades may be associated with a single position. If so, I can't figure out how to determine the position ID associated with a particular use of OpenPosition so that I can add to it with AddToPosition. Any hints?&lt;br&gt;&lt;br&gt;By the way, I'm a new purchaser of RE and I find myself very impressed with the flexibility of the platform, though the learning curve is pretty steep. I'm compiling a document of lessons learned and will be happy to share it when it gets a bit further along. Perhaps it could serve as the beginning of a more comprehensive tutorial. Congratulations on a solid and flexible product, and your excellent customer support.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 06 Mar 2009 19:04:33 GMT</pubDate><dc:creator>davidS</dc:creator></item><item><title>Exceptions on starting RightEdge</title><link>http://www.rightedgesystems.com/forums/Topic7578-9-1.aspx</link><description>Hi Mark, Bill, Daniel,&lt;/P&gt;&lt;P&gt;The following exception is thrown on starting RightEdge.  This is without anything loaded.  I checked my machine status and it looked healthy from memory availability point of view.  &lt;/P&gt;&lt;P&gt;Any insight?  Thanks,&lt;/P&gt;&lt;P&gt;Atul&lt;/P&gt;&lt;P&gt;[quote]An exception of type System.OutOfMemoryException was thrown.&lt;BR&gt;Out of memory.&lt;BR&gt;   at System.Drawing.Drawing2D.LinearGradientBrush..ctor(Point point1, Point point2, Color color1, Color color2)&lt;BR&gt;   at TD.SandDock.Rendering.ThemeAwareRendererBase.A(Control , Control , Graphics , Rectangle )&lt;BR&gt;   at TD.SandDock.Rendering.ThemeAwareRendererBase.DrawSplitter(Control container, Control control, Graphics graphics, Rectangle bounds, Orientation orientation)&lt;BR&gt;   at TD.SandDock.DockContainer.OnPaint(PaintEventArgs e)&lt;BR&gt;   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)&lt;BR&gt;   at System.Windows.Forms.Control.WmPaint(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)[/quote]</description><pubDate>Tue, 17 Feb 2009 20:04:36 GMT</pubDate><dc:creator>Atul H</dc:creator></item><item><title>Cant go live with MBTrading</title><link>http://www.rightedgesystems.com/forums/Topic7556-9-1.aspx</link><description>Hi Bill, Experts,&lt;BR&gt; &lt;BR&gt;I am able to load MBTrading in Backtesting and see the results in a primitive system that I have build.  But when I do F5 (run live), it throws the following exception and doesnt run.  This is strange and annoying.  Can you please tell me the fix for it?  The exception occurs when its processig step#4 (SwitchToLiveMode &amp;amp; SetSystemBroker)&lt;BR&gt; &lt;BR&gt;Thanks,&lt;BR&gt;Atul&lt;BR&gt; &lt;BR&gt;-------------&lt;BR&gt; &lt;BR&gt;Error in broker service connect.&lt;BR&gt;Unable to connect to MB Trading&lt;BR&gt;   at RightEdge.Shared.SystemWrapper.SetSystemBroker(BrokerAccountState accountState)&lt;BR&gt;   at RightEdge.Shared.SystemWrapper.SwitchToLiveMode(ServiceFactory brokerFactory, BrokerAccountState accountState, Boolean bFullSim, Boolean bSameBroker)&lt;BR&gt;   at RightEdge.Shared.SystemWrapper.SwitchToLiveMode(ServiceFactory brokerFactory, BrokerAccountState accountState, Boolean bFullSim, Boolean bSameBroker)&lt;BR&gt;   at RightEdge.Shared.TradingModuleWrapper.SwitchToLiveMode(ServiceAppDomainFactory brokerFactoryFactory, BrokerAccountState accountState, Boolean bFullSim, Boolean bSameBroker)&lt;BR&gt;   at RightEdge.LiveSystem&amp;#119;indow.StartLiveSystem(xfb471916970b0c9e liveDataWindow, List`1 symbols, SystemDataCreationSettings settings, SystemRunInfo runInfo, RightEdgeCompiler compiler)&lt;BR&gt;   at RightEdge.xf266856f631ec016.x7315d87aa80c241d()&lt;BR&gt;   at RightEdge.xf266856f631ec016.xc44f2b7498b700f7(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)&lt;BR&gt;   at TD.SandBar.ToolbarItemBase.OnActivate()&lt;BR&gt;   at TD.SandBar.ButtonItemBase.OnActivate()&lt;BR&gt;   at TD.SandBar.ButtonItem.OnActivate()&lt;BR&gt;   at TD.SandBar.ToolBar.OnItemRelease(ToolbarItemBase item, Point position)&lt;BR&gt;   at TD.SandBar.ToolBar.OnMouseUp(MouseEventArgs e)&lt;BR&gt;   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;   at TD.SandBar.ToolBar.WndProc(Message&amp;amp; m)&lt;BR&gt;   at RightEdgeUI.CustomToolBar.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</description><pubDate>Mon, 16 Feb 2009 02:38:24 GMT</pubDate><dc:creator>atul</dc:creator></item><item><title>Referencing other symbols</title><link>http://www.rightedgesystems.com/forums/Topic7516-9-1.aspx</link><description>1. Within a trading system operating on a multi-symbol portfolio, e.g., the S&amp;amp;P 500 component stocks, how can I do something like take the ATR of an index or ETF, e.g., SPY? For efficiency, this should be done only once per bar, rather than once for each symbol -- 500 times. The calculation would need to be done prior to the other calculations for the first symbol, and persist in memory for access in calculations for all symbols.&lt;/P&gt;&lt;P&gt;2. Is there a way to do the above on a different timeframe, for example, a daily ATR of an index in a trading system operating on 1 minute bars?&lt;/P&gt;&lt;P&gt;3. Can RE be made to take a trade on a symbol that is not the current symbol list, or alternatively, quickly add a new symbol to the current list and then take a trade on it?</description><pubDate>Tue, 10 Feb 2009 11:42:34 GMT</pubDate><dc:creator>Steve2008</dc:creator></item><item><title>WORKING Trading System Example with Indicator plot in chart (w/o System Builder)</title><link>http://www.rightedgesystems.com/forums/Topic7369-9-1.aspx</link><description>Hello,&lt;br&gt;&lt;br&gt;I just started coding in C# and have some difficulties with plotting a custom indicator on a chart after a backtest. I don't want to use the Sytsem Builder, but code the indicator myself.&lt;br&gt;Unfortunately the example section hasn't been updated for a while and I didn't find a working code in the Forum. I went through the documentation but I am still stuck. This problem keeps me from continuing my work since quite I while and is most probably very easy to solve.&lt;br&gt;I'd really appreciate if one could help me out with a little sample.&lt;br&gt;&lt;br&gt;Thanks a lot for the effort.&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;Gerald</description><pubDate>Thu, 22 Jan 2009 13:19:40 GMT</pubDate><dc:creator>gtomez</dc:creator></item></channel></rss>