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 helpwanted, Today, 03:06 AM
        1 response
        8 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        7 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        385 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X