PDA

View Full Version : Compilation not taking effect


astrolobe
10-24-2007, 09:11 PM
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.

NinjaTrader_Dierk
10-25-2007, 12:14 AM
Please try pressing F5 on chart.

NinjaTrader_Josh
10-25-2007, 12:25 AM
Maybe you could also try right click on chart->Drawing Tools->Remove All Draw Objects.

astrolobe
10-25-2007, 12:43 AM
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.

NinjaTrader_Josh
10-25-2007, 12:52 AM
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?

NinjaTrader_Dierk
10-25-2007, 12:54 AM
>> 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/vb/showthread.php?t=3418