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 burtoninlondon, Today, 12:38 AM
        0 responses
        9 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        14 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,983 views
        3 likes
        Last Post jhudas88  
        Working...
        X