Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        4 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,785 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X