Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to invoke the data from indicator?

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

    How to invoke the data from indicator?

    I want to create an indicator which have some value I want to access using my strategy. The data type is double, bool, int. All of them should be put into different data series? Do we have another way invoke them and how to invoke from my strategy?
    Sample code, many thanks.

    #2
    thomson, would suggest you check first into this sample here - http://www.ninjatrader.com/support/f...ead.php?t=4991

    It would go over the options to access per default non exposed values (series and variables).
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand, thanks for your quickly respond. I saw all of output is IDataSeries interface. Do you mean there is no way to access variable from indicators?

      Thanks

      Comment


        #4
        The example contains the technique for non plotted series as well as an exposed variable. Please be checking this indicator property closely -

        [Browsable(false)]
        [XmlIgnore()]
        public double ExposedVariable
        {
        // We need to call the Update() method to ensure our exposed variable is in up-to-date.
        get { Update(); return exposedVariable; }
        }
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by flonkle, Today, 01:19 AM
        1 response
        4 views
        0 likes
        Last Post flonkle
        by flonkle
         
        Started by JerryWar, Today, 01:07 AM
        0 responses
        2 views
        0 likes
        Last Post JerryWar  
        Started by JacobRiogers, Today, 01:00 AM
        0 responses
        3 views
        0 likes
        Last Post JacobRiogers  
        Started by w0lverine, 12-08-2018, 12:28 PM
        9 responses
        256 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by warpinator, 06-17-2024, 09:52 PM
        2 responses
        16 views
        0 likes
        Last Post warpinator  
        Working...
        X