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:	107
Size:	12.7 KB
ID:	1047146

      Regards
      Eros
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X