NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-03-2012, 09:25 PM   #1
HitTheCity
Junior Member
 
Join Date: Feb 2012
Posts: 19
Thanks: 9
Thanked 0 times in 0 posts
Default Code changes made in Ninjascript editor not saved!

Hi,

If I create a new strategy by clicking Tools/New Ninjascript/Strategy I am presented with the strategy wizard. After entering a name for the strategy I click Unlock Code which takes me to the Ninjascript editor.

I then make a bunch of code changes, hit save, compile then close the editor. I do some testing of the strategy and see it does basically what I wanted it to do.

I then want to make further changes, so I go to Tools/Edit Ninjascript/Strategy and choose my strategy. The wizard is then presented again and I have to press Unlock Code again (isn't it already unlocked?). When the editor pops up, none of my code changes are there!

I have gone around in circles with this about 6 times and I'm really starting to pull my hair out. Can anybody suggest what might be happening here?

Cheers,

Luke
HitTheCity is offline  
Reply With Quote
Old 03-03-2012, 09:39 PM   #2
HitTheCity
Junior Member
 
Join Date: Feb 2012
Posts: 19
Thanks: 9
Thanked 0 times in 0 posts
Default

I deleted the strategy, restarted Ninjatrader, followed the same process as above and now it seems to work correctly.

Is this a bug that has been encountered before? Glad it seems to be working again but I get very nervous at the thought of losing code again, especially when I'm further down the development path.
HitTheCity is offline  
Reply With Quote
Old 03-04-2012, 09:14 AM   #3
sledge
Senior Member
 
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,268
Thanks: 193
Thanked 332 times in 287 posts
Default

Quote:
Originally Posted by HitTheCity View Post
I deleted the strategy, restarted Ninjatrader, followed the same process as above and now it seems to work correctly.

Is this a bug that has been encountered before? Glad it seems to be working again but I get very nervous at the thought of losing code again, especially when I'm further down the development path.
That's bizarre. I've always unlocked my code and never seen anything like this.

7.0.1000.8 here on 32 bit vista.

Out of curiosity, did you import/remove any ninjascripts before you restarted?
sledge is offline  
Reply With Quote
Old 03-04-2012, 03:28 PM   #4
HitTheCity
Junior Member
 
Join Date: Feb 2012
Posts: 19
Thanks: 9
Thanked 0 times in 0 posts
Default

Hi Sledge, thanks for the reply.

No, I didn't import/export any ninjascripts prior to experiencing the problem.

Haven't had the same problem since, but I'll be sure to post any more information I can glean if I do encounter it again.
HitTheCity is offline  
Reply With Quote
Old 03-04-2012, 05:18 PM   #5
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

HitTheCity,

If you find replication steps, please let us know them so we can check into it further. I am happy you have resolved your issue in the mean time.

Thanks for your continued interest in NinjaTrader, and please don't hesitate to contact us should you require assistance.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 03-04-2012, 05:32 PM   #6
HitTheCity
Junior Member
 
Join Date: Feb 2012
Posts: 19
Thanks: 9
Thanked 0 times in 0 posts
Default

Will do Adam, thanks.
HitTheCity is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NinjaScript Editor volman Installation and Licensing 3 10-14-2011 11:27 AM
NinjaScript Editor wrcanes Installation and Licensing 1 09-10-2010 04:22 PM
Missing NinjaScript Editor franch Indicator Development 2 10-19-2009 07:17 AM
NinjaScript Editor tquinn General Programming 3 12-22-2008 10:01 AM
NinjaScript Editor Bug NinjaTrader_Josh Suggestions And Feedback 11 08-17-2007 12:34 AM


All times are GMT -6. The time now is 02:18 AM.