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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X