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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
    4 responses
    23 views
    0 likes
    Last Post Vietanhnguyen2hotmailcom  
    Started by PhillT, 04-19-2024, 02:16 PM
    4 responses
    36 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by ageeholdings, 05-01-2024, 05:22 AM
    5 responses
    38 views
    0 likes
    Last Post ageeholdings  
    Started by reynoldsn, Yesterday, 02:34 PM
    0 responses
    14 views
    0 likes
    Last Post reynoldsn  
    Started by nightstalker, Yesterday, 02:05 PM
    0 responses
    24 views
    0 likes
    Last Post nightstalker  
    Working...
    X