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 DannyP96, 05-18-2026, 02:38 PM
1 response
27 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 05-11-2026, 05:56 AM
0 responses
117 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 05-10-2026, 08:12 PM
0 responses
69 views
0 likes
Last Post CarlTrading  
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
226 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
417 views
0 likes
Last Post CaptainJack  
Working...
X