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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      22 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X