Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to display the slope of a Idataseries

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

    Trying to display the slope of a Idataseries

    I'm trying to display the slope of line in a chart. Specifically the slope of the smoothed line in ZerolagStochs.

    with this code:

    stoksmoothed = mov/smoothing + val *(smoothing-1)/smoothing;
    smoothslope = Slope((stoksmoothed), 10, 0);

    but get this error :CS 1502

    can anyone help me out?

    Regards Jack

    #2
    What type is "stoksmoothed"?

    If it is IDataSeries then you have to set its value via:

    stoksmoothed.Set(value)
    RayNinjaTrader Customer Service

    Comment


      #3
      stoksmoothed is a private double

      Comment


        #4
        It needs to be of type DataSeries.

        More information - http://www.ninjatrader-support.com/H...iesObject.html
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X