Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

RSI on smoothed price

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_Ray
    replied
    Please see this - http://www.ninjatrader-support.com/v...ead.php?t=3170

    Leave a comment:


  • stefy
    replied
    I did the following:

    myDataSeries.Set((Close[
    0] + 2*Close[1])/3);

    Plot0.Set(RSI(myDataSeries, p,
    0)[0]);

    It compiles, but it doesn't plot anything!

    Thank you

    Leave a comment:


  • NinjaTrader_Ray
    replied
    Help Guide Typo, I will fix it.

    Should be

    myDataSeries.Set(High[0] - Low[0]);

    Leave a comment:


  • stefy
    replied
    I tried the example in the link and it doesn't work either!

    myDataSeries.Set(High - Low)[0];

    "operator - cannot be applied"

    Leave a comment:


  • NinjaTrader_Ray
    replied
    try

    Plot0.Set(RSI(myDataSeries, 2, 0)[0]);

    Leave a comment:


  • stefy
    replied
    I introduced myDataSeries and then I typed:

    myDataSeries.Set((Close[
    0] + 2*Close[1]/3);


    Plot0.Set(RSI(myDataSeries,
    2, 0));

    I get "error overload" and "cannot convert indicator RSI to double".

    Leave a comment:


  • NinjaTrader_Ray
    replied
    You can not pass in a double value into any indicator method. You have to pass in any object which implements the IDataSeries interface.

    The DataSeries object does this.

    Here are some references -

    - http://www.ninjatrader-support.com/H...iesObject.html
    - http://www.ninjatrader-support.com/v...ead.php?t=7299

    Leave a comment:


  • stefy
    started a topic RSI on smoothed price

    RSI on smoothed price

    Hi everyone

    I want to calculate the RSI on a smoothed price.

    I did the following:

    double smooth = ... ;


    Output.Set(RSI(smooth, p,
    0)) ;

    Why it doesn't work?

    Thank you

Latest Posts

Collapse

Topics Statistics Last Post
Started by judysamnt7, 03-13-2023, 09:11 AM
4 responses
59 views
0 likes
Last Post DynamicTest  
Started by ScottWalsh, Today, 06:52 PM
4 responses
36 views
0 likes
Last Post ScottWalsh  
Started by olisav57, Today, 07:39 PM
0 responses
7 views
0 likes
Last Post olisav57  
Started by trilliantrader, Today, 03:01 PM
2 responses
21 views
0 likes
Last Post helpwanted  
Started by cre8able, Today, 07:24 PM
0 responses
10 views
0 likes
Last Post cre8able  
Working...
X