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

Custom Optimization Fitness - Expose Variables to User Input

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

    Custom Optimization Fitness - Expose Variables to User Input

    Hi,
    I created a custom OptimizationFitness using some variables in NinjaScript. Everything works as expected as long I add public class variables and then set them in OnStateChange().
    However, I'm wondering if it is possible to expose these variables to user input (in Strategy Analyzer Optimization).
    Can it somehow be done and if "Yes", how?
    The user should not need to open the NinjaScript if he wanted to edit these custom OptimizationFitness input variables. For clarification: I expect these variables to be changed based on individual preference. I tried to add the variables in region properties of the OptimizationFitness script, but the below (illustrative example) does not seem to do the trick.

    #region Properties
    [NinjaScriptProperty]
    [Range(0.1, 5)]
    [Display(Name = "CustomOptimizationFitnessVariable", Order = 1, GroupName = "OptimizationFitness")]
    public double dCustomOptimizationFitnessVariable
    { get; set; }

    Thanks for letting me know.

    NT-Roland

    #2
    Hello NT-Roland,

    I am not aware of a way to acheive this at this time.

    There is a feature request for this.

    SFT-2890 - 'OptimizationFitness scripts to have user settable inputs that appear in the strategy analyzer'.

    I will submit your vote to this request.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,
      Thank you very much for your swift reply and submitting my vote. Really appreciated.
      I don't always like the answers, but the service level as such here in this forum is great.
      I would be glad if the suggestions from the forum could be implemented in NT at the same pace.
      NT-Roland
      Last edited by NT-Roland; 10-28-2019, 01:31 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CortexZenUSA, Today, 12:53 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      0 views
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      2 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,262 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X