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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    12 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X