Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

compiling but empty plot

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

    compiling but empty plot

    Trying to plot the difference between an EMA value for the current bar, compared to the previous bar. It will compile without error, but the indicator just shows a blank graph.

    Roc[0] = EMA(12)[0] - EMA(12)[1];

    #2
    What is the error in your log?
    You need to escape the first bar.
    Code:
    if (CurrentBar < 1) return;
    at the top of OnBarUpdate() should handle this particular instance.
    Last edited by koganam; 10-24-2018, 09:10 PM.

    Comment


      #3
      That fixed it thank you! If there's a log showing an error I'm not sure where that is yet

      Comment


        #4
        Originally posted by Paracelsus462 View Post
        That fixed it thank you! If there's a log showing an error I'm not sure where that is yet
        The Output Window

        Comment


          #5
          Hello Paracelsus462,

          Thanks for your posts and thanks to member Koganam.

          Anytime that you experience unexpected operations, please check the "Log" tab of the control center for any related error messages.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X