• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to access indicator arraylist?

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

    how to access indicator arraylist?

    Is there any solution for exposing my indicator arraylist value to another indicators or strategy?

    Many thanks
    T

    #2
    Hi thomson,

    Thanks for your post.

    You can make your object public and return this from calling the indicator.

    For example in the indicator:

    private List<double> myArray = new List<double>();

    [Browsable(false)]
    [XmlIgnore()]
    public List<double> MyArray
    {
    get { return myArray; }
    }

    and in the strategy or indicator calling the indicator:

    List<double> myReturnedArray = myIndicator().MyArray;
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ralett, Today, 11:28 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by ChazJ, Today, 09:59 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Irukandji, Today, 09:34 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by lunardiplomacy, Today, 08:32 AM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by ralett, Today, 08:24 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X