Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

inidcator return series

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

    inidcator return series

    I have an indicator which exposes several series & returns those to be accessible by other indicators/strategies.

    In the strategy i can access those series in the code.

    For the Strategy builder to see those series from the Indicator in the Plots section of the builder it seems i must return those as Plots (setup in the indicator state == state.defaults) using Values[0] Values[2] etc for however many series i return.

    So i am seeing those in the strategy builder - is this the only way i can do so ie i cannot just return a Series<double> from my indicator and access this in the strategy builder?

    Someone can code and see it but they must explicity reference in the code as opposed to being generated via the strategy builder.

    So i am just wanting to confirm the above.

    Also if i have a non price based or non double series i want to return and access - as this cannot be done via a Plot - this would need to be programmatically added ie if i was returning a Enum value related to the logic or a string or other type?

    thanks

    #2
    Hello soulfx,

    You are correct, you may only reference data series which are set to plots through using the strategy builder.

    Also, yes, since you can't set a true or false value to a plot you would not be able to access this series. I might suggest using 1's and 0's, 1 being true and 2 being false.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    75 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    146 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    50 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    54 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X