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 vantojo, Today, 09:32 AM
    0 responses
    4 views
    0 likes
    Last Post vantojo
    by vantojo
     
    Started by FelipeRXP, Today, 08:40 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by petedian, Today, 08:44 AM
    0 responses
    12 views
    0 likes
    Last Post petedian  
    Started by J0shTrader, Yesterday, 12:29 PM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by bc24fl, Today, 08:07 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X