Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sometimes Plots then does NOT PLOT

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

    Sometimes Plots then does NOT PLOT

    Could someone help determine how the variable output sometimes plots & sometimes does not plz? It plots in a subgraph fine...then stops if I scroll back too far and only shows a 0 to 1 "Y" axis scale, but no output plot?

    Thank u.

    TX

    Code:
    double output             = (Math.Abs(x-x1)/Math.Abs(x1-x2))*100 ;

    #2
    Usually when this happens it means there is an error message that needs to be looked into.

    Please go to tools -> output window

    Apply the indicator to a chart and check for error messages.

    If you don't see any messages would you be able to attach the sample script so that I can test on my end?
    LanceNinjaTrader Customer Service

    Comment


      #3
      Originally posted by tradethebonds View Post
      Could someone help determine how the variable output sometimes plots & sometimes does not plz? It plots in a subgraph fine...then stops if I scroll back too far and only shows a 0 to 1 "Y" axis scale, but no output plot?

      Thank u.

      TX

      Code:
      double output             = (Math.Abs(x-x1)/Math.Abs(x1-x2))*100 ;
      I do not know what x1 and x2 are supposed to represent, but purely on coding grounds, you have not taken into account "division by zero" possibilities. What happens when x1 == x2?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      607 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      353 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      561 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X