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

Compilation not taking effect

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

    Compilation not taking effect

    I have compiled a new version of my indicator and refreshed (F5) an existing chart. However, the old version of the indicator is still in effect on the chart.
    I also tried removing the indicator and applying it again, with the same result.

    In my indicator I have a DrawRay that is commented out in the new compiled version. However, this DrawRay still appears on my chart after the refresh.

    How do I delete (unregister) the old compilation? I thought this might force the chart to use the new compilation.

    thanks.

    #2
    Please try pressing F5 on chart.

    Comment


      #3
      Maybe you could also try right click on chart->Drawing Tools->Remove All Draw Objects.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        I have tried F5 on the chart, and it did not work.
        I know how to manually remove the objects from the chart. My mention of the DrawRay was only to show that the new compilation was not taking effect.
        My workaround is to save the source of the updated indicator as a new name, delete the old indicator, then rename the new version of the indicator to the name that I previously deleted. When I add the new (renamed) indicator it works as it should.

        Comment


          #5
          That is odd because it should work to just remove the indicator from the chart and readding the indicator. Have you tried closing the chart and then just opening a new chart to see if the new version takes hold?
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            >> I have tried F5 on the chart, and it did not work.
            Sorry, I'm on a loss. It does work here. May be your code change is not effective, since there is some condition (e.g. if statement) which is not triggered. You would need to debug you code: http://www.ninjatrader-support.com/v...ead.php?t=3418

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by traderqz, Today, 12:06 AM
            2 responses
            3 views
            0 likes
            Last Post traderqz  
            Started by RideMe, 04-07-2024, 04:54 PM
            5 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by f.saeidi, Today, 08:13 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DavidHP, Today, 07:56 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by kujista, Today, 06:23 AM
            3 responses
            11 views
            0 likes
            Last Post kujista
            by kujista
             
            Working...
            X