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

      Regards
      Eros
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      475 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      315 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      253 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      340 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      305 views
      0 likes
      Last Post CarlTrading  
      Working...
      X