Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with indicator

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

    Help with indicator

    Could someone help me to complete the script? I've tried to but bars are not getting paint.

    Last edited by cgvmlg; 11-13-2023, 03:36 PM.

    #2
    Hello cgvmlg,

    Have you checked the control center log tab to make sure you are not getting any errors? That would be a first step.

    As long as there are no errors you would need to use Print statements in the code to check values and make sure your conditions are working as you expect.

    Comment


      #3
      Hi NinjaTrader_Jesse, thanks for your reply.

      I've checked the log tab and is showing this errors:

      Click image for larger version  Name:	Screenshot_163.png Views:	0 Size:	11.3 KB ID:	1277777

      Comment


        #4
        Hello cgvmlg,

        The error means an object was null in OnBarUpdate. Based on the given code that may be your list, you have the creation of the list commented out. The following:

        //value2List = new List<double>(this);

        needs changed to:

        value2List = new List<double>();

        Comment


          #5
          Thanks Jesse! Is working now.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          563 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          329 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
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X