Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

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

      Regards
      Eros
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Tim-c, Today, 10:58 AM
      0 responses
      1 view
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by traderqz, Yesterday, 09:06 AM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_ThomasC  
      Started by f.saeidi, Today, 10:19 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by kujista, Today, 06:23 AM
      5 responses
      18 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by traderqz, Today, 12:06 AM
      3 responses
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X