Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use indicator in Strategy

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

    #16
    Steve R,

    When you set the Entries Per Direction it will only place that many trades in the direction that you want to go in, Long or Short.

    Below is a link on the EntriesPerDirection from our help guide.
    http://www.ninjatrader.com/support/h...rdirection.htm
    Cal H.NinjaTrader Customer Service

    Comment


      #17
      Originally posted by Steve R View Post
      Where? Where is 'here'?

      I figured the question was simple. "Where"?

      Let's get an example going on because I am still not seeing the answer I'm looking for.

      1 - I've got an indicator already.
      2 - I have 3 user input variables for the indicator. 2 floats and an int. I can't hard-code them because they're vastly different depending on time-frame and security.

      3 - When I "Call" the indicator in my Strategy, at what point will the strategy (or indicator) be asking me for those numbers so the Indicator and thusly Strategy will work?

      I realize that once the Strategy has the indicator's values etc how it'll work, but I am unclear as to how the indicator will be obtaining from me, the values I want to use for the Indicator and thusly the strategy.

      _____

      Part # 2:

      Sledge used this code:



      From here that looks to me like I use the Strategy to ask for the variables IT has set up, and then IT sends the variables (parameters) TO the indicator to use..

      I have no idea if that's how it works.....but if it does, then the next questions would be, in which order is my Indicator getting those parameters and for which if its variables.

      Again this whole "Part 2" may be moot because it's not how it works at all?, but I figured this wasn't already confusing enough for such a simple question, that I'd just go ahead and add to the pile :-)
      You have it correct in terms of how to create the inputs for the Strategy, and pass them to the Indicator.. You can use Intellisense to help you know the order in which your parameters must be passed to the indicator, or you can examine the calling signature in the indicator (the part where NinjaTrader warns you not to touch the code).

      Comment


        #18
        Originally posted by koganam View Post
        You have it correct in terms of how to create the inputs for the Strategy, and pass them to the Indicator.. You can use Intellisense to help you know the order in which your parameters must be passed to the indicator, or you can examine the calling signature in the indicator (the part where NinjaTrader warns you not to touch the code).
        A thousand thank you's :-)

        Ah "Intellisense" - that's what I called the message box thing, lol.

        Anyway, yeah. I seem to have a handle on this stuff now and it certainly has opened up a whole pile of things that I can now accomplish. Easier than I had thought, too.

        Comment

        Latest Posts

        Collapse

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