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 argusthome, Yesterday, 10:06 AM
      0 responses
      20 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      18 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      9 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      40 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X