Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Value of property message

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

    Value of property message

    Hello,

    when running an indicator I get first time the attached error message in NT8. I never had this in NT7. I transcribed my indicator from NT7 to NT8.

    I´m sorry but I don´t understand this message Value of property "Period" of NinjaScript "MIN". It is referring to a script named "MIN"? And what means Value of property Period please?

    2 problems: a.) english is not my main language b.) I´m not a programmer (but happy what I could do with NT software and I never could have done with another one)

    Thank you!

    Tony

    Attached Files

    #2
    Hello Tony,

    Thanks for your post.

    The message is stating that the script you are loading is using the MIN indicator and passing a period of 0 when the indicator expects a period of 1 or greater.

    Period is the number of bars the indicator looks back and included in the calculation. Since we can find the minimum value of 0 bars, we will get an error.

    I would recommend adding a check when MIN is used to ensure that the value for the Period is always greater than 0. Please note, further changes may need to be made for the rest of the indicator to handle the situation when Period is 0. Syntax reference for MIN is included below.

    MIN - https://ninjatrader.com/support/help...inimum_min.htm

    Rough illustration:

    Code:
    int Period;
    
    if (Period > 0)
        MIN(Low, 20)[0];
    Please let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    626 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    567 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X