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

Misordered UI properties

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

    Misordered UI properties

    Hello,

    I'm having a tough time with this.

    I start with the generated UI, made code changes, added properties, and reordered them. I don't remember the exact sequence but now the properies are misordered and misnamed. Pictures and property declaration file are attached.

    Notice that there are 2 EMADiffThreshold, the properties file only has 1. Also notice EMASMATrend plot is in the properties file but is missing from the UI dialog.

    Many Thanks, Caesar.


    Attached Files

    #2
    Hello Skechers,

    Thanks for your post.

    I see in the file you shared that there is 1 NinjaScriptProperty called EMADiffThreshold and 1 plot called EMADiffThresholdPlot.

    The NinjaScriptProperties will display in the order that you set them to. If you would like a property placed first, you would set Order = 1 when defining the NinjaScriptProperty.

    Code:
    [NinjaScriptProperty]
    [Display(Name="StartTrading", Description="Time to begin trading", Order=1, GroupName="Parameters")]
    [Range(1, 2333)]
    public int StartTrading
    { get; set; }
    I suggest going through each property and setting the Order of each property, starting from 1, so they display in the order you want.

    NinjaScriptProperty: https://ninjatrader.com/support/help...yattribute.htm

    Please let me know if I may assist further.​
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hello Brandon,

      It is ordered, but I didn't notice the EMADiffThresholdPlot plot. I'll go and check them once more.

      Many Thanks, Caesar.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cutzpr, Today, 08:54 AM
      0 responses
      5 views
      0 likes
      Last Post cutzpr
      by cutzpr
       
      Started by benmarkal, Today, 08:44 AM
      0 responses
      5 views
      0 likes
      Last Post benmarkal  
      Started by Tin34, Today, 03:30 AM
      2 responses
      26 views
      0 likes
      Last Post Tin34
      by Tin34
       
      Started by sastrades, Yesterday, 09:59 AM
      2 responses
      39 views
      0 likes
      Last Post brucerobinson  
      Started by ETFVoyageur, Today, 12:52 AM
      1 response
      21 views
      0 likes
      Last Post Leeroy_Jenkins  
      Working...
      X