Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Nt8

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

    Nt8

    Hello NinjaTrader_ChelseaB, Please in NT8 syntax ,what switch syntax is available for programming within the tool.Thank you

    #2
    Hello Emma1,

    Thank you for the post.

    NinjaScript is C# programming language so you would have the general features of C# here. C# has a switch statement, you can find more details and samples in the following public resource:

    The `if` and `switch` statements provide branching logic in C#. You use `if, `else` and `switch` to choose the path your program follows.


    I look forward to being of further assistance.

    Comment


      #3
      Please , where can the syntax be found in NT7 or NT8?.

      Comment


        #4
        Hello Emma1,

        This would not be found in any NinjaTrader documentation or samples, this is a C# concept. You can find a sample in the page I linked. This would otherwise not be able to be generated using any of the built in wizards, this is something you would manually code.

        I look forward to being of further assistance.

        Comment


          #5
          init bars.
          Last edited by Emma1; 08-06-2019, 11:39 AM.

          Comment


            #6
            Hello Emma1,

            I am not certain I understand the question as it was written, can you provide more detail on what you are trying to do or what you are looking for?

            You can find the documentation for BarsTypes in the help guide here: https://ninjatrader.com/support/help.../bars_type.htm


            I look forward to being of further assistance.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            88 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            134 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            68 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            118 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            67 views
            0 likes
            Last Post PaulMohn  
            Working...
            X