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 lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        8 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        44 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        13 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        9 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X