Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating Parameter in optimzer

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

    Creating Parameter in optimzer

    Hello

    I am new to ninja script and C# have some limited visual basic experience

    I am trying to create a boolean field for a user to choose in the optimizer.

    Basically is DMI+ > DMI- yes or no

    I went into sample sma code that comes with ninja and see where the parameters are set. But not able to create a boolean parameter.

    Any help with this would be greatly appreciated


    Stefan

    #2
    Hello Stefan,

    You may view the following post that goes over how to create a user defined variable inside of NinjaScript.
    http://www.ninjatrader.com/support/f...ead.php?t=5782

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Thanks I will work with that

      Curious can you guide me to information on the difference between a user defined parameter and a user defined variable.

      I see in the condition coder both options but I have not see a place to define a user defined variable and not sure its use.

      Comment


        #4
        Hello delta20,

        They are basically the same thing. When creating an Indicator inside the Wizard it will be defined inside the "Variables" region inside of NinjaScript code, and when applying the Indicator to a window a user can define the value of it under the "Parameters" section by default.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Cross161, Yesterday, 10:33 PM
        0 responses
        6 views
        0 likes
        Last Post Cross161  
        Started by neilzep, Yesterday, 08:55 PM
        0 responses
        7 views
        0 likes
        Last Post neilzep
        by neilzep
         
        Started by javier.filgueira, Yesterday, 03:29 PM
        3 responses
        10 views
        0 likes
        Last Post javier.filgueira  
        Started by Da vinci, Yesterday, 03:15 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by Da vinci, Yesterday, 02:51 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X