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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          44 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          54 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          34 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          95 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          57 views
          0 likes
          Last Post PaulMohn  
          Working...
          X