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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      161 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      311 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X