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 DJ888, Today, 10:57 PM
        0 responses
        5 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X