﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / Programming and Software Development / Programming Questions </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>Wed, 08 Feb 2012 15:25:04 GMT</lastBuildDate><ttl>20</ttl><item><title>error message</title><link>http://www.rightedgesystems.com/forums/Topic14002-18-1.aspx</link><description>I seem to get the following error message all the time.  Usually I fiddle with things until it goes away, but I'm stuck this time and I'd really like to understand and get to the bottom of it.&lt;br&gt;&lt;br&gt;An exception of type System.NullReferenceException was thrown.&lt;br&gt;Object reference not set to an instance of an object.&lt;br&gt;&lt;br&gt;It usually happens when I am opening a position with a PositionSettings option. ie.&lt;br&gt;&lt;br&gt;pos = OpenPosition(settings);&lt;br&gt;&lt;br&gt;The only reason I know of to get this error is that 'settings' isn't defined, but... &lt;br&gt;&lt;br&gt;I have initialized:&lt;br&gt;PositionSettings settings = new PositionSettings();&lt;br&gt;and have several settings defined:&lt;br&gt;settings.OrderType = OrderType.Stop;&lt;br&gt;settings.Size = (long)tradeSize;&lt;br&gt;...&lt;br&gt;I know all these settings are getting through to the OpenPosition call because I write them to the console directly before calling OpenPosition.&lt;br&gt;&lt;br&gt;Any idea why else this error seems to pop up all the time for me?&lt;br&gt;&lt;br&gt;Thanks a lot,&lt;br&gt;Anthony&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 08 Feb 2012 11:23:40 GMT</pubDate><dc:creator>adiaco</dc:creator></item><item><title>removing chart ojects</title><link>http://www.rightedgesystems.com/forums/Topic13999-18-1.aspx</link><description>Is it possible to remove ChartObjects that I melodramatically added?</description><pubDate>Wed, 08 Feb 2012 06:47:36 GMT</pubDate><dc:creator>takacsg84</dc:creator></item><item><title>Using NLog</title><link>http://www.rightedgesystems.com/forums/Topic9946-18-1.aspx</link><description>Does anyone have a quick example they could post of how to use NLog. I can't seem to get it to write to a file. Not sure its picking up my config.&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;&lt;br&gt;private static Logger logger = LogManager.GetLogger("MySymbolScript");&lt;br&gt;&lt;br&gt;public override void NewBar() {&lt;br&gt; logger.Trace("Testing");&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;[/code]</description><pubDate>Thu, 12 Nov 2009 10:16:09 GMT</pubDate><dc:creator>gregoryj</dc:creator></item><item><title>timing of OrderFilled method during backtest</title><link>http://www.rightedgesystems.com/forums/Topic13893-18-1.aspx</link><description>I posted this on the Yahoo Group as well - not certain if one place is better than another... Anyway, any help is much appreciated!&lt;br&gt;&lt;br&gt;I understand that the "OrderFilled" method is called when an order is filled. &lt;br&gt;However, for a backtest that is run EOD with daily data, when exactly does the&lt;br&gt;order get filled and thus the "OrderFilled" method get called (i.e. after any&lt;br&gt;lines with Open/Close actions are executed, after the "NewBar" procedure&lt;br&gt;finishes, etc?)?&lt;br&gt;&lt;br&gt;I have code that is working fairly well, but there are multiple orders being&lt;br&gt;unexpectedly cancelled and I'm worried that this could present problems for the&lt;br&gt;future. I've written out various flags to a CSV file to attempt to understand&lt;br&gt;better, but still am not certain.&lt;br&gt;&lt;br&gt;Thanks in advance for any help!</description><pubDate>Wed, 11 Jan 2012 20:11:29 GMT</pubDate><dc:creator>uaruss</dc:creator></item><item><title>Recommended math/statistics library for C#</title><link>http://www.rightedgesystems.com/forums/Topic6407-18-1.aspx</link><description>As I transition to C# as part of moving to RightEdge, I wanted to get people's recommendations for a good all purpose math-statistics library in C#. I have used R in the past for statistics work, and it is great and seems market standard. For financial math I use FinCAD.&lt;/P&gt;&lt;P&gt;I am looking for the equivalent of a standard math-statistics package for C# to use with RightEdge. Any and all suggestions are welcome. I have run across &lt;A href="http://www.gnu.org/software/gsl/"&gt;http://www.gnu.org/software/gsl/&lt;/A&gt; the GNU Statistical Library, but before I commit to something I wanted to get people's suggestions.</description><pubDate>Tue, 19 Aug 2008 16:07:21 GMT</pubDate><dc:creator>rsheftel</dc:creator></item><item><title>Trades executing as "time out"</title><link>http://www.rightedgesystems.com/forums/Topic13845-18-1.aspx</link><description>I have a system that I'm ready to turn on live. I was testing it one final time with Paper Broker and just today I'm getting this odd behavior where my existing positions are selling automatically. When I say existing positions, I mean that they're coming from LiveOpenPositions.xml.&lt;br&gt;&lt;br&gt;I've added a bunch of logging to be sure that my code isn't setting a rogue stop order or something like that. All I see in my logs is that it's calling OrderFilled just like a normal trade was submitted. The tradeType == TradeType.ClosePosition.&lt;br&gt;&lt;br&gt;When I look in the Live panel under the Closed Positions tab and Close Name says "Time out." I checked the Properties panel and Bar Count Exit = 0 and I checked the XML of LiveOpenPositions and they're 0 there as well.&lt;br&gt;&lt;br&gt;I can't figure out why they're selling?&lt;br&gt;&lt;br&gt;-Keith&lt;br&gt;</description><pubDate>Wed, 04 Jan 2012 16:03:18 GMT</pubDate><dc:creator>krschacht</dc:creator></item><item><title>Accessing trading system class</title><link>http://www.rightedgesystems.com/forums/Topic13837-18-1.aspx</link><description>Within the SymbolScript class I can access the trading system by referencing TradingSystem.(various method). However, when I write my own class I can't access TradingSystem methods.&lt;br&gt;&lt;br&gt;How do I reference it?  I tried putting it inside the namespace, outside the namespace. I can't figure out where the main instance of TradingSystem is instantiated.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Keith</description><pubDate>Tue, 03 Jan 2012 13:58:49 GMT</pubDate><dc:creator>krschacht</dc:creator></item><item><title>Working with Multiple Symbols</title><link>http://www.rightedgesystems.com/forums/Topic13819-18-1.aspx</link><description>Can anyone tell me why this throws an error:&lt;br&gt;[code]public override void Startup()&lt;br&gt;{&lt;br&gt;	SMA = new SMA(10);&lt;br&gt;	SMA.SetInputs(OtherSymbols["MSFT"].Close);&lt;br&gt;}[/code]&lt;br&gt;ERROR:&lt;br&gt;&lt;br&gt;An exception of type System.ArgumentOutOfRangeException was thrown.&lt;br&gt;Value must be between 0 and -1, value was 0&lt;br&gt;Parameter name: nBars&lt;br&gt;   at RightEdge.Common.RList`1.LookBack(Int32 nBars)&lt;br&gt;   at RightEdge.Common.BarElementSeries.LookBack(Int32 nBars)&lt;br&gt;   at RightEdge.Common.SeriesCalculatorBaseWithValues.NewBar()&lt;br&gt;   at RightEdge.Common.IndicatorManager.NewBar(FrequencyNewBarEventArgs args)&lt;br&gt;   at RightEdge.Common.Internal.SystemRunner.UpdateObjects(FrequencyNewBarEventArgs args)&lt;br&gt;   at RightEdge.Common.Internal.SystemRunner.ProcessBarEvents(IEnumerable`1 eventList)&lt;br&gt;   at RightEdge.Common.FrequencyManager.SendPendingBars()&lt;br&gt;   at RightEdge.Common.FrequencyManager.UpdateTime(DateTime dateTime)&lt;br&gt;   at RightEdge.Common.Internal.SystemRunner._tickGenerator_NewBar(Object sender, NewBarEventArgs e)&lt;br&gt;   at RightEdge.Common.TickGenerator.ProcessBar(NewBarEventArgs args)&lt;br&gt;   at RightEdge.Common.Internal.SystemRunner.ProcessBar(NewBarEventArgs newBars)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(SystemData systemData, SharedSystemRunData runData, ServiceFactory brokerFactory)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(String filename, ServiceFactory brokerFactory, PluginSettings dataStoreSettings)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(String filename, ServiceFactory brokerFactory, PluginSettings dataStoreSettings)&lt;br&gt;   at RightEdge.Shared.TradingModuleWrapper.Run(String filename)&lt;br&gt;   at RightEdge.Shared.TradingModuleWrapper.RunSystem(SharedSystemRunData systemRunData)&lt;br&gt;   at RightEdge.SystemProgress.InitAndRunSystem()&lt;br&gt;&lt;br&gt;Help please.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;: )</description><pubDate>Thu, 29 Dec 2011 19:21:20 GMT</pubDate><dc:creator>rekab</dc:creator></item><item><title>Convert SMASample1.cs to SMASample1.vb</title><link>http://www.rightedgesystems.com/forums/Topic13631-18-1.aspx</link><description>Here is the visual basic code I generatet.&lt;br&gt;&lt;br&gt;#Region "Imports statements"&lt;br&gt;Imports System&lt;br&gt;Imports System.Drawing&lt;br&gt;Imports System.Collections.Generic&lt;br&gt;Imports System.Text&lt;br&gt;&lt;br&gt;Imports RightEdge.Common&lt;br&gt;Imports RightEdge.Indicators&lt;br&gt;#End Region&lt;br&gt;&lt;br&gt;Namespace awSampleIndicators&lt;br&gt;&lt;br&gt;    '	Use the Indicator Attribute to provide information such as the&lt;br&gt;    '	name and description of your indicator.  If you do not include&lt;br&gt;    '	this attribute, your indicator will not show up in the indicator&lt;br&gt;    '	list.&lt;br&gt;    '	The Id attribute needs to be set to a unique code that will identify&lt;br&gt;    '	your indicator.  A GUID is a good candidate.&lt;br&gt;    '	Indicators must be marked Serializable in order to be used in&lt;br&gt;    '	trading systems.&lt;br&gt;    '	Use the SeriesInputAttribute to specify how many inputs your&lt;br&gt;    '	indicator uses.&lt;br&gt;    &lt;Indicator(System.Drawing.KnownColor.LightBlue, _&lt;br&gt;               Author:="my name", _&lt;br&gt;               CompanyName:="Company", _&lt;br&gt;               Description:="Sample Simple Moving Average Indicator #1", _&lt;br&gt;               GroupName:="Samples", _&lt;br&gt;               HelpText:="Computes the moving average of the input.", _&lt;br&gt;               Id:="{20b8d55d-72c7-4199-8f5d-432a165f7510}", _&lt;br&gt;               Name:="SMASample1")&gt; _&lt;br&gt;    &lt;Serializable()&gt; _&lt;br&gt;    &lt;SeriesInputAttribute("Input", 1, Value:=BarElement.Close)&gt; _&lt;br&gt;    Public Class SMASample1&lt;br&gt;        Inherits SeriesCalculatorBaseWithValues&lt;br&gt;        Private _periods As Integer&lt;br&gt;&lt;br&gt;        '	You can add ConstructorArgumentAttributes to your constructor to specify&lt;br&gt;        '	the name and default value of the argument.&lt;br&gt;        &lt;ConstructorArgument("Periods", ConstructorArgumentType.[Integer], "50", 1)&gt; _&lt;br&gt;        Public Sub New(ByVal periods As Integer)&lt;br&gt;            MyBase.New(1)&lt;br&gt;            If periods &lt;= 0 Then&lt;br&gt;                Throw New ArgumentException("Periods must be greater than zero")&lt;br&gt;            End If&lt;br&gt;            _periods = periods&lt;br&gt;        End Sub&lt;br&gt;&lt;br&gt;        '	This method is where you calculate the indicator value for a given bar.&lt;br&gt;        '	The index parameter to this method tells you which value you need to&lt;br&gt;        '	calculate.&lt;br&gt;        '	You can access the first input series with inputs[0], the second&lt;br&gt;        '	input series with inputs[1], etc.&lt;br&gt;        Protected Overrides Function CalcNewValue(ByVal index As Integer) As Double&lt;br&gt;            If index &lt; _periods - 1 Then&lt;br&gt;                Return Double.NaN&lt;br&gt;            End If&lt;br&gt;&lt;br&gt;            Dim sum As Double = 0.0&lt;br&gt;            For i As Integer = index - _periods + 1 To index&lt;br&gt;                sum += inputs(0)(i)        &lt;-------------------------------  this is the point where the error occured&lt;br&gt;            Next&lt;br&gt;&lt;br&gt;            Return sum / _periods&lt;br&gt;        End Function&lt;br&gt;&lt;br&gt;        Protected Overrides Sub Reset()&lt;br&gt;            '	This method is called when the series needs to be recalculated.&lt;br&gt;            '	If you save any state between calls to CalcNewValue(), you should&lt;br&gt;            '	reset that state in this method.&lt;br&gt;&lt;br&gt;            '	For this indicator, we don't need to do anything in this method.&lt;br&gt;        End Sub&lt;br&gt;    End Class&lt;br&gt;End Namespace&lt;br&gt;&lt;br&gt;Then I got the following error message:&lt;br&gt;&lt;br&gt;Fehler	1	Die Schnittstelle "RightEdge.Common.ISeries" kann nicht indiziert werden, da keine Standardeigenschaft vorhanden ist.	D:\VisualBasic\ClassLibrary1\ClassLibrary1\SMASampleIndicator_01.vb	60	24	ClassLibrary1&lt;br&gt;&lt;br&gt;Ok I have to translate it for you.&lt;br&gt;&lt;br&gt;Error 1 The "RightEdge.Common.ISeries" interface can not be indexed, because no standard property is available.&lt;br&gt;&lt;br&gt;I need some help here to go ahead.</description><pubDate>Mon, 21 Nov 2011 12:54:15 GMT</pubDate><dc:creator>willy</dc:creator></item><item><title>Using AverageTrueRange in an indicator</title><link>http://www.rightedgesystems.com/forums/Topic11863-18-1.aspx</link><description>I'm trying to use AverageTrueRange in an indicator. My indicator is currently erroring out when loading, complaining with:&lt;/P&gt;&lt;P&gt;"An exception of type System.ArgumentOutOfRangeException was thrown.&lt;BR&gt;Value must be between 0 and -1, value was 0"&lt;/P&gt;&lt;P&gt;I am using inputs as defined:&lt;/P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;P&gt;[&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;SeriesInputAttribute&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;"Input High"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;, 1, Value = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;BarElement&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;.High)]&lt;/P&gt;&lt;P&gt;[&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;SeriesInputAttribute&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;"Input Low"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;, 2, Value = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;BarElement&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;.Low)]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;I'm initializing the indicator with:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;P&gt;ATR = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;AverageTrueRange&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;(length);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;And I am trying to use the current value of the ATR with:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;ATR.Current which is where it is blowing up in the debugger.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;Here is the relevant piece of code:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;P&gt;protected&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT color=#000000 size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;override&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT color=#000000 size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT color=#000000 size=2 face=Consolas&gt; CalcNewValue(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT color=#000000&gt; index)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;smaHigh.AddValue(inputs[0].LookBack(index));&lt;/P&gt;&lt;P&gt;smaLow.AddValue(inputs[1].LookBack(index));&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; (!smaHigh.Full || !smaLow.Full)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;return&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;.NaN;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; relLow = inputs[1].LookBack(index) - ((smaHigh.Average + smaLow.Average) / 2);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;return&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; relLow / (ATR.Current * 0.16);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Do I need to have more inputs available to ATR and do I need to be using ATR.AddValue to populate it?&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 02 Jul 2010 00:15:40 GMT</pubDate><dc:creator>rterbush</dc:creator></item><item><title>Get opening price of minute bar BEFORE bar is complete?</title><link>http://www.rightedgesystems.com/forums/Topic13752-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I'm trying to get the opening price of the current minute bar before the bar is complete. If I use Bars.Current.Open, I get the open of the last complete bar, but I can see in my live charts that RE knows the opening price of the currently developing minute bar as soon as the first tick comes in. How do I access it?</description><pubDate>Fri, 16 Dec 2011 11:50:50 GMT</pubDate><dc:creator>rekab</dc:creator></item><item><title>Get opening price of the bar when an order is placed?</title><link>http://www.rightedgesystems.com/forums/Topic13732-18-1.aspx</link><description>Hi I'm trying to set my profit target to be a percentage based on the opening price of the bar when the order was placed. Can anyone tell me how to do that in C#?&lt;br&gt;&lt;br&gt;So far, I've got:&lt;br&gt;[code]&lt;br&gt;public override void OrderFilled(Position position, Trade trade)&lt;br&gt;{&lt;br&gt;	if (trade.TransactionType == TransactionType.Buy || trade.TransactionType == TransactionType.Short )&lt;br&gt;	{&lt;br&gt;		position.SetProfitTargetPrice(Bars.Current.Open * (1 + ProfitTarget));&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;[/code]&lt;br&gt;But if the order doesn't get filled on the same bar as when the order was placed, that won't work. So what I want is something like:&lt;br&gt;[code]&lt;br&gt;public override void OrderFilled(Position position, Trade trade)&lt;br&gt;{&lt;br&gt;	if (trade.TransactionType == TransactionType.Buy || trade.TransactionType == TransactionType.Short )&lt;br&gt;	{&lt;br&gt;		position.SetProfitTargetPrice(Bars.[b][color="ff0000"]position.EntryTime[/color][/b].Open * (1 + ProfitTarget));&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;[/code]&lt;br&gt;Of course, that won't work.&lt;br&gt;&lt;br&gt;Any help would be greatly appreciated.&lt;br&gt;&lt;br&gt;Thanks!</description><pubDate>Wed, 14 Dec 2011 11:34:10 GMT</pubDate><dc:creator>rekab</dc:creator></item><item><title>Debugging question</title><link>http://www.rightedgesystems.com/forums/Topic13713-18-1.aspx</link><description>Within my trading system's SystemBase class I want to write some information to the Output panel. However, I've discovered OutputMessage nor an equivalent method is available. What's the best way to do this from within SystemBase?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Keith</description><pubDate>Sun, 11 Dec 2011 01:31:42 GMT</pubDate><dc:creator>krschacht</dc:creator></item><item><title>cover short and go long on same bar?</title><link>http://www.rightedgesystems.com/forums/Topic13701-18-1.aspx</link><description>All - I have a scenario where I want to close a short position and go long a position on the same day.  It appears my code is simply closing the short position and ignoring the opening of the long position.  I have parameters set to invest 100% of the account and have a max of 1 position open at a time.  &lt;br&gt;&lt;br&gt;Can someone tell me how to get around this issue?  Basically, it seems that doing a "pos.CloseAtMarket()" followed by a "OpenPosition(PositionType.Long, OrderType.Market)" command, during the same bar, doesn't appear to work?  Should it or is there some better method?&lt;br&gt;&lt;br&gt;A small piece of code is below.  I can post more if it would help, but I write out each bar and several "parameters" to a CSV file to better analyze the action. so more may get confusing.  Also the "My_Action" is a variable I set that captures what logic should be occuring (Buy/Sell/Cash)...&lt;br&gt;&lt;br&gt;*****&lt;br&gt;            ElseIf (OpenPositions.Count &gt; 0 And My_Action = "BUY") Then&lt;br&gt;              &lt;br&gt;  For Each pos As Position In OpenPositions&lt;br&gt;&lt;br&gt;                    pos.CloseAtMarket()&lt;br&gt;&lt;br&gt;                Next&lt;br&gt;&lt;br&gt;                OtherSymbols("^IXIC").OpenPosition(PositionType.Long, OrderType.Market)&lt;br&gt;*****&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;Russell</description><pubDate>Thu, 08 Dec 2011 00:40:39 GMT</pubDate><dc:creator>uaruss</dc:creator></item><item><title>checking multiple symbols for trading signals?</title><link>http://www.rightedgesystems.com/forums/Topic13595-18-1.aspx</link><description>I am trying to look at the value of two separate symbols (on the same New Bar) and, if various parameters are met, perform some action.  However, I am not certain as to how to look at multiple symbols at the same time.  &lt;br&gt;&lt;br&gt;For example, if symbol A has close &gt; open for the bar, then the system should determine if symbol B has close &lt; open and, if so, sell symbol B.  I tried putting some version of this code in the "New Bar" class, but I'm getting an error message that I can't quite figure out.  Thus I have the following questions:&lt;br&gt;&lt;br&gt;1) Is switching symbols in the "New Bar" class appropriate (assuming I am even switching them correctly. (i.e. --&gt;  Symbol.Name = "^IXIC"   )?&lt;br&gt;2) Do I need to have another class to call the new bar class for each symbol, return the results, and then do the comparisons/calculations after each New Bar?&lt;br&gt;3) Something else?&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;Russell</description><pubDate>Wed, 09 Nov 2011 21:54:48 GMT</pubDate><dc:creator>uaruss</dc:creator></item><item><title>SQL server 2012 compatible?</title><link>http://www.rightedgesystems.com/forums/Topic13652-18-1.aspx</link><description>Is the rightedge data store compatible with SQL Server Express 2012  RC0 ? Im downloading it not but if its not ill just uninstall and download 2008.&lt;br&gt;&lt;br&gt;Does anyone know?</description><pubDate>Sun, 27 Nov 2011 01:47:06 GMT</pubDate><dc:creator>parliament718</dc:creator></item><item><title>keeping track of previous positions?</title><link>http://www.rightedgesystems.com/forums/Topic13581-18-1.aspx</link><description>I need the ability to keep track of the last position, no matter how long ago it was closed (basically, I want the system to wait "x" number of days before acting on a buy signal, if the last position was a short-sale).  Anyone have any ideas?  I imagine I could write the trades to a file and then read that on each "New Bar", but I was hoping for something a little easier.&lt;br&gt;&lt;br&gt;Thanks!</description><pubDate>Sun, 06 Nov 2011 19:40:18 GMT</pubDate><dc:creator>uaruss</dc:creator></item><item><title>Problem with cancelling limit orders</title><link>http://www.rightedgesystems.com/forums/Topic13573-18-1.aspx</link><description>I have STP and LMT order with every position. Once the stop hit RE sometimes fails to delete the LMT order so I still can see in TWS. Sometimes I get this exception:&lt;br&gt;&lt;br&gt;Unable to cancel ProfitTarget order:Order not found: 3500&lt;br&gt;   at RightEdge.Common.PositionManager.UpdateSpecialOrder(PositionData pos, TradeType type)&lt;br&gt;   at RightEdge.Common.PositionManager.UpdateSpecialOrders(PositionData pos)&lt;br&gt;   at RightEdge.Common.PositionManager.PositionOrderFilled(PositionData pos, PositionState posState, BrokerOrder order, Fill fill, TradeType tradeType, String description, Boolean sendUpdate)&lt;br&gt;   at RightEdge.Common.PositionManager.OnOrderFilled(BrokerOrder order, Fill fill, PositionData pos, PositionState posState, TradeOrder tradeOrder)&lt;br&gt;   at RightEdge.Common.PositionManager.broker_OrderUpdated(BrokerOrder brokerOrder, Fill fill, String information)&lt;br&gt;   at RightEdge.Shared.BrokerWrapper.&lt;&gt;c__DisplayClass3.&lt;broker_orderUpdated&gt;b__0(Object )&lt;br&gt;   at RightEdge.Shared.CallbackStub.DoCallback()&lt;br&gt;&lt;br&gt;The order is in TWS. Any idea what the problem might be?</description><pubDate>Fri, 04 Nov 2011 05:18:08 GMT</pubDate><dc:creator>lacos</dc:creator></item><item><title>Does anyone build complete trading systems? I am interested in having one built</title><link>http://www.rightedgesystems.com/forums/Topic13568-18-1.aspx</link><description>I am looking for someone to build a trading system for me. I don't have the time nor the expertise, however, I know precisely what I want. Please advise.</description><pubDate>Fri, 04 Nov 2011 00:04:51 GMT</pubDate><dc:creator>lkanteraz</dc:creator></item><item><title>Determining position status - short vs long?</title><link>http://www.rightedgesystems.com/forums/Topic13559-18-1.aspx</link><description>I am having an issue figuring how how to identify my position type.  I have tried Position.Type.Equals("Long") and "If(PositionType.Short) Then...", "If(PositionType.Short=1) Then...", etc... but nothing seems to work.  I don't have a problem opening a position of long or short, but i just can't do and if/then statement to determine if it's long or short.  any help would be much appreciated!  &lt;br&gt;&lt;br&gt;Also, I looked through the help files, but haven't been able to find much on the language portion of this app.  I programmed in college and am decent with VB, but it'd be great if there's another help file out there that i'm missing.  &lt;br&gt;&lt;br&gt;Thanks in advance!</description><pubDate>Tue, 01 Nov 2011 04:01:08 GMT</pubDate><dc:creator>uaruss</dc:creator></item><item><title>ArgumentOutOfRangeException by GetEuropeanPutPrice and GetEuropeanCallPrice</title><link>http://www.rightedgesystems.com/forums/Topic13529-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;i was trying to use the GetEuropeanPutPrice and GetEuropeanCallPrice but i get a ArgumentOutOfRangeException is this a internal error or something i have done wrong?&lt;br&gt;&lt;br&gt;(my vs2005 is a dutch version like you can see)&lt;br&gt;&lt;br&gt;System.ArgumentOutOfRangeException: De index valt buiten het bereik. Deze mag niet negatief zijn en moet kleiner zijn dan de grootte van de verzameling.&lt;br&gt;Parameternaam: index&lt;br&gt;   bij System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)&lt;br&gt;   bij System.ThrowHelper.ThrowArgumentOutOfRangeException()&lt;br&gt;   bij System.Collections.Generic.List`1.set_Item(Int32 index, T value)&lt;br&gt;   bij RightEdge.Common.OptionCalculator.xd6fe344591fce991(Double x1d65faa42f6259ad, Double xa5425e8080c3dd15, Double x462676cf4d8f618c, Double x36ad99fb5e33a839, Double x0ebe150470f7718d)&lt;br&gt;   bij RightEdge.Common.OptionCalculator.GetEuropeanPutPrice(Double assetPrice, Double strikePrice, Int32 expirationMonth, Int32 expirationYear)&lt;br&gt;   bij TEST_Options_GUI.Form1.TestREOptionsCalc() in D:\Trading SoftWare\Options\TEST Options GUI\Forms\Form1.vb:regel 17&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;TikElentrik.&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 18 Oct 2011 08:37:16 GMT</pubDate><dc:creator>tikelentrik</dc:creator></item><item><title>Money Management rule implementation</title><link>http://www.rightedgesystems.com/forums/Topic13379-18-1.aspx</link><description>Hi, I am testing RE and I am stuck not knowing how to implement the following:&lt;/P&gt;&lt;P&gt;1. MySymbolScript Class: NewBar() runs for every selected symbol in the watchlist (with the same timestamp, i.e. EOD-Date). I do &lt;STRONG&gt;&lt;U&gt;not&lt;/U&gt;&lt;/STRONG&gt; want to execute Buy/Sell signals immediately but store them in a list, because...&lt;/P&gt;&lt;P&gt;2....after this (in System class) I want to check whether enough cash is available to carry out all buy signals of this NewBar()-run (or to create further buys if the investment ratio of equities in the portfolio gets too low by generated sell signals). If there is not enough cash available I want to filter the given signals and then open positions only for the symbols that are ranked best e.g. by an indicator.&lt;/P&gt;&lt;P&gt;Is there any way to find out when NewBar()-runs for a given timestamp have finished so that then I can oversee all generated Signals and select from there which one to create an order for?&lt;/P&gt;&lt;P&gt;I am not really an experienced programmer so if you have a code snippet in C# for me it would be great!&lt;/P&gt;&lt;P&gt;Thanks, Stefan</description><pubDate>Sun, 24 Jul 2011 07:20:47 GMT</pubDate><dc:creator>Stefan</dc:creator></item><item><title>Bar Start Time</title><link>http://www.rightedgesystems.com/forums/Topic13390-18-1.aspx</link><description>I haven't found a good answer in any of the posts so I thought I'd ask directly. I can see that the time stamp associated with a bar refers to the start of the bar. Most open-high-low-close data that I have come across uses a time stamp at the end of the bar (or the last time available during the bar). You obviously don't have full information as to the ultimate state of the bar at the beginning, so it seems more natural to have time stamps refer to the end of the bar (or last time information has been received). This is really a choice of convention rather than a problem, but I am curious as to your reasons, or logic, for refrring the time stamp to the the beginning rather than end of the bar.&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;Ian&lt;br&gt;</description><pubDate>Thu, 28 Jul 2011 18:59:17 GMT</pubDate><dc:creator>imcdonald</dc:creator></item><item><title>How to fire "public override void NewBar()" in less than 1min timeframes</title><link>http://www.rightedgesystems.com/forums/Topic13342-18-1.aspx</link><description>Hi! I know this may be a simple question and after some research, I've found a couple ways of approaching it, but nothing simple. &lt;br&gt;&lt;br&gt;I want the NewBar() method to fire in increments &lt; 1min , so I can run my (multi time frame) strategy more frequently than 1min. Thoughts? &lt;br&gt;&lt;br&gt;Thanks!!</description><pubDate>Mon, 11 Jul 2011 15:04:01 GMT</pubDate><dc:creator>mike</dc:creator></item><item><title>Custom Frequencies using Tools&amp;gt;Options</title><link>http://www.rightedgesystems.com/forums/Topic13366-18-1.aspx</link><description>Hi. Following the instructions here: http://www.rightedgesystems.com/Documentation/UserGuide/index.html?managing_frequencies.htm I created a new frequency:&lt;br&gt;&lt;br&gt;Frequency Type: Time Based&lt;br&gt;Bar length Settings: &lt;br&gt;30 Seconds&lt;br&gt;Frequency Name: 30 Second (30S) &lt;br&gt;&lt;br&gt;And save. However, it does not show up in BarFrequency drop down. Where/How am I supposed to see and use this newly created frequency? &lt;br&gt;&lt;br&gt;Thanks for your help!!!</description><pubDate>Mon, 18 Jul 2011 18:44:32 GMT</pubDate><dc:creator>mike</dc:creator></item><item><title>Account info of Interactive Broker plugin question</title><link>http://www.rightedgesystems.com/forums/Topic12603-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I'm just wondering how do I get the value of "Net Liquidation Value" and "RegT Margin" of InteractiveBroker from RightEdge?&lt;br&gt;&lt;br&gt;&lt;br&gt;P.S: From other post, I learned that I need to use switch "this.SystemData.UseBrokerBuyingPower". But After I enable that option, all I could get is only "buying power".&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Felix</description><pubDate>Fri, 26 Nov 2010 21:03:56 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>How to get the default bar frequency of the running system?</title><link>http://www.rightedgesystems.com/forums/Topic12998-18-1.aspx</link><description>This might be a basic question, but I have searched everywhere with no luck. :(&lt;br&gt; &lt;br&gt;I just want to know how to get the bar frequency of the running trading system at the moment.&lt;br&gt;&lt;br&gt;Could someone post the example on how to do it?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Felix</description><pubDate>Thu, 24 Mar 2011 09:13:20 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>Editing and Cleaning Tick Data</title><link>http://www.rightedgesystems.com/forums/Topic12850-18-1.aspx</link><description>I am working on a strategy that trades only 1 segment of the day. In the Last Hour.&lt;br&gt;&lt;br&gt;I'd like to have RE only load data for that time range as I am testing across a large symbol list of 1 minute bars.&lt;br&gt;&lt;br&gt;1) If I wanted to write code to manipulate the tickdata files. Are you just using the BinaryReader and BinaryWriter native to .net? &lt;br&gt;    1a. Are there any samples for manipulating the data in the files?&lt;br&gt;2) Is there a way to tell RE to only load 1 minute bars between 15:00 and 16:00?&lt;br&gt;&lt;br&gt;Thanks in advance&lt;br&gt;&lt;br&gt;Greg&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 07 Feb 2011 16:38:13 GMT</pubDate><dc:creator>gregoryj</dc:creator></item><item><title>Crash after double clicking symbol in system results window</title><link>http://www.rightedgesystems.com/forums/Topic12718-18-1.aspx</link><description>An exception of type System.NullReferenceException was thrown.&lt;br&gt;Object reference not set to an instance of an object.&lt;br&gt;   at Easychart.Finance.Objects.x9f75497a618d8c3e.ToPointF(x193cde1b2a5e180e op)&lt;br&gt;   at Easychart.Finance.Objects.x9f75497a618d8c3e.GetControlPoint(Int32 X, Int32 Y)&lt;br&gt;   at Easychart.Finance.Objects.x9deec9457dc2451d.xcb8a8dddba1180d0(Int32 x8df91a2f90079e88, Int32 xc821290d7ecc08bf, x9f75497a618d8c3e&amp; x359cc00a5fd09937)&lt;br&gt;   at Easychart.Finance.Objects.x9deec9457dc2451d.x4f2e95f45a1b4c1f(Object xe0292b9ed559da7d, MouseEventArgs xfbf34718e704c6bc)&lt;br&gt;   at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)&lt;br&gt;   at System.Windows.Forms.Control.WmMouseDown(Message&amp; m, MouseButtons button, Int32 clicks)&lt;br&gt;   at System.Windows.Forms.Control.WndProc(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;&lt;br&gt;This has poped after double clicking the symbol in the system results &amp;#119;indow. After dismissing the message the chart appeared correctly and I couldn't reproduce it again.</description><pubDate>Wed, 05 Jan 2011 08:45:19 GMT</pubDate><dc:creator>ArielEM</dc:creator></item><item><title>Is it possible to remove a chartobject or modify the param of the chartobject?</title><link>http://www.rightedgesystems.com/forums/Topic12704-18-1.aspx</link><description>I want to know whether it is possible to remove a chartobject or modify the param of the chartobject on-the-fly.&lt;br&gt;ex. I will use ChartLine() and ChartObjects.Add() to add a line during the analysis. But later maybe new data come in, I want to delete it or move 1 point of the line. Is it possible?</description><pubDate>Thu, 30 Dec 2010 21:41:13 GMT</pubDate><dc:creator>batttttt</dc:creator></item><item><title>How to detecting if RightEdge has finished loading all active positions</title><link>http://www.rightedgesystems.com/forums/Topic12652-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I've a problem integrating my custom system with RightEdge. This has to do with my RightEdge strategy that uses System.Timers.Timer to perform the update (E.g. I don't rely on BarClosing / NewTicker / etc) for Live Mode only which is started at the beginning of RightEdge strategy.&lt;br&gt;&lt;br&gt;The problem is when that strategy is updated (through Timer.Elapsed event), sometimes RightEdge hasn't finished loading the Live Positions correctly. It seems it takes a while to do it. I poke around to see if there's a flags which indicates whether RightEdge has finished the initialisation without no luck. Here's my Timer.Elapsed code:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;	private void liveSystemUpdateTimer_Elapsed(object sender, ElapsedEventArgs e) {&lt;br&gt;		if (IsReadyToUpdate) {&lt;br&gt;			executeInMainThread(doLiveUpdate);&lt;br&gt;		}&lt;br&gt;		if (liveSystemUpdateTimer != null) {&lt;br&gt;			liveSystemUpdateTimer.Start();&lt;br&gt;		}&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	private void executeInMainThread(Action action) {&lt;br&gt;		SynchronizationContext context = this.SystemData.SynchronizationContext;&lt;br&gt;		if (context != null) {&lt;br&gt;			context.Send(s =&gt; action(), null);&lt;br&gt;		}&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	public bool IsReadyToUpdate&lt;br&gt;	{&lt;br&gt;		get&lt;br&gt;		{&lt;br&gt;			if (this.SystemData.InLeadBars) return false;&lt;br&gt;			if (!this.SystemData.SystemStarted) return false;&lt;br&gt;			return true;&lt;br&gt;		}&lt;br&gt;	}&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;Even with this code, there's high probability that when doLiveUpdate() is executed, the Live Positions hasn't been loaded completely. The number of positions can be potentially large which makes it slower during initial loading.&lt;br&gt;Can someone devise the right way to solve this problem?&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;Felix&lt;br&gt;</description><pubDate>Wed, 08 Dec 2010 17:26:41 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>How to get last updated time of current bar?</title><link>http://www.rightedgesystems.com/forums/Topic12624-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I'm just wondering how do I get the last updated time of the current bar. I noticed there's BarData.PriceDateTime which is marked as deprecated. The documentation seemed to suggest me to use BarData.PriceTime instead. The problem is, it's not enough information for my strategy. I require something like latest tick time.&lt;br&gt;&lt;br&gt;P.S: I understand, in backtesting, tick time might be equivalent to End of day time. But that's fine. I'm working on anticipating signal portion of my intermediate system which will only be executed on live system.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Felix</description><pubDate>Thu, 02 Dec 2010 17:03:01 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>Accessing indicators outside RE</title><link>http://www.rightedgesystems.com/forums/Topic11992-18-1.aspx</link><description>Hi guys,&lt;br&gt;&lt;br&gt;I am working on an external application that works in tandem with RE, giving me more flexibility. I am developing using Visual Studio / C#. I am able to read the stock information from the database, and I am trying to get the RE indicators applied to the data I am reading. For example, to calculate a simple moving average. I can do that using external libraries (e.g. TA4.NET), but I am concerned that differences in indicator implementation may pose risks when looking at the data - e.g. not being able to compare apples with apples. So far I could not find a way to easily do it - say,&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;SMA mySMA = new SMA(20);&lt;br&gt;mySMA.SetInputs(stockClosePrice);&lt;br&gt;...&lt;br&gt;//later to compare&lt;br&gt;if (mySMA.Current &gt;stockClosePrice)&lt;br&gt;   ...&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;Is it possible to use the RE indicators outside RE? It would appear that it could be ... I just haven't found the way yet.&lt;br&gt;&lt;br&gt;Thanks!</description><pubDate>Mon, 19 Jul 2010 13:42:57 GMT</pubDate><dc:creator>invingator</dc:creator></item><item><title>Crash during simulation initialisation</title><link>http://www.rightedgesystems.com/forums/Topic12600-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I encountered a crash during initialisation. I attached right edge project in its simplest form to reproduce the problem.&lt;br&gt;&lt;br&gt;Here's the crash log:&lt;br&gt;&lt;br&gt;[code]An exception of type System.ArgumentException was thrown.&lt;br&gt;An item with the same key has already been added.&lt;br&gt;   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)&lt;br&gt;   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)&lt;br&gt;   at RightEdge.Common.ChartPane.AddSeries(String name, ChartSeries series)&lt;br&gt;   at RightEdge.Common.IndicatorManager.xf0c3ea8f5e810e86(xcc9f24b2b74c9456 x4a3f0a05c02f235f)&lt;br&gt;   at RightEdge.Common.IndicatorManager.UpdateCharts()&lt;br&gt;   at RightEdge.Common.Internal.SystemRunner.Startup()&lt;br&gt;   at RightEdge.Shared.SystemWrapper.InitializeModule(SystemData systemData, SharedSystemRunData runData, ServiceFactory brokerFactory)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(SystemData systemData, SharedSystemRunData runData, ServiceFactory brokerFactory)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(String filename, ServiceFactory brokerFactory, PluginSettings dataStoreSettings)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(String filename, ServiceFactory brokerFactory, PluginSettings dataStoreSettings)&lt;br&gt;   at RightEdge.Shared.TradingModuleWrapper.Run(String filename)&lt;br&gt;   at RightEdge.Shared.TradingModuleWrapper.RunSystem(SharedSystemRunData systemRunData)&lt;br&gt;   at RightEdge.SystemProgress.InitAndRunSystem()[/code]&lt;br&gt;</description><pubDate>Fri, 26 Nov 2010 08:20:00 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>SeriesCalculatorBaseWithValues.CalcNewValue(int index)?</title><link>http://www.rightedgesystems.com/forums/Topic12591-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I try to implement SeriesCalculatorBaseWithValues.CalcNewValue(int index). I didn't have much success with it until I noticed it always ask index = 0??? I suspect index here which is described as "The calculated value of the series at index." means the "The calculated value of the series at lookback index.". Can someone with good RE knowledge confirm this? e.g. index == lookback index&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Felix</description><pubDate>Wed, 24 Nov 2010 14:59:25 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>Exception when opening RightEdge project files which refer to file that no longer exists.</title><link>http://www.rightedgesystems.com/forums/Topic12590-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I rename some of the *.cs files which are referenced by RightEdge project. When I opened, RightEdge, it throws following exception and died:&lt;br&gt;&lt;br&gt;[code]An exception of type System.IO.FileNotFoundException was thrown.&lt;br&gt;Could not find file 'C:\Devel\TradingDevelopment\TradingAutomator\Code\TradingAutomator\RightEdgeUtility\TradingUtils.cs'.&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, Int32 bufferSize, FileOptions options)&lt;br&gt;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)&lt;br&gt;   at System.IO.StreamReader..ctor(String path)&lt;br&gt;   at System.IO.File.OpenText(String path)&lt;br&gt;   at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.SourceProjectContent.LoadForFile(ISemanticParserServiceProcessor language, String filename)&lt;br&gt;   at RightEdge.xe5110d3d5083f078.x81bcb85aece164fc()&lt;br&gt;   at RightEdge.xe5110d3d5083f078.OpenProject(String fileName)&lt;br&gt;   at RightEdge.xf266856f631ec016.OpenProject(String filename)[/code]&lt;br&gt;&lt;br&gt;I would imagine, RightEdge will handle it e.g. it should warn user that some of the files referenced can't be found and might not compile successfully and peacefully remove it from project file.&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Felix</description><pubDate>Wed, 24 Nov 2010 05:38:15 GMT</pubDate><dc:creator>felixtjung</dc:creator></item><item><title>Unsafe code</title><link>http://www.rightedgesystems.com/forums/Topic12557-18-1.aspx</link><description>I am able to use unsafe code in a trading system if I compile in Visual Studio with the appropriate build box checked, and I can then run the system in RE.&lt;P&gt;If I change my code in RE and try to compile there, it gives an error that I need the unsafe setting.&lt;/P&gt;&lt;P&gt;Is there a way to give RE the appropriate setting to compile usafe code?&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Fri, 19 Nov 2010 18:33:01 GMT</pubDate><dc:creator>Steve2008</dc:creator></item><item><title>Management Fees and Performance Fees</title><link>http://www.rightedgesystems.com/forums/Topic12530-18-1.aspx</link><description>Hy Daniel,&lt;br&gt;&lt;br&gt;it is me again ;-) Now I have to bother you with a different issue. I want to see how the equity looks like if I had done withdraws. Lets say I do a withdraws every third month. The problem I have is that when I withdraw some money with the Method SystemData.Broker.Withdraw(10000); The Barstatistic cash is not affected. &lt;br&gt;&lt;br&gt;Could I update the barstatistic cash somewhere?&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you in advance</description><pubDate>Tue, 09 Nov 2010 11:06:21 GMT</pubDate><dc:creator>diabolischGut</dc:creator></item><item><title>Reflect open positions before backtest starts</title><link>http://www.rightedgesystems.com/forums/Topic12484-18-1.aspx</link><description>Hi Daniel,&lt;br&gt;&lt;br&gt;I now try to develope a feature for the community. I want to reflect positions before the backtest starts. (this is needed for the walk forward optimization.)&lt;br&gt;&lt;br&gt;What I already did&lt;br&gt;- I save all open positions with the method Positionmanager.SaveOpenPositions(string path) this functions writes all open positions to an xml.&lt;br&gt;- In the startup method I check if there is a file. if so I setup the reflection and create all positions and add them to Positionmanager._pendingPositions the trades I reflect i add to the Positions. Is that correct so far?&lt;br&gt;- after that I reflect all BrokerPositions.&lt;br&gt;&lt;br&gt; my questions are: &lt;br&gt;   -to which field I have to add the brokerposition?&lt;br&gt;  - what else I need to setup or is it enough if I just setup all objects from the openpositions.xml&lt;br&gt;&lt;br&gt;I am sorry for my englisch.&lt;br&gt;&lt;br&gt;I really appreciate what you are developing and it would be of great benefit for the whole community if we have this feature.&lt;br&gt;&lt;br&gt;Kind Regards&lt;br&gt;&lt;br&gt;Willi</description><pubDate>Fri, 29 Oct 2010 15:57:07 GMT</pubDate><dc:creator>diabolischGut</dc:creator></item><item><title>SQL Server Management Studio</title><link>http://www.rightedgesystems.com/forums/Topic11514-18-1.aspx</link><description>SQL Express 2008 installed as a dependency along with Web Developer Express on Windows 7. RE build 20 then successfully configured a database. However, I have not been able to install Management Studio 2008 Express. It seems to download properly, and the install starts, ending with the GUI for the SQL Server Installation Center. Searching the internet suggests that Management Studio should show up in a list of tools that can be installed but it doesn't. Apparently I am not the only one having problems. One post suggests I have to completely uninstall SQL Express and start over by downloading "SQL Server 2008 Express with Tools".&lt;/P&gt;&lt;P&gt;Does anyone have any experience with this? What process did you follow to get the Management Studio to install?&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Fri, 23 Apr 2010 15:58:05 GMT</pubDate><dc:creator>phg</dc:creator></item></channel></rss>
