• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 ntbone, Today, 09:54 PM
        0 responses
        1 view
        0 likes
        Last Post ntbone
        by ntbone
         
        Started by rwilliam, Today, 03:14 PM
        0 responses
        5 views
        0 likes
        Last Post rwilliam  
        Started by rwilliam, Today, 03:10 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by rontronimous, Today, 03:04 PM
        2 responses
        8 views
        0 likes
        Last Post rontronimous  
        Started by zacharydw00, Today, 03:14 PM
        0 responses
        5 views
        0 likes
        Last Post zacharydw00  
        Working...
        X