MultiCharts Easter Sale has jumped in! Up to 50% off Explore offers
+1 888 340 6572 GET STARTED
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_faded.png
Please log in to bookmark issues
bug_report_small.png
Open Bug report MC-1510

RSI method does not work with function argument

action_vote_minus_faded.png
2
Votes
action_vote_plus_faded.png
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 (MultiCharts)
Nov 13, 2013 - 18: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 (TraderJ)
Nov 13, 2013 - 20: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 (TraderJ)
May 31, 2015 - 11: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
Times and dates
  • Posted at
  • Last updated
Issue details
  • Reproducability
    Not determined
  • Severity
    Normal
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