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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          27 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          283 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          280 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          131 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          90 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X