NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-23-2009, 10:56 AM   #1
igorvlassov
Member
 
Join Date: Nov 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default ? Save/restore script parameters?

Hello,
what do you think, is it possible to save NT script parameters into external file and retrieve them, so the next time when script will executed, user see saved perameters in Parameters window?
Thanks,
Igor
igorvlassov is offline  
Reply With Quote
Old 12-23-2009, 11:01 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Igor,

It may be possible through C# programming, but this is beyond the scope of what we can offer support for. Thank you for understanding.
NinjaTrader_Josh is offline  
Reply With Quote
Old 12-23-2009, 11:51 AM   #3
igorvlassov
Member
 
Join Date: Nov 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks you too, Josh!
igorvlassov is offline  
Reply With Quote
Old 12-23-2009, 11:20 PM   #4
igorvlassov
Member
 
Join Date: Nov 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default

Can you at least say, what method I can overload to run some actions before Parameters form execution?
Thanks.
igorvlassov is offline  
Reply With Quote
Old 12-24-2009, 12:42 AM   #5
Baruch
Senior Member
 
Join Date: Mar 2009
Posts: 441
Thanks: 0
Thanked 25 times in 16 posts
Default

Igor,
I did it like this:
First parameter is an instrument choice, then in set of this parameter I execute a function that loads from file values for other parameters.

Baruch
Baruch is offline  
Reply With Quote
Old 12-24-2009, 01:21 AM   #6
igorvlassov
Member
 
Join Date: Nov 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default

Wow, Baruch, what a great idea!
Thanks!
igorvlassov 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
Failed to restore indicator Ralph General Programming 11 04-10-2009 05:06 PM
How to save/load indicator parameters? cassb General Programming 5 12-17-2008 01:08 PM
How to "Rename" or "Save As" a unlocked Ninja Script robhef General Programming 2 09-11-2008 10:38 AM
How can I get my script parameters to show up in the property grid? tradefaz General Programming 3 08-27-2008 02:34 AM
Restore Group? funk101 Suggestions And Feedback 3 01-18-2008 01:55 AM


All times are GMT -6. The time now is 03:39 PM.