Announcement

Collapse
No announcement yet.

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 wjadevries, Today, 03:35 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Mykro, Today, 03:59 PM
      0 responses
      5 views
      0 likes
      Last Post Mykro
      by Mykro
       
      Started by venkateshdvk, Today, 01:34 PM
      1 response
      22 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by westofpluto, Today, 01:54 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by zacharydw00, Today, 02:11 PM
      4 responses
      15 views
      0 likes
      Last Post zacharydw00  
      Working...
      X