• 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 sgordet, Today, 10:44 AM
    1 response
    6 views
    0 likes
    Last Post bltdavid  
    Started by Parmenides48, Today, 08:37 AM
    1 response
    13 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by EnveousColnago, 08-06-2020, 08:31 AM
    8 responses
    44 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by dieci, Today, 08:50 AM
    0 responses
    5 views
    0 likes
    Last Post dieci
    by dieci
     
    Started by sabankaradeniz, 05-05-2020, 03:49 AM
    4 responses
    547 views
    1 like
    Last Post tornadoatc  
    Working...
    X