Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiler should point out error if AddLine has minus value

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

    Compiler should point out error if AddLine has minus value

    This error is one of those very confusing ones for a programmer to find.

    My Custom indicator compiles with no errors.
    My Custom Indicator shows up on List of the "NinjaScript explorer" as being available.
    When I try to apply the indicator to a Chart my Custom indicator does not show up.

    Here is the senerio I wrote in my Custom indicator script in State=Configure:
    AddPlot(...)
    AddLine(...)

    If the value that I pass to the "AddLine" is negative my Custom indicator isn't available to apply to a chart. <as described above>

    I feel that a compiler error should be generated for this?

    #2
    Hello seefisch,

    Thank you for your post.

    There should be no error and it should show in the Indicators menu and on the chart.

    Can you attach the indicator to your response? You can find the indicator under Documents\NinjaTrader 8\bin\Custom\Indicator.

    Comment


      #3
      Thanks for your reply.

      On further inspection I see the error.

      I passed the same Text name two two seperate "AddLine" calls.

      The Compiler didn't catch it.
      I guess I can't expect it to.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      577 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X