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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-29-2008, 09:31 AM   #1
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default How to Programmatically set default Fill Type?

Is there a way to set the default fill type within my strategy?

I can't figure out which property in the Strategy NinjaScript that can control this.

I don't like the default setting. I'm using Liberal. And soon I will write my own fill type.

But every time I add the strategy to a chart or in the Strategy Analyzer it changes to "Default" and I often forget to set it back to Liberal.

If you don't have a way to control this within the Strategy NinjaScript, please add it as a new feature in soon to come release.

Please advise.

- Wayne
wayneFH is offline  
Reply With Quote
Old 03-29-2008, 11:48 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

These are the settings that you can currently set programmatically: http://www.ninjatrader-support.com/v...06&postcount=5

Thanks for your suggestion.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-29-2008, 01:45 PM   #3
wayneFH
Senior Member
 
Join Date: Mar 2008
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default

None of these sets the default Fill type. Please add that as a feature.

- Wayne
wayneFH is offline  
Reply With Quote
Old 02-06-2009, 10:55 AM   #4
Anagoge
Senior Member
 
Join Date: Sep 2008
Posts: 183
Thanks: 0
Thanked 1 time in 1 post
Default

Consider this another vote for being able to set the default fill type in code for each strategy. In fact, I'd look over the backtesting dialog and make most all of the default values there configurable inside the strategy code (default bar type/length, default start/end dates, etc.).
Anagoge is offline  
Reply With Quote
Old 02-06-2009, 11:19 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 981 times in 963 posts
Default

Thanks for the input Anagoge!
NinjaTrader_Bertrand is online now  
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
Programmatically Recognize Pullbacks mgbloomfield General Programming 1 02-28-2008 07:42 PM
Default Fill Algorithm used when in replay ... Learning1 Strategy Analyzer 4 01-26-2008 03:16 PM
Optimiser Type dgregor5 Strategy Analyzer 22 01-20-2008 08:51 AM
Ability to work with the account programmatically??? VagyokC4 Suggestions And Feedback 2 09-25-2007 03:52 PM
Liberal Fill type simone General Programming 1 09-11-2007 05:22 AM


All times are GMT -6. The time now is 10:58 AM.