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 algospoke, Yesterday, 06:40 PM
        2 responses
        24 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        46 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        23 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X