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

Getting correct indicator output

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

    Getting correct indicator output

    Hello support team,
    I have a purchased indicator that gives oscillator with 4 colours depending whether it is positive or negative, and expanding or contracting, similar to the Awesome Oscillator. The problem I have is that whereas AO give AO value beside AO positive and AO negative, this purchased indicator only give the 4 plots, only one is active at one time obviously. I need to use the output of that indicator in my own indicator. How can I tell at each bar close, which value of the four to use ?

    Thanks.

    Regards.

    Edward K.

    #2
    With purchased indicators sometimes you can find a non-plotting data series by trial and error. Take another indicator and reference your purchased indicator with some print statements.

    Print("Series1 " + IndicatorName(Close, X, X)[0][0]);
    Print("Series2 " + IndicatorName(Close, X, X)[1][0]);
    Print("Series3 " + IndicatorName(Close, X, X)[2][0]);
    Print("Series3 " + IndicatorName(Close, X, X)[3][0]);
    Print("Series4 " + IndicatorName(Close, X, X)[4][0]);

    Something like that (syntax may be off) and see what prints out.
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      Edward, I would suggest contacting the author of the indicator for the best method to capture the values.
      AustinNinjaTrader Customer Service

      Comment


        #4
        Getting correct output - Solved

        Hello,

        I just stumble on the solution while working on dataseries. The help guide shows method to check for valid values, by calling DataSeries.ContainsValue(BarsAgo)
        Just implemented and it works.
        Thanks all for the response.

        Regards,

        Edward K.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by warreng86, 11-10-2020, 02:04 PM
        4 responses
        1,355 views
        0 likes
        Last Post mathewlo  
        Started by Perr0Grande, Today, 08:16 PM
        0 responses
        2 views
        0 likes
        Last Post Perr0Grande  
        Started by elderan, Today, 08:03 PM
        0 responses
        5 views
        0 likes
        Last Post elderan
        by elderan
         
        Started by algospoke, Today, 06:40 PM
        0 responses
        10 views
        0 likes
        Last Post algospoke  
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        12 views
        0 likes
        Last Post maybeimnotrader  
        Working...
        X