Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Indicator Won't Load on Startup and Doesn't work with Strategy

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

    Indicator Won't Load on Startup and Doesn't work with Strategy

    I'm currently trying to use: https://ninjatraderecosystem.com/use...e-spotter-nt8/ in a strategy. Initially, when trying out the indicator, I noticed it would never load on the first try and I would always need to go in and mess with one of the change one of variables to get it to show up on a chart (I don't even need to modify the value).

    I believe this is probably leading to my next problem with the indicator.

    After changing the properties of some of it's variables to include [NinjaScriptProperty] (just the opacity and sensitivity variables), and trying to load it into a strategy, it completely screws up the strategy. It seems like the values of both the buy and sell signals do not exist, even if I change the variables of the strategy the same way I did for the indicator, it doesn't work (or appear on the chart)

    I was hoping someone could point out what exactly in the code is screwing up the indicator (preventing it from loading until I've played with it's values), as I've tried for a few hours now to no results.

    #2
    Upon reinspection, I do actually need to change the opacity to a number higher than 10 for the indicator to load. HOWEVER, even if I do that before hitting "Apply" or "Ok" in the indicator window (setting it to 100 or something) it doesn't load the indicator and i need to close in indicator window and reopen it, rechange the value, and then it will work.

    I'm really confused by this problem and I'd appreciate any support

    Comment


      #3
      Hello akm39,

      Are errors appearing on the Log tab of the Control Center?

      Or is the script running but the values are not what you are expecting?
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hi ChelseaB,

        No errors are appearing on the log tab of the control center.

        Focusing on the indicator, the issue is that it simply doesn't load when it is initially called up from the indicator button in a NinjaTrader chart.

        Comment


          #5
          Hello,

          Thanks for your reply.

          I will have NinjaTrader_Kate have a look at the script.

          We appreciate your patience.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Due to it not loading initially, it can't then be utilized in a strategy.

            In order to get the indicator to load, i need to call it up from the indicator menu in a chart, hit ok to close the indicator menu, then open up the indicator menu again, modify one of the values, then it will load up on the chart. Even if I modify one of the values before hitting okay the first time, it simply reverts back to the default value until i close and open the indicator menu again.

            Comment


              #7
              Hello akm39,

              Thank you for your patience.

              I've had a chance to take a look and it looks like there was an issue with IsAutoScale and another bool not getting correctly set on the initial application of the indicator. I've corrected this in the version below and will be uploading this fix to the User App Share.

              Please let us know if we may be of further assistance to you.
              Attached Files
              Kate W.NinjaTrader Customer Service

              Comment


                #8
                NinjaTrader_Kate, thank you so much!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by jaybedreamin, Today, 05:56 PM
                0 responses
                3 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                18 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by Jon17, Today, 04:33 PM
                0 responses
                1 view
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                6 views
                0 likes
                Last Post Javierw.ok  
                Started by timmbbo, Today, 08:59 AM
                2 responses
                10 views
                0 likes
                Last Post bltdavid  
                Working...
                X