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

Indicator uses 500 Volume DS, wanting to get distinct crossover and smooth out noise

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

    Indicator uses 500 Volume DS, wanting to get distinct crossover and smooth out noise

    my indicator uses a 500 Volume data series, on the chart it is flexing a lot especially during high volume and large price action moments, historically it has only one point on the chart that it crosses, but in live it is rapidly crossing above and below. what means could I use to smooth out the noise CrossAbove(sig1,sig2,3) should I use an SMA of sig1 or some other means to get the smoothed version of the signal

    #2
    Hello set2win,

    Our support can't specifically suggest if you should or should not do that but what you are asking is certainly possible to do. You can pass a series to a SMA or other averaging indicator to average its values.

    If your existing use was :
    Code:
    double myValue = MyIndicator()[0]
    it would become
    Code:
    double myValue = SMA(MyIndicator(), 12)[0]
    If you wanted to use that with a crossover that is another regular double value you would have to instead store the new value as a series in your script so you can use the series<T>, double overload of CrossAbove
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,967 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    4 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    55 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    6 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    8 views
    0 likes
    Last Post lightsun47  
    Working...
    X