+1 888 340 6572
MultiCharts Project Management
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_stroke.svg
Please log in to bookmark issues
bug_report_small.png
Open Bug report MC-1510

RSI method does not work with function argument

minus.svg
Please log in to vote
2
Votes
pluse.svg
Please log in to vote
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
Description

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)
#0
user-offline.png  MultiCharts Support
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);

#0
user-offline.png  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.

#0
user-offline.png  TraderJ
May 31, 2015 - 06:40

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

History
Issue basics
  • Type of issue
    Bug report
  • Category
    Stability
  • Targeted for
    MultiCharts 8.8 (RELEASED)
  • Status
    Released
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (2)
People involved
  • Posted by
    user-offline.png  TraderJ
  • Owned by
    Not owned by anyone
  • Assigned to
    Not assigned to anyone
  • Subscribers
    1 subscriber(s)
    Click here to show the list of subscribers
Times and dates
  • Posted at
  • Last updated
Issue details
  • Reproducability
    Not determined
  • Severity
    Normal
Commits (0)
There are no code checkins for this issue
×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.