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

Variables Values

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

    Variables Values

    Good evening,
    I have in the code assigned to the variable default values ​​for example of 0.8. In the strategy analyzer returns 1. It means that the variables can not have a value lower than "0".
    Thank you.
    Roberto

    #2
    Hello Italy,

    Thank you for your post.

    It is possible to use a value that is less than one, or less than zero, for a parameter in the Strategy Analyzer.

    In the code for the public variable (in the Properties region) are you using a double as the type of variable?

    Are you using Math.Max to determine the lowest value accepted?

    Are you using a double as the lowest value that is accepted?

    I look forward to your reply.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      OK
      Thanks
      Roberto

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Lumbeezl, 01-11-2022, 06:50 PM
      31 responses
      817 views
      1 like
      Last Post NinjaTrader_Adrian  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by swestendorf, Today, 11:14 AM
      2 responses
      6 views
      0 likes
      Last Post NinjaTrader_Kimberly  
      Started by Mupulen, Today, 11:26 AM
      0 responses
      6 views
      0 likes
      Last Post Mupulen
      by Mupulen
       
      Started by Sparkyboy, Today, 10:57 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X