Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

adding my NT8 script blows out NT8 executable image.

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

    adding my NT8 script blows out NT8 executable image.

    Hello NT support,

    I created a very simple NT8 script which, for the most part, compiles and executes successfully.

    The problem I get is after adding the last few lines of code to accept the end time of the RTH session. As I'm attempting to add the indicator to my chart, the chart freezes, turns black and the NT engine freezes, at which point I need to restart NT8. If I comment out these a few lines, the indicator compiles and executes perfectly. It's a small NT8 script that accepts 2 parameters the RTH start time and the RTH end times for the RTH session. I do this to distinguish the RTH session from the ETH session but the 2 different colors that the user chooses. This happens in the properties section where I accept 2 colors and 2 time slots. The problem specifically happens after adding the "EndSessionTime" parameter in the properties section.

    I've tried many different ways to get it to work, if anyone can help me out, that would be great.

    Thanks, Spartacus

    #2
    Spartcus It would help if you would post the NinjaScript here. If you prefer not to do that (perfectly understandable), perhaps just the lines that cause the issue?

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      Thank you. No problem, I am posting the script...
      Attached Files

      Comment


        #4
        Sorry about that, here's the attachment
        Attached Files

        Comment


          #5
          Spartacus It might be this: EndSessionTime which should probably be this: endSessionTime in your get and set.

          Lowercase "e" is probably what's intended? The uppercase version is probably causing some sort of loop, hence the behaviour you're seeing.

          Try that and see if it works.

          Thanks.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            Jeronymite,

            That was it. What a klutz I am. I was here for 3 days looking at this and didn't see it. I must've cut/pasted the method name to save time not realizing I brought the capital "E" that was in the var name. Thank you so much. I really appreciate it. Hope I can return the favor one day.
            Best regards.

            Comment


              #7
              Most welcome, Spartacus. We have all been there, and it still happens occasionally for me too. Best of luck with your code and trading.

              Thanks.
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              76 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              45 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              26 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              32 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              62 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X