Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

User Variable doesn´t appear range in Strategy Analyzer

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

    User Variable doesn´t appear range in Strategy Analyzer

    Hi,

    I wrote a code in NT8 and I can´t fix why doesn´t appear a range in Strategy Analyzer Window to these variable.

    Could you help me?


    #2
    Hello Eros Lima,

    Thanks for your post.

    Your syntax looks correct for using a backing field and on the current version of NinjaTrader 8 (Release 17) I am not able to witness this behavior.

    Do you see this behavior testing the following syntax in a new strategy?

    Code:
    private double myDoub = 0.12;
    #region Properties
    [NinjaScriptProperty]
    [Display(Name="MyDoub", Order=1, GroupName="Parameters")]
    public double MyDoub
    { 
        get { return myDoub; }  
        set { myDoub = Math.Max(0, value); } 
    }
    #endregion
    Do you see this behavior when using the Range Attribute without using the backing field?

    Range Attribute - https://ninjatrader.com/support/help...eattribute.htm

    If you are continuing to see this behavior with the current version of NinjaTrader 8, could you attach an export of this code reduced to only display this issue?

    Exporting - https://ninjatrader.com/support/help...-us/export.htm

    I look forward to being of further assistance.

    Comment


      #3


      Hi Jim,

      I fix it. I just rename the variable. you can see in file attached.

      Click image for larger version

Name:	Fixed_Property.JPG
Views:	100
Size:	12.7 KB
ID:	1047146

      Regards
      Eros
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      52 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      43 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      47 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X