Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Version 6 Help Guide Errors - Quickly Noted

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

    Version 6 Help Guide Errors - Quickly Noted

    // Example of a conditional operator
    int myInteger = (10 > 12 ? 3 : 4);
    Print(MyInteger.ToString());
    // ^^^ - "MyInteger" with a capital "M" is unknown

    /*
    The above conditional statement says assign the value 3 to the variable myInt if 10 is greater than 12 else assign the value 4 to the variable myInt. The example will then print the value of 4 to the NinjaTrader output window since 10 is not greater than 12.
    */


    /*
    String Concatenation
    To append one string to another string use the "+" character.
    */

    // Example of string concatenation
    string wordOne = "Ninja";
    string wordTwo = "Trader";
    Print(MyInteger.ToString());

    /*
    The above example would print out NinjaTrader to the NinjaTrader output window.
    No it doesn't! Neither the Print() statement or the example shows string concatenation
    */

    // -----
    // Another possible error is:

    // Second example of using a relational operator in conjunction with logical operator
    double myDouble = 1000.25;
    if (myDouble < 1000 || myDouble > 1001)
    {
    Print("Variable myDouble is between 1000 and 1001");
    }

    // Nowhere are we told what the expected output is, so its only a "possible" error.
    // It should at least be noted that the Print() statement will not be executed.


    // ---------------------------------
    // I found the above errors in the first 5 minutes of reading the Help Guide.

    #2
    Thanks for the sharpe eye, I'll forward your findings so the relevant sections can be reviewed for the NT7 helpguide currently in the final works.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X