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 giulyko00, Today, 12:03 PM
        0 responses
        2 views
        0 likes
        Last Post giulyko00  
        Started by AttiM, 02-14-2024, 05:20 PM
        12 responses
        213 views
        0 likes
        Last Post DrakeiJosh  
        Started by cre8able, 02-11-2023, 05:43 PM
        3 responses
        238 views
        0 likes
        Last Post rhubear
        by rhubear
         
        Started by frslvr, 04-11-2024, 07:26 AM
        8 responses
        117 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        10 responses
        47 views
        0 likes
        Last Post stafe
        by stafe
         
        Working...
        X