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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          156 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          90 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          140 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          130 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          107 views
          0 likes
          Last Post CarlTrading  
          Working...
          X