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 iq200, 05-20-2024, 08:11 AM
              2 responses
              100 views
              0 likes
              Last Post Grundynegy  
              Started by ghappy21, Today, 10:32 AM
              4 responses
              19 views
              0 likes
              Last Post geo123
              by geo123
               
              Started by samish18, Today, 03:20 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by DawnTreader, 05-08-2024, 05:58 PM
              54 responses
              313 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by Option Whisperer, 03-20-2024, 07:01 AM
              10 responses
              238 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X