+1 888 340 6572 GET STARTED
MultiCharts Project Management
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
Open Bug report MC-1510

RSI method does not work with function argument

Go to the next issue (open or closed)
Go to the next open issue

This bug occurs on a 5-min chart.
The following expression produces a constant value of 50 which is wrong:
Inputs: RsiPeriod (20);
Rsi20 = RSI(LowD(0), RsiPeriod);
While the following expression works as expected:
LowD0 = LowD(0);
Rsi20 = RSI(LowD0, RsiPeriod);
So the RSI function does not work with a function call as its first parameter.
This is quite a serious bug.

Steps to reproduce this issue

See above

Comments (3)
user-offline.png  MultiCharts Support (MultiCharts)
Nov 13, 2013 - 13:52

RSI requires first input to be numericseries, while the LowD returns numericsimple value.

The workaround is a custom LowDMY:

inputs: PeriodsAgo( numericsimple ) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ;
Value1 = OHLCPeriodsAgo( 1, PeriodsAgo, var0, var1, var2, 
 var3 ) ;

LowDMy = var2 ;

make it numericseries

use it instead of LowD

Rsi20 = RSI(LowDMy(0), RsiPeriod);

user-offline.png  TraderJ (TraderJ)
Nov 13, 2013 - 15:00

In TradeStation this works.
If the above code intentionally does not work in MultiCharts, it should show an error message instead of just putting out a useless value.
Searching for such an error can take lots of time.

user-offline.png  TraderJ (TraderJ)
May 31, 2015 - 06:40

MC should show an error message if a function parameter does not have the required type.

Issue basics
  • Type of issue
    Bug report
  • Category
  • Targeted for
    MultiCharts 8.8 (RELEASED)
  • Status
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (2)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Reproducability
    Not determined
  • Severity
Attachments (0)
There is nothing attached to this issue
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates