Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Changes Input Values

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

    NT Changes Input Values

    I have the following code:

    private
    int periodLookback = 15;
    privatedouble percent = .5;
    privatedouble newpercent = .25;


    when I add this indicator to the chart it is fine. The input values are 15, .5 and .25

    When I hit "reload Ninjascript" the input values change to 15,1,1

    what is happening here?

    #2
    velocity,

    Please check the Properties region of your code. Do you have your parameters for the doubles down there with Math.Min(value, 1)? If so, you will need to replace it with just value.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ok, I got it.
      set { percentnew = Math.Min(value,value); }



      thanks
      Last edited by velocity; 03-11-2009, 12:15 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      96 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      24 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      34 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      37 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X