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 gentlebenthebear, Today, 01:30 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Aviram Y, Today, 05:29 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by cls71, Today, 04:45 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by TradeForge, Today, 02:09 AM
      1 response
      22 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by elirion, Today, 01:36 AM
      2 responses
      14 views
      0 likes
      Last Post elirion
      by elirion
       
      Working...
      X