Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to expose indicator values for strategies

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

    How to expose indicator values for strategies

    I wrote an indicator and I want to use it in a strategy. But when I go to the Strategy Wizard to create it and select my new indicator, I don't see any of the parameters to select. Do I have to have all parameters in the "Parameters" category to see them?

    Also, what "output" from my indicator will the strategy see? Do I have to make public variables or something for that? The output from my indicator will basically just be a "true" or "false" for each bar - signaling whether to open a new position or not.

    #2
    >> Do I have to have all parameters in the "Parameters" category to see them?
    yes

    I suggest creating an indicator by the indicator wizard to see how it all works. The "output" plot could hold 0 or 1 to indicate true or false

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      >> Do I have to have all parameters in the "Parameters" category to see them?
      yes

      I suggest creating an indicator by the indicator wizard to see how it all works. The "output" plot could hold 0 or 1 to indicate true or false
      I don't know what you mean by 'how it all works', but I would like to use my indicator in a strategy and cannot see any of my parameters when I select it in the strategy.

      The indicator has no plots. It just uses DrawText to put a flag above bars that I want to begin a trade from. How do I set my parameters and expose that DrawText activity in an public variable that can be used by a strategy?

      Comment


        #4
        >> I don't know what you mean by 'how it all works'
        Please create an indicator by the wizard having one parameter and see how this parameter is exposed in the strategy wizard. Then check to see what code is generated for that parameter in the indicator NinjaScript and how could mimic that in your custom coded indicator.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X