Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Data, String, Bool, etc Series

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

  • NinjaTrader_RyanM1
    replied
    Thank you for sharing your work- around, KBJ.

    Leave a comment:


  • KBJ
    replied
    Originally posted by NinjaTrader_RyanM View Post
    I see - thanks for responding. Columns in the market analyzer can only be plots. A common approach then for the bool series is to set a plot as 1 when true and 0 otherwise.
    Not true.

    Market Analyzer Columns can also be a user defined DataSeries that does not plot; it just has to have a property getter method with characteristics of [Browsable(false)] and [XmlIgnore()].

    I wasn't able to get this to work with a BoolSeries, but with a DataSeries it works fine.

    Working code:
    Code:
    Protected bool Going_Up = false;
    Protected DataSeries goingUp;
    
    goingUp = new DataSeries( this );   // In Initialize()
    goingUp[0] = Going_Up ? 1 : 0;       // In OnBarUpdate()
    
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries GoingUp
    {
      get { Update(); return goingUp; }
    }

    Leave a comment:


  • NinjaTrader_RyanM1
    replied
    I see - thanks for responding. Columns in the market analyzer can only be plots. A common approach then for the bool series is to set a plot as 1 when true and 0 otherwise.

    Leave a comment:


  • snaphook
    replied
    Yes, the Series is Public, but where do I find it in the Market Analyzer Column setup? I find Indicator Parameters, DataSeries (Open, Close, Median, etc) and Plots, but where might I access the other Public Series?

    Leave a comment:


  • NinjaTrader_RyanM1
    replied
    Hello snaphook,

    Yes, this is possible. You can use this reference sample as a guide:
    Exposing indicator values that are not plots

    Leave a comment:


  • snaphook
    started a topic Accessing Data, String, Bool, etc Series

    Accessing Data, String, Bool, etc Series

    Is it possible to access series other than plots in MA? If I have an indicator with a bool series that is not a plot, can I access the values held in that bool series? It appears that only plots are accessible.

Latest Posts

Collapse

Topics Statistics Last Post
Started by CarlTrading, Yesterday, 11:51 AM
0 responses
20 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, Yesterday, 11:48 AM
0 responses
23 views
0 likes
Last Post CarlTrading  
Started by CaptainJack, 03-25-2026, 09:53 PM
0 responses
30 views
0 likes
Last Post CaptainJack  
Started by CaptainJack, 03-25-2026, 09:51 PM
0 responses
18 views
0 likes
Last Post CaptainJack  
Started by Mindset, 03-23-2026, 11:13 AM
0 responses
24 views
0 likes
Last Post Mindset
by Mindset
 
Working...
X