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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          236 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          150 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          162 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          243 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          198 views
          0 likes
          Last Post CarlTrading  
          Working...
          X