﻿<?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 / Technical Indicators </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, 10 Mar 2010 05:57:37 GMT</lastBuildDate><ttl>20</ttl><item><title>Kaufman Moving Average</title><link>http://www.rightedgesystems.com/forums/Topic11013-10-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Attached is a version of the Kaufman moving average, published by Perry Kaufman in his very valuable book "New Trading and Systems" &lt;br&gt;([url]http://www.amazon.com/New-Trading-Systems-Methods-Wiley/dp/047126847X/ref=sr_1_3?ie=UTF8&amp;s=books&amp;qid=1267629057&amp;sr=8-3[/url])&lt;br&gt;&lt;br&gt;You might want to review it, improve it and include it into the range of indicators you offer standard with RE.&lt;br&gt;&lt;br&gt;Could you please tell me how I should modify it in order to add a second constructor which could support the iSeries of values as a parameter (like you have standard with SMA in your system.&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;Pierre</description><pubDate>Wed, 03 Mar 2010 10:14:46 GMT</pubDate><dc:creator>pch</dc:creator></item><item><title>Question: Indicator Base Class That Exposes Entire Bar and Can Look Back?</title><link>http://www.rightedgesystems.com/forums/Topic10918-10-1.aspx</link><description>I'm trying to develop an indicator that will take as an input the entire bar, but also has the ability to lookback on the entire bar.&lt;br&gt;&lt;br&gt;Based on the Creating an Indicator help file, I identified two potential base classes for this, but neither seems to do the job right.&lt;br&gt;&lt;br&gt;IndicatorBase class takes as an input the entire bar in the CalcNextValue() method. But there doesn't seem to be a way (from what I can tell) to look back on previous bars without storing them in the indicator class.&lt;br&gt;&lt;br&gt;SeriesCalculatorBaseWithValues takes an ISeries input, from which you can call the LookBack() method. However, you have to specify which series you want as an input (Open, High, Low, Close). Is there any way to make this take the entire bar?&lt;br&gt;&lt;br&gt;My indicator will look back on previous highs and lows... thanks&lt;br&gt;</description><pubDate>Sat, 20 Feb 2010 12:15:36 GMT</pubDate><dc:creator>jamesluong</dc:creator></item><item><title>Date Time in an Indicator</title><link>http://www.rightedgesystems.com/forums/Topic10944-10-1.aspx</link><description>Is it possible to add datetime as a ConstructorArgumentType?&lt;br&gt;&lt;br&gt;I am building a trailing stop indicator which takes a date so it knows when to start. At the moment I have three ConstructorArgumentType's one for y,m,d it works but a date time would be better.&lt;br&gt;&lt;br&gt;Thanks.</description><pubDate>Tue, 23 Feb 2010 16:33:04 GMT</pubDate><dc:creator>kaizen</dc:creator></item><item><title>How to create the MA of an indicator</title><link>http://www.rightedgesystems.com/forums/Topic10914-10-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;How would you create moving average of the RSI(2) for instance?  Do I have to create a new indicator or can I pass the RSI series into the SMA indicator: SMA.SetInputs(RSI). I haven't tried that yet...&lt;br&gt;&lt;br&gt;Thanks in advance&lt;br&gt;</description><pubDate>Fri, 19 Feb 2010 14:13:55 GMT</pubDate><dc:creator>zykem</dc:creator></item><item><title>Choppiness Indicator</title><link>http://www.rightedgesystems.com/forums/Topic10821-10-1.aspx</link><description>guys - does the offer to code up some indicators still hold?  If so how about the Choppiness Indicator&lt;br&gt;&lt;br&gt;The Sept. Version of Active Trader has an index that would be neat to code. It was created by the commodity trader named E.W. Bill Dreiss, according to active trader it is used to determine weather market movement is directional or consolidating. Supposedly low readings in the CI correspond closely with the end of the strong impulsive movements either up or down, while high readings occur after significant consolidations in price. a trader should trades when the CI is in an extended period of above average readings and instead favors situations in which the indicator fluctuates from one extreme to the other. Higher CI readings can also be a sing of the impending end of the consolidation while lower CI readings can indicate a possible reversal.&lt;br&gt;&lt;br&gt;It is calculated as follows:&lt;br&gt;&lt;br&gt;1. Calculate each periods (day, week, hour) true range. (the true high is the higher of this bars or the previous bar's close: the true low is the lower of this bars low or the previous bars close. The true range is the different between the two).&lt;br&gt;&lt;br&gt;2. Sum the past n true ranges.&lt;br&gt;&lt;br&gt;3. Calculate the true range range for the entire n bar period.&lt;br&gt;&lt;br&gt;4. Divide the sum of the n true ranges by the n-day true range.&lt;br&gt;&lt;br&gt;5. Calculate the logarithm (base 10) of the result from the step 4.&lt;br&gt;&lt;br&gt;6. Divide the results from step 5 by the log of n.&lt;br&gt;&lt;br&gt;7. Multiply the result by 100.</description><pubDate>Thu, 11 Feb 2010 13:24:53 GMT</pubDate><dc:creator>blousetrader</dc:creator></item><item><title>How to code for a MACD Crossover after it has reached some strength?</title><link>http://www.rightedgesystems.com/forums/Topic10746-10-1.aspx</link><description>Hi, &lt;br&gt;  I am new to RightEdge Trading System and its built in Indicators. I am just getting started . I would like to know if there is a way, I can code for an Entry Position, after a MACD CrossOver based on the condition that MACD.Diff shold be greater than 0.1. In other words, I don't want to enter immediately on crossover but after MACD.Dif reaches 0.1 or higher. &lt;br&gt;Please help me out on how I can achieve this.&lt;br&gt; Thanks,&lt;br&gt;  Sudharsan</description><pubDate>Tue, 09 Feb 2010 09:16:48 GMT</pubDate><dc:creator>sudharsanv</dc:creator></item><item><title>Trigger if price greater than X</title><link>http://www.rightedgesystems.com/forums/Topic10661-10-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Is there a indicator which I can use to trigger a buy action when today's close price is GREATER than sma(20) ?</description><pubDate>Sun, 31 Jan 2010 12:14:13 GMT</pubDate><dc:creator>leelim81</dc:creator></item><item><title>Example Indicator With Multiple Inputs</title><link>http://www.rightedgesystems.com/forums/Topic10548-10-1.aspx</link><description>Does anyone have an example of an indictor with multpile inputs.  I'm trying to build one but getting the error 'Overload Resolution failed because no accessible 'New' accepts this number of arhuments'</description><pubDate>Thu, 21 Jan 2010 15:51:22 GMT</pubDate><dc:creator>blousetrader</dc:creator></item><item><title>Cant Access Custom Indicator</title><link>http://www.rightedgesystems.com/forums/Topic10123-10-1.aspx</link><description>I want to create my own custom indicators but cant get my head round how it works.  I copied one of DoQ's - the HullMA and built the dll on Microsoft Visual Basic 2008 Express,&lt;br&gt;I the copied what was in the Release folder (not Common or Indicators though) into the plugins folder in RE.  RE doesnt see it though - I was expecting it to sho up under the 'Other' group&lt;br&gt;What am I doing wrong?&lt;br&gt;&lt;br&gt;Here's the code I compiled to dll&lt;br&gt;&lt;br&gt;Imports System&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;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;YYEIndicatorAttribute(System.Drawing.KnownColor.Blue, YYEIndicatorAttribute.EIndicatorGroup.Other, Author:="DoQ", CompanyName:="www.TradeEngineer.com", DefaultDrawingPane:="Price Pane", Description:="Hull moving Average", GroupName:="Trend", HelpText:="", _&lt;br&gt; Id:="72E74C2E-DC28-11DE-8C6B-0D8555D89593", Name:="HullMA", Version:="1.0")&gt; _&lt;br&gt;&lt;Serializable()&gt; _&lt;br&gt;&lt;SeriesInputAttribute("Input", 1, Value:=BarElement.Close)&gt; _&lt;br&gt;Public Class HullMA&lt;br&gt;    Inherits SeriesCalculatorBaseWithValues&lt;br&gt;    Private _Period As Integer = 20&lt;br&gt;    Private WMADiffValues As List(Of Double)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;    &lt;ConstructorArgument(Name:="Period", Type:=ConstructorArgumentType.[Integer], Value:="20", Order:=1)&gt; _&lt;br&gt;    Public Sub New(ByVal Period As Integer)&lt;br&gt;        MyBase.New(1)&lt;br&gt;        If Period &lt;= 0 Then&lt;br&gt;            Throw New ArgumentException("Period must be greater than zero")&lt;br&gt;        End If&lt;br&gt;        _Period = Period&lt;br&gt;        WMADiffValues = New List(Of Double)()&lt;br&gt;    End Sub&lt;br&gt;&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 Overloads Overrides Function CalcNewValue(ByVal index As Integer) As Double&lt;br&gt;&lt;br&gt;        If index &lt; _Period - 1 Then&lt;br&gt;            Return Double.NaN&lt;br&gt;        End If&lt;br&gt;&lt;br&gt;        'A 4 bar weighted moving average with prices of &lt;br&gt;        '1.2900, 1.2900, 1.2903, and 1.2904 would give a moving average of 1.2903 &lt;br&gt;        'using the calculation &lt;br&gt;        '((4 * 1.2904) + (3 * 1.2903) + (2 * 1.2900) + (1 * 1.2900)) / (4 + 3 + 2+ 1) = 1.2903&lt;br&gt;&lt;br&gt;        'Full Period&lt;br&gt;        Dim CurrentPeriod As Integer = _Period&lt;br&gt;        Dim WMAPeriod As Double = 0.0R&lt;br&gt;        Dim Denominator As Integer = 0&lt;br&gt;        For i As Integer = index - CurrentPeriod + 1 To index&lt;br&gt;            WMAPeriod += (inputs(0).LookBack(i) * (i - (index - CurrentPeriod + 1) + 1))&lt;br&gt;            Denominator += (i - (index - CurrentPeriod + 1) + 1)&lt;br&gt;        Next&lt;br&gt;        WMAPeriod /= Denominator&lt;br&gt;&lt;br&gt;&lt;br&gt;        'Half Period&lt;br&gt;        CurrentPeriod = _Period / 2&lt;br&gt;        Dim WMAHalfPeriod As Double = 0.0R&lt;br&gt;        Denominator = 0&lt;br&gt;        For i As Integer = index - CurrentPeriod + 1 To index&lt;br&gt;            WMAHalfPeriod += (inputs(0).LookBack(i) * (i - (index - CurrentPeriod + 1) + 1))&lt;br&gt;            Denominator += (i - (index - CurrentPeriod + 1) + 1)&lt;br&gt;        Next&lt;br&gt;        WMAHalfPeriod /= Denominator&lt;br&gt;&lt;br&gt;        'store result with appropriate formula&lt;br&gt;        'HMA = waverage(2*waverage(close,period/2)-waverage(close,period), SquareRoot(Period)) &lt;br&gt;        WMADiffValues.Add((2 * WMAHalfPeriod) - WMAPeriod)&lt;br&gt;&lt;br&gt;&lt;br&gt;        'SQRT Period&lt;br&gt;        CurrentPeriod = CInt(System.Math.Sqrt(_Period))&lt;br&gt;        If WMADiffValues.Count &lt; CurrentPeriod Then&lt;br&gt;            'not enough collected data&lt;br&gt;            Return Double.NaN&lt;br&gt;        End If&lt;br&gt;        Dim index2 As Integer = WMADiffValues.Count - 1&lt;br&gt;        Dim WMASQRTPeriod As Double = 0.0R&lt;br&gt;        Denominator = 0&lt;br&gt;        For i As Integer = index2 - CurrentPeriod + 1 To index2&lt;br&gt;            WMASQRTPeriod += (WMADiffValues(i) * (i - (index2 - CurrentPeriod + 1) + 1))&lt;br&gt;            Denominator += (i - (index2 - CurrentPeriod + 1) + 1)&lt;br&gt;        Next&lt;br&gt;        WMASQRTPeriod /= Denominator&lt;br&gt;&lt;br&gt;        'HMA = waverage(2*waverage(close,period/2)-waverage(close,period), SquareRoot(Period)) &lt;br&gt;        Return WMASQRTPeriod&lt;br&gt;    End Function&lt;br&gt;&lt;br&gt;    Protected Overloads 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;        WMADiffValues.Clear()&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;End Class</description><pubDate>Sat, 28 Nov 2009 09:52:51 GMT</pubDate><dc:creator>blousetrader</dc:creator></item><item><title>New Indicator Error</title><link>http://www.rightedgesystems.com/forums/Topic10397-10-1.aspx</link><description>I am trying to build a new indicator and keep getting an error. The below is a test that should just return 20.&lt;/P&gt;&lt;P&gt;The error says "Need exactly 3 input series, 1 was passed in."&lt;/P&gt;&lt;P&gt;Not sure where or how to input 3 series. I have input set to 1.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;[code]&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Collections.Generic&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Text&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RightEdge.Indicators&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RightEdge.Common&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;P&gt;' Indicators that implement SeriesCalculatorBaseSimple will support chaining since they can view the calculated&lt;/P&gt;&lt;P&gt;' values of other series inputs.&lt;/P&gt;&lt;P&gt;' See the readme.txt included in this project for more information.&lt;/P&gt;&lt;P&gt;' Use the Indicator Attribute to provide information such as the&lt;/P&gt;&lt;P&gt;' name and description of your indicator. If you do not include&lt;/P&gt;&lt;P&gt;' this attribute, your indicator will not show up in the indicator&lt;/P&gt;&lt;P&gt;' list.&lt;/P&gt;&lt;P&gt;' The Id attribute needs to be set to a unique code that will identify&lt;/P&gt;&lt;P&gt;' your indicator. A GUID is a good candidate.&lt;/P&gt;&lt;P&gt;' Indicators must be marked Serializable in order to be used in&lt;/P&gt;&lt;P&gt;' trading systems.&lt;/P&gt;&lt;P&gt;' Use the SeriesInputAttribute to specify how many inputs your&lt;/P&gt;&lt;P&gt;' indicator uses.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&amp;lt;Indicator(System.Drawing.KnownColor.Black, _&lt;/P&gt;&lt;P&gt;Author:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Name"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;CompanyName:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Company"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;Description:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Test"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;GroupName:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"~Jimmy"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;HelpText:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Help"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;Id:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"{5F6EFD6C-492C-4312-9259-5F10Q8SB44F8}"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;DefaultDrawingPane:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Test"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _&lt;/P&gt;&lt;P&gt;Name:=&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Test"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&amp;gt; _&lt;/P&gt;&lt;P&gt;&amp;lt;Serializable()&amp;gt; _&lt;/P&gt;&lt;P&gt;&amp;lt;SeriesInputAttribute(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Input"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, 1, Value:=BarElement.Close)&amp;gt; _&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Class&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; Test : &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Inherits&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; SeriesCalculatorBaseWithValues&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ConstructorArgument(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Volatility Period"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, ConstructorArgumentType.Integer, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"10"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, 1)&amp;gt; _&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; myVOLATILITY_PERIOD &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;MyBase&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.New(3)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; myVOLATILITY_PERIOD &amp;lt;= 0 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Throw&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ArgumentException(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"ATR Lookback period must be greater than zero."&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overloads&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CalcNewValue(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; index &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Double&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; 20&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Reset()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overloads&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SetInputs(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ParamArray&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; newInputs &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ISeries())&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;MyBase&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.SetInputs(newInputs(0))&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/code]</description><pubDate>Thu, 31 Dec 2009 21:54:43 GMT</pubDate><dc:creator>jimbob</dc:creator></item><item><title>Rate of Annual Return (ROAR)</title><link>http://www.rightedgesystems.com/forums/Topic10319-10-1.aspx</link><description>I am trying to convert this indicator to RE and it is proving to be a bit hard. I have the code in AmiBroker but RE/.Net seam to be missing Linear Regression functions. &lt;br&gt;&lt;br&gt;Or the ones that are supplied by RE only seams to accept an Iseries.&lt;br&gt;&lt;br&gt;Any ideas on an easy way to do this? Or at least the best way to do this?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;http://forum.incrediblecharts.com/messages/9/316979.html&lt;br&gt;&lt;br&gt;// ROAR Version 1.0&lt;br&gt;&lt;br&gt;Period=52;&lt;br&gt;X=Close;&lt;br&gt;LinReg=( Period * Sum( Cum( 1 ) * X,Period ) -&lt;br&gt;Sum( Cum( 1 ),Period) * Sum( X,Period) ) /&lt;br&gt;(Period * Sum(Cum( 1 )^2,Period ) -&lt;br&gt;Sum( Cum( 1 ),Period )^2 ) * Cum( 1 ) + (MA(X,Period) -&lt;br&gt;MA( Cum(1 ),Period) * (Period * Sum( Cum( 1 ) * X,Period) -&lt;br&gt;Sum( Cum( 1 ),Period ) * Sum( X,Period) ) / (Period *&lt;br&gt;Sum( Cum(1 )^2 ,Period) - Sum( Cum( 1 ),Period )^2 ) );&lt;br&gt;&lt;br&gt;Graph1 = 200*(LinReg-Ref(LinReg,-26))/C;&lt;br&gt;&lt;br&gt;&lt;br&gt;// RAOR Version 2.0&lt;br&gt;&lt;br&gt;TimeFrameSet(inWeekly);&lt;br&gt;RAOR = LinearReg((C-Ref(C,-26))/C*200,4);&lt;br&gt;&lt;br&gt;Plot(raor,"RAOR",colorBlack,0); &lt;br&gt;&lt;br&gt;</description><pubDate>Sat, 26 Dec 2009 03:34:15 GMT</pubDate><dc:creator>jimbob</dc:creator></item><item><title>Writing a new Indicator - Fractual Help</title><link>http://www.rightedgesystems.com/forums/Topic10310-10-1.aspx</link><description>I need to write a new indicator, Fractals, I have the code from esignal but I have no programming ability can anyone help...</description><pubDate>Tue, 22 Dec 2009 01:54:30 GMT</pubDate><dc:creator>zfaruki</dc:creator></item><item><title>Access to custom built indicators from code</title><link>http://www.rightedgesystems.com/forums/Topic10069-10-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I built my own pivot-point-indicator and it works fine in charts and systems. So far I added it to the system via the system designer pane. Now I want to create the indicator from the code directly. This does not work with refering the shown name of the indicator with blanks removed.&lt;/P&gt;&lt;P&gt;Do I need to add any reference, prior using it from code?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amin</description><pubDate>Tue, 24 Nov 2009 10:47:19 GMT</pubDate><dc:creator>Amin</dc:creator></item><item><title>hiding part of UserSeries in chart</title><link>http://www.rightedgesystems.com/forums/Topic9969-10-1.aspx</link><description>Hi! &lt;br&gt;&lt;br&gt;Is it possible to hide a part of UserSeries in chart?&lt;br&gt;&lt;br&gt;I tried to assign NaN values but it shows straight line to the next value, not clear space.</description><pubDate>Mon, 16 Nov 2009 11:43:27 GMT</pubDate><dc:creator>fbalobanov</dc:creator></item><item><title>Bars Since?</title><link>http://www.rightedgesystems.com/forums/Topic3336-10-1.aspx</link><description>How do I determine how many bars ago a particular event occurred? &lt;br&gt;&lt;br&gt;For instance, Bars Since ( close == highestvalue(close,last 20 bars) );</description><pubDate>Mon, 13 Aug 2007 17:03:05 GMT</pubDate><dc:creator>jthorne</dc:creator></item><item><title>ADX problem?</title><link>http://www.rightedgesystems.com/forums/Topic9702-10-1.aspx</link><description>&lt;FONT face=Arial&gt;I am having a problem getting the ADX indicator to update while using a the TWS demo and an interactive brokers datafeed.  I am new to RE so I might be missing some syntax.  Am I neglecting something?  I currently preload (lead) 130 bars so RE has enough data to compute the indicator.  My current code to produce the ADX indicator is:&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt; &lt;P&gt;&lt;FONT face=Arial&gt;adx = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt; ADX(length);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;adx.ChartSettings.Color = Color.Black;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;with the length defined as &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000 size=2&gt; length=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#800080 size=2&gt;&lt;FONT color=#800080 size=2&gt;&lt;FONT color=#800080 size=2&gt;65&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000 face=Arial&gt;The ADX indicator seems to simply draw a straight line across the page at a certain value (usually some where between 5 and 15) and does not show variability off of that line.  The Indicator does not show any variability bar to bar for any symbol.  All other indicators using similar syntax seem to work appropriately.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Sun, 11 Oct 2009 00:41:51 GMT</pubDate><dc:creator>Jump1180</dc:creator></item><item><title>Building Custom Indicator</title><link>http://www.rightedgesystems.com/forums/Topic9739-10-1.aspx</link><description>I'd started building some code for a custom indicator but ran  into problems as a userseries cannot be used as input to an indicator.&lt;br&gt;Here's what I had so far but where do I go from here?  Appreciate any help..&lt;br&gt;&lt;br&gt;Public Class MySymbolScript&lt;br&gt;	Inherits MySymbolScriptBase&lt;br&gt;	&lt;br&gt;	&lt;br&gt;	Private Constant100 As ConstantSeries&lt;br&gt;	Private Constant2 As ConstantSeries&lt;br&gt;	Private Constant1 As ConstantSeries&lt;br&gt;	&lt;br&gt;	Private TH As UserSeries&lt;br&gt;	Private TL As UserSeries&lt;br&gt;	Private TR As SubtractSeries&lt;br&gt;		&lt;br&gt;	Private PlusDM As UserSeries&lt;br&gt;	Private PlusDIDen As WildersSmoothing&lt;br&gt;	Private PlusDINum As WildersSmoothing&lt;br&gt;	Private PlusDIDiv As DivideSeries&lt;br&gt;	Private PlusDI As MultiplySeries&lt;br&gt;	Private MinusDM As UserSeries&lt;br&gt;	Private MinusDIDen As WildersSmoothing&lt;br&gt;	Private MinusDINum As WildersSmoothing&lt;br&gt;	Private MinusDIDiv As DivideSeries&lt;br&gt;	Private MinusDI As MultiplySeries&lt;br&gt;	&lt;br&gt;	Private DIDifInput As SubtractSeries&lt;br&gt;	Private DIDif As AbsoluteValue&lt;br&gt;	Private DISum As AddSeries&lt;br&gt;	&lt;br&gt;	Private ADXFinalVarInp As DivideSeries&lt;br&gt;	Private ADXFinalVar As WildersSmoothing&lt;br&gt;	Private ADXFinal As MultiplySeries &lt;br&gt;	Private ADXFinalShift As Shift&lt;br&gt;	Private ADXRAdd As AddSeries&lt;br&gt;	Private ADXRCustom As DivideSeries&lt;br&gt;	Private _ADX As UserSeries&lt;br&gt;	&lt;br&gt;	Private EMAIndex As UserSeries&lt;br&gt;	Private HighVAl As Highest&lt;br&gt;	Private LowVAl As Lowest&lt;br&gt;	Private Diff As SubtractSeries&lt;br&gt;	Private MyConst As UserSeries&lt;br&gt;	Private VarMASeriesSub As SubtractSeries&lt;br&gt;	Private VarMASeriesMult1 As MultiplySeries&lt;br&gt;	Private VarMASeriesMult2 As MultiplySeries&lt;br&gt;	Private VarMASeries As AddSeries&lt;br&gt;	Private SMASeries As SMA&lt;br&gt;	Private VarMA As UserSeries&lt;br&gt;	Private VarMAShift As Shift&lt;br&gt;		&lt;br&gt;	'Private ADX8 As ADX	&lt;br&gt;	'Private baseEMA4 As VariableMA&lt;br&gt;	&lt;br&gt;	&lt;br&gt;	&lt;br&gt;	Public Overloads Overrides Sub Startup()&lt;br&gt;		' Perform initialization here&lt;br&gt;		Dim ADXPr As Integer = 8&lt;br&gt;		&lt;br&gt;		TH = New UserSeries()&lt;br&gt;		TL = New UserSeries()&lt;br&gt;		TR = New SubtractSeries&lt;br&gt;		TR.SetInputs(TH,TL)&lt;br&gt;		&lt;br&gt;		PlusDM = New UserSeries&lt;br&gt;		MinusDM = New UserSeries&lt;br&gt;		&lt;br&gt;		Constant100 = New ConstantSeries(100)&lt;br&gt;		Constant2 = New ConstantSeries(2)&lt;br&gt;		Constant1 = New ConstantSeries(1)&lt;br&gt;		&lt;br&gt;		PlusDIDen = New WildersSmoothing(ADXPr,Tr)&lt;br&gt;		PlusDINum = New WildersSmoothing(ADXPr,PlusDM)&lt;br&gt;		PlusDIDiv = New DivideSeries&lt;br&gt;		PlusDIDiv.SetInputs(PlusDINum,PlusDIDen)&lt;br&gt;		PlusDI = New MultiplySeries&lt;br&gt;		PlusDI.SetInputs(Constant100,PlusDIDiv)&lt;br&gt;		&lt;br&gt;		MinusDIDen = New WildersSmoothing(ADXPr,Tr)&lt;br&gt;		MinusDINum = New WildersSmoothing(ADXPr,MinusDM)&lt;br&gt;		MinusDIDiv = New DivideSeries&lt;br&gt;		MinusDIDiv.SetInputs(MinusDINum,MinusDIDen)&lt;br&gt;		MinusDI = New MultiplySeries&lt;br&gt;		MinusDI.SetInputs(Constant100,MinusDIDiv)&lt;br&gt;		&lt;br&gt;		DIDifInput = New SubtractSeries&lt;br&gt;		DIDifInput.SetInputs(PlusDI,MinusDI)&lt;br&gt;		DIDif = New AbsoluteValue&lt;br&gt;		DIDif.SetInputs(DIDifInput)&lt;br&gt;		DISum = New AddSeries&lt;br&gt;		DISum.SetInputs(PlusDI,MinusDI)&lt;br&gt;		&lt;br&gt;		ADXFinalVarInp = New DivideSeries&lt;br&gt;		ADXFinalVarInp.SetInputs(DIDif,DISum)&lt;br&gt;		ADXFInalVar = New WildersSmoothing(ADXPr,ADXFinalVarInp)&lt;br&gt;		ADXFinal = New MultiplySeries&lt;br&gt;		ADXFinalShift = New Shift(7)&lt;br&gt;		ADXFinal.SetInputs(Constant100,ADXFinalVar)&lt;br&gt;		&lt;br&gt;		ADXRAdd = New AddSeries&lt;br&gt;		ADXRAdd.SetInputs(ADXFinal,ADXFinalShift)&lt;br&gt;		ADXRCustom = New DivideSeries&lt;br&gt;		ADXRCustom.SetInputs(ADXRAdd,Constant2)&lt;br&gt;		_ADX = New UserSeries&lt;br&gt;		&lt;br&gt;		EMAIndex = New UserSeries&lt;br&gt;	    HighVal = New Highest(ADXPr,_ADX)&lt;br&gt;	    LowVal = New Lowest(ADXPr,_ADX)&lt;br&gt;	    Diff = New SubtractSeries&lt;br&gt;		Diff.SetInputs(HighVal,LowVal)&lt;br&gt;	    MyConst = New UserSeries&lt;br&gt;		&lt;br&gt;		VarMASeriesSub = New SubtractSeries&lt;br&gt;		VarMASeriesSub.SetInputs(Constant1,MyConst)&lt;br&gt;		VarMASeriesMult1 = New MultiplySeries&lt;br&gt;		VarMASeriesMult1.SetInputs(VarMASeriesSub,VarMAShift)&lt;br&gt;		VarMASeriesMult2 = New MultiplySeries&lt;br&gt;		VarMASeriesMult2.SetInputs(MyConst,Close)&lt;br&gt;	    VarMASeries = New AddSeries&lt;br&gt;		VarMASeries.SetInputs(VarMASeriesMult1,VarMASeriesMult2)&lt;br&gt;		SMASeries = New SMA(2,VarMASeries)&lt;br&gt;		VarMA = New UserSeries&lt;br&gt;		VarMAShift = New Shift(1)&lt;br&gt;&lt;br&gt;		VarMA.ChartSettings.Color = Color.Black&lt;br&gt;		VarMA.ChartSettings.LineSize = 2&lt;br&gt;&lt;br&gt;&lt;br&gt;	End Sub&lt;br&gt;&lt;br&gt;	Public Overloads Overrides Sub NewBar()&lt;br&gt;		' Put your trading code here &lt;br&gt;		Dim ADXType As Integer = 2    '2 is EMA, 0 is Simple MA&lt;br&gt;		Dim VarMAPr As Integer = 4&lt;br&gt;		Dim ADXPr As Integer = 8&lt;br&gt;&lt;br&gt;		&lt;br&gt;		'Build UserSeries here&lt;br&gt;		TH = IIf(Close.LookBack(1) &gt; High.Current,Close.LookBack(1),High.Current)&lt;br&gt;		TL = IIf(Close.LookBack(1) &lt; Low.Current,Close.LookBack(1),Low.Current)&lt;br&gt;		&lt;br&gt;		PlusDM = IIf(High.Current &gt; High.LookBack(1) And low.Current &gt;= low.LookBack(1),high.Current-high.LookBack(1), _&lt;br&gt;		             IIf(High.Current &gt; High.LookBack(1) And low.Current &lt; low.LookBack(1) And high.Current - high.LookBack(1) &gt; low.LookBack(1) - low.Current,high.Current-high.LookBack(1),0))&lt;br&gt;					&lt;br&gt;        MinusDM = IIf(Low.Current &lt; Low.LookBack(1) And High.Current &lt;= High.LookBack(1),Low.LookBack(1) - Low.Current, _&lt;br&gt;		             IIf(high.Current &gt; high.LookBack(1) And low.Current &lt; low.LookBack(1) And high.Current - high.LookBack(1) &lt; low.LookBack(1) - low.Current,Low.LookBack(1) - Low.Current,0))					&lt;br&gt;					&lt;br&gt;		'ADXRCustom = (ADXFinal.Current + ADXFinal.LookBack(7))/2&lt;br&gt;		_ADX = IIf(ADXType = 0,ADXFinal.Current,ADXRCustom.Current)	&lt;br&gt;		&lt;br&gt;		EMAIndex = IIf(VarMAPr &gt; 0,(2/(1+VarMAPr)),0.2)&lt;br&gt;		MyConst = IIf(Diff.Current &gt; 0,(_ADX.Current - LowVal.Current)/Diff.Current,EMAIndex.Current)&lt;br&gt;		MyConst = IIf(MyConst.Current &gt; EMAIndex.Current,EMAIndex.Current,MyConst.Current)&lt;br&gt;		'VarMASeries = ((1-MyConst.Current) * VarMA.LookBack(1)) + (MyConst.Current * Close.Current)&lt;br&gt;		VarMA = IIf(Bars.Count &lt; (ADXPr + (ADXPr*1.5)),Close.Current,SMASeries.Current)&lt;br&gt;					&lt;br&gt;				&lt;br&gt;&lt;br&gt;&lt;br&gt;	End Sub</description><pubDate>Mon, 19 Oct 2009 06:11:04 GMT</pubDate><dc:creator>blousetrader</dc:creator></item><item><title>Programming the dll for the Pluggin folder</title><link>http://www.rightedgesystems.com/forums/Topic8373-10-1.aspx</link><description>The right edge software has given me to learn C# to attempt to code my custom indicator for use in this platform.  My indicator in C# is done but I am lost as to programming a dll.  I understand the concept of a dll but not the method to carry out the task.&lt;br&gt;&lt;br&gt;Can anyone help?</description><pubDate>Wed, 06 May 2009 19:55:48 GMT</pubDate><dc:creator>cycleforecasting</dc:creator></item><item><title>MoCS</title><link>http://www.rightedgesystems.com/forums/Topic9635-10-1.aspx</link><description>What/how would be the best way to calculate this indicator? Would be in a system or as an indicator?&lt;br&gt;&lt;br&gt;If I do it in a system I have the problem of calculating the EMA of the Close/ Index as EMA only takes ISeries so once I have the value in a user series can I get an EMA of it? Unless I write my own EMA function.&lt;br&gt;&lt;br&gt;If I do it as an indicator can I get the underlying index data into the indicator as well as the symbol data to do the calcs?&lt;br&gt;&lt;br&gt; &lt;br&gt;[b]The momentum of comparative strength (MoCS) formula:&lt;br&gt;&lt;br&gt;The MoCS is essentially the traditional comparative strength formula run through a MACD formula.&lt;br&gt;&lt;br&gt;“Data Series” is the close/last of the stock or ETF being analyzed.&lt;br&gt;&lt;br&gt;MoCS = (12-period exponential moving average of ( data series / S&amp;P 500 )) minus (26-period exponential moving average of ?( Data Series / S&amp;P 500 )).&lt;br&gt;&lt;br&gt;A 9-period moving average is then placed on the MoCS to act as the signal line.[/b]&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 30 Sep 2009 06:44:49 GMT</pubDate><dc:creator>kaizen</dc:creator></item><item><title>Many more indicators</title><link>http://www.rightedgesystems.com/forums/Topic50-10-1.aspx</link><description>The latest beta refresh contains the following new indicators:&lt;/P&gt;&lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Accumulation Swing Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Commodity Selection Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Forecast Oscillator&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Intraday Momentum Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Performance Indicator&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Price Channel&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Price Oscillator&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Price Volume Trend&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Range Indicator&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Relative Momentum Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Relative Volatility Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Standard Deviation Channel&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Standard Error Band&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Standard Error Channel&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Stochastic Momentum Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Swing Index&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Time Series Forecast&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Tirone Levels&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Variable Moving Average&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Weighted Moving Average&lt;/SPAN&gt;&lt;/FONT&gt; &lt;LI&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;Zig Zag&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-FAMILY: Tahoma"&gt;If your favorite indicator is not currently in RightEdge, please let us know and we'll be happy to implement it for you free of charge!&lt;/SPAN&gt;&lt;/FONT&gt;</description><pubDate>Wed, 03 May 2006 13:47:52 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>When i must start my MACD calculation?</title><link>http://www.rightedgesystems.com/forums/Topic9297-10-1.aspx</link><description>Hi, i am using a strategy with the MACD indicator and i am not sure if i understand well when i should start its calculation...&lt;br&gt;&lt;br&gt;I am using the MACD(12,26) combined with a EMA(9) of this MACD (the signal)&lt;br&gt;When i dowload an historical data based on 1min interval for the last day, i compare the&lt;br&gt;curve to yahoo's MACD curve and all match.I want my macd graph (plotted real time in my strategy) to be equivalent to the history graph with a macd (when i compare at the end of the day).&lt;br&gt;&lt;br&gt;Basically, in this case, to see the first 2 points of the MACD and its signal plotted on the graph, i would need to get 26 previous periods of data (at this time the MACD is ready), and i need for the signal 9 periods of the MACD....&lt;br&gt;So i need to calculate 26+9=35 bars before being able to evaluate my MACD with the signal.&lt;br&gt; &lt;br&gt;Here is my actual question : Do you guys would start 35 bars before 9h30?&lt;br&gt;If so, do you get the last 35 bars from pre-market  (starts at 8h55) or from last&lt;br&gt;valid trading hours (3h25pm to 4pm)? &lt;br&gt;&lt;br&gt;Thank you!</description><pubDate>Tue, 01 Sep 2009 15:19:58 GMT</pubDate><dc:creator>silvermoot</dc:creator></item><item><title>DefaultDrawingPane Modification</title><link>http://www.rightedgesystems.com/forums/Topic8947-10-1.aspx</link><description>I want to change the DefaultDrawingPane based on parameters that are entered on the parameters screen when an indicator is dragged from the indicator pane to the chart pane.  At times, I may want it to be the Price Pane and other times, I will want the indicator to be drawn in its own pane.  I initially set the value of the DefaultDrawingPane in the class definition using the YYEIndicatorAttribute template.&lt;P&gt;I am somewhat new to C# but it looks like, from the documentation, it might be possible through the IndicatorPlugin interface or IndicatorAttribute class. I just can't figure out how to use these to expose the property to reset it. &lt;/P&gt;&lt;P&gt;Is there a way to either SET the DefaultDrawingPane based on an argument passed to the class constructor or CHANGE the DefaultDrawingPane based on the argument passed to the constructor?   &lt;/P&gt;&lt;P&gt;Thanks in advance for any assistance provided&lt;/P&gt;&lt;P&gt;c# newbie Steveo</description><pubDate>Tue, 07 Jul 2009 20:35:01 GMT</pubDate><dc:creator>steveo</dc:creator></item><item><title>How to choose ATR parameter dynamically at runtime through an exposed method.</title><link>http://www.rightedgesystems.com/forums/Topic8656-10-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I am creating a backtesting system based on RightEdge that exposes RightEdge functionality via a very simple API that also hooks into our other IT systems.  I previously accomplished this with Ninja Trader, but am trying to duplicate the backtesting system with RightEdge.&lt;/P&gt;&lt;P&gt;In the NewBar() event of a Trading System, is traders need a simple C# method that they can call, with the ATR parameter of their choice, to determine of a price they pass to my custom method is "X ATRs Worse" from their passed price, like this:&lt;/P&gt;&lt;P&gt;double tradersChosenATRParameter1 = 10; &lt;/P&gt;&lt;P&gt;double tradersChosenATRParameter2 = (a number that the trader will chose when they develop their trading system...);&lt;/P&gt;&lt;P&gt;if(IsXATRsWorse(tradersCalculatedPrice, tradersChosenATRParameter1))&lt;/P&gt;&lt;P&gt;       DoSomething();&lt;/P&gt;&lt;P&gt;else if(IsXATRsWorse(tradersCalculatedPrice, tradersChosenATRParameter2))&lt;/P&gt;&lt;P&gt;       SoSomethingElse();&lt;/P&gt;&lt;P&gt;In the indicator samples that I am finding, it looks like the trading system developer needs to decide at design time what the ATR parameter will be, but I need to allow the traders to call my "IsXATRsWorse()" method with many possible parameters in the same trading system.  &lt;/P&gt;&lt;P&gt;In Ninja Trader, the trading system developer could at any time ask for ATR(12), ATR(14), etc... without having to choose 12 and 14 at design time.  Is this possible in RightEdge?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ChiTrader2000</description><pubDate>Sun, 31 May 2009 18:57:02 GMT</pubDate><dc:creator>ChiTrader2000</dc:creator></item><item><title>Does RightEdge have a "NBarsUp" or "NBarsDown" indicator?</title><link>http://www.rightedgesystems.com/forums/Topic8657-10-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I am converting a project over from Ninja Trader to RightEdge, and can't find an indicator that returns the number of bars whose close prices are consecutively higher or lower.  For instance, if the last 4 bars all closed higher than the previous bar, the value "4" should be returned.&lt;/P&gt;&lt;P&gt;Does RightEdge have an equivalent to the "NBarsUp" or "NBarsDown" Ninja Trader indicator?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ChiTrader2000</description><pubDate>Sun, 31 May 2009 19:08:59 GMT</pubDate><dc:creator>ChiTrader2000</dc:creator></item><item><title>Custom (price/vol/tick/range/etc) bars</title><link>http://www.rightedgesystems.com/forums/Topic2075-10-1.aspx</link><description>I want to create symbol bars with a custom algorithm (price/vol/tick/range/etc): is there an example showing how to&lt;/P&gt;&lt;P&gt;1. listen to tick events and add new bars to a series, and&lt;/P&gt;&lt;P&gt;2. how to make this bar series the only/primary bar series on the chart? This would allow me to, for example, create Renko bars, etc.&lt;/P&gt;&lt;P&gt;Thank you.</description><pubDate>Wed, 11 Apr 2007 14:51:00 GMT</pubDate><dc:creator>purpledawn</dc:creator></item><item><title>Histogram indicators?</title><link>http://www.rightedgesystems.com/forums/Topic8407-10-1.aspx</link><description>Hi.&lt;br&gt;&lt;br&gt;Is it possible create histogram indicator in RE?&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;MaRCHeW?</description><pubDate>Sun, 10 May 2009 04:02:20 GMT</pubDate><dc:creator>MaRCHeW</dc:creator></item><item><title>indicator plugin</title><link>http://www.rightedgesystems.com/forums/Topic8139-10-1.aspx</link><description>I have designed an indicator plugin to calculate the swings to link the highest and lowest.but it throws an exception.Anything wrong with it.it says out of the range of argument.But i have checked it carefully and cant find what is wrong with it.&lt;/P&gt;&lt;P&gt;By the way,is it the right way to code it that way?</description><pubDate>Sun, 12 Apr 2009 22:15:11 GMT</pubDate><dc:creator>baips</dc:creator></item><item><title>ConstructorArgument default ignored when ConstructorArgumentType is Enum</title><link>http://www.rightedgesystems.com/forums/Topic7740-10-1.aspx</link><description>The RE GUI (build 382) seems to ignore the specified default value of ConstructorArgument when the ConstructorArgumentType is Enum. Instead it always displays the second enumeration. &lt;br&gt;&lt;br&gt;For example, the following displays No as the default when the GUI is displayed:&lt;br&gt;        public enum YesNoType { Yes, No };&lt;br&gt;        [ConstructorArgument("RTH reset", ConstructorArgumentType.Enum, YesNoType.Yes, 1)] &lt;br&gt;&lt;br&gt;Switching the order of enumeration definition displays Yes as the default when the GUI is displayed:&lt;br&gt;        public enum YesNoType { No, Yes };&lt;br&gt;        [ConstructorArgument("RTH reset", ConstructorArgumentType.Enum, YesNoType.Yes, 1)] &lt;br&gt;&lt;br&gt;I've verified similar behavior with indicator code that I downloaded from the RE library. Even with many enumerations, the second always seems to get displayed as default.&lt;br&gt;</description><pubDate>Fri, 27 Feb 2009 19:50:11 GMT</pubDate><dc:creator>davidS</dc:creator></item><item><title>Indicators and built-in methods</title><link>http://www.rightedgesystems.com/forums/Topic7658-10-1.aspx</link><description>Hello fellow traders, RightEdge team, Bill, et el.&lt;/P&gt;&lt;P&gt;I have been working to use some indicators in my system and at one point, I needed to have the following indicators, which are absent or I couldnt find them. Do you have code for the following indicators?  If not, if you have algorithm of iFractals and other aspects used in the indicators, it would be of great help.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Support and Resistance (Barry)&lt;/LI&gt;&lt;LI&gt;TRO 3_Level_ZZ_Semafor &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Daniel, do you have a pointer for me to look at?  I couldn't find the algorithm for iFractals, though I found mq4 code for the above indicators, it didnt have definitions of iFractals.  I wanted to create these for RE-plugins.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AH</description><pubDate>Mon, 23 Feb 2009 21:25:02 GMT</pubDate><dc:creator>Atul H</dc:creator></item><item><title>Can indicators accept series from multiple symbols?</title><link>http://www.rightedgesystems.com/forums/Topic7550-10-1.aspx</link><description>Is there any way to have an indicator accept series data from multiple symbols? This would be nice, e.g., in the case of a system designed for pairs trading. I know that I can do the necessary math in my trading system instead, but then I won't get a graphical representation of the trading signal as I would in the case of an indicator.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;David</description><pubDate>Sun, 15 Feb 2009 16:55:17 GMT</pubDate><dc:creator>davidS</dc:creator></item><item><title>ISeries.LookBack appears to actually look forward</title><link>http://www.rightedgesystems.com/forums/Topic7497-10-1.aspx</link><description>As my first indicator programming exercise, I decided to patch DoQ_Indicators to work with the latest RE release (build 380). When I run the MedianSeries indicator, the indicator actually [b][i]leads [/i][/b]the data!! I've attached a screen shot showing MedianSeries on opening prices using a 7 day period. According to the code (below) the indicator output should be the opening price from 3 days prior, instead it shows the opening price from 3 days in the future. Am I missing something obvious?:unsure:&lt;br&gt;&lt;br&gt;        protected override double CalcNewValue(int index)&lt;br&gt;        {&lt;br&gt;&lt;br&gt;            if (index &lt; _Period - 1)//init&lt;br&gt;            {&lt;br&gt;                return double.NaN;&lt;br&gt;            }&lt;br&gt;            else&lt;br&gt;            {&lt;br&gt;                int Mid = _Period / 2;&lt;br&gt;&lt;br&gt;                double Median = (_Period % 2 != 0) ? inputs[0].LookBack(index - Mid) :       //odd&lt;br&gt;                                (inputs[0].LookBack(index - Mid) + inputs[0].LookBack(index - Mid - 1)) / 2;  //even&lt;br&gt;&lt;br&gt;                return Median;&lt;br&gt;            }&lt;br&gt;&lt;br&gt;        }&lt;br&gt;</description><pubDate>Sun, 08 Feb 2009 15:33:40 GMT</pubDate><dc:creator>davidS</dc:creator></item><item><title>Using Highest</title><link>http://www.rightedgesystems.com/forums/Topic7316-10-1.aspx</link><description>&lt;FONT size=2&gt;&lt;P&gt;I am not sure why this encounters a run-time exeception (not all code is shown, just relevant parts):&lt;/P&gt;&lt;P&gt;private Highest hdiff; // Maximum difference in emas.&lt;/P&gt;&lt;P&gt;subema = new SubtractSeries(); // Difference, fast Close minus medium Low.&lt;/P&gt;&lt;P&gt;hdiff= new Highest(3,subema);&lt;/P&gt;&lt;P&gt;bEmaDiffUp=(hdiff.Current&amp;gt; 0) // All recent diff's positive?&lt;/P&gt;&lt;P&gt;It is looking for the largest difference between two emas in the recent past. Will "Highest" not work on a difference?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 20 Jan 2009 07:26:48 GMT</pubDate><dc:creator>phg</dc:creator></item><item><title>Relative Strength Index</title><link>http://www.rightedgesystems.com/forums/Topic6818-10-1.aspx</link><description>I have heard of systems based on RSI such as go long when the rsi is above 50 and sell when the rsi is below 50. When I see daily graphs of stocks in yahoo with the rsi indicator included, I can see a good correlation in terms of price and RSI. The RSI can stay above the 50 mark for several days.&lt;/P&gt;&lt;P&gt;However, when I watch this indicator in real time, it seems to oscilate in a wide range well above and below the 50 mark, which would trigger constant buy/sell signals. So, how do these systems work?</description><pubDate>Wed, 29 Oct 2008 15:50:45 GMT</pubDate><dc:creator>UserY</dc:creator></item><item><title>Custom Market Breadth Indicators</title><link>http://www.rightedgesystems.com/forums/Topic6793-10-1.aspx</link><description>If there are several hundreds of stocks in a watch list, how could I calculate  market breadth indicators based on the watch list?  Such as New Lows within 100 days?&lt;br&gt;Is it possible in RE?&lt;br&gt;Thanks.&lt;br&gt;</description><pubDate>Sat, 25 Oct 2008 07:33:33 GMT</pubDate><dc:creator>windspeedo</dc:creator></item><item><title>aggregate bar</title><link>http://www.rightedgesystems.com/forums/Topic6622-10-1.aspx</link><description>I have to try to aggregae daily bar to weekly bar, with weekBars= BarAggregator.AggregateBars(Bars, (int) BarFrequency.Weekly);&lt;/P&gt;&lt;P&gt;but when run simulation,it says An exception of type System.ArgumentOutOfRangeException was thrown.&lt;BR&gt;Value must be between 0 and -1, value was 1&lt;BR&gt;参数名: nBars&lt;/P&gt;&lt;P&gt;how can i fix it?</description><pubDate>Wed, 10 Sep 2008 07:38:34 GMT</pubDate><dc:creator>lyedwards74</dc:creator></item><item><title>data series as parameter ?</title><link>http://www.rightedgesystems.com/forums/Topic5828-10-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I would like to know whether possible to pass in data series to the indicator ?&lt;br&gt;&lt;br&gt;For example, SMA( X, 10) calculate 10 period simple moving average of X&lt;br&gt;where X can be open, high, low, close&lt;br&gt;X may also be  10 period average of ATR,  20 period average of RSI ...... etc&lt;br&gt;&lt;br&gt;Is it possible to write such a SMA in RE  so that it accept any type of dataseries ?&lt;br&gt;</description><pubDate>Sat, 31 May 2008 07:57:35 GMT</pubDate><dc:creator>rgrg</dc:creator></item><item><title>IndicatorBase too sloooow</title><link>http://www.rightedgesystems.com/forums/Topic6320-10-1.aspx</link><description>It takes about 100ms to construct any Indicator based on IndicatorBase :w00t:&lt;br&gt;wheras it takes no time to construct any other indicator &lt;br&gt;&lt;br&gt;Why?&lt;br&gt;&lt;br&gt;I need about 5 indicators (based on IndicatorBase) in my system. Whenever I start on Nasdaq-100 (100 Stocks) I wait 50 seconds for "System Startup" :( :( :( ...</description><pubDate>Thu, 07 Aug 2008 08:29:05 GMT</pubDate><dc:creator>DrKoch</dc:creator></item><item><title>Combining Indicators   -  Produces an Error</title><link>http://www.rightedgesystems.com/forums/Topic6247-10-1.aspx</link><description>Hello &lt;br&gt;&lt;br&gt;We are currently developing a number of complex indicators and stubled upon the following error when trying to combine indicators:&lt;br&gt;&lt;br&gt;Here is a simple example that produces the error:&lt;br&gt;&lt;br&gt;ISeries ema  = new EMA(2,new EMA(2, new EMA(2,Close)));&lt;br&gt;&lt;br&gt;produces this:&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.SeriesCalculatorBaseWithValues.LookBack(Int32 nBars)&lt;br&gt;   at RightEdge.Common.SeriesCalculatorBaseWithValues.NewBar()&lt;br&gt;   at RightEdge.Common.IndicatorManager.NewBar(Dictionary`2 bars)&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.RunSystem(SystemData systemData, SystemRunInfo runInfo, Dictionary`2 historicalData, ServiceFactory brokerFactory)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(DateTime start, String filename, ServiceFactory brokerFactory)&lt;br&gt;   at RightEdge.Shared.SystemWrapper.RunSystem(DateTime start, String filename, ServiceFactory brokerFactory)&lt;br&gt;   at RightEdge.Shared.TradingModuleWrapper.RunSystem(SystemDataCreationSettings settings, Dictionary`2 historicalData, SystemRunInfo dndInfo, ServiceAppDomainFactory brokerFactoryFactory)&lt;br&gt;   at RightEdge.SystemProgress.InitAndRunSystem()&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;ISeries ema  = new EMA(2,new EMA(2, Close)  works fine&lt;br&gt;&lt;br&gt;We wrote several basic "Calculation Indicators" like AddSeries, AddSeriesValue, DivideSeries, DivideSeriesValue, MultiplySeries, MultiplySeriesValue and so on and would like to use them to build Indicators in an easy way within a TradingSystem. But when ever we combine more than 3 we get this error.&lt;br&gt;&lt;br&gt;Here an real example of what we would like to have working:&lt;br&gt;&lt;br&gt;ISeries Recovery200 = new EMA(200,new WLMultiplySeriesValue(new WLDivideSeries(new WLSubtractSeries(Close,Low),atr),100));&lt;br&gt;&lt;br&gt;Markus&lt;br&gt;&lt;br&gt;  &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 29 Jul 2008 10:35:55 GMT</pubDate><dc:creator>mseeli</dc:creator></item><item><title>HeatMap code examples (3d-&amp;gt;2d presentation)</title><link>http://www.rightedgesystems.com/forums/Topic6048-10-1.aspx</link><description>Hi,&lt;br&gt;I'm looking for some sample code to produce a heatmap-like graphics in RE. Example here: &lt;br&gt;[url=http://www.traderblogs.com/themesasoftwareblog/]http://www.traderblogs.com/themesasoftwareblog/[/url]&lt;br&gt;I'm not talking about one specific indicator calculation, but just code portion of it to turn any 3d data into a heatmap. &lt;br&gt;&lt;br&gt;Even some tips, hints, or instructions on how to go about programming it in RE would be much appreciated.&lt;br&gt;&lt;br&gt;Thanks in advance.</description><pubDate>Tue, 24 Jun 2008 03:56:52 GMT</pubDate><dc:creator>dcabc</dc:creator></item><item><title>Multiple Time Frame Indicators</title><link>http://www.rightedgesystems.com/forums/Topic5810-10-1.aspx</link><description>When use the bar aggregartor class to build a series of higher time frame bars how do we use this bar data to build indicators from?</description><pubDate>Fri, 30 May 2008 03:16:57 GMT</pubDate><dc:creator>kaizen</dc:creator></item></channel></rss>