Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

#region 'hide' does not hide entire region?

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

    #region 'hide' does not hide entire region?

    when I click on the #region '+/-' symbol to hide the lines of code bounded by a #region/#endregion region which I have created, the entire region is not hidden [ie] hidden lines of code stop short of the #endregion directive?

    #2
    Hello Joemiller,

    Thank you for your post.

    Can you please share the section of code for the #region and #endregion that is not working?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      code is in attached zip file ... thanks

      code is in attached zip file ... thanks
      Attached Files

      Comment


        #4
        Joemiller,

        The script you attached is a lot of commented out sections and very unreadable.

        Can you please simplify this down so I can further assist you
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          is a word document ok or would you prefer another way to send it?

          Comment


            #6
            If you can send me the .CS file that would be better as I can load that directly into my NinjaTrader.

            (My) Documents -> NinjaTrader 7 -> bin -> Custom -> Indicator or Strategy
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              do you now want the entire strategy or shall I still just send the code in question with comments removed?

              Comment


                #8
                Just attach the entire file.
                Cal H.NinjaTrader Customer Service

                Comment


                  #9
                  cs file is attached

                  cs file is attached.
                  code lines in question are line 235 and line 611
                  Attached Files

                  Comment


                    #10
                    JoeMiller,

                    I went through the script. You need to end the region in question, inside the OnBarUpdate() method and not the outside that you currently have setup.
                    Cal H.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    648 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    369 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    108 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    572 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    574 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X