Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Newbie ? - enum input parameters

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

    Newbie ? - enum input parameters

    Hello,

    I am a total newbie to ninjascript programming, and I have a total newbie question.

    I am developing an indicator, and I want to have an enumerated list as an input parameter. I want this list to show up in the interface of the indicator so users can choose a member of the list that I will then use in my indicator code.

    (I don't think I can do this with the wizard since the type of my input parameter is not offered as a choice by the NT indicator setup wizard.)

    I am talking about an enumerated list like the "Chart Pattern" parameter in the built-in CandleStickPattern indicator included with NinjaTrader.

    I have tried to duplicate what I see in the code of the CandleStickPattern indicator just to get such an input parameter to show up in the interface of my indicator. I have been unsuccessful at even getting an enum parameter to show up in the interface of my indicator at all. I must be missing something.

    Just to make it simple, could someone please post the relevant code from the CandleStickPattern indicator that I would need to place in my indicator to get the exact same enum input parameter to show up in the interface to my indicator?

    If I can get this simple example working, hopefully I can build on it and get my code working the way I want it to.

    Thanks in advance for any help with this question.

    #2
    If someone wants to take a different tack in helping me to get an enum input parameter into (the interface of) my indicator, that's great, too. I was just asking for the previous info in an effort to make it as easy as possible to help me with my problem.

    Comment


      #3
      Never mind... after I posted this thread, the NT forum generated a list of similar threads to mine. I found my answer in a thread from back in Feb 2011.

      Awesome tool NT!! I've never encountered this type of automated "similarity search" on a message board before!!

      Comment


        #4
        In case someone with the same problem, or a similar one, stumbles across this thread in search of a solution, here is a link to the post that ultimately helped me to solve my problem:

        http://www.ninjatrader.com/support/f...ead.php?t=5782

        Hope this helps.

        Comment


          #5
          Welcome to our forums and thanks for sharing how you could resolve your issue. For a very useful range of samples, please check this link - http://www.ninjatrader.com/support/f...splay.php?f=29

          Our NinjaScript tutorials are found here in the helpguide - http://www.ninjatrader.com/support/h.../tutorials.htm
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by impactX, 05-04-2021, 01:07 AM
          1 response
          5 views
          0 likes
          Last Post Lancer
          by Lancer
           
          Started by op1031, Yesterday, 05:51 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by aaadetos, 05-04-2021, 09:28 AM
          1 response
          7 views
          0 likes
          Last Post Lancer
          by Lancer
           
          Started by Stanfillirenfro, Today, 04:34 AM
          1 response
          6 views
          0 likes
          Last Post Stanfillirenfro  
          Started by Impeesa, Today, 04:31 AM
          0 responses
          4 views
          0 likes
          Last Post Impeesa
          by Impeesa
           
          Working...
          X